:root {
  color-scheme: light only;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f8;
  --bg-inset: #f4f4f7;
  --border: #e2e2ea;
  --border-subtle: #ededf2;
  --accent: #e53935;
  --accent-hover: #c62828;
  --accent-dim: rgba(229, 57, 53, 0.07);
  --text: #111116;
  --text-muted: #55555f;
  --text-dim: #9090a0;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --header-bg: #111116;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── HEADER ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}
.logo-mark img,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}
.logo-text span { color: var(--accent); }
.logo-img { display: none; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.nav-desktop a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: #ffffff; background: rgba(255,255,255,0.09); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.btn-ghost:hover { color: #ffffff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.09); }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.btn-icon-only { padding: 0 8px; }

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: #ccc; color: var(--text) !important; }

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
}
.hamburger-btn:hover { background: rgba(255,255,255,0.09); }

/* ── MOBILE DRAWER ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .logo-text { color: var(--text); }
.drawer .logo-text span { color: var(--accent); }

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

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
}
.drawer-close:hover { color: var(--text); background: var(--bg-card); }

.drawer-nav { padding: 12px 0; }
.drawer-nav a {
  display: block;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.drawer-nav a:hover { color: var(--text); border-left-color: var(--accent); background: var(--accent-dim); }
.drawer-nav .section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── FLASH MESSAGES ── */
.flash-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px 0; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.flash-danger  { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.flash-warning { background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234,179,8,0.3); color: #fde047; }
.flash-info    { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* ── MAIN CONTENT ── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.page-narrow {
  max-width: 860px;
  margin: 0 auto;
}

/* ── HERO SECTION ── */
.hero {
  padding: 48px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.7;
}

/* Format selector */
.format-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.format-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 90px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.format-box:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.format-box .fmt-icon { font-size: 28px; margin-bottom: 4px; display: block; }
.format-box .fmt-label { font-size: 13px; font-weight: 700; color: var(--text); }
.format-arrow { color: var(--accent); font-size: 18px; font-weight: 700; }
.format-to-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-align: center;
  display: block;
}

/* ── UPLOAD ZONE ── */
.upload-section {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-section:hover,
.upload-section.drag-over {
  border-color: var(--accent);
  background: rgba(229,57,53,0.04);
}
.upload-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  font-size: 22px;
}
.upload-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.upload-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.upload-btn {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.upload-btn:hover { background: var(--accent-hover); }
.upload-btn svg { width: 16px; height: 16px; }

/* ── CONVERSION OPTIONS ── */
.options-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  display: none;
}
.options-panel.visible { display: block; }
.options-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.option-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 100px;
}
.option-select, .option-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
}
.option-select:focus, .option-input:focus { border-color: var(--accent); }

.quality-slider {
  width: 200px;
  accent-color: var(--accent);
}

/* ── JOB STATUS / PROGRESS ── */
.job-status-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: none;
  margin-top: 16px;
}
.job-status-panel.visible { display: block; }

.progress-bar-wrap {
  background: var(--bg-card);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s;
  width: 0%;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  display: none;
}
.download-card.visible { display: flex; }
.download-info { text-align: left; }
.download-info .file-name { font-weight: 600; font-size: 14px; }
.download-info .file-size { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── TRUST BADGES ── */
.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
}
.trust-badge svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── SECTION HEADINGS ── */
.section {
  margin-top: 48px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 18px 0;
}
.section-label svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── About / NLP overview block on homepage ─────────────────────────── */
.hp-about {
  margin: 48px 0;
}
.hp-about-body {
  max-width: 920px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.hp-about-body p { margin: 0 0 14px; }
.hp-about-body strong { color: var(--text); font-weight: 700; }
.hp-about-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.hp-about-body a:hover { color: var(--accent-hover, var(--accent)); }
.hp-about-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px !important;
  font-size: 14px;
}
.hp-about-cta a {
  text-decoration: none !important;
  font-weight: 600;
  color: var(--accent);
}
.hp-about-cta a:hover { text-decoration: underline !important; }

.section p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── FORMAT CHIPS ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip img { flex-shrink: 0; }

/* ── CONVERSION TYPE COLUMNS ── */
.conversion-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}
.conv-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.conv-col-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.conv-subhead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ── FORMAT REFERENCE BOX ── */
.format-reference {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
}
.format-ref-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.format-ref-content { flex: 1; }
.format-ref-content strong { font-size: 14px; color: var(--text); }
.format-ref-content p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-top: 4px; }

/* ── SUPPORTED FORMATS PAGE ── */
.sf-wrap { max-width: 1060px; }

.sf-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.sf-hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.sf-hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.65; margin-bottom: 28px; }
.sf-hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sf-stat { display: flex; flex-direction: column; gap: 2px; }
.sf-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.sf-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 600; }
.sf-stat-div { width: 1px; height: 32px; background: var(--border); }

.sf-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.sf-search-wrap { position: relative; flex-shrink: 0; }
.sf-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.sf-search { height: 36px; padding: 0 12px 0 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text); font-size: 13px; width: 220px; outline: none; }
.sf-search:focus { border-color: var(--accent); }
.sf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-tab { height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.sf-tab:hover { border-color: var(--accent); color: var(--accent); }
.sf-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 0; color: var(--text-dim); text-align: center; }
.sf-empty p { font-size: 14px; margin: 0; }

.sf-section { margin-bottom: 52px; }
.sf-section-heading { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.sf-section-count { margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); }
.sf-section-intro { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: -12px 0 20px; max-width: 680px; }
.sf-section-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-icon-raster  { background: #fef3c7; color: #b45309; }
.sf-icon-raw     { background: #fce7f3; color: #be185d; }
.sf-icon-vector  { background: #ecfdf5; color: #047857; }
.sf-icon-design  { background: #eff6ff; color: #1d4ed8; }
.sf-icon-office  { background: #f5f3ff; color: #6d28d9; }

/* cards */
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sf-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.sf-card:hover { border-color: var(--accent); }
.sf-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.sf-card-name { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0; }
.sf-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin: 0; flex: 1; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sf-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-dim); font-weight: 500; }
.sf-tag-io { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.sf-tag-in { background: var(--bg-elevated); border-color: var(--border); color: var(--text-dim); }

/* extension badges */
.sf-ext-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
.sf-ext-alias { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.sf-badge-orange { background: #fef3c7; color: #92400e; }
.sf-badge-blue   { background: #dbeafe; color: #1e3a8a; }
.sf-badge-teal   { background: #ccfbf1; color: #0f5749; }
.sf-badge-green  { background: #dcfce7; color: #14532d; }
.sf-badge-purple { background: #ede9fe; color: #4c1d95; }
.sf-badge-pink   { background: #fce7f3; color: #831843; }
.sf-badge-red    { background: #fee2e2; color: #7f1d1d; }
.sf-badge-grey   { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

/* RAW grid */
.sf-raw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sf-raw-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sf-raw-card:hover { border-color: var(--accent); }
.sf-raw-ext { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: .04em; }
.sf-raw-maker { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sf-raw-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-top: 2px; }
.sf-raw-link { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sf-raw-link:hover { text-decoration: underline; }

/* format card converter links */
.sf-card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.sf-card-link { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.sf-card-link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* office groups */
.sf-office-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sf-office-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.sf-office-group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.sf-office-list { display: flex; flex-direction: column; gap: 8px; }
.sf-office-item { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sf-mini-badge { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); white-space: nowrap; flex-shrink: 0; }
.sf-office-link { font-size: 11px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.sf-office-link:hover { text-decoration: underline; }

/* output section */
.sf-output-section { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 8px; margin-bottom: 48px; }
.sf-output-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.sf-output-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.sf-output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sf-output-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.sf-output-card:hover { border-color: var(--accent); }
.sf-output-card p { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }
.sf-output-link { font-size: 12px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; text-decoration: none; margin-top: 4px; }
.sf-output-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sf-hero-title { font-size: 1.6rem; }
  .sf-controls { flex-direction: column; align-items: flex-start; }
  .sf-search { width: 100%; }
  .sf-section-heading { font-size: 1rem; }
  .sf-office-groups { grid-template-columns: 1fr; }
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--text-muted); }

/* ── RELATED TOOLS GRID (legacy, still used on converter pages) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}
.tool-card:hover { border-color: var(--accent); background: var(--bg-card); color: var(--text); }
.tool-card .tool-fmt {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.tool-card .tool-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tool-card .tool-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── TOOLS PAGE v2 ── */
.tools-hero {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 52px 20px 44px;
  text-align: center;
}
.tools-hero-inner { max-width: 640px; margin: 0 auto; }
.tools-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.tools-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tools-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.tools-hero-dot { margin: 0 8px; }
.tools-hero--compact { padding: 24px 20px 20px; }
.tools-hero--compact .tools-hero-title { font-size: 1.6rem; margin-bottom: 8px; }
.tools-hero--compact .tools-hero-sub { margin-bottom: 12px; font-size: 15px; }

.tools-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

/* ── AI Featured Tools grid (tools page) ── */
.ai-tools-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ai-featured-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.ai-featured-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.ai-featured-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ai-featured-body { min-width: 0; }
.ai-featured-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.ai-featured-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ai-featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 2px 8px;
  border-radius: 20px;
}

.tools-section { margin-top: 52px; }
.tools-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tools-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tools-section-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

.tools-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.tool-card-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tool-card-v2:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(229,57,53,0.08);
  background: rgba(229,57,53,0.015);
}
.tool-card-v2--featured { border-color: var(--accent); }
.tool-card-icon { width: 32px; height: 37px; object-fit: contain; flex-shrink: 0; }
.tool-card-body { min-width: 0; }
.tool-card-fmts {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.tool-card-from {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.tool-card-arrow { font-size: 10px; color: var(--text-dim); }
.tool-card-to {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.tool-card-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tool-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  /* Wrap to a second line instead of truncating with an ellipsis */
}

/* Tools about section */
.tools-about {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-inset);
  border-radius: 16px;
}
.tools-about h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.tools-about > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.tools-intro-list {
  margin: 0 0 16px 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tools-intro-list li {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.tools-intro-list li strong { color: var(--text); }
.tools-about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 1100px) { .tools-about-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .tools-about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .tools-about-grid { grid-template-columns: 1fr; } }
.tools-about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.tools-about-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-about-icon svg { width: 32px; height: 32px; }
.tools-about-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tools-about-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── TOOLS PAGE - EXTRAS ── */
.tools-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  align-self: flex-end;
}
.tools-see-all:hover { text-decoration: underline; }
.tools-subhead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 16px 0 10px;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── RICH CONTENT TABLES ── */
.rich-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid #d0d0d8;
}
.rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
  table-layout: auto;
}
.rich-table thead tr { background: #f4f4f7; }
.rich-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a6a7a;
  border-bottom: 1px solid #d0d0d8;
  white-space: nowrap;
}
.rich-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e8e8ee;
  border-right: 1px solid #e8e8ee;
  color: var(--text-muted);
  line-height: 1.5;
  vertical-align: top;
}
.rich-table td:last-child { border-right: none; }
.rich-table th:not(:last-child) { border-right: 1px solid #d0d0d8; }
.rich-table tr:last-child td { border-bottom: none; }
.rich-table tbody tr:hover td { background: #f8f8fb; }
.rich-table td strong { color: var(--text); }
.rich-table td a { color: var(--accent); font-weight: 600; }
.rich-table td a:hover { text-decoration: underline; }

/* ── IMAGE CONVERTER GUIDE GRID ── */
.imgconv-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.imgconv-guide-card {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.imgconv-guide-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.imgconv-guide-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.imgconv-guide-card a { color: var(--accent); font-weight: 600; }
.imgconv-guide-card a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .imgconv-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .imgconv-guide-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION ── */
/* FAQ page nav pills */
.faq-nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.faq-nav-pill:hover { border-color: var(--accent); color: var(--accent); }
.faq-nav-count {
  font-size: 11px; color: var(--text-dim); font-weight: 400;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1px 6px;
}
/* FAQ section heading */
.faq-section-heading {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.faq-section-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; color: var(--accent); flex-shrink: 0;
}
.faq-section-badge {
  font-size: 11px; color: var(--text-dim); font-weight: 400;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 2px 8px;
}
/* FAQ read/open button */
.faq-read-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
}
.faq-read-btn:hover { background: var(--accent-hover); color: #fff; }
/* FAQ contact button */
.faq-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: border-color .15s;
}
.faq-contact-btn:hover { border-color: var(--accent); }

.faq-list { margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-elevated);
  border: none;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-card); }
.faq-arrow { transition: transform 0.2s; color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 16px 18px; }

/* ── FAQ article cross-link (uses article title as anchor text) ── */
.faq-article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  max-width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.faq-article-link:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.32);
}
.faq-article-link-prefix {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 2px;
}
.faq-article-link-title {
  color: var(--accent);
  font-weight: 600;
}

/* ── RELATED GUIDES ── (FAQ articles surfaced on converter/hub pages) */
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.related-guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.related-guide-card:hover {
  background: var(--bg-card-hover, var(--bg-elevated));
  border-color: var(--accent);
  transform: translateX(2px);
}
.related-guide-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}
.related-guide-card:hover .related-guide-arrow {
  background: var(--accent);
  color: white;
}
.related-guide-title { flex: 1; }
@media (max-width: 640px) {
  .related-guides-grid { grid-template-columns: 1fr; }
  .related-guide-card { font-size: 13px; padding: 12px 14px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-elevated);
  margin-top: 80px;
}
.footer-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f59e0b;          /* amber-500, matches .btn-upgrade */
  color: #1f2937;
  padding: 14px 22px;
  max-width: 1200px;
  margin: 24px auto 0;
  border-radius: var(--radius);
}
.footer-upgrade-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-upgrade-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.footer-upgrade-text span {
  font-size: 12px;
  color: rgba(31,41,55,0.78);
}
.footer-upgrade-btn {
  flex-shrink: 0;
  background: #1f2937;        /* dark pill on amber band */
  color: #fef3c7;             /* amber-100 text for contrast */
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.footer-upgrade-btn:hover { background: #111827; color: #fef3c7; }
@media (max-width: 500px) {
  .footer-upgrade { flex-direction: column; align-items: flex-start; }
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); margin: 0; }
.site-footer { padding-bottom: 0; }

/* ── AUTH FORMS ── */
.auth-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card p.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 12px 20px;
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: box-shadow .15s, background .15s;
}
.google-signin-btn:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,.15); color: #3c4043; }

/* ── Email auth form (signup + login) ── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.auth-field input {
  width: 100%; padding: 10px 12px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.auth-submit {
  margin-top: 4px; padding: 11px 20px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .05s;
}
.auth-submit:hover { background: #1e4fd6; }
.auth-submit:active { transform: translateY(1px); }
.auth-inline-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.auth-inline-link:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); }

/* ── DASHBOARD ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.achievement-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.achievement-card.locked { opacity: 0.4; }
.ach-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ach-name { font-size: 13px; font-weight: 600; }
.ach-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── ADMIN TABLES ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.admin-table tr:hover td { background: var(--bg-card); }

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-red   { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-yellow{ background: rgba(234,179,8,0.15); color: #fde047; }
.badge-blue  { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-gray  { background: rgba(100,100,120,0.15); color: var(--text-muted); }

/* ── BLOG ── */
/* ── Blog index hero ───────────────────────────────────────────────────────── */
.blog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.blog-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.blog-hero-text { flex: 1; min-width: 260px; }
.blog-hero-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.blog-stat { text-align: center; }
.blog-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.blog-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Topic pills */
.blog-topics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.blog-topic-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 4px;
}
.blog-topic-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-topic-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Featured article */
.blog-featured {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.blog-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(59,130,246,.08);
}
.blog-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
}
.blog-featured-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.blog-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 640px;
}
.blog-featured-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-read-more {
  color: var(--accent);
  font-weight: 600;
}

/* Section heading */
.blog-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(59,130,246,.07);
}
.blog-card-body { padding: 22px; }
.blog-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.blog-card .meta { font-size: 11px; color: var(--text-dim); margin-top: 14px; }

/* Blog pagination */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 8px; }
.blog-page-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; transition: background .15s; }
.blog-page-btn:hover { background: var(--bg-inset); }
.blog-page-info { font-size: 13px; color: var(--text-muted); }

/* FAQ quick answers */
.blog-faq-section {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
}
.blog-faq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.blog-faq-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.blog-faq-all-link:hover { opacity: .8; }
.blog-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-faq-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.blog-faq-card:hover { border-color: var(--accent); }
.blog-faq-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}
.blog-faq-icon span {
  font-size: 9px;
  font-weight: 600;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-faq-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.blog-faq-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Converters strip */
.blog-tools-strip { margin-bottom: 48px; }
.blog-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tool-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-tool-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 700px) {
  .blog-hero { padding: 32px 0 28px; }
  .blog-hero-title { font-size: 1.7rem; }
  .blog-hero-stats { gap: 16px; }
  .blog-stat-num { font-size: 1.4rem; }
  .blog-featured-title { font-size: 1.2rem; }
  .blog-faq-section { padding: 24px 20px; }
  .blog-faq-grid { grid-template-columns: 1fr; }
}

/* ── PAGE CONTENT ── */
.page-content h1 { font-size: 2rem; margin-bottom: 12px; }
.page-content h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.page-content p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.page-content ul { color: var(--text-muted); font-size: 14px; padding-left: 20px; line-height: 1.8; margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger-btn { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .format-selector { display: none; }

  .hero h1 { font-size: 1.8rem; }

  .conversion-types-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .main-content { padding: 24px 16px 48px; }
  .hero { padding: 28px 0 20px; }
  .upload-section { padding: 32px 16px; }
}

/* ── Mobile footer accordion ──────────────────────────────────────── */
/* Desktop: wrappers are transparent pass-through blocks */
.footer-chevron { display: none; }
.footer-col-links { display: block; }
.footer-col-links-inner { display: block; }

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 0 8px;
    gap: 0;
  }
  .footer-col {
    border-bottom: 1px solid var(--border-subtle);
  }
  /* Drop the last column's bottom border so we don't get a double-line
     stack (col-border + footer-bottom border-top) on mobile. */
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 16px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  .footer-chevron {
    display: block;
    transition: transform 0.22s ease;
    flex-shrink: 0;
    color: var(--text-dim);
  }
  .footer-col.open .footer-chevron {
    transform: rotate(180deg);
  }
  /* Collapsed by default — max-height: 0 hides content reliably */
  .footer-col-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .footer-col.open .footer-col-links {
    max-height: 600px;
  }
  .footer-col-links-inner {
    padding: 4px 20px 16px;
  }
  .footer-col a {
    display: block;
    padding: 7px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 20px 16px;
  }
}

/* ── UTILITIES ── */
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent) !important; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* spinner */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   CLOUDCONVERT-STYLE CONVERTER UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero header ──────────────────────────────────────────────────── */
.cv-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cv-hero-text h1 { font-size: 1.7rem; margin-bottom: 8px; }
.cv-hero-text .lead { color: var(--text-muted); font-size: 15px; max-width: 540px; }
.cv-experimental { color: var(--text-dim); font-size: 12px; margin-top: 8px; }

.cv-fmt-pill {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 260px;
}
.cv-fmt-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cv-fmt-box svg { color: var(--text-dim); }
.cv-fmt-box--target { background: rgba(229,57,53,0.08); }
.cv-fmt-box--target svg, .cv-fmt-box--target span { color: var(--accent); }
.cv-fmt-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cv-fmt-to svg { color: var(--text-dim); }

/* ── Workspace wrapper ────────────────────────────────────────────── */
.cv-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; /* clips child borders to rounded corners */
}

/* ── Drop zone ────────────────────────────────────────────────────── */
.cv-dropzone {
  padding: 32px 32px 56px;
  text-align: center;
  cursor: pointer;
  /* 1px hairline separator below dropzone, against the (white) file rows */
  border-bottom: 1px solid var(--border);
  background: #f7f8fb;
  transition: background 0.15s;
}
.cv-dropzone:hover, .cv-dropzone.drag-over {
  background: rgba(229,57,53,0.05);
}
.cv-drop-inner { pointer-events: none; }
.cv-drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
}
.cv-drop-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.cv-drop-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.cv-select-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cv-select-btn:hover { background: var(--accent-hover); }

/* ── File rows ────────────────────────────────────────────────────── */
.cv-files { border-bottom: 1px solid var(--border); }
.cv-files--scrollable {
  max-height: 340px; /* ~5 rows × 68px */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cv-files--scrollable::-webkit-scrollbar { width: 5px; }
.cv-files--scrollable::-webkit-scrollbar-track { background: transparent; }
.cv-files--scrollable::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cv-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dim, rgba(255,255,255,0.04));
  transition: background 0.15s;
  min-height: 68px;
}
.cv-file-row:last-child { border-bottom: none; }
.cv-file-row:hover { background: var(--bg-elevated); }

.cv-file-row--converting { background: rgba(59,130,246,0.04); }
.cv-file-row--done { background: rgba(34,197,94,0.04); }
.cv-file-row--error { background: rgba(239,68,68,0.04); }

.cv-file-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
}
.cv-file-meta { flex: 1; min-width: 0; }
.cv-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-file-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Row progress (shown while converting, replaces actions) */
.cv-row-status {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cv-row-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
  max-width: 240px;
}
.cv-row-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
  width: 0%;
}
.cv-file-row--error .cv-row-progress-fill { background: #ef4444; }
.cv-file-row--done  .cv-row-progress-fill { background: #22c55e; }
.cv-row-status-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.cv-file-row--error .cv-row-status-text { color: #fca5a5; }

/* File actions (shown before conversion) */
.cv-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cv-file-fmt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}
.cv-fmt-from-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cv-fmt-to-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cv-file-fmt svg { color: var(--text-dim); }

.cv-row-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cv-row-remove:hover { border-color: #ef4444; color: #ef4444; }

/* Download row (shown after conversion) */
.cv-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.06);
  border-top: 1px solid rgba(34,197,94,0.15);
  flex-wrap: wrap;
}
.cv-dl-icon--done {
  width: 36px;
  height: 36px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  flex-shrink: 0;
}
.cv-dl-info { flex: 1; min-width: 0; }
.cv-dl-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cv-dl-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; color: #22c55e; }
.cv-dl-btn,
.cv-dl-btn:link,
.cv-dl-btn:visited,
.cv-dl-btn:hover,
.cv-dl-btn:active,
.cv-dl-btn:focus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #22c55e;
  color: #fff;                /* keep white in every link state */
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cv-dl-btn:hover { background: #16a34a; color: #fff; }
.cv-dl-btn:active { background: #15803d; color: #fff; }
/* Inner SVG / text nodes mustn't inherit a visited-link tint either */
.cv-dl-btn * { color: inherit; fill: currentColor; }
.cv-convert-another {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cv-convert-another:hover { border-color: var(--text-muted); color: var(--text); }

/* Options row */
.cv-options-row {
  padding: 12px 20px 4px;
  border-top: 1px solid var(--border-dim, rgba(255,255,255,0.04));
  background: rgba(255,255,255,0.01);
}
.cv-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cv-opt:last-child { border-bottom: none; }
.cv-opt-label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 88px;
  font-weight: 500;
}
.cv-opt-val {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 36px;
}
.cv-opt-x { color: var(--text-dim); font-size: 13px; }
.cv-opt-hint { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

/* Before/after preview (compress-jpg) */
/* ── Compress before/after preview ─────────────────────────────────────── */
.cv-preview-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.cv-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.cv-preview-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.cv-preview-btn {
  padding: 4px 12px; border-radius: 4px; border: none;
  background: transparent; cursor: pointer; font-size: 12px;
  font-weight: 500; color: var(--text-muted); transition: all 0.15s;
  white-space: nowrap;
}
.cv-preview-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.cv-preview-stats {
  display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end;
}
.cv-preview-stat {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.cv-preview-stat strong { color: var(--text); font-weight: 600; }
.cv-preview-savings {
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: #dcfce7; color: #166534;
}
.cv-preview-savings.larger { background: #fee2e2; color: #991b1b; }
.cv-preview-bar-wrap {
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--border);
}
.cv-preview-bar-label {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-dim); margin-bottom: 3px;
}
.cv-preview-bar-track {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.cv-preview-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--accent); transition: width 0.4s ease;
}
.cv-preview-img-wrap {
  position: relative; background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 0 0/16px 16px;
}
.cv-preview-img {
  display: block; max-width: 100%;
  max-height: 240px; width: 100%;
  object-fit: contain;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
  .cv-preview-savings { background: #14532d; color: #86efac; }
  .cv-preview-savings.larger { background: #7f1d1d; color: #fca5a5; }
  .cv-preview-img-wrap { background: repeating-conic-gradient(#374151 0% 25%, transparent 0% 50%) 0 0/16px 16px; }
}
.cv-quality-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cv-quality-slider-row { display: flex; align-items: center; gap: 10px; }
.cv-quality-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-preset-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-elevated); cursor: pointer; font-size: 12px;
  font-weight: 600; color: var(--text-muted); line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cv-preset-btn span { font-size: 10px; font-weight: 400; color: var(--text-dim); }
.cv-preset-btn:hover { border-color: var(--accent); color: var(--text); }
.cv-preset-btn--active {
  border-color: var(--accent); background: var(--accent-dim);
  color: var(--accent);
}
.cv-preset-btn--active span { color: var(--accent); opacity: 0.75; }
.cv-quality-slider {
  width: 180px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.cv-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
}
.cv-select:focus { border-color: var(--accent); }
.cv-input-num {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  width: 96px;
}
.cv-input-num:focus { border-color: var(--accent); }
.cv-ico-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-ico-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.cv-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── Bottom action bar ────────────────────────────────────────────── */
.cv-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  gap: 12px;
  flex-wrap: wrap;
}
.cv-action-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cv-action-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.cv-action-info svg { flex-shrink: 0; color: var(--text-dim); }
.cv-action-btns { display: flex; align-items: center; gap: 8px; }

/* ── Daily quota bar ──────────────────────────────────────────────── */
.cv-quota {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-quota-bar {
  width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.cv-quota-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
#cv-quota-text {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
#cv-quota-reset {
  font-size: 11px;
  color: #ef4444;
  white-space: nowrap;
}
.cv-signup-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  margin-top: 4px;
}
.cv-signup-cta svg { flex-shrink: 0; color: var(--accent); }
.cv-signup-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.cv-signup-cta a:hover { text-decoration: underline; }

.cv-add-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.cv-add-files-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.cv-add-files-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cv-row-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.cv-row-retry:hover { border-color: var(--accent); color: var(--accent); }

.cv-convert-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.cv-convert-btn:hover:not(:disabled) { background: var(--accent-hover); }
.cv-convert-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Trust row ────────────────────────────────────────────────────── */
/* Shares the same light-grey background as the dropzone below so they read
   as one continuous file-upload card, separated only by the 1px divider. */
.cv-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px 14px;
  margin-bottom: 0;
  background: #f7f8fb;
}
.cv-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.cv-trust svg { width: 13px; height: 13px; color: var(--accent); stroke: var(--accent); }

/* ── Live stats banner ─────────────────────────────────────────────── */
.stats-banner {
  margin: 40px 0;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.stats-banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.stats-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.stats-banner-text {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.stats-banner-text strong { color: var(--accent); }

/* ── Homepage featured tools grid ─────────────────────────────────── */
.hp-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.hp-tool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hp-tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hp-tool-fmts {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.hp-tool-fmt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.hp-tool-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 4px 0;
}
.hp-tool-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hp-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .hp-tools-grid { grid-template-columns: 1fr; }
}

/* ── Homepage FAQ / guides grid ────────────────────────────────────── */
.hp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.hp-faq-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hp-faq-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hp-faq-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
  margin: 0 0 6px 0;
}
.hp-faq-card:hover .hp-faq-title { text-decoration: underline; }
.hp-faq-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-faq-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .hp-faq-grid { grid-template-columns: 1fr; }
}

/* ── Spin animation for convert button ────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cv-hero { flex-direction: column; gap: 20px; }
  .cv-fmt-pill { min-width: auto; width: 100%; }
  .cv-file-row { flex-wrap: wrap; min-height: auto; }
  .cv-file-actions { width: 100%; justify-content: flex-end; }
  .cv-row-status { width: 100%; }
  .cv-download-row { gap: 10px; }
  .cv-action-bar { flex-direction: column; align-items: flex-start; }
  .cv-action-btns { width: 100%; justify-content: flex-end; }
  .cv-quota-bar { width: 60px; }
  #cv-quota-text { font-size: 10px; }
  .cv-quality-slider { width: 120px; }
  .cv-options-row { padding: 8px 14px 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   API ACCESS DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.api-key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 680px;
  margin-bottom: 36px;
}
.api-key-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.api-key-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.api-key-card-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.api-key-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.api-key-badge--active { background: rgba(34,197,94,0.12); color: #22c55e; }
.api-key-badge--none   { background: var(--bg-elevated); color: var(--text-muted); }

.api-key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 12px;
  margin-bottom: 16px;
}
.api-key-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.5px;
  min-width: 0;
}
.api-key-toggle,
.api-key-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.api-key-toggle:hover,
.api-key-copy:hover { background: var(--bg-card); color: var(--text); }
.api-key-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.api-key-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.api-key-revoke-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.api-key-revoke-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ── Docs section ── */
.api-docs { max-width: 680px; }
.api-docs-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}
.api-docs-sub {
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
.api-endpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.api-endpoint-row:first-of-type { border-top: 1px solid var(--border); }
.api-method {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: monospace;
  flex-shrink: 0;
}
.api-method--get { background: #22c55e; }
.api-path {
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.api-endpoint-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.api-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.api-table th, .api-table td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.api-table th { background: var(--bg-elevated); font-weight: 600; color: var(--text); }
.api-table td code { background: var(--bg-elevated); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

/* ── Code tabs ── */
.api-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.api-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.api-tab.active { background: var(--bg-card); color: var(--text); border-bottom: 1px solid var(--bg-card); }

.api-code-block { display: none; }
.api-code-block.active { display: block; }
.api-code-block pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 6px 6px 6px;
  padding: 20px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.api-code-block code { font-family: monospace; color: var(--text); }
.api-code-block .c { color: var(--text-muted); }

/* ── Slug grid ── */
.api-slug-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.api-slug-grid code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FORMAT SELECTOR HERO  (CloudConvert-style)
   ═══════════════════════════════════════════════════════════════════ */

.fmx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0 32px;
  flex-wrap: wrap;
}

.fmx-hero-text {
  flex: 1;
  min-width: 260px;
}
.fmx-hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.15;
}
.fmx-hero-text .lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
}
.fmx-experimental {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.fmx-experimental svg { color: #f59e0b; flex-shrink: 0; }
.fmx-sibling-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.fmx-sibling-link svg { color: var(--text-dim); flex-shrink: 0; }
.fmx-sibling-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.fmx-sibling-link a:hover { text-decoration: underline; }

/* ── Selector wrapper ─────────────────────────────────────────────── */
.fmx-selector-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  position: relative;
}

/* ── Format box ───────────────────────────────────────────────────── */
.fmx-box {
  position: relative;
  width: 148px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: default;
  transition: border-color 0.2s;
  z-index: 10;
}
.fmx-box:hover { border-color: rgba(255,255,255,0.18); }
.fmx-box.fmx-box--open { border-color: rgba(255,255,255,0.3); z-index: 100; }

.fmx-box--to {
  border-color: rgba(229,57,53,0.35);
  background: #1e1514;
}
.fmx-box--to:hover { border-color: rgba(229,57,53,0.55); }
.fmx-box--to.fmx-box--open { border-color: rgba(229,57,53,0.75); }

.fmx-box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 14px;
  gap: 12px;
  flex: 1;
}
.fmx-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmx-box-fmt-icon {
  width: 52px;
  height: 60px;
  object-fit: contain;
  display: block;
}
.fmx-box-label {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fmx-box-label--to { color: #e57373; }

/* Chevron button */
.fmx-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0 10px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-radius: 0 0 13px 13px;
}
.fmx-chevron:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
.fmx-box--to .fmx-chevron { border-top-color: rgba(229,57,53,0.15); color: rgba(229,57,53,0.45); }
.fmx-box--to .fmx-chevron:hover { color: rgba(229,57,53,0.85); background: rgba(229,57,53,0.06); }
.fmx-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.fmx-chevron svg { transition: transform 0.2s; }

/* ── Connector ────────────────────────────────────────────────────── */
.fmx-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  padding-bottom: 38px; /* align with box body, not chevron */
}
.fmx-connector-line {
  width: 1px;
  flex: 1;
  max-height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(229,57,53,0.4), transparent);
}
.fmx-connector-icon {
  width: 38px;
  height: 38px;
  background: #1c1514;
  border: 1px solid rgba(229,57,53,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(229,57,53,0.8);
  flex-shrink: 0;
}
.fmx-connector-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Dropdown panel ───────────────────────────────────────────────── */
.fmx-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  background: #18181a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.fmx-dropdown.open { display: flex; }
.fmx-dropdown--right { left: auto; right: 0; }

/* Search */
.fmx-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.3);
}
.fmx-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.fmx-search::placeholder { color: rgba(255,255,255,0.25); }

/* Category tabs */
.fmx-dropdown-cats {
  display: flex;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.fmx-dropdown-cats::-webkit-scrollbar { display: none; }
.fmx-cat {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: inherit;
  flex: 0 0 auto;
  line-height: 1.4;
  box-sizing: border-box;
}
.fmx-cat:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.05); }
.fmx-cat.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
}

/* Format grid */
.fmx-grid-wrap {
  position: relative;
}
.fmx-grid-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  /* Stronger fade-to-white so users clearly see "there is more below". */
  background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, var(--bg-card, #ffffff) 100%);
  pointer-events: none;
  border-radius: 0 0 11px 11px;
  opacity: 1;
  transition: opacity 0.2s;
}
.fmx-grid-wrap.fmx-grid-wrap--at-bottom::after { opacity: 0; }
.fmx-grid-wrap.fmx-grid-wrap--no-scroll::after { opacity: 0; }
.fmx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  /* Cap at exactly 4 rows of format icons. Each cell ~78px tall + 4px gap
     × 3 + 20px padding = 332px. Anything beyond row 4 is scrollable, with
     a clear fade at the bottom signalling there's more content. */
  max-height: 332px;
  overflow-y: scroll;            /* always-on so users always see the bar */
  scrollbar-gutter: stable;       /* reserve space; no layout shift on hover */
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.35) rgba(15, 23, 42, 0.08);
}
.fmx-grid::-webkit-scrollbar { width: 8px; }
.fmx-grid::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.05); border-radius: 99px; }
.fmx-grid::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.32); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.fmx-grid::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.55); background-clip: padding-box; }

.fmx-fmt-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 600;
  padding: 7px 4px 5px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fmx-fmt-btn img { width: 22px; height: 25px; object-fit: contain; flex-shrink: 0; display: block; }
.fmx-fmt-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.fmx-fmt-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fmx-fmt-btn--active:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.fmx-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  padding: 20px 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .fmx-hero { flex-direction: column; align-items: flex-start; }
  .fmx-selector-wrap { align-self: center; }
}
@media (max-width: 640px) {
  /* Tighten hero vertical space */
  .fmx-hero { padding: 14px 0 10px; gap: 10px; }
  .fmx-hero-text h1 { font-size: 1.35rem; margin-bottom: 4px; }
  .fmx-hero-text .lead { font-size: 13px; line-height: 1.5; }

  /* Half-size cards */
  .fmx-box { width: 80px; border-radius: 10px; }
  .fmx-box-inner { padding: 8px 8px 6px; gap: 4px; }
  .fmx-box-fmt-icon { width: 22px; height: 26px; }
  .fmx-box-label { font-size: 11px; letter-spacing: 0.03em; }
  .fmx-chevron { padding: 4px 0 5px; }
  .fmx-chevron svg { width: 11px; height: 11px; }

  /* Horizontal connector */
  .fmx-connector {
    flex-direction: row;
    align-items: center;
    padding-bottom: 18px;
    gap: 0;
  }
  .fmx-connector-line {
    width: 12px;
    max-height: none;
    height: 1px;
    flex: none;
    background: linear-gradient(to right, transparent, rgba(229,57,53,0.45), transparent);
  }
  .fmx-connector-icon { width: 26px; height: 26px; }
  .fmx-connector-icon svg { width: 12px; height: 12px; }
  .fmx-connector-label { display: none; }

  .fmx-dropdown, .fmx-dropdown--right { width: calc(100vw - 32px); left: 0; right: auto; }
}

/* ── Guide & Tips sections ──────────────────────────────────────────────── */
.guide-body {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}
.guide-body p { margin-bottom: 14px; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body strong { color: var(--text); }

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}
.tips-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.tips-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}

/* ── Formats Involved cards (CloudConvert-style) ────────────────────────── */
.fi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .fi-grid { grid-template-columns: 1fr; } }

.fi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.fi-card:hover { border-color: var(--border-subtle); }

.fi-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fi-icon--from {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.fi-icon--to {
  background: var(--accent-dim);
  color: var(--accent);
}

.fi-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.fi-fullname {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.fi-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.fi-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}
.fi-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════════
   LIGHT-THEME OVERRIDES
   All component-specific dark hardcodes overridden here for light mode.
   ════════════════════════════════════════════════════════════════════════════ */

/* body & page */
body { background: var(--bg); color: var(--text); }

/* drawer */
.drawer { background: var(--bg-elevated); border-right-color: var(--border); }
.drawer-nav a { color: var(--text-muted); }
.drawer-nav a:hover { color: var(--text); }

/* sections */
.section-label { color: var(--text-dim); }
.section-label svg { stroke: var(--text-dim); }
.step-card { background: var(--bg-card); border-color: var(--border); }
.step-num { background: var(--accent); color: #fff; }
.faq-item { border-color: var(--border); }
.faq-question { color: var(--text); }
.faq-answer { color: var(--text-muted); }
.chip { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }
.chip:hover { background: var(--bg-card-hover); color: var(--text); border-color: #ccc; }
.tool-card { background: var(--bg-card); border-color: var(--border); }
.tool-card:hover { border-color: var(--accent); }
.tool-fmt { color: var(--text-dim); }
.tool-name { color: var(--text-muted); }
.format-reference { background: var(--bg-card); border-color: var(--border); }
.format-ref-content p { color: var(--text-muted); }

/* converter workspace */
.cv-workspace { background: var(--bg-card); border-color: var(--border); box-shadow: var(--shadow); }
.cv-dropzone { border-color: var(--border); background: #f7f8fb; }
.cv-dropzone:hover, .cv-dropzone.drag-over { border-color: var(--accent); background: rgba(229,57,53,0.03); }
.cv-drop-title { color: var(--text); }
.cv-drop-sub { color: var(--text-muted); }
.cv-file-row { border-color: var(--border); background: var(--bg); }
.cv-file-meta .cv-file-name { color: var(--text); }
.cv-file-meta .cv-file-info { color: var(--text-muted); }
.cv-file-fmt { color: var(--text-muted); }
.cv-fmt-from-badge, .cv-fmt-to-badge { background: var(--bg-card-hover); color: var(--text); border-color: var(--border); }
.cv-row-remove { color: var(--text-dim); }
.cv-row-remove:hover { color: var(--text); background: var(--bg-card-hover); }
.cv-row-progress { background: var(--border); }
.cv-options-row { background: var(--bg); border-top-color: var(--border); }
.cv-opt-label { color: var(--text-muted); }
.cv-select { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.cv-select:focus { border-color: var(--accent); }
.cv-input-num { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.cv-download-row { background: var(--bg); border-top-color: var(--border); }
.cv-dl-name { color: var(--text); }
.cv-dl-size { color: var(--text-muted); }
.cv-action-bar { background: var(--bg-card); border-top-color: var(--border); box-shadow: 0 -2px 12px rgba(0,0,0,0.15); }
.cv-action-info { color: var(--text-muted); }
.cv-quota-bar { background: var(--border); }
#cv-quota-text { color: var(--text-dim); }
.cv-trust { color: var(--accent); }
.cv-trust svg { stroke: var(--accent); }

/* fmx hero - format selector boxes */
.fmx-hero-text h1 { color: var(--text); }
.fmx-hero-text .lead { color: var(--text-muted); }

.fmx-box {
  background: var(--bg-card);
  border-color: var(--border);
}
.fmx-box:hover { border-color: #bbb; }
.fmx-box.fmx-box--open { border-color: #999; }

.fmx-box--to {
  background: rgba(229,57,53,0.04);
  border-color: rgba(229,57,53,0.3);
}
.fmx-box--to:hover { border-color: rgba(229,57,53,0.5); }
.fmx-box--to.fmx-box--open { border-color: rgba(229,57,53,0.7); }

.fmx-box-label { color: var(--text); }
.fmx-box-label--to { color: var(--accent); }

.fmx-chevron {
  border-top-color: var(--border);
  color: var(--text-dim);
}
.fmx-chevron:hover { color: var(--text); background: var(--bg-card-hover); }
.fmx-box--to .fmx-chevron { border-top-color: rgba(229,57,53,0.12); color: rgba(229,57,53,0.5); }
.fmx-box--to .fmx-chevron:hover { color: var(--accent); background: rgba(229,57,53,0.06); }

.fmx-connector-line { background: linear-gradient(to bottom, transparent, rgba(229,57,53,0.3), transparent); }
.fmx-connector-icon {
  background: rgba(229,57,53,0.06);
  border-color: rgba(229,57,53,0.3);
  color: var(--accent);
}
.fmx-connector-label { color: var(--text-dim); }

/* fmx dropdown panel */
.fmx-dropdown {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.fmx-search-wrap {
  border-bottom-color: var(--border);
  color: var(--text-dim);
}
.fmx-search { background: transparent; color: var(--text); }
.fmx-search::placeholder { color: var(--text-dim); }
.fmx-search:focus { outline: none; }
.fmx-dropdown-cats { border-bottom-color: var(--border); }
.fmx-cat { color: var(--text-muted); border-color: transparent; background: transparent; }
.fmx-cat:hover { color: var(--text); background: var(--bg-card-hover); }
.fmx-cat.active { color: var(--text); border-color: var(--border); background: var(--bg-card-hover); }
.fmx-grid-wrap::after { background: linear-gradient(transparent, var(--bg-elevated)); }
.fmx-grid { scrollbar-color: #c0c0cc rgba(0,0,0,0.04); }
.fmx-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
.fmx-grid::-webkit-scrollbar-thumb { background: #c0c0cc; }
.fmx-no-results { color: var(--text-dim); }
.fmx-fmt-btn {
  background: var(--bg-card-hover);
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 10px;
}
.fmx-fmt-btn:hover { background: var(--bg-card); color: var(--text); border-color: #bbb; }
.fmx-fmt-btn--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fmx-fmt-btn--active:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* fmx breadcrumb */
.breadcrumb a, .breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text-muted); }

/* fi-cards (Formats Involved) */
.fi-card { background: var(--bg-card); border-color: var(--border); }
.fi-icon--from { background: rgba(0,0,0,0.05); color: var(--text-muted); }
.fi-icon--to { background: var(--accent-dim); color: var(--accent); }
.fi-name { color: var(--text); }
.fi-fullname { color: var(--text-dim); }
.fi-desc { color: var(--text-muted); }

/* guide & tips */
.guide-body { color: var(--text-muted); }
.guide-body p { color: var(--text-muted); }

/* footer */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.site-footer h3 { color: var(--text); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom p { color: var(--text-dim); }

/* flash */
.flash-success { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.flash-danger  { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.flash-info    { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

/* ── Blog post layout ─────────────────────────────────────────────────────── */
.bp-outer { max-width: 1200px; }   /* match .main-content default */

.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;  /* let article grow into available space */
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

/* Constrain the prose itself for readability while the column may be wider */
.bp-article .bp-body {
  max-width: 760px;
}

/* Featured image generated by gen_blog_image.py — sits above the body
   prose so it reads as a hero (same URL is also the og:image) */
.bp-featured {
  margin: 24px 0 28px;
  max-width: 760px;
}
.bp-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ── Mobile-only featured-image polish ───────────────────────────────────
   On phones the 1200×630 hero looked oversized + cropped. Switch to a
   smaller inline image, rounded only on the right + bottom-right, with a
   light fade on the LEFT edge so it bleeds into the page background. */
@media (max-width: 640px) {
  .bp-featured {
    margin: 18px 0 22px;
    max-width: 100%;
    /* Pull the figure right to the edge so the rounded-right looks intentional */
    margin-right: 0;
  }
  .bp-featured img {
    /* Show the image at its natural aspect ratio — no forced crop. */
    height: auto;
    object-fit: contain;
    /* Rounded ONLY on the right side, square on the left */
    border-radius: 0 14px 14px 0;
    /* Remove the all-around border that was clipping the rounded look */
    border: none;
    /* Light fade on the LEFT edge — image fades to transparent over ~28px */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,1) 28px);
            mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, rgba(0,0,0,1) 28px);
  }
}

@media (max-width: 960px) {
  .bp-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Article column */
.bp-article { min-width: 0; }

.bp-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.bp-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.bp-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.bp-back a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.bp-back a:hover { color: var(--accent); }

/* Article body typography */
.bp-body { line-height: 1.8; }

.bp-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bp-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.bp-body h4 {
  font-size: .95rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.bp-body p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.bp-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bp-body a:hover { opacity: .8; }

.bp-body ul,
.bp-body ol {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 22px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.bp-body li { margin-bottom: 6px; }

.bp-body strong { color: var(--text); font-weight: 600; }

.bp-body em { font-style: italic; color: var(--text-muted); }

.bp-body hr { display: none; }

/* Tables */
.bp-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.bp-body th {
  background: var(--bg-inset);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bp-body td {
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle, var(--border));
  vertical-align: top;
}

.bp-body tr:last-child td { border-bottom: none; }
.bp-body tr:nth-child(even) td { background: var(--bg-inset); }

/* Code */
.bp-body code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  background: var(--bg-inset);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.bp-body pre {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.bp-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

/* Blockquote / key point */
.bp-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim, rgba(59,130,246,.06));
  margin: 24px 0;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-muted);
}

.bp-body blockquote p { margin-bottom: 0; }

/* Sidebar */
.bp-sidebar { position: sticky; top: 88px; }

.bp-sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.bp-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.bp-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-sidebar-links li { margin-bottom: 2px; }

.bp-sidebar-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s;
}

.bp-sidebar-links a:hover { color: var(--accent); }

.bp-sidebar-all-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.bp-sidebar-all-link:hover { opacity: .8; }

.bp-sidebar-cta {
  background: var(--accent-dim, rgba(59,130,246,.08));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .bp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bp-sidebar-cta { grid-column: 1 / -1; }
  .bp-title { font-size: 1.5rem; }
}

@media (max-width: 500px) {
  .bp-sidebar { grid-template-columns: 1fr; }
}

/* blog/pages */
.prose { color: var(--text); }
.prose h2, .prose h3 { color: var(--text); }
.prose p, .prose li { color: var(--text-muted); }
.prose code { background: var(--bg-card-hover); color: var(--text); }
.prose blockquote { border-left-color: var(--border); color: var(--text-muted); }

/* ── Fix guide/tips full width ── */
.guide-body { max-width: 100%; }
.tips-list   { max-width: 100%; }

/* ── Nav tools dropdown ── */
.nav-tools-wrap { position: relative; }

/* Legacy single-button (still used for any nav item that hasn't been
   converted to the split-button pattern) */
.nav-tools-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}
.nav-tools-btn:hover,
.nav-tools-btn.open { color: #ffffff; background: rgba(255,255,255,0.09); }
.nav-tools-btn svg { transition: transform 0.18s; }
.nav-tools-btn.open svg { transform: rotate(180deg); }

/* ── NEW: split-button pattern ──
   Clicking the text goes to the destination page.
   Clicking the chevron toggles the dropdown.
   Visually still one pill, with a 1px divider between the two halves. */
.nav-tools-wrap--split {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-tools-wrap--split:hover,
/* Highlight the WHOLE pill (link + chevron) when either the page is active
   or the dropdown is open. Previously the active-page bg only applied to the
   <a> half, leaving the chevron unstyled — looked like a broken half-pill. */
.nav-tools-wrap--split:has(.open),
.nav-tools-wrap--split:has(.nav-tools-link.active),
.nav-tools-wrap--split:has(.nav-tools-chevron.active) {
  background: rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
}
.nav-tools-wrap--split:has(.nav-tools-link.active) .nav-tools-link,
.nav-tools-wrap--split:has(.open) .nav-tools-link {
  background: transparent !important;
}
.nav-tools-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px 6px 12px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-tools-link:hover,
.nav-tools-link.active { color: #ffffff; }
.nav-tools-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  padding: 6px 4px 6px 4px;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-tools-chevron:hover,
.nav-tools-chevron.open,
.nav-tools-chevron.active { color: #ffffff; }
.nav-tools-chevron svg { transition: transform 0.18s; }
.nav-tools-chevron.open svg { transform: rotate(180deg); }

/* Links inside the dropdown sit on white, so override the nav's white-text rule */
.nav-desktop .nav-tools-dropdown a { color: var(--text-muted); padding: 0; background: none; }
.nav-desktop .nav-tools-dropdown a:hover { color: var(--text); background: none; }
.nav-desktop .ntd-all { color: var(--accent); }
.nav-desktop .ntd-all:hover { color: var(--accent-hover); }

.nav-tools-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  /* Anchor right-side so the wide dropdown doesn't overflow viewport. */
  right: 0;
  left: auto;
  width: 880px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 500;
  padding: 14px 16px;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  max-height: 480px;
  overflow: hidden;
}
.nav-tools-dropdown.open { display: grid; }
.ntd-col {
  display: block;        /* allow CSS columns to split the link list */
  column-count: 2;
  column-gap: 14px;
  max-height: 420px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ntd-col .ntd-heading { column-span: all; }
.ntd-col .ntd-link    { break-inside: avoid; }
.ntd-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.ntd-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.ntd-link:hover { background: var(--bg-card-hover); color: var(--text); }
.ntd-icon {
  width: 22px;
  height: 25px;
  flex-shrink: 0;
  object-fit: contain;
}
.ntd-link-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
}
.ntd-fmt-from {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.ntd-arrow {
  color: var(--text-dim);
  font-size: 11px;
}
.ntd-fmt-to {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.ntd-link:hover .ntd-fmt-from { color: var(--text); }
.ntd-link:hover .ntd-arrow { color: var(--text-muted); }
.ntd-all {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.ntd-all:hover { text-decoration: underline; }
.ntd-pillar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  grid-column: 1 / -1;
}
.ntd-pillar-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  white-space: nowrap;
}
.ntd-pillar-link:hover { background: var(--accent); color: #fff; }

/* ── Related Tools section ── */
.related-tools-section {
  margin-top: 56px;
  padding-top: 0;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.related-tool-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.14s, background 0.14s, transform 0.12s;
}
.related-tool-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.related-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.related-tool-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.related-tool-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.related-tool-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ── AI Tools nav dropdown ── */
.ai-tools-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 600;
  padding: 12px;
}
.ai-tools-dropdown.open { display: block; }
.ai-tools-heading {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ai-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-desktop .ai-tools-dropdown a { padding: 0; background: none; color: inherit; }
.nav-desktop .ai-tools-dropdown a:hover { background: none; }
.ai-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
  cursor: pointer;
  width: 100%;
}
.ai-tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}
.ai-tool-card.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
}
.ai-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-tool-icon--creator { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); color: #fff; }
.ai-tool-icon--ocr     { background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%); color: #fff; }
.ai-tool-icon--editor  { background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); color: #fff; }
.ai-tool-icon--bg      { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: #fff; }
.ai-tool-icon--upscale { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); color: #fff; }
.ai-tools-see-all {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-align: right;
}
.ai-tools-see-all:hover { text-decoration: underline; }
.ai-tool-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ai-tool-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ai-tool-desc {
  font-size: 10.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Compress Image nav dropdown ─────────────────────────────────────── */
.nav-compress-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 500;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}
.nav-compress-dropdown.open { display: flex; }
.ncd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.ncd-item:hover { background: var(--bg-card-hover); color: var(--text); }
.ncd-item.active { color: var(--accent); font-weight: 600; }
.ncd-icon { flex-shrink: 0; display: flex; align-items: center; }

/* ── Converters nav dropdown ─────────────────────────────────────────── */
.nav-converters-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 268px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 600;
  padding: 12px;
}
.nav-converters-dropdown.open { display: block; }
.nav-desktop .nav-converters-dropdown a { padding: 0; background: none; color: inherit; }
.nav-desktop .nav-converters-dropdown a:hover { background: none; }
.nav-desktop .nav-converters-dropdown .ai-tool-card:hover { background: var(--bg-card-hover); }
.nav-desktop .nav-converters-dropdown .ai-tools-see-all { display: block; color: var(--accent); }
.conv-icon--convert { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); color: #fff; }
.conv-icon--hub     { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: #fff; }
.conv-icon--from    { background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%); color: #fff; }
.conv-icon--to      { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.conv-icon--raw     { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); color: #fff; }
.conv-icon--list    { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: #fff; }

/* ── Free Tools nav dropdown ─────────────────────────────────────────── */
.nav-free-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 600;
  padding: 12px;
}
.nav-free-dropdown.open { display: block; }
.nav-desktop .nav-free-dropdown a { padding: 0; background: none; color: inherit; }
.nav-desktop .nav-free-dropdown a:hover { background: none; }
.nav-desktop .nav-free-dropdown .ai-tool-card:hover { background: var(--bg-card-hover); }
.nav-desktop .nav-free-dropdown .ai-tools-see-all { display: block; color: var(--accent); }
.nft-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.nft-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-desktop .nft-item:hover { background: var(--bg-card-hover) !important; color: var(--text) !important; }
.nft-item.active { color: var(--accent); font-weight: 600; }
.nft-icon { display: flex; align-items: center; color: var(--text-dim); flex-shrink: 0; }
.ncd-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ncd-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ncd-item:hover .ncd-name { color: var(--text); }
.ncd-item.active .ncd-name { color: var(--accent); }
.ncd-desc { font-size: 11px; color: var(--text-dim); }

/* ── OCR / IMAGE TO TEXT PAGE ── */
.ocr-tool { max-width: 820px; margin: 0 auto 48px; }

.ocr-upload {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.ocr-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg-card);
}
.ocr-dropzone:hover, .ocr-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.ocr-drop-icon { margin-bottom: 14px; }
.ocr-drop-title { font-size: 14px; color: var(--text); margin: 0; }
.ocr-drop-sub { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }

.ocr-options-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ocr-option-group { display: flex; flex-direction: column; gap: 5px; }
.ocr-option-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; }
.ocr-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  min-width: 180px;
}
.ocr-select:focus { border-color: var(--accent); }

.ocr-processing {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ocr-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.ocr-spinner-wrap svg { animation: spin 1s linear infinite; }

.ocr-result { display: flex; flex-direction: column; gap: 14px; }

.ocr-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ocr-stat-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.ocr-stat-chip svg { color: var(--text-dim); }

.ocr-ai-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 13px;
  color: #78350f;
  flex-wrap: wrap;
}
.ocr-ai-banner svg { flex-shrink: 0; color: #d97706; }
.ocr-ai-banner span { flex: 1; min-width: 200px; }
.ocr-ai-quota-hint { font-size: 11px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.ocr-free-quota-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; }
.ocr-free-quota-hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.ocr-free-quota-hint--empty { color: #d97706; font-weight: 600; }
.ocr-quota-upgrade-btn { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--bg-elevated); border: 1px solid var(--accent); border-radius: 4px; padding: 3px 10px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.ocr-quota-upgrade-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ocr-ai-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ocr-ai-btn:hover { background: #b45309; }

.ocr-text-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ocr-text-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.ocr-text-label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.ocr-text-actions { display: flex; gap: 6px; }
.ocr-icon-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.ocr-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.ocr-textarea {
  width: 100%;
  min-height: 320px;
  padding: 16px;
  background: var(--bg-elevated);
  color: var(--text);
  border: none;
  font-family: ui-monospace, "Cascadia Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.ocr-textarea:focus { background: var(--bg-card); }

.ocr-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ocr-new-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ocr-new-btn:hover { border-color: var(--accent); color: var(--accent); }
.ocr-ai-upgrade-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: #d97706;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ocr-ai-upgrade-btn:hover { background: #b45309; }

.ocr-premium-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.25);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,.35);
}

/* OCR upsell modal */
/* ── OCR upsell drawer (slides in from right) ── */
.ocr-upsell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.ocr-upsell-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ocr-upsell-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 48px rgba(0,0,0,.25);
  padding: 32px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 9001;
}
.ocr-upsell-overlay.is-open .ocr-upsell-modal {
  transform: translateX(0);
}
.ocr-upsell-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}
.ocr-upsell-close:hover { color: var(--text); background: var(--bg-card); }
.ocr-upsell-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ocr-upsell-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}
.ocr-upsell-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.ocr-upsell-compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.ocr-upsell-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.ocr-upsell-col-premium {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.ocr-upsell-plan-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ocr-upsell-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.ocr-upsell-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ocr-upsell-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.ocr-upsell-list li svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.ocr-upsell-list li.ocr-upsell-no { color: var(--text-dim); }
.ocr-upsell-list li.ocr-upsell-no svg { color: var(--text-dim); }
.ocr-upsell-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.ocr-upsell-cta:hover { opacity: .9; }
.ocr-upsell-cta--plus { background: #7c3aed; }

/* billing toggle */
.ocr-billing-toggle { display: flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 3px; margin-bottom: 18px; }
.ocr-billing-btn { flex: 1; border: none; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.ocr-billing-btn.active { background: var(--bg-elevated); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ocr-save-badge { font-size: 10px; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 4px; padding: 1px 5px; }

/* plan cards */
.ocr-upsell-plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ocr-plan-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; position: relative; }
.ocr-plan-card--plus { border-color: #7c3aed; background: color-mix(in srgb, #7c3aed 6%, transparent); }
.ocr-plan-badge { position: absolute; top: -10px; right: 14px; font-size: 10px; font-weight: 700; color: #fff; background: #7c3aed; border-radius: 4px; padding: 2px 8px; }
.ocr-plan-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ocr-plan-name { font-size: 13px; font-weight: 700; }
.ocr-plan-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.ocr-plan-price span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.ocr-plan-card--plus .ocr-plan-price { color: #7c3aed; }
.ocr-upsell-legal { font-size: 11px; color: var(--text-dim); text-align: center; margin: 0; }
.ocr-upsell-error { font-size: 12px; color: #dc2626; text-align: center; margin-top: 8px; }

@media (max-width: 480px) {
  .ocr-upsell-modal { width: 100vw; padding: 24px 20px; }
}

/* ── BACKGROUND REMOVER PAGE ── */
.rmbg-tool {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}
.rmbg-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  background: var(--bg);
}
.rmbg-dropzone:hover,
.rmbg-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.rmbg-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rmbg-upload-icon { width: 56px; height: 56px; }
.rmbg-drop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.rmbg-browse-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.rmbg-drop-sub { font-size: 13px; color: var(--text-dim); }

.rmbg-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rmbg-preview-box {}
.rmbg-preview-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.rmbg-preview-img-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rmbg-checkerboard {
  background-image:
    linear-gradient(45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8e8 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #f8f8f8;
}
.rmbg-preview-img-wrap img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.rmbg-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}
.rmbg-spin-svg {
  width: 40px;
  height: 40px;
  animation: rmbg-spin 1s linear infinite;
}
@keyframes rmbg-spin { to { transform: rotate(360deg); } }

.rmbg-stop-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.rmbg-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  background: none;
  border: 1.5px solid #d0d0d8;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rmbg-stop-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}
.rmbg-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.rmbg-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
}
.rmbg-new-btn {
  padding: 10px 20px;
  font-size: 14px;
}
.rmbg-refine-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.rmbg-refine-btn:hover {
  background: var(--bg-card);
  border-color: var(--text-dim);
}
.rmbg-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  color: #c0392b;
  font-size: 13px;
  text-align: center;
}
.rmbg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.rmbg-step {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.rmbg-step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.rmbg-step h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rmbg-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.rmbg-related-list { padding-left: 20px; margin: 12px 0; }
.rmbg-related-list li { margin-bottom: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.rmbg-related-list a { color: var(--accent); font-weight: 600; }
.rmbg-related-list a:hover { text-decoration: underline; }
.section-title-lg { font-size: 20px; font-weight: 700; color: var(--text); }

@media (max-width: 640px) {
  .rmbg-preview-row { grid-template-columns: 1fr; }
  .rmbg-steps { grid-template-columns: 1fr; }
  .rmbg-tool { padding: 20px 16px; }
}

/* ── Background Remover: Mode Tabs ──────────────────────────────────────── */
.rmbg-mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.rmbg-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rmbg-mode-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.rmbg-mode-tab .rmbg-ai-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.rmbg-mode-tab.active .rmbg-ai-badge {
  background: rgba(255,255,255,0.28);
  color: #fff;
}

/* ── Background Remover: URL input ─────────────────────────────────────── */
.rmbg-or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--text-dim);
  font-size: 12px;
}
.rmbg-or-row::before,
.rmbg-or-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.rmbg-url-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}
.rmbg-url-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.rmbg-url-input:focus { border-color: var(--accent); }
.rmbg-url-input::placeholder { color: var(--text-dim); }
.rmbg-url-fetch-btn {
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.rmbg-url-fetch-btn:hover { opacity: 0.88; }
.rmbg-url-fetch-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Background Remover: Canvas tool ───────────────────────────────────── */
.rmbg-canvas-workspace { margin-top: 16px; }
.rmbg-canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
.rmbg-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rmbg-tool-group + .rmbg-tool-group {
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.rmbg-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rmbg-tool-btn:hover { border-color: var(--text-muted); color: var(--text); }
.rmbg-tool-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.rmbg-tool-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.rmbg-brush-label { font-size: 12px; color: var(--text-muted); }
.rmbg-brush-size-slider { width: 80px; accent-color: var(--accent); }
.rmbg-brush-size-val { font-size: 12px; color: var(--text-muted); min-width: 28px; }
.rmbg-canvas-container {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: #f0f0f0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rmbg-canvas-container canvas {
  display: block;
  max-width: 100%;
  touch-action: none;
}
.rmbg-canvas-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin: 10px 0 14px;
}
.rmbg-manual-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rmbg-canvas-process-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.rmbg-canvas-process-btn:hover { opacity: 0.88; }
.rmbg-canvas-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.rmbg-canvas-reset-btn:hover { border-color: var(--text-muted); color: var(--text); }

@media (max-width: 600px) {
  .rmbg-mode-tabs { width: 100%; }
  .rmbg-mode-tab { flex: 1; justify-content: center; }
  .rmbg-canvas-toolbar { gap: 6px; }
  .rmbg-url-row { flex-direction: column; }
}

/* ── AD SLOTS ──
   Empty placeholders. Each location uses its own partial in templates/partials/
   so site operators can drop different ad code into each slot.
   min-height reserves space to prevent CLS (layout shift) when ads load.       */
.ad-slot { width: 100%; }
.ad-slot:empty { min-height: 90px; }
.ad-slot--home-mid:empty,
.ad-slot--converter-mid:empty { min-height: 250px; }
.ad-slot--faq-article-mid:empty { min-height: 250px; }

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

/* OCR history */
.ocr-history {
  margin-top: 32px;
}
.ocr-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ocr-history-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.ocr-history-ttl {
  font-size: 11px;
  color: var(--text-dim);
}
.ocr-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ocr-history-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
  cursor: default;
}
.ocr-history-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.ocr-history-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.ocr-history-info {
  flex: 1;
  min-width: 0;
}
.ocr-history-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ocr-history-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.ocr-history-dl {
  flex-shrink: 0;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
}
.ocr-history-dl:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Dashboard — plan banner */
.dash-plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 20px;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.dash-plan-banner__left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.dash-plan-banner__left svg { flex-shrink: 0; color: var(--accent); }
.dash-plan-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.dash-plan-upgrade-btn:hover { background: var(--accent-hover); color: #fff; }

/* Dashboard — Photo Editor Projects */
.dash-pe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.dash-pe-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.dash-pe-card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.dash-pe-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dash-pe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-pe-info { padding: 8px 10px; }
.dash-pe-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-pe-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Pricing page — current plan indicator */
.btn-current-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  cursor: default;
  box-sizing: border-box;
}

.pricing-current-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
}


/* ── Image Creator ──────────────────────────────────────────────────────────── */

.ic-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 60px);
  align-items: stretch;
}

/* Left panel */
.ic-panel {
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  box-sizing: border-box;
  min-width: 0;
}
.ic-panel-inner {
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
}

.ic-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ic-field-group {
  display: flex;
  flex-direction: column;
}

/* Prompt */
.ic-prompt-wrap {
  position: relative;
}
.ic-prompt {
  width: 100%;
  min-height: 90px;
  padding: 12px 36px 12px 12px;
  font-size: 14px;
  line-height: 1.55;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color .15s;
  box-sizing: border-box;
  font-family: inherit;
}
.ic-prompt:focus {
  outline: none;
  border-color: var(--accent);
}
.ic-prompt--shake {
  animation: ic-shake .4s ease;
}
@keyframes ic-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
}
.ic-prompt-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s;
}
.ic-prompt-clear:hover { background: var(--accent); color: #fff; }
.ic-char-count {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

/* Model buttons */
.ic-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-width: 0;
}
.ic-model-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  line-height: 1.2;
  text-align: center;
  min-width: 0;
  word-break: break-word;
  box-sizing: border-box;
}
.ic-model-btn:hover { border-color: var(--accent); color: var(--text); }
.ic-model-btn--active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.ic-model-btn--locked { cursor: pointer; }
.ic-lock-icon { margin-bottom: 2px; }
.ic-model-tier {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Preference */
.ic-pref-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ic-pref-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.ic-pref-btn:hover { border-color: var(--accent); color: var(--text); }
.ic-pref-btn--active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* Collapsible header */
.ic-collapsible-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.ic-chevron {
  transition: transform .2s;
  color: var(--text-dim);
}
.ic-chevron--open { transform: rotate(0deg); }
.ic-chevron:not(.ic-chevron--open) { transform: rotate(180deg); }

/* Style grid */
.ic-style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ic-style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s;
}
.ic-style-btn span {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  padding: 0;
}
.ic-style-btn--active { border-color: var(--accent); }
.ic-style-btn--active span { color: var(--accent); }
.ic-style-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color .15s;
  box-sizing: border-box;
  min-width: 0;
}
.ic-style-thumb--none { background: var(--bg-card); }
.ic-style-btn--active .ic-style-thumb { border-color: var(--accent); }

/* Aspect ratio */
.ic-aspect-grid {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ic-aspect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.ic-aspect-btn span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}
.ic-aspect-btn--active span { color: var(--accent); }
.ic-aspect-thumb {
  border-radius: 4px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: border-color .15s;
  min-width: 20px;
  min-height: 20px;
}
.ic-aspect-btn--active .ic-aspect-thumb { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }

/* Quota */
.ic-quota-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ic-quota-row svg { flex-shrink: 0; }
.ic-quota-row span { flex: 1; }
.ic-quota-upgrade {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ic-quota-upgrade:hover { text-decoration: underline; }

/* Generate button */
.ic-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
  letter-spacing: .01em;
}
.ic-generate-btn:hover { background: var(--accent-hover); }
.ic-generate-btn:active { transform: scale(.98); }
.ic-generate-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Right canvas */
.ic-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  padding: 32px;
  min-height: calc(100vh - 60px);
}
.ic-canvas-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 400px;
}

/* Empty state */
.ic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-dim);
}
.ic-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.ic-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.ic-empty-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}

/* Loading */
.ic-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  width: 100%;
  max-width: 400px;
}
@keyframes ic-spin { to { transform: rotate(360deg); } }
.ic-progress-wrap {
  width: 100%;
  height: 7px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.ic-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
}
.ic-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  transition: opacity .3s;
}
.ic-loading-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}
.ic-priority-upsell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  background: color-mix(in srgb, #ca8a04 6%, transparent);
  border: 1px solid color-mix(in srgb, #ca8a04 30%, transparent);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-top: 4px;
  text-align: left;
  flex-wrap: wrap;
}
.ic-priority-upsell strong { color: var(--text); }
.ic-priority-upsell__btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: #ca8a04;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.ic-priority-upsell__btn:hover { background: #a16207; }

/* Result */
.ic-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.ic-result-img {
  max-width: 100%;
  max-height: 580px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: block;
}
.ic-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ic-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.ic-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.ic-action-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ic-action-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* Error */
.ic-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--text-dim);
}
.ic-error p { font-size: 14px; color: var(--text); margin: 0; }

/* Auth / Upgrade overlay */
.ic-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.ic-auth-overlay.is-open { pointer-events: all; }
.ic-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .25s;
}
.ic-auth-overlay.is-open .ic-auth-backdrop { opacity: 1; }
.ic-auth-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 36px 28px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ic-auth-overlay.is-open .ic-auth-drawer { transform: translateX(0); }
.ic-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s;
}
.ic-auth-close:hover { background: var(--border); color: var(--text); }
.ic-auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.ic-auth-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin: 0;
  line-height: 1.35;
}
.ic-auth-sub {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}
.ic-auth-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ic-auth-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.ic-auth-signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background .15s;
  text-align: center;
}
.ic-auth-signup-btn:hover { background: var(--accent-hover); color: #fff; }
.ic-auth-login-btn {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-top: -4px;
}
.ic-auth-login-btn:hover { color: var(--accent); }
.ic-auth-divider {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-dim);
  text-align: center;
  position: relative;
  margin: 4px 0;
}
.ic-auth-divider::before, .ic-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: var(--border);
}
.ic-auth-divider::before { left: 0; }
.ic-auth-divider::after  { right: 0; }
.ic-auth-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ic-auth-plan {
  padding: 16px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.ic-auth-plan--plus {
  border-color: #ca8a04;
  background: color-mix(in srgb, #ca8a04 6%, transparent);
}
.ic-auth-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #ca8a04;
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
}
.ic-auth-plan-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ic-auth-plan-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.ic-auth-plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.ic-auth-plan-feat {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  flex: 1;
}
.ic-auth-plan-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background .15s;
  margin-top: 4px;
}
.ic-auth-plan-btn:hover { background: var(--accent-hover); color: #fff; }
.ic-auth-plan-btn--plus { background: #ca8a04; }
.ic-auth-plan-btn--plus:hover { background: #a16207; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .ic-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .ic-panel {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ic-canvas {
    min-height: 400px;
    padding: 20px 16px;
  }
  .ic-auth-drawer {
    max-width: 100%;
  }
}

/* Image Creator — upsell banner */
.ic-upsell-banner {
  border: 1.5px solid color-mix(in srgb, #ca8a04 35%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #ca8a04 6%, transparent);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ic-upsell-banner__top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ic-upsell-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ic-upsell-banner__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ic-upsell-banner__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
}
.ic-upsell-tier {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 2px;
}
.ic-upsell-tier--plus {
  background: color-mix(in srgb, #ca8a04 15%, transparent);
  color: #ca8a04;
}
.ic-upsell-banner__btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: #ca8a04;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
  border: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ic-upsell-banner__btn:hover { background: #a16207; color: #fff; }

/* Image Creator — next-tool upsell grid */
.ic-next-tools {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ic-next-tools__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}
.ic-next-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ic-next-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.ic-next-tool:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.ic-next-tool:active { transform: translateY(0); }
.ic-next-tool__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic-next-tool span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Image Creator — canvas upgrade button (top-right) */
.ic-canvas {
  position: relative; /* ensure button can be absolutely positioned */
}
.ic-canvas-upgrade-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s;
  z-index: 10;
}
.ic-canvas-upgrade-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.ic-canvas-upgrade-btn:active { transform: translateY(0); }

/* Fix quota upgrade + upsell banner btn — were <a> tags, now <button> elements */
.ic-quota-upgrade,
.ic-upsell-banner__btn {
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}
.ic-quota-upgrade {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Image Creator — generation history */
.ic-history-section {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.ic-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.ic-history-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.ic-history-viewall {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ic-history-viewall:hover { text-decoration: underline; }
.ic-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ic-history-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.ic-history-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ic-history-item:hover .ic-history-img { transform: scale(1.04); }
.ic-history-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity .2s ease;
}
.ic-history-item:hover .ic-history-overlay { opacity: 1; }
.ic-history-prompt {
  font-size: 11px;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ic-history-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ic-history-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(255,255,255,.18);
  color: #fff;
  padding: 2px 6px;
  border-radius: 99px;
}
.ic-history-actions {
  display: flex;
  gap: 6px;
}
.ic-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.ic-history-btn:hover { background: rgba(255,255,255,.32); color: #fff; }
.ic-history-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ic-history-tool-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.ic-history-tool-btn:hover:not(:disabled) { background: rgba(255,255,255,.28); }
.ic-history-tool-btn:disabled { opacity: .5; cursor: default; }
.ic-history-reprompt { background: var(--accent); border-color: var(--accent); }
.ic-history-reprompt:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (max-width: 600px) {
  .ic-history-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* Image Creator — redesigned contained card layout */
.ic-tool-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
  min-height: 500px;
}
.ic-controls {
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.ic-controls-inner {
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
}
.ic-output {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  padding: 28px;
  min-height: 460px;
  position: relative;
  min-width: 0;
}
@media (max-width: 768px) {
  .ic-tool-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .ic-controls {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ic-output {
    min-height: 360px;
    padding: 20px 16px;
  }
}

/* ── Converter Feature Highlights ────────────────────────────────────────── */
.cv-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cv-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cv-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
@media (max-width: 900px) {
  .cv-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cv-features-grid { grid-template-columns: 1fr; }
}

/* ── Converter Tips ───────────────────────────────────────────────────────── */
.cv-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cv-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ── Legal / Cookie Policy page ── */
.legal-page h1 { margin-bottom: 4px; }
.legal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.legal-page h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.15rem; }
.legal-page h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1rem; color: var(--text); }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.cookie-table-wrap { overflow-x: auto; margin: 12px 0 18px; border-radius: 8px; border: 1px solid var(--border); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cookie-table thead th { background: var(--bg-elevated); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.cookie-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; line-height: 1.5; }
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table code { font-family: monospace; font-size: 12px; background: var(--bg-elevated); padding: 1px 5px; border-radius: 3px; color: var(--accent); }
.cookie-optout-box { margin: 14px 0 20px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.legal-browser-list { margin: 10px 0 16px 20px; }
.legal-browser-list li { margin-bottom: 4px; }

/* ──────────────────────────────────────────────────────────────────────────
   2026-05-13 UX overhaul:
     - shadows-off (no surrounding box shadows on cards)
     - trusted-by marquee (replaces fake live counter)
     - cv-trust-row--center (badges centered in middle of converter card)
     - section-label--normal-case (no SHOUTING headings)
     - btn-upgrade (amber yellow CTA for upgrade buttons in nav)
     - full-width nav dropdowns (open below header, contained to 1200px)
   ────────────────────────────────────────────────────────────────────────── */

/* Shadows off — every card-shaped element loses its surrounding glow */
:root { --shadow: none; }
.hp-hub-card,
.ai-featured-card,
.hp-tool-card,
.hp-faq-card,
.step-card,
.cv-workspace,
.cv-action-bar,
.related-tool-card,
.related-guide-card,
.faq-item,
.btn-primary,
.btn-secondary,
.cv-convert-btn,
.cv-select-btn,
.footer-upgrade,
.auth-card,
.modal,
.dropdown-menu,
.card,
.cv-drop-icon,
.cv-file-icon { box-shadow: none !important; }

/* Trusted-by strip (replaces the fake live counter) */
.trusted-by {
  margin: 22px 0 28px;
  padding: 16px 0;
  text-align: center;
}
.trusted-by-label {
  font-family: Georgia, "Times New Roman", "Charter", serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.trusted-by-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.trusted-by-row {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: trusted-marquee 60s linear infinite;
  will-change: transform;
}
.trusted-by-logo {
  height: 26px;
  width: auto;
  max-width: 110px;
  flex-shrink: 0;
  /* Greyscale + dim so all brands read as monochrome */
  filter: grayscale(1) brightness(0.95);
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}
.trusted-by-track:hover .trusted-by-logo { opacity: 0.45; }

/* ── Pending-payment file row + upgrade banner ── */
.cv-upgrade-banner {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 12px 0;
  background: #fef3c7;            /* amber-100 */
  border: 1px solid #fbbf24;       /* amber-400 */
  border-left: 4px solid #f59e0b;  /* amber-500 — same as upgrade button */
  border-radius: var(--radius);
  color: #78350f;                  /* amber-900 */
  font-size: 13.5px;
  line-height: 1.5;
}
.cv-upgrade-banner-icon { font-size: 18px; flex-shrink: 0; }
.cv-upgrade-banner-text { flex: 1; }
.cv-upgrade-banner-text strong { color: #1f2937; font-weight: 700; }
.cv-upgrade-banner-btn {
  flex-shrink: 0;
  background: #1f2937;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.cv-upgrade-banner-btn:hover { background: #111827; color: #fef3c7; }

.cv-file-row--pending-payment {
  background: #fffbeb;             /* amber-50 */
  border-color: #fde68a;            /* amber-200 */
}
.cv-file-row--pending-payment .cv-row-progress-fill {
  background: #f59e0b !important;
}
.cv-pending-cta {
  color: #b45309;                  /* amber-700 */
  font-weight: 700;
  text-decoration: underline;
}
.cv-pending-cta:hover { color: #92400e; }

/* Pre-convert preview: rows that are *going* to be gated (over quota)
   show a subtle amber outline + tag in the info row. */
.cv-file-row--will-gate {
  background: linear-gradient(180deg, #fffdf5 0%, #fffbeb 100%);
  border-color: #fde68a;
}
.cv-row-will-gate-text {
  color: #b45309;
  font-weight: 600;
  white-space: nowrap;
}

/* Disable hover-lift on all card-like elements — user requested no upward motion */
.ai-featured-card:hover,
.related-tool-card:hover,
.related-guide-card:hover,
.ic-next-tool:hover,
.hp-hub-card:hover,
.hp-tool-card:hover,
.hp-faq-card:hover,
.step-card:hover,
.ai-tool-card:hover,
.ntd-link:hover,
.cv-trust:hover {
  transform: none !important;
}
@keyframes trusted-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trusted-by-track:hover .trusted-by-row { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .trusted-by-row { animation: none; }
}

/* ── Inbound articles surfaced on converter pages ────────────────────── */
.cv-inbound-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.cv-inbound-article {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cv-inbound-article:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, .08);
  transform: translateY(-1px);
}
.cv-inbound-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.cv-inbound-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.cv-inbound-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv-inbound-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── New long-form content blocks on converter pages ─────────────────── */

/* Numbered workflow steps — indent so digits sit inside the content column */
.cv-workflow-steps {
  margin: 4px 0 0 0;
  padding-left: 28px;            /* push markers inside the section column */
  list-style-position: outside;
  counter-reset: cv-step;
}
.cv-workflow-steps > li {
  padding: 6px 0 6px 6px;
  line-height: 1.65;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}
.cv-workflow-steps > li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* "Maybe you wanted something else?" decision-tree list */
.cv-alternatives-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-alternatives-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.cv-alt-cond {
  font-size: 14px;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 240px;
}
.cv-alt-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}
.cv-alt-link:hover { text-decoration: underline; }

/* Compatibility-matrix cell icons */
.cv-compat-matrix td.compat-cell {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  width: 80px;
}
.cv-compat-matrix td.compat-yes     { color: #16a34a; }
.cv-compat-matrix td.compat-no      { color: #dc2626; }
.cv-compat-matrix td.compat-partial { color: #d97706; }

/* Compare table + settings table — make first column comfortable */
.cv-compare-table th:first-child,
.cv-compare-table td:first-child,
.cv-settings-table th:first-child,
.cv-settings-table td:first-child {
  min-width: 200px;
}

/* Mobile-only trust badges shown below the upload area. The in-zone trust row
   (.cv-upload-area .cv-trust-row) is hidden on mobile via the media query
   further down. */
.cv-trust-row--mobile-below {
  display: none;            /* hidden on desktop */
  background: transparent;  /* sits on the page bg, not the dropzone card */
  padding: 12px 4px 0;
  justify-content: center;
  gap: 18px;
}
@media (max-width: 640px) {
  /* Hide the trust row inside the upload card on mobile … */
  .cv-upload-area .cv-trust-row { display: none; }
  /* … and show the mobile-only row below the dropzone. */
  .cv-trust-row--mobile-below { display: flex; flex-wrap: wrap; }
}

/* Centered trust-row (middle of converter card) */
.cv-trust-row--center {
  justify-content: center;
  gap: 28px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
}

/* Normal-case section label (overrides the uppercase default) */
.section-label--normal-case {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.section-label--normal-case svg { color: var(--accent) !important; width: 20px !important; height: 20px !important; }

/* Yellow Upgrade button — bright premium CTA with black-bordered crown */
.btn-upgrade {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 6px;
  background: #fbbf24;     /* amber-400 — brighter, more yellow */
  color: #111;             /* near-black text for max contrast */
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid #111; /* 2px black border around whole pill */
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
  box-sizing: border-box;
}
.btn-upgrade:hover {
  background: #fde047;     /* amber-300 — lighter yellow on hover */
  color: #111;
}
.btn-upgrade-crown {
  flex-shrink: 0;
  color: #111;             /* black crown outline to match border */
  stroke: #111 !important;
  fill: none !important;
  margin-right: 1px;
}
.footer-upgrade-crown {
  flex-shrink: 0;
  color: #fef3c7;          /* amber-100 — crown sits on the dark inner pill */
  margin-right: 2px;
}
.footer-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-upgrade:active { transform: translateY(1px); }

/* Full-width nav dropdowns: open below header, content contained to 1200px.
   Override the existing absolute-positioned bubbles on desktop only.        */
@media (min-width: 901px) {
  .site-header { position: relative; }
  .nav-tools-wrap { position: static !important; }

  .nav-tools-dropdown,
  .ai-tools-dropdown,
  .nav-converters-dropdown,
  .nav-compress-dropdown,
  .nav-free-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    z-index: 500 !important;
    /* Pad horizontally so inner content lines up with the 1200px site grid */
    padding-left: max(20px, calc((100vw - 1200px) / 2)) !important;
    padding-right: max(20px, calc((100vw - 1200px) / 2)) !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
  }

  /* Restore display rule per dropdown (some are grid, some block, some flex) */
  .nav-tools-dropdown.open       { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; }
  .ai-tools-dropdown.open        { display: block !important; }
  .nav-converters-dropdown.open  { display: block !important; }
  .nav-compress-dropdown.open    { display: flex !important; gap: 20px !important; }
  .nav-free-dropdown.open        { display: block !important; }

  /* All Tools dropdown — each column free-scrolls; pillar row spans full width */
  .nav-tools-dropdown .ntd-col { max-height: none !important; overflow: visible !important; }
  .nav-tools-dropdown .ntd-pillar-row { grid-column: 1 / -1 !important; }

  /* Card grids inside dropdowns — denser auto-fill so 5–6 columns at 1200px */
  .nav-tools-dropdown .ai-tools-grid,
  .ai-tools-dropdown .ai-tools-grid,
  .nav-converters-dropdown .ai-tools-grid,
  .nav-free-dropdown .ai-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 10px !important;
  }
  /* Tighter padding inside cards in the new dense layout */
  .nav-desktop .ai-tool-card { padding: 10px 12px !important; gap: 8px !important; }
  .nav-desktop .ai-tool-icon { width: 32px !important; height: 32px !important; }
  .nav-desktop .ai-tool-name { font-size: 12.5px !important; }
  .nav-desktop .ai-tool-desc { font-size: 11px !important; }
}

/* ── Unified upload area (trust badges + drop zone as one hover zone) ── */
.cv-upload-area {
  background: #f7f8fb;
  transition: background 0.15s;
  cursor: pointer;
}
.cv-upload-area:hover {
  background: rgba(229,57,53,0.05);
}
.cv-upload-area .cv-trust-row {
  background: transparent;
  margin-bottom: 0;
}
.cv-upload-area .cv-dropzone {
  background: transparent;
  transition: none;
}
.cv-upload-area:hover .cv-dropzone,
.cv-upload-area .cv-dropzone:hover,
.cv-upload-area .cv-dropzone.drag-over {
  background: transparent;
}

/* ── Convert button — always active, never greyed out ── */
.cv-convert-btn:disabled {
  opacity: 1 !important;
  cursor: pointer !important;
}

/* ── Toast notification (full-width banner) ── */
.cv-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-100%);
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  letter-spacing: 0.005em;
}
.cv-toast.cv-toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.cv-toast--error { background: #dc2626; }

/* ── What is jpg.now — two-column layout with hero image ── */
.hp-about-inner {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.hp-about-body {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.hp-about-hero {
  flex-shrink: 0;
  width: 380px;
  align-self: stretch;
  min-height: 480px;
  /* Fade out the LEFT edge so the right side of the image flows into the body text */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  overflow: hidden;
}
.hp-about-hero img {
  /* object-fit:cover + right-anchor crops the square image to show ONLY its right half */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  display: block;
}
@media (max-width: 820px) {
  .hp-about-inner { flex-direction: column; gap: 24px; }
  .hp-about-body { padding-right: 0; }
  .hp-about-hero {
    width: 100%;
    max-width: 480px;
    height: 280px;
    margin: 0 auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hp-about-hero img { width: 100%; object-position: center; }
}

/* ──────────────────────────────────────────────────────────────────────
   2026-05-18: unified dropdown styling — single accent color for ALL
   icon squares across every dropdown (Compress / Converters / AI / Free
   Tools / All Tools). Overrides earlier multi-coloured icon variants.
   ────────────────────────────────────────────────────────────────────── */
.ai-tool-icon,
.ai-tool-icon--bg,
.ai-tool-icon--upscale,
.ai-tool-icon--ocr,
.ai-tool-icon--creator,
.ai-tool-icon--editor,
.conv-icon--convert,
.conv-icon--hub,
.conv-icon--from,
.conv-icon--to,
.conv-icon--raw,
.conv-icon--list {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.ai-tool-icon svg,
.conv-icon--convert svg,
.conv-icon--hub svg,
.conv-icon--from svg,
.conv-icon--to svg,
.conv-icon--raw svg,
.conv-icon--list svg {
  stroke: #fff !important;
}

/* Compress dropdown — let it inherit the same width as Converters/AI/Free dropdowns */
.nav-compress-dropdown {
  min-width: 420px;
}

/* ── Simple chevron connector between FROM and TO format boxes ── */
.fmx-connector--chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 8px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.fmx-connector--chevron .fmx-connector-line,
.fmx-connector--chevron .fmx-connector-icon,
.fmx-connector--chevron .fmx-connector-label {
  display: none !important;
}
.fmx-connector-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Quota counter inside the homepage drop zone ── */
.cv-drop-quota {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cv-drop-quota strong {
  color: var(--text);
  font-weight: 700;
}

/* Hero image — round the OUTER (right) corners only so it sits flush
   against the body text on the left but has soft edges on the right. */
.hp-about-hero {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
@media (max-width: 820px) {
  .hp-about-hero {
    border-radius: 14px;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   2026-05-18: unify converter-page icon styles with the homepage.
   - .cv-feature-icon (Why Use This Converter) → red gradient square like .ai-featured-icon
   - .fi-icon--from / --to (Formats Involved) → red gradient square
   - h3 resets for fi-name / tool-name so they don't inherit browser defaults
   ────────────────────────────────────────────────────────────────────── */

.cv-feature-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.cv-feature-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #fff !important;
  color: #fff !important;
}

/* Formats Involved — keep the actual format SVG (JPG/PNG/etc.) on a soft
   neutral square so its built-in branding (red JPG banner etc.) reads. */
.fi-icon,
.fi-icon--from,
.fi-icon--to {
  width: 56px !important;
  height: 56px !important;
  background: #f7f8fb !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text-muted) !important;
}
.fi-icon img {
  width: 30px;
  height: auto;
  display: block;
  filter: none;
}

/* h3 resets — keep original visual weight, drop default margin/size */
h3.fi-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
h3.tool-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

/* ── H3 resets for FAQ + related guides (markup promoted from span/button) ── */
h3.faq-question-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
h3.faq-question-heading .faq-question {
  width: 100%;
}
h3.related-guide-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────────────
   2026-05-19: dropdown polish
     - light-grey panel background (so dropdown doesn't blend into page)
     - Compress dropdown spacing fix (extra flex/gap caused vertical gap)
     - .ai-tools-heading → proper H3 reset
     - .ai-tools-see-all → proper bottom button (not floating right-aligned text)
   ────────────────────────────────────────────────────────────────────── */

.ai-tools-dropdown,
.nav-compress-dropdown,
.nav-converters-dropdown,
.nav-free-dropdown,
.nav-tools-dropdown {
  background: #f7f8fb !important;
  border: 1px solid #e2e5eb !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* Compress dropdown — flex-column + gap on parent + ai-tools-grid (also flex
   column with gap) was double-spacing. Switch to block layout. */
.nav-compress-dropdown {
  flex-direction: initial !important;
  gap: 0 !important;
  display: none;
}
.nav-compress-dropdown.open {
  display: block !important;
}

/* H3 heading inside dropdown — same small-caps look, no default margins */
h3.ai-tools-heading {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  line-height: 1.2;
}

/* "See all …" link → proper bottom CTA pill, centered, max-width so it's a button (not a strip) */
.ai-tools-see-all {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 4px !important;
  padding: 10px 22px !important;
  border-top: none !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9px;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.15s;
  width: auto !important;
  max-width: 320px;
}
/* Wrap a div around it so it can be centered as a block */
.ai-tools-dropdown,
.nav-converters-dropdown,
.nav-compress-dropdown,
.nav-free-dropdown {
  text-align: center;
}
.ai-tools-dropdown .ai-tools-grid,
.nav-converters-dropdown .ai-tools-grid,
.nav-compress-dropdown .ai-tools-grid,
.nav-free-dropdown .ai-tools-grid {
  text-align: left;
}
.ai-tools-see-all:hover {
  background: #c62828 !important;
  text-decoration: none !important;
}

/* ── FAQ article: related-article cards ── */
.faq-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-related-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
h3.faq-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}
.faq-related-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── All Tools dropdown → same design system as the other dropdowns ── */
@media (min-width: 901px) {
  /* Override the earlier grid:repeat(4) rule and use sections instead */
  .nav-tools-dropdown.open {
    display: block !important;
    grid-template-columns: none !important;
  }
  .nav-tools-section {
    margin-bottom: 18px;
  }
  .nav-tools-section:last-of-type {
    margin-bottom: 8px;
  }
  /* Slightly denser grid inside All Tools (more entries to show) */
  .nav-tools-dropdown .ai-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
  /* Show the format icon inside the red square - white-filtered */
  .nav-tools-dropdown .ai-tool-icon img {
    display: block;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   2026-05-19: FAQ listing — every question is its own article page.
   Grid of link cards (no inline answers); each card opens /faq/<slug>.
   ────────────────────────────────────────────────────────────────────── */
.faq-q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.faq-q-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.faq-q-card:hover {
  border-color: var(--accent);
  background: rgba(229,57,53,0.03);
}
.faq-q-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}
.faq-q-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.faq-q-meta {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h3.faq-q-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* ── All Tools dropdown — 2 outer columns × 4 inner columns ── */
@media (min-width: 901px) {
  /* Outer: from-JPG section on the left, to-JPG section on the right */
  .nav-tools-dropdown.open {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 36px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .nav-tools-section {
    min-width: 0;
    margin-bottom: 0 !important;
  }
  /* Inner: 4 columns of conversion cards (high specificity to win) */
  .nav-tools-dropdown.ai-tools-dropdown .ai-tools-grid,
  .nav-tools-dropdown .nav-tools-section .ai-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  /* Format-SVG icon — JUST the icon, no red square background */
  .nav-tools-dropdown .ai-tool-icon--fmt {
    background: transparent !important;
    border: none !important;
    width: 26px !important;
    height: 30px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
  }
  .nav-tools-dropdown .ai-tool-icon--fmt img {
    width: 22px;
    height: auto;
    display: block;
    filter: none !important;
  }
  .nav-tools-dropdown .ai-tool-card {
    padding: 7px 9px !important;
    gap: 8px !important;
  }
  .nav-tools-dropdown .ai-tool-desc { display: none; }
  .nav-tools-dropdown .ai-tool-name { font-size: 12.5px !important; }
  /* See-all button spans both columns at the bottom */
  .nav-tools-dropdown .ai-tools-see-all {
    grid-column: 1 / -1 !important;
    margin-top: 16px !important;
  }
}

/* ── Dropdown headings: proper column heading sizing, LEFT aligned ── */
h3.ai-tools-heading {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 12px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: left !important;
}
/* Override the parent text-align:center we set earlier so only headings are
   left-aligned and the "See all" CTA button stays centered. */
.nav-tools-dropdown .nav-tools-section,
.nav-converters-dropdown,
.nav-free-dropdown,
.nav-compress-dropdown,
.ai-tools-dropdown {
  text-align: left !important;
}
/* But keep the bottom CTA button visually centred within its row */
.ai-tools-see-all { margin-left: auto !important; margin-right: auto !important; display: block !important; max-width: 280px; }

/* ──────────────────────────────────────────────────────────────────────
   FAQ article page — full width with a 2-column grid (article + sticky
   related rail on the right). Replaces the narrow 860px wrapper.
   ────────────────────────────────────────────────────────────────────── */
.faq-article-page { max-width: 1200px; padding: 20px 20px 60px; }

.faq-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.faq-article-main { min-width: 0; }

.faq-article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.faq-article-h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.faq-article-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.faq-article-section { margin-bottom: 32px; }
.faq-article-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.35;
}
.faq-article-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-article-body p { margin: 0 0 14px; }
.faq-article-body ul, .faq-article-body ol { margin: 0 0 14px; padding-left: 22px; }
.faq-article-body li { margin-bottom: 6px; }
.faq-article-body a { color: var(--accent); }
.faq-article-body a:hover { color: var(--accent-hover); }
.faq-article-body code {
  background: rgba(0,0,0,.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.faq-article-body strong { color: var(--text); }

.faq-article-cta {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 40px;
}
.faq-article-cta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.faq-article-cta-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.faq-article-back {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.faq-article-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.faq-article-back a:hover { color: var(--text); }

/* Right rail */
.faq-article-aside {
  position: sticky;
  top: 84px;
  align-self: start;
}
.faq-aside-list { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 980px) {
  .faq-article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-article-aside { position: static; }
}

/* ──────────────────────────────────────────────────────────────────────
   /tools — unify the riot of coloured icon squares to brand red and hide
   the noisy "Free · N/day" / "Compress" pill labels on each card.
   ────────────────────────────────────────────────────────────────────── */
.tools-page .ai-featured-icon,
.tools-page .tool-card-icon-wrap,
body .ai-featured-icon[style*="linear-gradient"] {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.tools-page .ai-featured-icon svg,
body .ai-featured-icon svg {
  color: #fff !important;
  stroke: #fff !important;
}

/* Hide the small "Free · N/day", "Compress", etc. badge pills */
.tools-page .ai-featured-badge,
.tools-page .tool-card-badge,
.ai-tools-featured-grid .ai-featured-badge {
  display: none !important;
}

/* H2/H3 sizing on /tools (proper hierarchy: H1 hero, H2 section, H3 cards) */
.tools-page .tools-section-title {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.tools-page .tools-section-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────
   /ai-tools — clean up the rainbow icons, hide pricing labels, add the
   missing vertical rhythm between sections.
   ────────────────────────────────────────────────────────────────────── */

/* Hide "Free", "Free + Premium", "Premium" labels on cards */
.ai-hub-badge,
.ai-tools-hub .mss-stat,
.ai-tools-hub .quota-engine {
  display: none !important;
}

/* Unify every gradient icon — Background Remover green, Creator purple,
   Upscaler orange, OCR cyan, etc. — into a single brand-red treatment */
.mss-icon,
.mss-icon--bg, .mss-icon--gen, .mss-icon--up, .mss-icon--ocr,
.uc-icon,
.uc-icon--ecom, .uc-icon--social, .uc-icon--doc, .uc-icon--restore {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}

/* Related-tool icons (bottom of /ai-tools) — kill the inline gradients */
.related-tool-icon[style*="linear-gradient"],
.related-tool-icon {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: #fff !important;
}
.related-tool-icon svg { stroke: #fff !important; color: #fff !important; }

/* Vertical rhythm between sections */
.pillar-section {
  margin: 0 0 56px;
  scroll-margin-top: 80px;
}
.pillar-section:last-of-type { margin-bottom: 32px; }
.pillar-section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* Style preset dots (10 styles section) — drop the rainbow, use accent-dim */
.ai-style-dot { background: var(--accent) !important; }

/* Quota badges — green/blue/gold rainbow → muted accent for visual calm */
.quota-badge {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
}

/* ──────────────────────────────────────────────────────────────────────
   /faq — hero + per-topic card grid (each topic links to /faq/topic/<k>)
   ────────────────────────────────────────────────────────────────────── */
.faq-hero {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.faq-hero-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}
.faq-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}
.faq-count-inline {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.faq-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.faq-topic-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.faq-topic-card:hover {
  border-color: var(--accent);
  background: rgba(229,57,53,0.03);
}
h3.faq-topic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.faq-topic-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── /faq inline contact form ───────────────────────────────────────── */
.faq-contact-section {
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.faq-contact-lede {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 600px;
}
.faq-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.faq-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-contact-row--bottom {
  grid-template-columns: 220px auto;
  align-items: end;
  gap: 16px;
}
.faq-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-contact-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-contact-form input[type="text"],
.faq-contact-form input[type="email"],
.faq-contact-form input[type="number"],
.faq-contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.faq-contact-form input:focus,
.faq-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}
.faq-contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.faq-contact-submit {
  padding: 11px 22px !important;
  height: 41px;
}
@media (max-width: 640px) {
  .faq-contact-row, .faq-contact-row--bottom { grid-template-columns: 1fr; }
}

/* ── Hub-hero on mobile: tighter top padding so the H1 isn't lost in whitespace ── */
@media (max-width: 640px) {
  .tools-hero { padding: 18px 16px 22px !important; }
  .tools-hero-title { font-size: 1.55rem !important; line-height: 1.2; margin-bottom: 6px; }
  .tools-hero-sub { font-size: 14px; line-height: 1.55; }
  .tools-hero-stats { font-size: 11.5px; margin-top: 10px; }
  /* Same fix for the faq-hero on /faq */
  .faq-hero { padding: 14px 0 22px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Mobile nav polish:
   - Upgrade pill shows only the crown (no "Upgrade" word)
   - Login / Sign up hidden — already accessible via hamburger drawer
   - Hamburger sits hard-left; tight gap to the logo
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Tight hamburger ↔ logo spacing */
  .hamburger-btn {
    margin-left: -6px !important;   /* nudge left, flush with viewport edge */
    margin-right: 4px !important;
    padding: 6px !important;
  }
  .logo { margin-left: 0 !important; }

  /* Upgrade pill: just the crown */
  .btn-upgrade-text { display: none !important; }
  .btn-upgrade {
    padding: 7px 10px !important;
    gap: 0 !important;
  }
  .btn-upgrade-crown { margin: 0 !important; }

  /* Hide Login/Sign-up on mobile — they live inside the hamburger drawer */
  .hdr-auth-link { display: none !important; }

  /* Reduce header gap so nothing overflows the viewport */
  .header-inner { gap: 6px !important; padding: 8px 12px !important; }
}

/* ──────────────────────────────────────────────────────────────────────
   Hub-card system — shared by /free-tools, /ai-tools, /compress-image
   (was previously page-local; moved to main.css so the new /compress-image
   page actually inherits the styles after h2 → h3 promotion.)
   ────────────────────────────────────────────────────────────────────── */
.ft-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-hub-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.ai-hub-card:hover { border-color: var(--accent); }
.ai-hub-card-header { display: flex; align-items: center; justify-content: space-between; }
.ai-hub-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.ai-hub-badge {
  font-size: .72rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 20px;
  background: var(--accent-dim); color: var(--accent);
}
/* Same visual size whether the card title is h2, h3, or styled span */
.ai-hub-title,
h3.ai-hub-title,
h2.ai-hub-title {
  font-size: 1.15rem; font-weight: 700;
  margin: 0; line-height: 1.3;
  color: var(--text);
}
.ai-hub-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.ai-hub-features {
  font-size: .82rem; color: var(--text-muted);
  padding-left: 1.2rem; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
}
.ai-hub-cta { font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
@media (max-width: 960px) { .ft-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ft-hub-grid { grid-template-columns: 1fr; } .ai-hub-grid { grid-template-columns: 1fr; } }

/* hub-table — also used across multiple hubs */
.hub-table-wrap { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hub-table th { background: var(--bg-card); padding: .65rem 1rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); }
.hub-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hub-table tr:last-child td { border-bottom: none; }

/* pillar-section vertical rhythm (used by /compress-image, /ai-tools etc.) */
.pillar-section { margin: 0 0 56px; scroll-margin-top: 80px; }
.pillar-section:last-of-type { margin-bottom: 32px; }
.pillar-section-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* ── Mobile drawer: trim "JPG Tools" oversize top margin ────────────── */
.drawer-nav .section-label:first-child {
  padding-top: 4px !important;
}
.drawer-nav .section-label {
  margin-top: 0 !important;
}

/* ──────────────────────────────────────────────────────────────────────
   .btn-account — small "Sign up / login" pill that sits next to Upgrade.
   Always visible (desktop + mobile) so the auth affordance is obvious.
   On mobile, the label collapses and only the user-icon is shown.
   ────────────────────────────────────────────────────────────────────── */
.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-account:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-account svg { flex-shrink: 0; }
@media (max-width: 900px) {
  /* Collapse to icon-only on mobile so it tucks neatly next to Upgrade */
  .btn-account-label { display: none; }
  .btn-account { padding: 6px 8px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Upgrade pill — glossy/shiny finish + animated shimmer sweep.
   ────────────────────────────────────────────────────────────────────── */
.btn-upgrade {
  /* Replace the flat amber-400 with a top-to-bottom gradient for a glass
     look. Lighter at the top (highlight) → core amber → slightly deeper
     amber at the bottom (shadow side). */
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),       /* inner top highlight */
    inset 0 -1px 0 rgba(120, 53, 15, 0.18),         /* inner bottom edge */
    0 2px 6px rgba(245, 158, 11, 0.35),             /* soft amber glow */
    0 1px 2px rgba(0, 0, 0, 0.18);                  /* drop shadow */
  position: relative;
  overflow: hidden;
}
/* Hover: brighter + lift */
.btn-upgrade:hover {
  background: linear-gradient(180deg, #fef3c7 0%, #fde047 45%, #fbbf24 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(120, 53, 15, 0.18),
    0 4px 12px rgba(245, 158, 11, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.btn-upgrade:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(120, 53, 15, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Animated shimmer — diagonal white band sweeps across every 3.5s */
.btn-upgrade::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: btn-upgrade-shimmer 3.5s infinite;
  pointer-events: none;
}
@keyframes btn-upgrade-shimmer {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }   /* pause off-screen for ~40% of cycle */
}
@media (prefers-reduced-motion: reduce) {
  .btn-upgrade::before { animation: none; }
}

/* Crown sits above the shimmer */
.btn-upgrade-crown,
.btn-upgrade-text { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────────────────
   Mobile: tighten the homepage converter workspace
     - Convert button centered, BELOW the "Select a file…" hint
     - Trust badges in one compact row, not three lines
     - Drop zone height ~halved
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Action bar — stack as column, reorder so the Convert button is on TOP
     and the "Select a file…" hint sits underneath, both centered. */
  .cv-action-bar {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }
  .cv-action-btns {
    width: 100% !important;
    justify-content: center !important;
  }
  .cv-action-left {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .cv-action-info {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 12.5px;
  }
  .cv-convert-btn {
    min-width: 180px;
    justify-content: center;
  }

  /* Trust badges — compress to one tight row, smaller icons & text,
     wraps only if absolutely necessary. */
  .cv-trust-row,
  .cv-trust-row--center {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 12px 8px !important;
    margin-bottom: 0 !important;
    justify-content: center !important;
  }
  .cv-trust {
    font-size: 10.5px !important;
    gap: 4px !important;
  }
  .cv-trust svg { width: 11px !important; height: 11px !important; }

  /* Drop zone — chop the vertical padding roughly in half */
  .cv-dropzone {
    padding: 18px 16px 22px !important;
  }
  .cv-drop-icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
  }
  .cv-drop-icon svg { width: 22px !important; height: 22px !important; }
  .cv-drop-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }
  .cv-drop-sub {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
  .cv-select-btn {
    padding: 9px 18px !important;
    font-size: 13px !important;
  }
  .cv-drop-quota {
    font-size: 11.5px !important;
    margin-top: 10px !important;
  }
}
