:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --surface: #ffffff;
  --heading: #0f172a;
  --text: #344054;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e6ebf3;
  --line-strong: #d7deea;
  --brand: #6c72ff;
  --brand-strong: #4353ff;
  --brand-dark: #3343ee;
  --brand-soft: #f0f2ff;
  --success: #12c990;
  --success-soft: #eafbf5;
  --warning: #f59e0b;
  --warning-soft: #fff7e6;
  --danger: #ef4444;
  --danger-soft: #fff1f2;
  --container: 1180px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 12px 30px rgba(16, 24, 40, .06);
  --shadow-md: 0 28px 70px rgba(16, 24, 40, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main) !important;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font-main) !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 9999;
  transform: translateY(-150%);
  background: var(--heading);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(230, 235, 243, .88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 14px 30px rgba(67, 83, 255, .24);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-mega:hover .nav-mega-trigger,
.nav-mega:focus-within .nav-mega-trigger {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-mega {
  position: relative;
}

.nav-mega-trigger {
  gap: 6px;
}

.nav-caret {
  font-size: 11px;
  line-height: 1;
  opacity: .78;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 130;
  display: none;
  width: min(920px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
}

.mega-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-mega:hover .mega-menu,
.nav-mega:focus-within .mega-menu {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mega-menu-col {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(230, 235, 243, .9);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.mega-menu-title {
  display: block;
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links .mega-menu-link {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 14px;
  color: var(--heading);
  line-height: 1.25;
}

.nav-links .mega-menu-link small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: normal;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  position: relative;
  display: inline-flex;
}

.language-switcher-button {
  min-height: 42px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.language-current {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switcher-button:hover,
.language-switcher-button[aria-expanded='true'] {
  border-color: rgba(67, 83, 255, .28);
  color: var(--brand-strong);
}

.language-flag {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.language-switcher-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.language-switcher-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
}

.language-switcher-menu a:hover,
.language-switcher-menu a.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.mobile-menu-btn {
  display: none;
}

.btn {
  border: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 14px 34px rgba(67, 83, 255, .24);
}

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

.btn-secondary {
  background: #fff;
  color: var(--heading);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.btn-large {
  min-height: 56px;
  padding-inline: 24px;
  font-size: 15px;
}

.breadcrumb-wrap {
  padding: 14px 0 16px;
  background: #fff;
}

.converter-area .files-panel {
  display: none;
}


.converter-area.has-files .files-panel {
  display: block;
  margin-top: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  color: #7f8ba3;
  font-size: 15px;
  font-weight: 700;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb a {
  color: var(--brand);
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.breadcrumb span[aria-current="page"] {
  color: #7b879e;
}

.breadcrumb-separator {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-top: 2px solid #7b879e;
  border-right: 2px solid #7b879e;
  transform: rotate(45deg);
  opacity: .9;
}

.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(circle at 14% 6%, rgba(108, 114, 255, .13), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(18, 201, 144, .12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

.hero-center {
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.converter-title h1,
.not-found h1 {
  margin: 0 auto;
  color: var(--heading);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.07em;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(34px, 5.2vw, 62px);
}

.hero p {
  margin: 20px auto 0;
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.drop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.search-card {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.search-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--soft);
  font-size: 22px;
}

.search-card input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--heading);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.search-card input::placeholder {
  color: #98a2b3;
}

.hero-pills,
.trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill,
.trust-badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.pill,
.trust-badge {
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  color: #667085;
  font-size: 13px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.page-section {
  padding: 86px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title,
.cta-band h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 900;
}

.section-text {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.category-grid,
.tools-grid,
.stats-grid,
.feature-grid,
.steps-grid,
.info-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card,
.tool-card,
.stat-card,
.feature-card,
.step-card,
.info-card,
.faq-card,
.related-card,
.filters-panel,
.files-panel,
.converter-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.category-card,
.tool-card,
.feature-card,
.step-card,
.info-card,
.faq-card {
  border-radius: var(--radius-lg);
}

.category-card,
.tool-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 83, 255, .28);
  box-shadow: var(--shadow-md);
}

.category-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 900;
}

.site-icon {
  width: 25px;
  height: 25px;
}

.upload-icon-large .site-icon {
  width: 38px;
  height: 38px;
}

[data-tone="blue"] {
  color: #2563eb;
  background: #eff6ff;
}

[data-tone="indigo"] {
  color: #4f46e5;
  background: #eef2ff;
}

[data-tone="violet"] {
  color: #7c3aed;
  background: #f5f3ff;
}

[data-tone="teal"] {
  color: #0f9f8f;
  background: #ecfdf9;
}

[data-tone="green"] {
  color: #079669;
  background: #ecfdf5;
}

[data-tone="amber"] {
  color: #d97706;
  background: #fffbeb;
}

[data-tone="orange"] {
  color: #ea580c;
  background: #fff7ed;
}

[data-tone="rose"] {
  color: #e11d48;
  background: #fff1f2;
}

[data-tone="red"] {
  color: #dc2626;
  background: #fef2f2;
}

[data-tone="slate"] {
  color: #475569;
  background: #f1f5f9;
}

.category-card h3,
.tool-card h3,
.feature-card h3,
.step-card h3,
.info-card h3,
.faq-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 900;
}

.category-card p,
.tool-card p,
.feature-card p,
.step-card p,
.info-card p,
.faq-card p,
.related-card span {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 900;
}

.tool-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  min-height: 27px;
  padding: 0 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
}

.tag.live {
  color: #067647;
  background: var(--success-soft);
}

.tag.soon {
  color: #b54708;
  background: var(--warning-soft);
}

.card-link {
  color: var(--brand-strong);
  font-weight: 900;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--heading);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.tools-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.filters-title {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.tools-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tools-results-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: 24px;
  letter-spacing: -.03em;
}

.tools-results-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.converter-hero {
  padding: 22px 0 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(108, 114, 255, .13), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
}

.converter-title {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.format-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
}

.format-chip {
  min-width: 54px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 10px 22px rgba(67, 83, 255, .22);
}



.format-switch-with-select {
  gap: 10px;
}

.format-select-chip {
  position: relative;
  min-width: 84px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 10px 22px rgba(67, 83, 255, .22);
  overflow: hidden;
}

.format-select-chip select {
  width: 100%;
  min-height: 32px;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 31px 0 13px;
}

.format-select-chip select option {
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.format-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-51%);
  pointer-events: none;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  line-height: 1;
}

.format-switch-with-select.is-loading {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 520px) {
  .format-switch-with-select {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .format-select-chip {
    min-width: 92px;
  }
}

.format-picker {
  position: relative;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  color: var(--heading);
  overflow: visible;
}

.format-picker-trigger {
  min-width: 96px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 10px 24px rgba(67, 83, 255, .22);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.format-picker-trigger:hover,
.format-picker-trigger[aria-expanded='true'] {
  background: var(--brand-dark);
}

.format-picker-caret {
  font-size: 13px;
  line-height: 1;
  opacity: .92;
}

.format-picker-arrow {
  color: #8190a5;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.format-picker-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  left: 50%;
  width: min(540px, calc(100vw - 32px));
  max-height: min(460px, calc(100vh - 150px));
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
  text-align: left;
}

.format-picker-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.format-picker-search::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2.5px solid var(--heading);
  border-radius: 50%;
  transform: translateY(-55%);
}

.format-picker-search::after {
  content: "";
  position: absolute;
  left: 34px;
  top: calc(50% + 7px);
  width: 11px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--heading);
  transform: rotate(45deg);
  transform-origin: left center;
}

.format-picker-search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 20px 0 54px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 800;
}

.format-picker-search input::placeholder {
  color: #8794a8;
}

.format-picker-options {
  display: grid;
  gap: 12px;
  padding: 16px 22px 22px;
}

.format-picker-group-title {
  margin-bottom: 10px;
  color: #8794a8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.format-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.format-picker-option {
  min-height: 40px;
  border: 1px solid #dde6f0;
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .03);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.format-picker-option:hover,
.format-picker-option.active {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  box-shadow: 0 12px 28px rgba(67, 83, 255, .12);
}

.format-picker-option:hover {
  transform: translateY(-1px);
}

.format-picker-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 720px) {
  .format-picker {
    gap: 10px;
  }

  .format-picker-trigger {
    min-width: 86px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .format-picker-arrow {
    font-size: 26px;
  }

  .format-picker-popover {
    width: min(460px, calc(100vw - 24px));
    border-radius: 22px;
  }

  .format-picker-search input {
    min-height: 48px;
    padding-left: 54px;
    font-size: 16px;
  }

  .format-picker-search::before {
    left: 22px;
    width: 13px;
    height: 13px;
  }

  .format-picker-search::after {
    left: 34px;
  }

  .format-picker-options {
    padding: 16px;
  }

  .format-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .format-picker-option {
    min-height: 38px;
    font-size: 14px;
  }
}

/* Shared polish: centered settings and more readable content spacing. */
.nav-actions > .btn {
  display: none;
}

.converter-settings {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  align-items: stretch;
  row-gap: 18px;
  column-gap: 18px;
  padding: 20px;
}

.converter-settings.metadata-settings {
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
}

.setting-control,
.check-control,
.checkbox-control,
.lossless-toggle {
  width: 100%;
}

.setting-note {
  margin-top: 4px;
}

.feature-grid {
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.feature-card .card-icon {
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
  line-height: 1.28;
}

.feature-card p {
  line-height: 1.72;
}

@media (max-width: 900px) {
  .converter-settings,
  .converter-settings.metadata-settings {
    grid-template-columns: minmax(0, 520px);
  }
}

@media (max-width: 720px) {
  .converter-settings,
  .converter-settings.metadata-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .feature-grid {
    gap: 18px;
  }

  .feature-card {
    padding: 24px;
  }
}

.converter-title h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.converter-title p {
  max-width: 720px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.converter-area {
  padding: 16px 0 64px;
  background: #f7f8ff;
}

.converter-card {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
}

.drop-zone {
  margin: 14px;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 2px dashed #ccd5e4;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(108, 114, 255, .09), transparent 36%),
    #fbfcff;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.drop-zone.dragover {
  border-color: var(--brand-strong);
  background: var(--brand-soft);
  transform: scale(.996);
}

.upload-icon-large {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.drop-zone h2 {
  margin: 0;
  color: var(--heading);
  font-size: 28px;
  letter-spacing: -.035em;
}

.drop-zone p {
  max-width: 540px;
  margin: 8px auto 0;
  color: var(--muted);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.converter-settings {
  border-top: 1px solid var(--line);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: #fff;
}

.setting-control {
  display: grid;
  gap: 8px;
}

.setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.setting-control input[type='range'] {
  width: 100%;
  accent-color: var(--brand-strong);
}

.lossless-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.lossless-toggle input {
  accent-color: var(--brand-strong);
}

.files-panel {
  max-width: 960px;
  margin: 22px auto 0;
  border-radius: 28px;
  overflow: hidden;
}

.converter-area.has-files .files-panel {
  box-shadow: 0 28px 70px rgba(21, 28, 54, .10);
}

.files-toolbar {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.files-toolbar h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  letter-spacing: -.02em;
}

.files-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.file-list {
  display: grid;
}

.file-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.file-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.file-item:last-child {
  border-bottom: 0;
}

.file-thumb {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.file-thumb-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.file-meta strong {
  display: block;
  overflow: hidden;
  color: var(--heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.status.success {
  background: var(--success-soft);
  color: #067647;
}

.status.error {
  background: var(--danger-soft);
  color: #b42318;
}

.file-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.file-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.file-button:hover {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.file-button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}


/* Refined converter queue layout */
.files-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.files-toolbar h3 {
  font-size: 21px;
}

.files-toolbar p {
  max-width: 640px;
  font-size: 15px;
}

.toolbar-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toolbar-actions .btn {
  width: 100%;
  min-height: 48px;
  padding-inline: 14px;
}

.file-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  justify-content: end;
}

.file-button {
  min-width: 92px;
  min-height: 40px;
  padding: 0 14px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .04);
}

.file-button:disabled {
  background: #f8fafc;
  color: #98a2b3;
}

.converter-area.has-files .converter-card {
  margin-bottom: 22px;
}

.converter-area.has-files .files-panel {
  margin-top: 22px;
}

.queue-add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.queue-add-more[hidden] {
  display: none !important;
}

.queue-add-more .btn {
  min-width: 190px;
}

.queue-add-more span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.message {
  max-width: 960px;
  margin: 16px auto 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}

.message.success {
  background: var(--success-soft);
  color: #067647;
}

.message.error {
  background: var(--danger-soft);
  color: #b42318;
}

.feature-card,
.step-card,
.info-card,
.faq-card,
.related-card {
  padding: 24px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 900;
}

.related-card {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius-lg);
}

.related-card strong {
  color: var(--heading);
  font-weight: 900;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.cta-band {
  padding: 54px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(135deg, var(--brand-strong), #7c3aed);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 660px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.cta-band .hero-actions {
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand p {
  max-width: 330px;
  margin: 14px 0 0;
  color: var(--muted);
}

.footer-col h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 900;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--brand-strong);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.not-found {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: clamp(42px, 8vw, 86px);
}

.not-found p {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 980px) {
  .nav-actions {
    display: flex;
    margin-left: auto;
  }

  .nav-actions > .btn {
    display: none;
  }

  .category-grid,
  .tools-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .converter-settings {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-mega {
    width: 100%;
  }

  .nav-mega-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .mega-menu {
    position: static;
    display: block;
    width: 100%;
    max-height: min(58vh, 520px);
    margin-top: 6px;
    padding: 8px;
    overflow: auto;
    border-radius: 18px;
    background: #f8faff;
    box-shadow: none;
    transform: none;
  }

  .mega-menu::before {
    display: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mega-menu-col {
    padding: 10px;
    border-radius: 16px;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--heading);
    font-weight: 900;
  }

  .breadcrumb-wrap {
    padding: 12px 0 14px;
  }

  .breadcrumb {
    font-size: 14px;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .search-card {
    align-items: stretch;
    border-radius: 24px;
    padding: 12px;
  }

  .search-card .btn {
    display: none;
  }

  .page-section {
    padding: 58px 0;
  }

  .section-text {
    font-size: 16px;
  }

  .category-grid,
  .tools-grid,
  .feature-grid,
  .steps-grid,
  .info-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .tools-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-list {
    grid-template-columns: 1fr;
  }

  

.format-switch-with-select {
  gap: 10px;
}

.format-select-chip {
  position: relative;
  min-width: 84px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 10px 22px rgba(67, 83, 255, .22);
  overflow: hidden;
}

.format-select-chip select {
  width: 100%;
  min-height: 32px;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 31px 0 13px;
}

.format-select-chip select option {
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.format-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-51%);
  pointer-events: none;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  line-height: 1;
}

.format-switch-with-select.is-loading {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 520px) {
  .format-switch-with-select {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .format-select-chip {
    min-width: 92px;
  }
}

.converter-title h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .converter-title p {
    font-size: 14px;
  }

  .drop-zone {
    min-height: 230px;
    margin: 10px;
    padding: 22px 14px;
  }

  .drop-zone h2 {
    font-size: 23px;
  }

  .files-toolbar {
    align-items: stretch;
  }

  .toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .file-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .cta-band {
    padding: 34px 20px;
    border-radius: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 520px) {
  .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .file-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .file-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .queue-add-more {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px 24px;
  }

  .queue-add-more .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Final queue action row - Add More beneath uploaded files */
.files-panel {
  max-width: 1080px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, .08);
  overflow: hidden;
}

.files-toolbar {
  display: block;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
}

.files-toolbar h3 {
  font-size: 22px;
  line-height: 1.15;
}

.files-toolbar p {
  max-width: 640px;
  margin-top: 6px;
  font-size: 15px;
}

.file-list {
  background: #fff;
}

.file-item {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 32px;
  min-height: 126px;
}

.file-thumb {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: #f4f7fb;
}

.file-meta strong {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.25;
}

.file-stats {
  gap: 12px;
  font-size: 13px;
}

.status {
  margin-top: 10px;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.file-button {
  min-width: 96px;
  min-height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .04);
}

.queue-add-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 32px 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.queue-add-more[hidden] {
  display: none !important;
}

.queue-action-left,
.queue-action-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.queue-action-right {
  justify-content: flex-end;
}

.btn-add-more {
  min-height: 58px;
  min-width: 170px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, .04);
}

.btn-add-more span,
.btn-convert-all span {
  font-size: 26px;
  line-height: 1;
  margin-top: -2px;
}

.btn-convert-all {
  min-height: 58px;
  min-width: 190px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 18px;
}

.btn-download-zip {
  min-height: 58px;
  padding-inline: 24px;
  border-radius: 999px;
}

.icon-round-button {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(16, 24, 40, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.icon-round-button:hover {
  transform: translateY(-1px);
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .08);
}

.icon-round-button:disabled {
  opacity: .45;
}

@media (max-width: 900px) {
  .files-panel {
    border-radius: 28px;
  }

  .files-toolbar {
    padding: 22px 22px 18px;
  }

  .file-item {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 20px 22px;
  }

  .file-thumb {
    width: 72px;
    height: 72px;
  }

  .file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
  }

  .queue-add-more {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .queue-action-left,
  .queue-action-right {
    width: 100%;
    justify-content: space-between;
  }

  .btn-add-more,
  .btn-convert-all {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .files-toolbar {
    padding: 20px 18px 16px;
  }

  .file-item {
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 18px;
  }

  .file-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .file-meta strong {
    font-size: 15px;
  }

  .file-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .queue-add-more {
    padding: 18px;
  }

  .queue-action-left,
  .queue-action-right {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .queue-action-right {
    grid-template-columns: auto 1fr;
  }

  .btn-download-zip {
    grid-column: 1 / -1;
    width: 100%;
  }

  .btn-add-more,
  .btn-convert-all,
  .icon-round-button,
  .btn-download-zip {
    min-height: 54px;
  }

  .btn-add-more,
  .btn-convert-all {
    font-size: 16px;
    padding-inline: 18px;
  }

  .icon-round-button {
    width: 54px;
    height: 54px;
  }
}



/* JPG to PDF additions */
.pdf-settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setting-control select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  color: var(--heading);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.setting-control select:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(67, 83, 255, .10);
}

.file-actions-compact {
  grid-template-columns: auto;
}

.file-actions-compact .file-button {
  min-width: 112px;
}

@media (max-width: 980px) {
  .pdf-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pdf-settings {
    grid-template-columns: 1fr;
  }

  .file-actions-compact .file-button {
    width: 100%;
  }
}

/* v7.0 refinements: smaller buttons, cleaner tool upload sections, PDF compressor */
.btn {
  min-height: 42px;
  padding: 0 16px;
}

.btn-large {
  min-height: 48px;
  padding-inline: 20px;
}

.drop-actions {
  margin-top: 20px;
}

.converter-title p {
  max-width: 700px;
}

.converter-settings select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  color: var(--heading);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.converter-settings select:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(67, 83, 255, .10);
}

.compress-settings {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  align-items: center;
}

.setting-note {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.setting-note strong {
  color: var(--heading);
  margin-right: 4px;
}

.pdf-file-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 900;
}

.icon-round-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-weight: 900;
  box-shadow: var(--shadow-xs);
}

.icon-round-button:hover {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.queue-action-left,
.queue-action-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .compress-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .btn,
  .btn-large {
    min-height: 44px;
    padding-inline: 16px;
  }

  .pdf-file-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 14px;
  }

  .pdf-file-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .queue-action-left,
  .queue-action-right {
    width: 100%;
  }

  .queue-action-left .btn,
  .queue-action-right .btn {
    flex: 1 1 180px;
  }
}


/* Separate tool page switcher */
.tool-switch-panel {
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.tool-switch-panel label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}
.tool-switch-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  outline: none;
}
.tool-switch-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.tool-switch-panel.is-loading { opacity: .72; pointer-events: none; }
.soft-nav-progress {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  transition: transform .2s ease;
}
.soft-nav-progress.active { transform: scaleX(.82); }
.soft-nav-progress.done { transform: scaleX(1); }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Production UI polish */
.hero {
  padding: 72px 0 62px;
}

.hero p,
.section-text,
.converter-title p,
.drop-zone p,
.files-toolbar p,
.category-card p,
.tool-card p,
.feature-card p,
.step-card p,
.info-card p,
.faq-card p {
  line-height: 1.55;
}

.section-text {
  max-width: 620px;
  margin-top: 10px;
  font-size: 15px;
}

.page-section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 28px;
}

.converter-hero {
  padding: 16px 0 12px;
}

.converter-title {
  max-width: 760px;
}

.converter-title h1 {
  font-size: clamp(27px, 3.2vw, 40px);
  letter-spacing: -.045em;
}

.converter-title p {
  max-width: 600px;
  margin-top: 6px;
  font-size: 13px;
}

.converter-area {
  padding: 10px 0 56px;
}

.converter-card {
  max-width: 920px;
  border-radius: 28px;
}

.drop-zone {
  min-height: 220px;
  margin: 12px;
  padding: 24px;
  border-radius: 24px;
}

.upload-icon-large {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 20px;
}

.drop-zone h2 {
  font-size: 24px;
}

.drop-zone p {
  max-width: 500px;
  margin-top: 6px;
  font-size: 14px;
}

.drop-actions {
  margin-top: 16px;
}

.converter-settings {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.setting-control,
.check-control,
.checkbox-control,
.lossless-toggle {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .035);
}

.check-control,
.checkbox-control,
.lossless-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.check-control input,
.checkbox-control input,
.lossless-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--brand-strong);
}

.setting-label {
  gap: 12px;
  font-size: 12px;
  line-height: 1.25;
}

.setting-label > span:last-child {
  white-space: nowrap;
}

.setting-control input[type='range'] {
  height: 18px;
}

.converter-settings input[type='number'],
.converter-settings input[type='text'] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  color: var(--heading);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.converter-settings input[type='color'] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  padding: 5px;
}

.converter-settings input[type='number']::placeholder,
.converter-settings input[type='text']::placeholder {
  color: var(--soft);
}

.converter-settings input[type='number']:focus,
.converter-settings input[type='text']:focus {
  border-color: var(--brand-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(67, 83, 255, .10);
}

.setting-note {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 760px);
  min-height: 0;
  display: block;
  padding: 11px 14px 11px 42px;
  border: 1px solid #dbe4ff;
  border-radius: 16px;
  background: #f6f8ff;
  color: #46506a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(67, 83, 255, .045);
}

.setting-note::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.setting-note strong {
  color: var(--heading);
  font-weight: 900;
  margin-right: 5px;
  white-space: nowrap;
}

.setting-control.is-disabled {
  opacity: .58;
  background: #f7f8fb;
  box-shadow: none;
}

.setting-control input:disabled,
.setting-control select:disabled {
  cursor: not-allowed;
  background: #eef1f6;
}

.converter-settings.metadata-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card,
.tool-card,
.feature-card,
.step-card,
.info-card,
.faq-card,
.related-card {
  border-color: #e8edf5;
}

.category-card p,
.tool-card p,
.feature-card p,
.step-card p,
.info-card p,
.faq-card p,
.related-card span {
  font-size: 14px;
}

.tools-results-head p,
.file-empty,
.file-stats {
  font-size: 13px;
}

.site-footer {
  padding-top: 44px;
}

@media (max-width: 900px) {
  .converter-settings {
    grid-template-columns: 1fr;
  }

  .converter-settings.metadata-settings {
    grid-template-columns: 1fr;
  }

  .setting-control,
  .check-control,
  .checkbox-control,
  .lossless-toggle {
    min-height: 60px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 50px 0 46px;
  }

  .hero p {
    font-size: 15px;
  }

  .page-section {
    padding: 48px 0;
  }

  .converter-hero {
    padding: 12px 0 10px;
  }

  .converter-title h1 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .converter-title p {
    font-size: 12.5px;
  }

  .drop-zone {
    min-height: 198px;
    padding: 20px 14px;
  }

  .converter-settings {
    padding: 12px;
  }

  .setting-note {
    justify-self: stretch;
    width: 100%;
    padding: 11px 12px 11px 40px;
    font-size: 12.25px;
  }
}

/* Final shared alignment override. Keep every settings row centered. */
.converter-settings,
.converter-settings.metadata-settings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  padding: 20px;
}

.converter-settings .setting-control,
.converter-settings .check-control,
.converter-settings .checkbox-control,
.converter-settings .lossless-toggle {
  flex: 1 1 220px;
  width: min(100%, 280px);
  max-width: 280px;
}

.converter-settings .setting-note {
  flex: 1 0 100%;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 4px auto 0;
}

@media (max-width: 720px) {
  .converter-settings,
  .converter-settings.metadata-settings {
    gap: 14px;
    padding: 14px;
  }

  .converter-settings .setting-control,
  .converter-settings .check-control,
  .converter-settings .checkbox-control,
  .converter-settings .lossless-toggle {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }
}
