/* ==========================================================================
   Convertig — Modern theme (light + dark) built around primary #f9a931
   Loaded after style.css / drop_uploader.css so it intentionally overrides
   the legacy red palette and modernizes the core components.
   ========================================================================== */

:root {
  --primary: #f9a931;
  --primary-600: #f0990f;
  --primary-700: #d98309;
  /* High-contrast amber for text/links on light surfaces (WCAG AA) */
  --primary-text: #a45c00;
  --primary-soft: rgba(249, 169, 49, 0.12);
  --primary-soft-2: rgba(249, 169, 49, 0.22);
  --primary-grad: linear-gradient(135deg, #fbb73f 0%, #f9a931 45%, #ef9412 100%);

  /* Light theme (default) */
  --bg: #f4f6fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #1c2230;
  --text-muted: #6b7280;
  --border: #e6e9f0;
  --border-strong: #d6dae4;
  --shadow-sm: 0 2px 8px rgba(20, 28, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 28, 50, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 28, 50, 0.12);
  --navbar-bg: rgba(255, 255, 255, 0.78);
  --ring: rgba(249, 169, 49, 0.35);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0f1218;
  --bg-soft: #141925;
  --surface: #1a1f2b;
  --surface-2: #20283a;
  --text: #e9edf5;
  --text-muted: #9aa3b2;
  --border: #2a3142;
  --border-strong: #38415a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --navbar-bg: rgba(15, 18, 24, 0.72);
  --ring: rgba(249, 169, 49, 0.4);
  /* On dark surfaces the bright amber has plenty of contrast */
  --primary-text: #fbbf5a;
  color-scheme: dark;
}

/* --------------------------------------------------------------- base ---- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, p, span, li, a, label, div { transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; }

h1, h2, h3, h4, h5, h6 { color: var(--text); }
p { color: var(--text-muted); }

a { color: var(--primary-text); }
a:hover { color: var(--primary-600); }

::selection { background: var(--primary-soft-2); color: var(--text); }

/* ------------------------------------------------------------- navbar ---- */
.navbar {
  background-color: var(--navbar-bg) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm) !important;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar .navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  padding: 8px 14px !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.22s ease, background-color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease;
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--primary-text) !important;
  background-color: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 169, 49, 0.18);
}

.navbar .navbar-nav .nav-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.navbar .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary-text) !important;
  background-color: var(--primary-soft);
}

/* Nav icons — FA glyph version */
.navbar .navbar-nav .nav-link .nav-icon {
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.22s ease;
  flex-shrink: 0;
}
.navbar .navbar-nav .nav-link:hover .nav-icon,
.navbar .navbar-nav .nav-item.active .nav-link .nav-icon {
  transform: scale(1.3) translateY(-1px);
  color: var(--primary-text);
}
/* Nav icons — inline SVG version */
.navbar .navbar-nav .nav-link .nav-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.22s ease;
}
.navbar .navbar-nav .nav-link:hover .nav-icon-svg,
.navbar .navbar-nav .nav-item.active .nav-link .nav-icon-svg {
  transform: scale(1.3) translateY(-1px);
  color: var(--primary-text);
}
.navbar .navbar-nav .nav-link .nav-caret {
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.22s ease;
  opacity: 0.7;
}
.navbar .navbar-nav .nav-link:hover .nav-caret {
  transform: translateY(1px);
  opacity: 1;
}

.logo { height: 32px; width: auto; max-width: 220px; }
/* Light logo: visible in light mode, hidden in dark mode when a dark logo is present */
.logo-light { display: block; }
.logo-dark  { display: none; }
html[data-theme="dark"] .logo-light.has-dark { display: none; }
html[data-theme="dark"] .logo-dark           { display: block; }
/* Fallback: no dark logo uploaded — invert the light logo */
html[data-theme="dark"] .logo-light:not(.has-dark) { filter: brightness(0) invert(1); opacity: 0.92; }

/* Search box */
#searchForm .form-control {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 16px;
  min-width: 230px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#searchForm .form-control::placeholder { color: var(--text-muted); }
#searchForm .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
  background-color: var(--surface);
}
#autocompleteList .list-group-item {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
#autocompleteList .list-group-item:hover {
  background-color: var(--primary-soft);
  color: var(--primary-text);
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 4px var(--ring); }
html[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1) brightness(1.6);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover {
  color: var(--primary-text);
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:active { transform: translateY(0); }

/* ---------------------------------------------------------- hero/head ---- */
.top-header { margin-bottom: 8px; }
.top-header h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}
.top-header h2 { color: var(--text-muted); font-size: 20px; }

/* --------------------------------------------------------- upload box ---- */
.uploader { margin: 34px 0; }

.uploader-wrapper {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text);
  border: 2px dashed var(--border-strong);
  border-radius: 22px;
  padding: 40px 24px !important;
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.uploader-wrapper:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.uploader-wrapper > p,
.uploader-wrapper p {
  color: var(--text-muted) !important;
  font-size: 15px;
  margin-top: 14px !important;
}

/* Prevent FOUC: hide the native <input type=file> ("Choose Files / No file
   chosen") until drop_uploader.js wraps it into .drop_uploader (after which it
   is no longer a direct child of .uploader-wrapper, so this stops matching). */
.uploader-wrapper > input[type="file"] { display: none !important; }

/* Static skeleton button (in the template) is shown immediately on first paint;
   once drop_uploader.js builds the real .drop_uploader.drop_zone (from the input,
   which precedes the skeleton in the DOM) this rule hides the skeleton so there
   is exactly one button and no flash/gap. */
.drop_uploader.drop_zone:not(.upload-skeleton) ~ .upload-skeleton { display: none !important; }
/* Skeleton is purely visual until JS takes over: matches the real control's
   spacing (so the swap causes no layout shift) and ignores pointer events (no
   dead clicks while it is on screen). */
.upload-skeleton { pointer-events: none; }

/* ---- upload source: split-button (Choose Files | ˅) + dropdown ---------- */
.drop_uploader.drop_zone .text_wrapper {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 600;
  /* drop_uploader.css applies margin-top:30px for its icon layout;
     we hide the icon so remove this gap globally */
  margin-top: 0 !important;
}
/* drop_uploader.css sets min-height:100px for icon + text layout;
   we use a compact split-btn only, so collapse to natural height */
.drop_uploader.drop_zone {
  min-height: 0 !important;
}
.drop_uploader.drop_zone .text_wrapper:hover {
  background: transparent !important;
  filter: none;
  transform: none;
  box-shadow: none !important;
}
.drop_uploader.drop_zone .text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--text) !important;
}

/* Hide legacy elements injected by drop_uploader.js */
.drop_uploader.drop_zone .m-dropdown,
.drop_uploader.drop_zone .picker-mobile-menu,
.drop_uploader.drop_zone .cloud-picker { display: none !important; }
/* Hide the pe-7s cloud icon the JS injects — skeleton doesn't have it,
   causing the zone to expand once JS runs (the split-btn is our UI instead) */
.drop_uploader.drop_zone .text_wrapper > i { display: none !important; }

/* ROOT CAUSE of the post-JS layout shift:
   drop_uploader.js injects <span class="errors"></span> as an inline sibling
   right after .text_wrapper. Because .text_wrapper has width:100%, it fills
   the entire line, pushing the empty .errors span onto a NEW line box. Even
   though .errors is empty it still contributes ~1 line of text height (the CSS
   strut), creating a visible gap between the button and the "200 MB..." text.
   Hiding it when empty collapses that extra line box — matching the skeleton. */
.drop_uploader.drop_zone .errors:empty { display: none !important; }
/* Same principle: an empty <ul> rendered as a block still participates in
   block flow; hiding it when truly empty keeps the zone height tight. */
.drop_uploader.drop_zone ul.files:empty { display: none !important; }

/* ---- Split button container ---- */
.drop_uploader.drop_zone .split-btn {
  display: inline-flex !important;
  align-items: stretch;
  border-radius: 999px;
  background: var(--primary-grad);
  box-shadow: 0 10px 22px rgba(249, 169, 49, 0.32);
  overflow: visible;
  position: relative;
  z-index: 10;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.drop_uploader.drop_zone .split-btn:hover {
  box-shadow: 0 14px 28px rgba(249, 169, 49, 0.42);
  transform: translateY(-2px);
}

/* Main "Choose Files" button inside split */
.drop_uploader.drop_zone .split-btn .browse-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 13px 20px 13px 24px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 999px 0 0 999px !important;
  box-shadow: none !important;
  color: #4a2c00 !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.drop_uploader.drop_zone .split-btn .browse-btn svg {
  stroke: #4a2c00 !important;
  fill: none !important;
  opacity: 1 !important;
  flex-shrink: 0;
}
.drop_uploader.drop_zone .split-btn .browse-btn:hover {
  filter: none;
  transform: none;
}

/* Vertical divider between label and caret */
.drop_uploader.drop_zone .split-divider {
  width: 1px;
  background: rgba(74, 44, 0, 0.22);
  flex-shrink: 0;
  margin: 9px 0;
}

/* Chevron caret button */
.drop_uploader.drop_zone .split-caret {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 999px 999px 0 !important;
  color: #4a2c00 !important;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
}
.drop_uploader.drop_zone .split-caret:hover {
  background: rgba(74, 44, 0, 0.1) !important;
}
.drop_uploader.drop_zone .split-caret svg {
  stroke: #4a2c00 !important;
  fill: none !important;
  opacity: 1 !important;
  display: block;
}

/* ---- Dropdown panel ---- */
.drop_uploader.drop_zone .source-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2) !important;
  background-color: var(--surface-2) !important;
  opacity: 1 !important;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  min-width: 190px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}
.drop_uploader.drop_zone .source-dropdown.open {
  display: flex;
}

/* Each source option in the dropdown */
.drop_uploader.drop_zone .source-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none !important;
  background: transparent !important;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: background 0.13s ease, color 0.13s ease;
}
.drop_uploader.drop_zone .source-item:hover {
  background: var(--primary-soft) !important;
  color: var(--primary-text) !important;
}
.drop_uploader.drop_zone .source-item svg {
  fill: currentColor !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

.drop_uploader.drop_zone.hover { border-color: var(--primary) !important; }

/* legacy standalone choose-file button (kept for other pages) */
.choose-file {
  background: var(--primary-grad) !important;
  background-color: var(--primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 26px rgba(249, 169, 49, 0.35) !important;
  color: #4a2c00 !important;
  font-weight: 700;
}
.choose-file:hover { filter: brightness(1.04); }

/* ------------------------------------------------------ uploaded files --- */
.drop_uploader.drop_zone ul.files > li,
ul.files > li {
  background-color: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  box-shadow: var(--shadow-sm);
}
.uploader-wrapper .files li i.fa-file,
ul.files > li > i { color: var(--primary-text); }

/* ------------------------------------------------ convert processing bar - */
/* Status pills */
.status .badge,
.badge.bg-primary,
.right-options .badge {
  background: var(--primary-soft) !important;
  color: var(--primary-text) !important;
  border: 1px solid var(--primary-soft-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status .badge::before,
.badge.bg-primary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 var(--ring);
  animation: convPulse 1.3s ease-in-out infinite;
}
.badge.bg-danger,
.status span.bg-danger {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ef4444 !important;
  border-radius: 999px;
  padding: 7px 14px;
}
.badge.bg-danger::before { display: none; }

@keyframes convPulse {
  0%   { box-shadow: 0 0 0 0 var(--ring); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(249, 169, 49, 0); opacity: 0.65; }
  100% { box-shadow: 0 0 0 0 rgba(249, 169, 49, 0); opacity: 1; }
}

/* Indeterminate processing bar under a file while it works */
.drop_uploader.drop_zone ul.files > li .status,
.right-options.status { position: relative; }
.right-options.status::after,
.drop_uploader.drop_zone ul.files > li .status::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, var(--primary), transparent),
    var(--primary-soft);
  background-size: 40% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0, 0 0;
  animation: convBar 1.2s linear infinite;
}
@keyframes convBar {
  0%   { background-position: -40% 0, 0 0; }
  100% { background-position: 140% 0, 0 0; }
}

/* Download (completed) button */
.right-options.completed a,
.completed a.btn {
  background: var(--primary-grad) !important;
  border: none !important;
  color: #4a2c00 !important;
  font-weight: 700;
  border-radius: 11px !important;
  padding: 8px 18px !important;
  box-shadow: 0 8px 20px rgba(249, 169, 49, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.right-options.completed a:hover,
.completed a.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(249, 169, 49, 0.42);
  color: #4a2c00 !important;
}

/* --------------------------------------------------- convert main btn ---- */
#submit_btn,
.btn-danger {
  background: var(--primary-grad) !important;
  border: none !important;
  color: #4a2c00 !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  padding: 14px 34px !important;
  box-shadow: 0 12px 28px rgba(249, 169, 49, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
#submit_btn:hover:not(:disabled),
.btn-danger:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(249, 169, 49, 0.45) !important;
}
#submit_btn:disabled { opacity: 0.5; box-shadow: none !important; }

/* override for the convert button when it lives inside the upload box */
.btn-convert {
  border-radius: 50px !important;
  padding: 14px 48px !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.btn-convert i { font-size: 1.1rem; }

/* spacing for form inside the upload box */
.converter-form-inner {
  margin-top: 18px !important;
  padding-top: 0 !important;
}
.converter-form-inner p.text-muted { color: var(--text-muted) !important; }

#converter-form p.text-muted { color: var(--text-muted) !important; }

/* ----------------------------------------------------------- features ---- */
.circle-icon i {
  border: none !important;
  color: var(--primary-text) !important;
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  width: 72px; height: 72px;
}
.features h5 { color: var(--text); }
.features p { color: var(--text-muted); }
.text-danger { color: var(--primary-text) !important; }

/* ---------------------------------------------------------- accordion ---- */
.converter-accordion h2,
.converter-buttons h2,
.converter-faq h2 { color: var(--text); }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--surface);
  margin-bottom: 14px;
}
.accordion-header {
  background: var(--surface) !important;
  color: var(--text) !important;
  font-weight: 700;
  padding: 18px 22px !important;
}
.accordion-header i:first-child {
  color: var(--primary-text);
  background: var(--primary-soft);
  width: 34px; height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.accordion-header:hover { background: var(--surface-2) !important; }
.accordion-header.active {
  background: var(--primary-soft) !important;
  color: var(--primary-text) !important;
}
.accordion-header .fa-chevron-down { color: var(--text-muted); }
.accordion-content { background: var(--surface) !important; }

/* converter link buttons */
.converter-button {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
.converter-button i { color: var(--primary-text) !important; }
.converter-button:hover {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
  color: var(--primary-text) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}
.converter-button:hover i { color: var(--primary-text) !important; }

/* ---------------------------------------------------------- features ---- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* -------------------------------------------------------- seo content ---- */
.seo-content {
  max-width: 980px;
  margin: 60px auto 0;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 40px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.seo-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}
.seo-lead { font-size: 1.1rem; }
.seo-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}
.seo-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 42px 0 22px;
}
.seo-subtitle i {
  color: var(--primary-text);
  background: var(--primary-soft);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.seo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.seo-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.seo-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.seo-step-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.seo-step h4 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.seo-step p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.7; }

.seo-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.seo-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.seo-benefits li i {
  flex: 0 0 auto;
  color: var(--primary-text);
  background: var(--primary-soft);
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.seo-benefits li strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 1rem; }
.seo-benefits li span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

.seo-cta-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 22px 24px;
  color: var(--text) !important;
  font-weight: 500;
  margin-top: 30px;
}
.seo-cta-text i { color: var(--primary-text); font-size: 1.3rem; margin-top: 2px; }

@media (max-width: 768px) {
  .seo-steps { grid-template-columns: 1fr; }
  .seo-benefits { grid-template-columns: 1fr; }
  .seo-title { font-size: 1.6rem; }
  .seo-subtitle { font-size: 1.2rem; }
  .seo-content { margin-top: 44px; }
}

/* ---------------------------------------------------------------- FAQ ---- */
.faq-question {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}
.faq-question:hover { background: var(--primary-soft) !important; color: var(--primary-text) !important; }
.faq-answer { background: var(--surface-2) !important; border-radius: 0 0 12px 12px; }
.faq-answer p { color: var(--text-muted); }

/* --------------------------------------------------------------- cards --- */
.card {
  background: var(--surface) !important;
  color: var(--text);
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: 16px !important;
}

.page h1 {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

/* --------------------------------------------------------- mega menu ----- */
.header-main .megamenu,
.header-main .main-nav > ul > li > ul {
  background-color: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-lg) !important;
}
.header-main .megamenu ul li a { color: var(--text) !important; border-radius: 12px; }
.header-main .megamenu ul li a:hover { background-color: var(--primary-soft) !important; color: var(--primary-text) !important; }
.header-main .megamenu ul li a svg path:first-child { fill: var(--primary) !important; }
.header-main .megamenu ul li a svg path { fill: var(--text-muted); }
.header-main .megamenu-item > a:after { border-color: var(--primary) !important; }

/* ------------------------------------------------------ format picker ---- */
.select-format { background-color: var(--surface) !important; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.select-format .wrapper_format .types li { color: var(--text-muted); border-bottom-color: var(--border); }
.select-format .wrapper_format .types li.current,
.select-format .wrapper_format .types li:hover { color: var(--primary-text); }
.select-format .wrapper_format .types li:after { border-color: var(--primary) !important; }
.select-format .wrapper_format .formats ul li span { background-color: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--border); }
.select-format .wrapper_format .formats ul li span:hover { background: var(--primary) !important; color: #4a2c00 !important; }
.select-format .format-search .form-control { color: var(--text) !important; border-color: var(--border) !important; }
.picker-mobile-menu { background-color: var(--surface) !important; }

/* ------------------------------------------------------------- footer ---- */
.footer {
  background-color: var(--surface) !important;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

/* Brand column */
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo { width: 120px; }
.footer-logo-light { display: block; }
.footer-logo-dark  { display: none; }
html[data-theme="dark"] .footer-logo-light.has-dark { display: none; }
html[data-theme="dark"] .footer-logo-dark            { display: block; }
html[data-theme="dark"] .footer-logo-light:not(.has-dark) { filter: brightness(0) invert(1); opacity: 0.88; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted) !important;
  max-width: 280px;
  margin-bottom: 22px;
}

/* Social buttons */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.22s ease, border-color 0.22s ease,
              color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.social-btn:hover {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
  color: var(--primary-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(249, 169, 49, 0.28);
}

/* Column headings */
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text) !important;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-soft);
}

/* Footer link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 2px; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted) !important;
  font-size: 14px;
  text-decoration: none !important;
  padding: 5px 6px;
  border-radius: 7px;
  transition: color 0.2s ease, background 0.2s ease,
              gap 0.25s ease, transform 0.25s ease;
}
.footer-links a i,
.footer-links a .footer-link-svg {
  font-size: 12px;
  width: 16px;
  height: 16px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-links a:hover {
  color: var(--primary-text) !important;
  background: var(--primary-soft);
  gap: 13px;
  transform: translateX(3px);
}
.footer-links a:hover i,
.footer-links a:hover .footer-link-svg {
  color: var(--primary-text);
  transform: scale(1.25);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}
.footer-bottom .copyright {
  font-size: 13px;
  color: var(--text-muted) !important;
  margin: 0;
}
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
}
.footer-legal li:not(:first-child)::before {
  content: '·';
  color: var(--border-strong);
  margin: 0 10px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--primary-text) !important; }

/* ------------------------------------------------------------ modals ----- */
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { color: var(--text); }
.settings .modal-body p label { color: var(--text); }

/* Settings modal + embedded JSON-editor controls (dark-mode friendly) */
.settings .modal-body,
.settings .modal-body p,
.settings .modal-body span,
.settings .modal-body h1,
.settings .modal-body h2,
.settings .modal-body h3,
.settings .modal-body h4,
.settings .modal-body label,
.settings .modal-body .control-label { color: var(--text); }
.settings .modal-body .form-text,
.settings .modal-body small,
.settings .modal-body .help-block,
.settings .modal-body .je-form-control-text,
.settings .modal-body p.text-muted { color: var(--text-muted) !important; }
.settings .modal-body input,
.settings .modal-body select,
.settings .modal-body textarea,
.settings .modal-body .form-control {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.settings .modal-body input::placeholder,
.settings .modal-body textarea::placeholder { color: var(--text-muted); }
.settings .modal-body input:focus,
.settings .modal-body select:focus,
.settings .modal-body textarea:focus,
.settings .modal-body .form-control:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
.settings .modal-body select option { background: var(--surface); color: var(--text); }
.settings .modal-body .card,
.settings .modal-body fieldset,
.settings .modal-body .well,
.settings .modal-body .je-indented-panel,
.settings .modal-body [class*="je-object__container"] {
  background: transparent;
  border-color: var(--border);
}
.settings .modal-body .form-check-input,
.settings .modal-body input[type="checkbox"],
.settings .modal-body input[type="radio"] { accent-color: var(--primary); }
html[data-theme="dark"] .modal .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* ------------------------------------------- linear progress (upload/convert) */
.conv-progress { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; }
.conv-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.conv-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--primary-grad);
  transition: width 0.4s ease;
}
.conv-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}
.file-size { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.out-size { margin-left: 8px; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 991px) {
  .navbar-collapse { margin-top: 10px; }
  #searchForm .form-control { width: 100%; min-width: 0; }
  .theme-toggle { margin-top: 12px; }
}
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .footer-legal { justify-content: center; }
}

@media (max-width: 600px) {
  .top-header h1 { font-size: 40px; }

  /* ── Uploader box: reduce top gap + center the split button ── */
  .uploader-wrapper {
    padding: 18px 16px !important;
  }
  /* Use the SAME simple centered-block layout as desktop (which renders a
     compact gap). A flex column with justify-content:center distributes free
     space and was reopening the gap after JS injected the empty helper
     elements (.errors / ul.files). Block flow collapses them to zero height. */
  .drop_uploader.drop_zone {
    display: block !important;
    text-align: center !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
  .drop_uploader.drop_zone .text_wrapper {
    margin: 0 auto !important;
    display: inline-block !important;
    width: auto !important;
  }
  .drop_uploader.drop_zone .text {
    justify-content: center !important;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero {
  padding: 80px 0 56px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.contact-hero-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid rgba(249,169,49,.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.contact-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}
.contact-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.contact-section { padding: 64px 0 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* ── Form card ── */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.contact-form-head { margin-bottom: 28px; }
.contact-form-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form-head p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* Alert banners */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-alert svg { flex-shrink: 0; margin-top: 1px; }
.contact-alert div { display: flex; flex-direction: column; gap: 2px; }
.contact-alert strong { font-weight: 700; }
.contact-alert-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #16a34a;
}
[data-theme="dark"] .contact-alert-success { color: #4ade80; }
.contact-alert-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #dc2626;
}
[data-theme="dark"] .contact-alert-error { color: #f87171; }

/* Form fields */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf-group { margin-bottom: 20px; }
.cf-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.cf-req { color: var(--primary-text); }
.cf-input {
  width: 100%;
  background: var(--surface-2, var(--surface));
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  font-family: inherit;
  resize: none;
}
.cf-input::placeholder { color: var(--text-muted); opacity: .7; }
.cf-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,169,49,.18);
}
.cf-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  font-family: inherit;
}
.cf-submit:hover:not(:disabled) {
  background: var(--primary-hover, #e8961f);
  box-shadow: 0 4px 18px rgba(249,169,49,.35);
  transform: translateY(-1px);
}
.cf-submit:active:not(:disabled) { transform: none; }
.cf-submit:disabled { opacity: .65; cursor: not-allowed; }
.cf-btn-label, .cf-btn-loading { display: inline-flex; align-items: center; gap: 8px; }

/* Spinner */
.cf-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf-spin .7s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* ── Info sidebar ── */
.contact-info-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-info-card:last-child { margin-bottom: 0; }
.contact-info-card:hover {
  border-color: rgba(249,169,49,.4);
  box-shadow: 0 4px 16px rgba(249,169,49,.1);
}
.cic-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cic-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
}
.cic-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.cic-link {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.cic-link:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar { order: -1; }
  .contact-info-card { max-width: 100%; }
}
@media (max-width: 600px) {
  .contact-form-card { padding: 24px 18px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-hero { padding: 44px 0 32px; }
}

/* ==========================================================================
   FILE ROW + FORMAT SELECTOR — complete redesign
   ========================================================================== */

/* ---------------------------------------------------------------- li row - */
.drop_uploader.drop_zone ul.files > li,
.uploader-wrapper .files > li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  flex-wrap: nowrap;
}

/* filename span */
.drop_uploader.drop_zone ul.files > li > span,
.uploader-wrapper .files > li > span {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
}
.drop_uploader.drop_zone ul.files > li > span i.fa-file,
.uploader-wrapper .files > li > span i.fa-file {
  font-size: 20px;
  color: var(--primary-text);
  flex-shrink: 0;
}

/* m-options wrapper */
.m-options {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  flex-shrink: 0;
}

/* ------------------------------------------ ready-to-upload row section - */
.right-options.ready-to-upload {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hidden until the file finishes uploading (overrides the flex rule above). */
.right-options.ready-to-upload.is-hidden {
  display: none !important;
}

/* -------------------------------------------- format trigger button ----- */
.btn-caret.btn-format {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  background: var(--surface-2) !important;
  border: 2px solid var(--border-strong) !important;
  border-radius: 12px !important;
  padding: 9px 40px 9px 16px !important;
  min-width: 154px;
  height: 42px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
  white-space: nowrap;
  outline: none !important;
}
.btn-caret.btn-format:hover {
  border-color: var(--primary) !important;
  background: var(--primary-soft) !important;
  color: var(--primary-text) !important;
  box-shadow: 0 0 0 4px var(--ring) !important;
}
/* Selected state */
.btn-caret.btn-format[data-selected]:not([data-selected=""]) {
  background: var(--primary-grad) !important;
  border-color: transparent !important;
  color: #4a2c00 !important;
  box-shadow: 0 6px 18px rgba(249,169,49,.3) !important;
}
/* The caret arrow */
.btn-caret.btn-format > i.I-0 {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 100%;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-caret.btn-format > i.I-0::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-3px);
  margin: 0 auto;
}
.btn-caret.btn-format[data-selected]:not([data-selected=""]) > i.I-0 {
  border-left-color: rgba(74,44,0,.25);
}
/* Format label inside button */
.btn-caret.btn-format .t {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

/* ---------------------------------------------- gear / settings icon ---- */
.fa-gear.openSetting,
.fa.fa-gear.openSetting {
  font-size: 17px !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  padding: 9px !important;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  float: none !important;
  margin: 0 !important;
}
.fa-gear.openSetting:hover,
.fa.fa-gear.openSetting:hover {
  color: var(--primary-text) !important;
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ----------------------------------------- action-delete (×) button ----- */
.action-delete {
  border-radius: 9px !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface-2);
  opacity: 0.7;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
  width: 38px !important;
  height: 38px !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M.724.118L.118.724 7.395 8 .118 15.276l.606.606L8 8.605l7.276 7.277.606-.606L8.605 8 15.882.724l-.606-.606L8 7.395z'/%3E%3C/svg%3E") !important;
}
.action-delete:hover {
  opacity: 1;
  background-color: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.35) !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M.724.118L.118.724 7.395 8 .118 15.276l.606.606L8 8.605l7.276 7.277.606-.606L8.605 8 15.882.724l-.606-.606L8 7.395z'/%3E%3C/svg%3E") !important;
}

/* ================================================ FORMAT PICKER POPUP ===== */
.select-format {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 18px !important;
  width: 480px !important;
  z-index: 2000 !important;
}

/* Search bar */
.select-format .format-search {
  margin-bottom: 14px !important;
}
.select-format .format-search .form-control {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  padding: 9px 16px !important;
  font-size: 14px;
  height: auto !important;
  width: 100% !important;
  transition: border-color .2s, box-shadow .2s;
}
.select-format .format-search .form-control::placeholder { color: var(--text-muted); }
.select-format .format-search .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--ring) !important;
  outline: none !important;
}

/* wrapper_format layout */
.select-format .wrapper_format {
  display: flex !important;
  gap: 12px;
  max-height: 240px !important;
  height: auto !important;
}

/* Left: category tabs */
.select-format .wrapper_format .types {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
  width: 130px !important;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.select-format .wrapper_format .types li.format-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  border-bottom: none !important;
  cursor: pointer;
  color: var(--text-muted) !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.select-format .wrapper_format .types li.format-label:hover,
.select-format .wrapper_format .types li.format-label.current {
  background: var(--primary-soft) !important;
  color: var(--primary-text) !important;
}
.select-format .wrapper_format .types li.format-label.current {
  background: var(--primary-soft-2) !important;
}
/* remove the old arrow after */
.select-format .wrapper_format .types li.format-label::after,
.select-format .wrapper_format .types li.format-label.current::after,
.select-format .wrapper_format .types li.format-label:hover::after { display: none !important; }

/* Divider line */
.select-format .wrapper_format::before {
  content: "";
  display: block;
  width: 1px;
  background: var(--border);
  align-self: stretch;
  order: 1;
  flex-shrink: 0;
}
.select-format .wrapper_format .types { order: 0; }
.select-format .wrapper_format .formats.scroll-wrapper,
.select-format .wrapper_format > .formats { order: 2; }

/* Right: format pills */
.select-format .wrapper_format .formats,
.select-format .wrapper_format .scroll-wrapper { 
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  max-height: 240px;
}
.select-format .wrapper_format .formats ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  margin: 0 !important;
}
.select-format .wrapper_format .formats ul li.format-select {
  display: inline-flex !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
.select-format .wrapper_format .formats ul li.format-select span {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  padding: 7px 13px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.select-format .wrapper_format .formats ul li.format-select span:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #4a2c00 !important;
  box-shadow: 0 4px 12px rgba(249,169,49,.3) !important;
}

/* Scrollbars inside popup */
.select-format .wrapper_format ::-webkit-scrollbar { width: 5px; }
.select-format .wrapper_format ::-webkit-scrollbar-track { background: transparent; }
.select-format .wrapper_format ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 600px) {
  .select-format { width: calc(100vw - 32px) !important; }
  .drop_uploader.drop_zone ul.files > li { flex-wrap: wrap !important; }
  .m-options { width: 100%; }
}

/* --- inline height overrides injected by drop_uploader.js -------------- */
.select-format .wrapper_format .formats.scroll-content {
  height: auto !important;
  max-height: none !important;
}
.select-format .wrapper_format .scroll-wrapper.formats {
  overflow-y: auto !important;
  max-height: 230px !important;
  position: static !important;
}
/* wrapper_format inline height override */

/* ---- From-URL custom modal -------------------------------------------- */
#url-picker-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#url-picker-modal.open { display: flex; }

.url-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.url-picker-dialog {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 92%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  animation: url-dialog-in 0.18s ease;
}
@keyframes url-dialog-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.url-picker-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.url-picker-title svg { stroke: var(--primary); flex-shrink: 0; }

.url-picker-hint {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.url-picker-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.url-picker-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.url-picker-error {
  font-size: 13px;
  color: #e53e3e;
  min-height: 18px;
  margin-top: 6px;
}

.url-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.url-picker-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.url-picker-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.url-picker-btn-cancel {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1.5px solid var(--border-strong) !important;
}
.url-picker-btn-ok {
  background: var(--primary-grad);
  color: #4a2c00;
}
.select-format .wrapper_format { height: auto !important; }

/* ═══════════════════════════════════════════════════════════════
   CONVERTER PAGE REDESIGN
   ═══════════════════════════════════════════════════════════════ */

/* ── Card shell ── */
.conv-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.conv-card-body {
  padding: 40px;
}

/* ── Section title with icon ── */
.conv-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 22px;
  line-height: 1.3;
}
.conv-section-title i {
  color: var(--primary);
  font-size: 19px;
  flex-shrink: 0;
}
h2.conv-section-title { font-size: 20px; }

/* ── Article prose ── */
.tool-article p {
  color: var(--text);
  line-height: 1.78;
  font-size: 15.5px;
  margin-bottom: 18px;
}
.tool-article p:last-child { margin-bottom: 0; }
.tool-article p strong { font-weight: 700; }

/* ── How-to steps ── */
.how-to-steps {
  border-top: 1.5px solid var(--border);
  margin-top: 32px;
  padding-top: 32px;
}

.conv-steps-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.conv-steps-title i { color: var(--primary); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(249, 169, 49, 0.14);
  transform: translateY(-2px);
}

.step-num {
  position: absolute;
  top: -13px;
  left: 18px;
  background: var(--primary-grad);
  color: #4a2c00;
  font-weight: 800;
  font-size: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(249, 169, 49, 0.4);
}

.step-icon-wrap {
  width: 58px;
  height: 58px;
  background: var(--primary-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(249, 169, 49, 0.28);
}
.step-icon-wrap i {
  font-size: 22px;
  color: #4a2c00;
}

.step-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Feature strip ── */
.conv-features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1.5px solid var(--border);
  margin-top: 32px;
  padding-top: 28px;
}

.conv-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.18s ease;
}
.conv-feature:hover { border-color: var(--primary); }
.conv-feature > i {
  font-size: 19px;
  color: var(--primary);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.conv-feature > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.conv-feature strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.conv-feature span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ── FAQ accordion ── */
.conv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.conv-faq-item.open { border-color: var(--primary); }

.conv-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.conv-faq-q:hover { background: var(--bg-soft); }
.conv-faq-item.open .conv-faq-q { background: var(--bg-soft); }

.conv-faq-arrow {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s ease;
}
.conv-faq-item.open .conv-faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.conv-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.conv-faq-a p {
  padding: 4px 20px 18px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Related tools ── */
.related-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-tool-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.related-tool-btn:hover {
  border-color: var(--primary);
  background: rgba(249, 169, 49, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .conv-features-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .conv-card-body { padding: 24px 18px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .conv-features-strip { grid-template-columns: 1fr; }
  .conv-section-title { font-size: 17px; }
  h2.conv-section-title { font-size: 17px; }
}

/* ==========================================================================
   Static pages — About / Terms / Privacy
   ========================================================================== */

/* ── Shared hero ── */
.sp-hero {
  padding: 80px 0 60px;
  margin-top: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.sp-hero-legal { padding: 64px 0 48px; }
.sp-hero-inner { max-width: 680px; margin: 0 auto; }

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid rgba(249,169,49,.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.sp-hero-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.sp-accent { color: var(--primary); }
.sp-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Stats strip ── */
.sp-stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.sp-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.sp-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.sp-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.sp-stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Sections ── */
.sp-section { padding: 72px 0; }
.sp-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sp-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 10px;
}
.sp-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
}
.sp-section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.sp-section-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }

/* ── Two-col about layout ── */
.sp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.sp-section-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.sp-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 8px;
  transition: gap .2s ease, color .2s ease;
}
.sp-cta-link:hover { gap: 11px; color: var(--primary); }

/* Feature cards in about */
.sp-feature-cards { display: flex; flex-direction: column; gap: 16px; }
.sp-feat-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sp-feat-card:hover {
  border-color: rgba(249,169,49,.45);
  box-shadow: 0 6px 24px rgba(249,169,49,.12);
  transform: translateY(-2px);
}
.sp-feat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.sp-feat-card:hover .sp-feat-icon {
  background: var(--primary);
  color: #fff;
}
.sp-feat-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
}
.sp-feat-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Category cards */
.sp-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sp-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  position: relative;
  overflow: hidden;
}
.sp-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}
.sp-cat-card:hover {
  border-color: rgba(249,169,49,.5);
  box-shadow: 0 8px 28px rgba(249,169,49,.14);
  transform: translateY(-3px);
}
.sp-cat-card:hover::before { opacity: 1; }
.sp-cat-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.sp-cat-card:hover .sp-cat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(-4deg);
}
.sp-cat-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  position: relative;
}
.sp-cat-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
  position: relative;
}
.sp-cat-arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary-text);
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  position: relative;
}
.sp-cat-card:hover .sp-cat-arrow { opacity: 1; transform: translateX(0); }

/* CTA section */
.sp-cta-section { padding: 72px 0; }
.sp-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #e8961f 100%);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.sp-cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.sp-cta-box p {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 28px;
}
.sp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ── Legal pages layout ── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky TOC */
.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.legal-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, padding-left .18s ease;
  border-left: 2px solid transparent;
}
.legal-toc a:hover {
  color: var(--primary-text);
  background: var(--primary-soft);
  padding-left: 14px;
  border-left-color: var(--primary);
}

/* Legal content sections */
.legal-content { min-width: 0; }
.legal-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }
.legal-section:first-child { padding-top: 0; }

.legal-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.legal-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.legal-section:hover .legal-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.legal-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 14.5px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-list li { margin-bottom: 8px; }
.legal-list strong { color: var(--text); }

.legal-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(249,169,49,.3);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--primary-text);
  margin-top: 14px;
  line-height: 1.6;
}
.legal-callout svg { flex-shrink: 0; margin-top: 1px; }
.legal-callout-green {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.3);
  border-left-color: #22c55e;
  color: #16a34a;
}
[data-theme="dark"] .legal-callout-green { color: #4ade80; }

.legal-link {
  color: var(--primary-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}
.legal-link:hover { border-bottom-color: var(--primary-text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .sp-two-col { grid-template-columns: 1fr; gap: 40px; }
  .sp-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sp-cats-grid { grid-template-columns: 1fr; }
  .sp-cta-box { padding: 36px 20px; }
  .sp-stat { padding: 0 20px; }
  .sp-hero { padding: 60px 0 44px; }
}

/* ==========================================================================
   FAQ page
   ========================================================================== */

.faq-hero-link {
  color: var(--primary-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-hero-link:hover { color: var(--primary); }

.faq-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Category nav ── */
.faq-nav {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.faq-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .18s ease, background .18s ease, padding-left .18s ease, border-color .18s ease;
}
.faq-nav-link:hover {
  color: var(--primary-text);
  background: var(--primary-soft);
  padding-left: 14px;
  border-left-color: var(--primary);
}
.faq-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-nav-cta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: center;
}
.faq-nav-cta p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid rgba(249,169,49,.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.faq-contact-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── FAQ content ── */
.faq-content { min-width: 0; }
.faq-group {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.faq-group:last-child { margin-bottom: 0; }

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.faq-group-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.faq-group-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Accordion items ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color .18s ease;
}
.faq-q:hover { color: var(--primary-text); }
.faq-q[aria-expanded="true"] { color: var(--primary-text); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .18s ease;
  display: flex;
  align-items: center;
}
.faq-q:hover .faq-chevron { color: var(--primary-text); }
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-text);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a > * { padding-bottom: 18px; }
.faq-a p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 10px;
}
.faq-a p:last-child { margin-bottom: 0; }

.faq-list {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  padding-left: 20px;
  margin: 8px 0;
}
.faq-list li { margin-bottom: 6px; }
.faq-list strong { color: var(--text); }

kbd {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text);
}

/* Format grid inside FAQ answer */
.faq-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.faq-format-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-format-item:hover {
  border-color: rgba(249,169,49,.4);
  box-shadow: 0 4px 12px rgba(249,169,49,.1);
}
.faq-format-item strong { color: var(--text); font-size: 13px; }
.faq-format-item span  { color: var(--text-muted); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; }
}
@media (max-width: 600px) {
  .faq-format-grid { grid-template-columns: 1fr; }
  .faq-q { font-size: 14px; }
}

/* ==========================================================================
   Blog listing page
   ========================================================================== */

/* ── Banner ad slot ── */
.blog-banner-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
}
.blog-banner-desktop { display: flex; justify-content: center; }
.blog-banner-mobile  { display: none; justify-content: center; }
@media (max-width: 740px) {
  .blog-banner-desktop { display: none; }
  .blog-banner-mobile  { display: flex; }
}

/* ── Two-column blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Blog card ── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.blog-card:hover {
  border-color: rgba(249,169,49,.45);
  box-shadow: 0 8px 28px rgba(249,169,49,.12);
  transform: translateY(-3px);
}

/* Fixed-ratio image — same height for every card */
.blog-card-img-link { display: block; }
.blog-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--border);
}
.blog-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}
.blog-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease;
}
.blog-card-title a:hover { color: var(--primary-text); }
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-text);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.blog-card-link:hover { gap: 9px; color: var(--primary); }

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 48px;
}
.blog-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.blog-page-btn:hover {
  border-color: rgba(249,169,49,.5);
  background: var(--primary-soft);
  color: var(--primary-text);
}
.blog-page-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}
.blog-page-current:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Blog post page
   ========================================================================== */

/* ── Hero image ── */
.blog-post-hero {
  position: relative;
  width: 100%;
  margin-top: 28px;
  border-radius: 14px;
  border: 2px solid rgba(249,169,49,.45);
  box-shadow: 0 0 0 1px rgba(249,169,49,.12), 0 8px 32px rgba(249,169,49,.15), 0 2px 12px rgba(0,0,0,.35);
  overflow: hidden;
  background: var(--surface);
}
.blog-post-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-post-hero-overlay {
  display: none;
}

/* ── Post header ── */
.blog-post-header {
  max-width: 800px;
  padding: 28px 0 0;
}
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color .18s ease, gap .18s ease;
}
.blog-back-link:hover { color: var(--primary-text); gap: 8px; }
.blog-post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 10px 0 14px;
}
.blog-post-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

/* ── Post body layout ── */
.blog-post-section { padding: 36px 0 72px; }
.blog-content-card {
  border: 2px solid rgba(249,169,49,.45);
  box-shadow: 0 0 0 1px rgba(249,169,49,.12), 0 8px 32px rgba(249,169,49,.15), 0 2px 12px rgba(0,0,0,.35);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px 24px;
}
@media (max-width: 640px) {
  .blog-content-card { padding: 12px 10px; }
}
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-post-sidebar { display: none; }
}

/* Sidebar card */
.blog-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 90px;
}
.blog-share-btns { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.blog-share-btn:hover {
  border-color: rgba(249,169,49,.4);
  background: var(--primary-soft);
  color: var(--primary-text);
}

/* ==========================================================================
   Blog content — rich HTML styling (amber theme)
   ========================================================================== */

.blog-content {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.8;
  min-width: 0;
}

/* H1 — amber with bottom border */
.blog-content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin: 36px 0 18px;
  line-height: 1.25;
}
.blog-content h1:first-child { margin-top: 0; }

/* H2 — left amber bar accent */
.blog-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin: 32px 0 16px;
  line-height: 1.3;
}

/* H3, H4 — clean with spacing */
.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 12px;
}
.blog-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}

/* Paragraphs — 20px spacing */
.blog-content p {
  margin: 0 0 20px;
  color: var(--text-muted);
}
.blog-content p:last-child { margin-bottom: 0; }

/* Bullet lists — amber circle dots */
.blog-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.blog-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Numbered lists — amber numbered circles */
.blog-content ol {
  list-style: none;
  counter-reset: blog-ol;
  padding: 0;
  margin: 0 0 20px;
}
.blog-content ol li {
  counter-increment: blog-ol;
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.blog-content ol li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Blockquote — amber left border + soft background */
.blog-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--primary-text);
  font-size: 1rem;
  line-height: 1.75;
}
.blog-content blockquote p { color: var(--primary-text); margin: 0; }

/* Inline code + code blocks */
.blog-content code {
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid rgba(249,169,49,.25);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 13.5px;
  font-family: 'Courier New', Courier, monospace;
}
.blog-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
}
.blog-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  color: var(--text);
}

/* Tables — amber header + striped rows */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14.5px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-content thead tr {
  background: var(--primary);
  color: #fff;
}
.blog-content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.blog-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.blog-content tbody tr:nth-child(even) { background: var(--surface); }
.blog-content tbody tr:last-child td   { border-bottom: none; }

/* Links — amber underlined */
.blog-content a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(249,169,49,.5);
  font-weight: 600;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.blog-content a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* HR — amber gradient line */
.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  margin: 32px 0;
  border-radius: 2px;
}

/* Images inside blog content */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0 20px;
  display: block;
}

/* Strong / em */
.blog-content strong { color: var(--text); font-weight: 700; }
.blog-content em { font-style: italic; }

/* ==========================================================================
   Blog post — footer (Share + CTA) + Related posts
   ========================================================================== */

/* ── Blog post body — full width (no sidebar) ── */
.blog-post-section { padding: 36px 0 0; }
.blog-post-section .blog-content { max-width: 800px; }

/* ── Share + CTA two-column row ── */
.blog-post-footer-section {
  padding: 36px 0 48px;
}
.blog-post-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}
.blog-footer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.blog-share-row {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px !important;
  margin-top: 14px;
}
.blog-share-row .blog-share-btn { flex: 1; min-width: 100px; justify-content: center; }

.blog-footer-cta-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%);
  border-color: rgba(249,169,49,.3);
  display: flex;
  flex-direction: column;
}
.blog-footer-cta-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 14px 0 20px;
  flex: 1;
}
.blog-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}
.blog-footer-cta-btn:hover { opacity: .9; transform: translateY(-1px); }

@media (max-width: 640px) {
  .blog-post-footer-grid { grid-template-columns: 1fr; }
  .blog-share-row { flex-direction: column !important; }
  .blog-share-row .blog-share-btn { min-width: unset; }
}

/* ── Related posts section ── */
.blog-related-section {
  padding: 48px 0 72px;
  border-top: 1px solid var(--border);
}
.blog-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.blog-related-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}

/* ─── Homepage Tabbed Formats Hub ──────────────────────────────────────── */
.fh-section {
  margin: 48px 0 32px;
}
.fh-header {
  text-align: center;
  margin-bottom: 24px;
}
.fh-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.fh-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
/* Tab strip */
.fh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}
.fh-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 30px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.fh-tab i { font-size: 12px; }
.fh-tab-count {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--text-muted);
}
.fh-tab:hover {
  border-color: var(--primary);
  color: var(--primary-text);
  background: var(--primary-soft);
}
.fh-tab:hover .fh-tab-count {
  background: var(--primary-soft);
  border-color: rgba(249,169,49,0.35);
  color: var(--primary-text);
}
.fh-tab-active {
  border-color: var(--primary) !important;
  background: var(--primary-grad) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(249,169,49,0.35);
}
.fh-tab-active .fh-tab-count {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}
/* Panel container */
.fh-panels {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  padding: 22px 22px 18px;
}
.fh-panel { display: none; }
.fh-panel-active { display: block; }
/* CTA footer link */
.fh-panel-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.fh-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-text);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid rgba(249,169,49,0.40);
  border-radius: 20px;
  background: var(--primary-soft);
  transition: all 0.15s ease;
}
.fh-cta-link:hover {
  background: var(--primary-grad);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(249,169,49,0.3);
}
@media (max-width: 680px) {
  .fh-tabs { padding: 12px 14px; gap: 6px; }
  .fh-tab  { font-size: 12px; padding: 6px 12px; }
  .fh-panels { padding: 16px 14px 14px; }
  .fh-title { font-size: 1.3rem; }
}

/* ─── Supported Formats Block ──────────────────────────────────────────── */
.sfb-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px 20px;
  overflow: hidden;
}
.sfb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}
.sfb-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sfb-title i {
  color: var(--primary);
  font-size: 12px;
}
.sfb-counts {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2px 10px;
}
.sfb-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0;
}
.sfb-row-sep {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
}
.sfb-row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 5px;
  min-width: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sfb-label-in  { color: var(--primary-text); }
.sfb-label-out { color: var(--text-muted); }
.sfb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sfb-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
  line-height: 1.6;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.sfb-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.sfb-pill-in {
  color: var(--primary-text);
  background: var(--primary-soft);
  border: 1.5px solid rgba(249,169,49,0.28);
}
.sfb-pill-out {
  color: var(--text-muted);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}
@media (max-width: 600px) {
  .sfb-row { flex-direction: column; gap: 8px; }
  .sfb-row-label { margin-top: 0; }
  .sfb-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
