/* Beautiful Site layout redesign details */
[hidden] {
  display: none !important;
}

/* Permission is requested only after the visitor accepts this explanatory prompt. */
.push-notification-prompt {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  color: #172033;
  background: #fff;
  border: 1px solid #d7deea;
  border-top: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .2);
  animation: push-prompt-in .24s ease-out;
}

.push-prompt-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2563eb;
  border-radius: 50%;
}

.push-prompt-copy { display: grid; gap: 5px; padding-right: 24px; }
.push-prompt-copy strong { font-size: 1.05rem; line-height: 1.3; }
.push-prompt-copy span { color: #475569; line-height: 1.5; }
.push-prompt-copy small { color: #64748b; }
.push-prompt-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.push-prompt-actions button { min-height: 44px; }
.push-prompt-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes push-prompt-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .push-notification-prompt { right: 16px; bottom: 16px; grid-template-columns: 1fr; padding: 18px; }
  .push-prompt-icon { width: 40px; height: 40px; }
  .push-prompt-copy { padding-right: 20px; }
  .push-prompt-actions { grid-column: 1; display: grid; grid-template-columns: 1fr; }
  .push-prompt-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .push-notification-prompt { animation: none; }
}

html.is-route-pending {
  cursor: progress;
}

html.is-route-pending .app-shell {
  opacity: 0.94;
  transition: opacity 0.12s ease;
}

.home-hero {
  padding: 80px 0 60px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Auth and account workspace */
.header-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.auth-page,
.account-page {
  display: grid;
  gap: 28px;
  padding: 48px 0;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.compact-auth {
  grid-template-columns: minmax(0, 720px);
}

.auth-copy,
.auth-form,
.account-hero,
.empty-account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.auth-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.auth-copy h1,
.account-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 2.7rem, 3.2rem);
  line-height: 1.08;
}

.auth-copy p,
.account-hero p,
.empty-account-panel p,
.auth-firebase-state {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 10px;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.auth-form {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 800;
}

.auth-tabs a.active {
  color: var(--brand);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.auth-message {
  min-height: 22px;
  color: var(--success);
  font-weight: 700;
}

.auth-message.error {
  color: var(--danger);
}

.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
}

.empty-account-panel {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 26px;
}

.empty-account-panel h2 {
  margin: 0;
  color: var(--ink);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.admin-status-pill.ready {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

@media (max-width: 1080px) {
  .auth-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .auth-copy,
  .auth-form,
  .account-hero,
  .empty-account-panel {
    padding: 22px;
  }

  .account-hero {
    flex-direction: column;
  }

  .account-hero .secondary-button {
    justify-content: center;
    width: 100%;
  }
}

/* Professional admin workspace */
.pro-admin {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
}

.admin-hero-copy {
  max-width: 760px;
}

.admin-kicker,
.admin-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(2.1rem, 3rem, 3.8rem);
  line-height: 1.05;
}

.admin-hero p,
.admin-section-header p,
.admin-panel-card p,
.admin-preview-card p,
.admin-serp-preview p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.admin-actions,
.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions {
  justify-content: flex-end;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-button:hover,
.admin-nav-button.active {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--ink);
}

.admin-nav-button.active {
  border-color: rgba(79, 70, 229, 0.25);
  background: var(--brand-light);
  color: var(--brand);
}

.admin-content,
.admin-section {
  min-width: 0;
}

.admin-section {
  display: grid;
  gap: 22px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.admin-section-header h2 {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2rem, 2.3rem);
  line-height: 1.15;
}

.admin-section-header p {
  margin: 0;
  max-width: 720px;
}

.admin-metric-grid,
.admin-section-grid {
  display: grid;
  gap: 16px;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-metric,
.admin-panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-metric {
  min-height: 126px;
  padding: 18px;
}

.admin-metric span,
.admin-metric em,
.admin-preview-card span,
.admin-serp-preview span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-style: normal;
}

.admin-metric strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.admin-panel-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.admin-panel-card.wide {
  grid-column: 1 / -1;
}

.admin-panel-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.admin-panel-card p {
  margin: 0;
}

.admin-panel-card .form-field {
  margin-top: 0;
}

.admin-panel-card .form-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-preview-card,
.admin-serp-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.admin-preview-card strong,
.admin-serp-preview strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-serp-preview strong {
  color: #1d4ed8;
}

.admin-help-text {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.social-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.admin-language-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-language-picker button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--panel-soft);
  font-weight: 800;
}

.admin-language-picker button:hover,
.admin-language-picker button.active {
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--brand);
  background: var(--brand-light);
}

.admin-language-picker em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.social-admin-field {
  margin-top: 14px;
}

.admin-tool-picker {
  display: grid;
  gap: 14px;
}

.admin-search-field {
  margin-top: 0;
}

.admin-picker-selected {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--brand-light);
}

.admin-picker-selected span,
.admin-picker-selected em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-picker-selected strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-picker-list {
  display: grid;
  gap: 8px;
}

.admin-picker-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-picker-list.scrollable {
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.admin-picker-button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.admin-picker-button:hover,
.admin-picker-button.active {
  border-color: var(--brand);
  color: var(--brand);
  background: #eef2ff;
}

.admin-picker-button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-picker-button strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.25;
}

.admin-picker-button em {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.admin-empty-result {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: #ffffff;
  line-height: 1.45;
}

.admin-serp-preview p,
.admin-preview-card p {
  overflow-wrap: anywhere;
}

.danger-card {
  border-color: rgba(220, 38, 38, 0.25);
  background: #fffafa;
}

.full-button {
  justify-content: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-button {
    flex: 0 0 auto;
    width: auto;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-hero,
  .admin-section-header {
    flex-direction: column;
  }

  .admin-actions,
  .admin-section-header > .secondary-button,
  .admin-section-header > .primary-button {
    width: 100%;
  }

  .admin-actions .secondary-button,
  .admin-actions .primary-button,
  .admin-section-header > .secondary-button,
  .admin-section-header > .primary-button {
    justify-content: center;
  }

  .admin-metric-grid,
  .admin-section-grid {
    grid-template-columns: 1fr;
  }

  .admin-picker-list.compact {
    grid-template-columns: 1fr;
  }

  .admin-panel-card.wide {
    grid-column: auto;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 3.9rem, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.1rem, 1.2rem, 1.35rem);
  color: var(--ink-muted);
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.search-and-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 660px;
  margin-top: 20px;
}

.search-box-home {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0 24px;
  min-height: 64px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box-home:focus-within {
  border-color: var(--brand);
  box-shadow: 0 15px 35px -8px rgba(79,70,229,0.18), 0 0 0 4px rgba(79,70,229,0.1);
  transform: translateY(-2px);
}

.search-box-home .icon {
  color: var(--brand);
  margin-right: 14px;
}

.search-box-home input {
  flex: 1;
  min-height: 48px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

.converter-finder {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.converter-finder label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.converter-finder label span,
.converter-finder p {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.converter-finder select {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.converter-finder button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #052e2b;
  background: #6ee7b7;
  font-weight: 900;
}

.converter-finder p {
  grid-column: 1 / -1;
  margin: 0;
}

.clear-btn {
  background: var(--surface);
  border: none;
  color: var(--ink-soft);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stat-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.73);
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.stat-pills strong {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}

/* Category Centered Header Layout */
.section-heading-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-heading-centered h2 {
  font-size: clamp(1.8rem, 2.3rem, 2.8rem);
  font-weight: 850;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.results-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  padding: 6px 14px;
  border-radius: 9999px;
}

/* Premium article layout */
.premium-article {
  grid-template-columns: 1fr !important;
  gap: 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
}

.article-header h2 {
  font-size: 2.2rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.article-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.article-illustration {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel-soft);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.article-illustration .icon {
  color: var(--brand);
}

.article-illustration h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 800;
}

.article-illustration p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Base custom font size scales */
/* PREMIUM UPGRADE STYLES FOR CATEGORIES & TOOLS */

/* Premium Category Banner */
.premium-category-banner {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, #0f172a) 0%, color-mix(in srgb, var(--accent) 30%, #1e1b4b) 100%);
  padding: 3px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.banner-glass {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  border-radius: calc(var(--radius-lg) - 3px);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.banner-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8; /* Slate 400 */
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
}

.banner-back-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  transform: translateX(-2px);
}

.banner-eyebrow {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
}

.banner-content h1 {
  font-size: clamp(2.2rem, 2.9rem, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.banner-content p {
  font-size: 1.12rem;
  color: #cbd5e1; /* Slate 300 */
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
}

.banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.banner-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.06);
}

.banner-stats-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, rgba(255,255,255,0.05));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.stat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-meta strong {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.stat-meta span {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Tool Directory premium grid section */
.tool-directory-premium {
  padding: 40px 0;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.toolbar-left h2 {
  font-size: 1.8rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}

.toolbar-left p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.search-box-premium {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 16px;
  min-height: 48px;
  width: min(360px, 100%);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.search-box-premium:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-box-premium .icon {
  color: var(--ink-soft);
  margin-right: 10px;
}

.search-box-premium input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.tool-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.category-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.page-button,
.page-gap {
  min-width: 42px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-button:hover:not(.disabled),
.page-button.active {
  border-color: rgba(79, 70, 229, 0.35);
  background: var(--brand-light);
  color: var(--brand);
  transform: translateY(-1px);
}

.page-button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

/* Premium Tool Page Banner */
.premium-tool-banner {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #ffffff) 0%, #ffffff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow);
}

.tool-banner-glass {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.tool-banner-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.breadcrumb-premium {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 700;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.breadcrumb-premium:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.premium-tool-banner h1 {
  font-size: clamp(2rem, 2.55rem, 3rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.tool-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
}

.visual-flow-connector {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 16px 28px;
  border-radius: 9999px;
}

.flow-node {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
}

.flow-node.target {
  background: var(--accent);
  color: #ffffff;
}

.flow-arrow-glowing {
  position: relative;
  width: 50px;
  height: 2px;
  background: var(--line-strong);
}

.flow-arrow-glowing::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--line-strong);
}

.glow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: -2px;
  left: 0;
  box-shadow: 0 0 8px var(--accent);
  animation: slide-glow 2s infinite linear;
}

@keyframes slide-glow {
  0% { left: 0; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Premium Workspace Converter Panel layout */
.converter-layout-premium {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin: 40px 0;
}

.converter-panel-premium {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--brand);
}

.panel-head-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.panel-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-status-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow:  0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.workspace-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workspace-area > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.upload-context-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upload-context-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.upload-context-item span {
  display: block;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-context-item strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.upload-context-item em {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.drop-zone-premium {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
  border: 2px dashed rgba(79, 70, 229, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(20, 184, 166, 0.11), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  padding: 34px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone-premium:hover {
  border-color: var(--brand);
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.16), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(20, 184, 166, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  transform: translateY(-1px);
}

.drop-zone-premium.has-files {
  border-color: rgba(16, 185, 129, 0.55);
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.drop-zone-surface {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 720px;
}

.drop-icon-container {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.16);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.drop-zone-premium:hover .drop-icon-container {
  background: #ffffff;
  color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.drop-zone-premium span {
  font-size: clamp(1.28rem, 1.42rem, 1.55rem);
  font-weight: 800;
  color: var(--ink);
}

.drop-info-text {
  max-width: 62ch;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.upload-meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.upload-meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(224, 231, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.selected-files-panel,
.preview-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.selected-files-head,
.preview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.selected-files-head div {
  min-width: 0;
}

.selected-files-head strong,
.preview-panel-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.selected-files-head p,
.preview-panel-head span {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.preview-panel .file-preview-grid {
  padding: 14px;
}

.upload-clear-button {
  flex: 0 0 auto;
}

.upload-head-actions,
.conversion-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.conversion-settings-panel {
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.conversion-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.conversion-settings-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.conversion-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.conversion-setting-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.conversion-setting-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.conversion-setting-field b {
  color: var(--brand);
  font-size: 0.82rem;
}

.conversion-setting-field input,
.conversion-setting-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
}

.conversion-setting-field input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--brand);
}

.conversion-setting-field em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.file-list-premium {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 14px;
}

.file-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.file-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 34px;
  border-radius: 8px;
  color: #065f46;
  background: #d1fae5;
  font-size: 0.72rem;
  font-weight: 900;
}

.file-name-meta {
  min-width: 0;
}

.file-name-meta strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.file-name-meta em {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.remove-file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #ffffff;
}

.remove-file-button:hover {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.empty-file-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 118px;
  padding: 24px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-file-state .icon {
  color: var(--brand);
}

.empty-file-state span {
  color: var(--ink);
  font-weight: 900;
}

.empty-file-state p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.action-footer-premium {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-button-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 800;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-button-premium.primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.action-button-premium.primary:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.action-button-premium.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.download-grid-premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.output-preview-panel {
  margin-top: 4px;
}

.output-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 14px;
}

.output-preview-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.output-preview-card img,
.output-preview-card video,
.output-preview-card iframe {
  width: 100%;
  min-height: 160px;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  object-fit: contain;
}

.output-preview-card audio {
  width: 100%;
}

.output-preview-card strong,
.output-preview-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.output-preview-card strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.output-preview-card span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.output-preview-frame iframe {
  height: 260px;
}

.output-preview-text pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  background: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.output-preview-generic {
  align-content: center;
  min-height: 180px;
  color: var(--brand);
}

/* Tool Metadata details panel specs */
.tool-meta-premium {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.meta-card-premium {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.meta-card-premium h3, .info-card-premium h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-list-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 8px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item span {
  color: var(--ink-soft);
}

.spec-item strong {
  font-weight: 700;
  color: var(--ink);
}

.ext-tag {
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.info-card-premium {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.info-card-premium p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

.premium-category-article {
  grid-template-columns: 1fr !important;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 40px;
}

.faq-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.faq-headline h2 {
  font-size: 1.4rem !important;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.faq-headline .icon {
  color: var(--brand);
}

.tool-knowledge-section,
.tool-faq-section {
  width: min(100%, 1180px);
  margin: 64px auto 0;
  padding: 0 12px;
}

.tool-knowledge-section {
  position: relative;
}

.tool-knowledge-section::before,
.tool-faq-section::before {
  content: "";
  display: block;
  width: min(100%, 760px);
  height: 1px;
  margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.28), transparent);
}

.tool-knowledge-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.tool-knowledge-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 2.25rem, 2.7rem);
  font-weight: 900;
  line-height: 1.08;
}

.tool-knowledge-header p {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.tool-knowledge-header.compact {
  margin-bottom: 18px;
}

.article-container-premium {
  display: grid;
  gap: 22px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  padding: 0 !important;
  white-space: normal !important;
}

.tool-guide-card,
.tool-faq-section .faq-text {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.1), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.09);
}

.article-prose-block {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.92));
}

.tool-guide-prose {
  justify-items: center;
  text-align: center;
}

.article-container-premium p {
  max-width: 86ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-prose-block p:first-child {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.75;
}

.article-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-guide-insights {
  padding: 0 clamp(22px, 3vw, 34px) clamp(24px, 4vw, 34px);
}

.article-insight-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.article-insight-card span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-insight-card strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.article-insight-card p {
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-list-premium {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  counter-reset: faq-counter;
}

.faq-list-premium details {
  position: relative;
  counter-increment: faq-counter;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-list-premium details:hover,
.faq-list-premium details[open] {
  border-color: rgba(79, 70, 229, 0.34);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
}

.faq-list-premium details[open] {
  transform: translateY(-1px);
}

.faq-list-premium summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.faq-list-premium summary::-webkit-details-marker {
  display: none;
}

.faq-list-premium summary::before {
  content: counter(faq-counter, decimal-leading-zero);
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
}

.faq-list-premium summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 900;
}

.faq-list-premium details[open] summary::after {
  content: "-";
}

.faq-list-premium p {
  max-width: 78ch;
  margin: 0;
  padding: 0 22px 20px 72px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.related-section-premium {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* Custom Base scales and typography context */
:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #1e293b; /* Slate 800 */
  background: #f8fafc; /* Slate 50 */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  
  /* Semantic Variables */
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #0f172a; /* Slate 900 */
  --ink-muted: #475569; /* Slate 600 */
  --ink-soft: #64748b; /* Slate 500 */
  --line: #e2e8f0; /* Slate 200 */
  --line-strong: #cbd5e1; /* Slate 300 */
  --surface: #f1f5f9; /* Slate 100 */
  
  /* Brand/Theme gradients and colors */
  --brand: #4f46e5; /* Indigo 600 */
  --brand-hover: #4338ca; /* Indigo 700 */
  --brand-light: #e0e7ff; /* Indigo 100 */
  --brand-2: #0ea5e9; /* Sky 500 */
  --brand-2-hover: #0284c7; /* Sky 600 */
  --brand-2-light: #e0f2fe; /* Sky 100 */
  
  --warning: #ea580c; /* Orange 600 */
  --warning-light: #ffedd5; /* Orange 100 */
  --danger: #ef4444; /* Red 500 */
  --danger-light: #fee2e2; /* Red 100 */
  --success: #10b981; /* Emerald 500 */
  --success-light: #d1fae5; /* Emerald 100 */
  
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.04) 0px, transparent 50%), 
    #f8fafc;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.icon {
  flex: 0 0 auto;
}

/* Hero-style site header */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(22, 78, 99, 0.98) 54%, rgba(15, 118, 110, 0.96) 100%);
  box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.75);
  width: 100%;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand nav actions";
  align-items: center;
  gap: 18px;
  min-height: 102px;
  max-width: 1580px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 18px 0;
}

.brand-link,
.auth-link,
.top-nav a,
.site-footer a,
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  background: transparent;
}

.brand-link {
  grid-area: brand;
  justify-self: start;
  min-height: 56px;
  padding: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #082f49;
  background: #bae6fd;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px -18px rgba(186, 230, 253, 0.9);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-copy small {
  color: #bae6fd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-nav {
  grid-area: nav;
  justify-self: center;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px;
  overflow: visible;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.26);
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a,
.auth-link {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.top-nav a:hover,
.auth-link:hover,
.breadcrumb:hover {
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.9);
  background: #ffffff;
  transform: translateY(-1px);
}

.auth-link {
  justify-self: end;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-link:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

.auth-link.primary {
  border-color: #10b981;
  color: #052e2b;
  background: #6ee7b7;
}

.auth-link.primary:hover {
  border-color: #059669;
  background: #34d399;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(203, 213, 225, 0.42);
  border-radius: 9999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.26);
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.92);
  background: #ffffff;
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(520px, calc(100vw - 32px));
  max-height: 430px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.language-menu a:hover,
.language-menu a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.language-menu b {
  color: var(--brand);
  font-size: 0.72rem;
  text-transform: uppercase;
}

main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.ssr-main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.ssr-hero {
  display: grid;
  gap: 18px;
  padding: clamp(46px, 7vw, 86px) 0 34px;
}

.ssr-hero h1,
.ssr-page h1 {
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(2.1rem, 3.4rem, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.ssr-hero p,
.ssr-page p,
.ssr-page article {
  max-width: 820px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ssr-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(760px, 100%);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ssr-search input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  font: inherit;
  outline: none;
}

.ssr-search button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  color: #052e2b;
  background: #6ee7b7;
  font-weight: 900;
}

/* Complete server-rendered home experience for browsers that delay or block JS. */
.ssr-home-main {
  width: 100%;
  padding: 0 0 72px;
}

.ssr-home-hero {
  justify-items: center;
  min-height: 520px;
  padding: clamp(64px, 8vw, 104px) max(20px, calc((100% - 1320px) / 2));
  text-align: center;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}

.ssr-home-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ssr-home-hero > p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.ssr-home-hero .ssr-search {
  margin-top: 8px;
}

.ssr-home-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ssr-home-stats > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
}

.ssr-home-stats strong {
  color: var(--ink);
  font-size: 1rem;
}

.ssr-home-stats small {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ssr-home-section {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 0;
}

.ssr-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.ssr-section-heading h2 {
  max-width: 820px;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.ssr-section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.ssr-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.ssr-category-grid,
.ssr-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ssr-category-card,
.ssr-tool-card {
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ssr-category-card:hover,
.ssr-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, var(--brand));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.ssr-category-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 18px 16px;
  min-height: 220px;
  padding: 24px;
  border-top: 4px solid var(--accent);
}

.ssr-card-icon,
.ssr-tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 25%, var(--line));
  font-size: 0.78rem;
  font-weight: 900;
}

.ssr-card-copy {
  min-width: 0;
}

.ssr-card-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ssr-card-copy small {
  display: block;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ssr-category-card > em {
  grid-column: 2;
  align-self: end;
  width: fit-content;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.ssr-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  min-height: 190px;
  padding: 22px;
}

.ssr-tool-icon {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.ssr-tool-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  margin-top: 12px;
  color: #334155;
  font-size: 0.76rem;
}

.ssr-tool-flow b {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.ssr-tool-flow i {
  color: var(--ink-muted);
  font-style: normal;
}

.ssr-open-action {
  grid-column: 2;
  align-self: end;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

.ssr-footer {
  margin-top: 80px;
  color: #d8e1ec;
  background: #111827;
}

.ssr-footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 48px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.ssr-footer strong {
  color: #ffffff;
  font-size: 1.35rem;
}

.ssr-footer p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #aebccd;
  line-height: 1.65;
}

.ssr-footer nav {
  display: flex;
  align-content: start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.ssr-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .ssr-category-grid,
  .ssr-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ssr-home-hero {
    min-height: 0;
    padding: 52px 20px 44px;
  }

  .ssr-home-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
    line-height: 1.02;
  }

  .ssr-search {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .ssr-search input,
  .ssr-search button {
    min-height: 48px;
  }

  .ssr-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .ssr-home-stats > span {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 6px;
    text-align: center;
  }

  .ssr-home-section {
    width: min(100% - 28px, 1320px);
    padding-top: 50px;
  }

  .ssr-section-heading {
    display: grid;
    align-items: start;
  }

  .ssr-category-grid,
  .ssr-tool-grid {
    grid-template-columns: 1fr;
  }

  .ssr-category-card,
  .ssr-tool-card {
    min-height: 0;
  }

  .ssr-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(100% - 40px, 1320px);
  }

  .ssr-footer nav {
    justify-content: flex-start;
  }
}

.ssr-page {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ssr-page + .ssr-page {
  margin-top: 24px;
}

.ssr-page h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.35rem;
}

.ssr-page ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ssr-page li a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  font-weight: 800;
}

.ssr-page li a:hover {
  border-color: rgba(16, 185, 129, 0.42);
  background: #ecfdf5;
}

.ssr-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ssr-pagination a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  background: #ffffff;
  font-weight: 800;
}

.ssr-pagination a[aria-current="page"],
.ssr-pagination a:hover {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.ssr-breadcrumb,
.ssr-breadcrumb a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Home view layout */
.home-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
}

.home-copy {
  padding: 20px 0;
}

.home-copy h1,
.page-hero h1,
.tool-hero h1,
.admin-title h1,
.not-found h1,
.admin-lock h1 {
  margin: 0 0 16px;
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(2.4rem, 3.4rem, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.tool-hero p,
.tool-meta p,
.article-section article {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-copy p:not(.eyebrow) {
  max-width: 580px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 16px;
  padding: 0 12px;
  border-radius: 9999px;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 620px;
}

.home-metrics span {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.home-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
}

/* Beautiful Search Area */
.search-panel,
.converter-panel,
.tool-meta,
.editor-panel,
.admin-lock form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.search-panel {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--brand);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-toolbar label,
.search-panel label,
.form-field span {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-toolbar span {
  flex: 0 0 auto;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-box .icon {
  color: var(--ink-soft);
}

.search-box.small {
  width: min(390px, 100%);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--ink-soft);
}

.quick-grid,
.tool-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

.quick-grid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  margin-top: 24px;
}

#home-tools.quick-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.category-band,
.tool-directory,
.article-section,
.related-section,
.admin-page {
  padding: 48px 0;
}

.section-heading,
.directory-head,
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.directory-head h2,
.article-section h2,
.tool-meta h2,
.converter-panel h2,
.editor-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.9rem, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Category & Tool Cards */
.category-card,
.tool-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: var(--shadow-hover);
}

.category-card {
  display: grid;
  gap: 14px;
  min-height: 200px;
  padding: 24px;
  border-top: 5px solid var(--accent);
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-card .icon {
  color: var(--accent);
}

.category-card strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.category-card small {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.category-card em {
  align-self: end;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 9999px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 168px;
  padding: 22px;
  scroll-margin-top: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

#home-tools .tool-card {
  min-width: 0;
  min-height: 176px;
  padding: 24px;
  gap: 18px;
  touch-action: manipulation;
}

.tool-card.compact {
  min-height: 128px;
  padding: 18px;
  align-items: center;
}

#home-tools .tool-card.compact {
  min-height: 132px;
}

.tool-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tool-card-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 9999px;
  color: #0f172a;
  background: #edf2ff;
  border: 1px solid #c7d2fe;
  font-size: 0.78rem;
  font-weight: 900;
}

.tool-card-flow b {
  display: inline-flex;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card-flow i {
  color: var(--brand);
  font-style: normal;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.tool-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

#home-tools .tool-icon {
  width: 58px;
  height: 58px;
}

.tool-card-body {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #ffffff));
  opacity: 0.95;
}

.tool-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.tool-open-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

/* Page Heroes & Tool Heroes */
.page-hero,
.tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero p:not(.eyebrow),
.tool-hero p {
  max-width: 680px;
  font-size: 1.12rem;
  color: var(--ink-muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-stat,
.format-pair {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 180px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-lg);
  color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #ffffff) 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}

.hero-stat strong {
  display: block;
  color: var(--ink);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-stat span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-hero {
  align-items: stretch;
}

.breadcrumb {
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.format-pair {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  color: var(--ink-soft);
  background: #ffffff;
}

.format-badge {
  display: inline-grid;
  place-items: center;
  min-width: 124px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Interactive Converter UI */
.converter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 30px;
  padding: 40px 0 24px;
}

.converter-panel,
.tool-meta,
.editor-panel {
  padding: 30px;
}

.converter-panel {
  border-top: 6px solid var(--brand);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.converting {
  color: #9a3412;
  background: #fff7ed;
  animation: pulse-glow 1.5s infinite ease-in-out;
}

.status-pill.complete {
  color: #065f46;
  background: #ecfdf5;
}

.status-pill.stopped {
  color: #991b1b;
  background: #fef2f2;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 36px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone:hover {
  border-color: var(--brand);
  background: #f5f3ff;
  color: var(--brand);
}

.drop-zone:hover .icon {
  transform: translateY(-4px);
  color: var(--brand);
}

.drop-zone .icon {
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.drop-zone span {
  margin-top: 16px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.drop-zone small {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.converter-panel > input[type="file"],
.file-import input {
  display: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.file-list span {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-row,
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row {
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

.primary-button {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.primary-button:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.primary-button:disabled {
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  background: #ffffff;
}

.secondary-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}

.secondary-button.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

.secondary-button.danger:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.success-box,
.error-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  line-height: 1.5;
  font-size: 0.95rem;
}

.success-box {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.error-box {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.meta-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-list strong {
  font-size: 0.95rem;
  color: var(--ink);
}

/* Beautiful Articles Layout */
.article-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
  gap: 40px;
  border-top: 1px solid var(--line);
}

.article-section article {
  white-space: normal;
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Administrative styling */
.admin-lock {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 144px);
}

.admin-lock form {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 32px;
}

.admin-security-note {
  margin: -6px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--warning-light);
  border-radius: var(--radius);
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-lock input,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  font-size: 0.98rem;
}

.admin-lock input,
.form-field input,
.form-field select {
  min-height: 46px;
  padding: 0 16px;
}

.admin-lock input:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.editor-panel.wide {
  grid-column: 1 / -1;
}

.form-field {
  display: block;
  margin-top: 20px;
}

.form-field textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.form-field textarea.tall {
  min-height: 250px;
}

.file-import {
  position: relative;
}

/* Footer redesign */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1320px, calc(100% - 40px));
  margin: 48px auto 0;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer a {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  font-weight: 800;
  color: var(--brand);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-basis: 100%;
}

.social-link-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink) !important;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.social-link-pill:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}

.trust-page {
  display: grid;
  gap: 28px;
  padding: 42px 0 70px;
}

.trust-hero {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.trust-hero h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.1rem, 4.2rem);
  line-height: 1.04;
}

.trust-hero p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.trust-article,
.trust-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.trust-article {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.trust-article p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.trust-nav {
  position: sticky;
  top: 122px;
  display: grid;
  padding: 10px;
}

.trust-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink-muted);
  font-weight: 800;
}

.trust-nav a.active,
.trust-nav a:hover {
  color: #065f46;
  background: #ecfdf5;
}

.admin-error-log {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.admin-error-log div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
}

.admin-error-log strong {
  color: #991b1b;
}

.admin-error-log span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-error-log p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.analytics-list,
.analytics-events,
.admin-users-table,
.conversion-history-list {
  display: grid;
  gap: 10px;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-muted);
  font-weight: 800;
}

.analytics-row strong {
  color: var(--ink);
}

.analytics-events div,
.admin-user-row,
.conversion-history-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-events div {
  grid-template-columns: 140px minmax(0, 1fr) minmax(180px, auto);
}

.analytics-events strong,
.conversion-history-item strong,
.admin-user-row strong {
  color: var(--ink);
}

.analytics-events span,
.analytics-events em,
.conversion-history-item span,
.admin-user-row span,
.admin-user-row em {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-user-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(200px, 1fr) minmax(190px, auto) auto;
  align-items: end;
}

.admin-user-row label {
  display: grid;
  gap: 6px;
}

.admin-user-row input {
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.admin-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-stats span {
  padding: 5px 8px;
  border-radius: 9999px;
  background: var(--panel-soft);
}

.tool-steps-section {
  padding: 34px 0;
}

.tool-steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tool-steps-list li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tool-steps-list strong {
  color: var(--ink);
}

.tool-steps-list span {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.conversion-history-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.conversion-history-item.failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.conversion-history-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.not-found {
  display: grid;
  place-items: center;
  gap: 20px;
  min-height: 64vh;
  text-align: center;
}

/* Media Queries for perfect responsiveness */
@media (max-width: 1024px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    width: calc(100% - 32px);
  }

  .brand-link {
    grid-area: brand;
    grid-column: auto;
    grid-row: auto;
  }

  .header-actions {
    grid-area: actions;
    grid-column: auto;
    grid-row: auto;
  }

  .top-nav {
    grid-area: nav;
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    overflow-x: visible;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
  }
  
  .top-nav::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .home-workbench,
  .converter-layout,
  .converter-layout-premium,
  .article-section,
  .format-hub-hero,
  .format-link-columns,
  .blog-hero,
  .blog-grid,
  .blog-grid.compact,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .banner-glass {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
    text-align: center;
  }

  .banner-content {
    align-items: center;
    text-align: center;
  }

  .banner-stats-card {
    justify-content: center;
    align-self: center;
    width: 100%;
    max-width: 320px;
  }

  .tool-banner-glass {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }

  .tool-banner-left {
    align-items: center;
    text-align: center;
  }

  .converter-panel-premium {
    padding: 24px;
  }

  .upload-context-row {
    grid-template-columns: 1fr;
  }

  .tool-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-stats-grid,
  .tool-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-copy {
    min-height: auto;
    padding-bottom: 12px;
  }

  .page-hero,
  .tool-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .hero-stat,
  .format-pair {
    min-width: 100%;
    min-height: 140px;
  }
}

@media (max-width: 768px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1320px);
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    width: calc(100% - 24px);
    gap: 12px;
  }

  .brand-link {
    grid-area: brand;
    grid-column: auto;
    grid-row: auto;
  }

  .header-actions {
    grid-area: actions;
    grid-column: auto;
    grid-row: auto;
    justify-content: stretch;
  }

  .language-switcher,
  .language-switcher summary {
    width: 100%;
  }

  .language-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 88px;
    width: auto;
    max-height: min(70vh, 520px);
  }

  .header-actions .auth-link {
    flex: 1 1 0;
  }

  .premium-category-article {
    padding: 24px 20px;
  }

  .brand-link,
  .auth-link {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .top-nav {
    grid-area: nav;
    grid-row: auto;
    gap: 6px;
  }

  .article-insight-grid {
    grid-template-columns: 1fr;
  }

  .tool-knowledge-section,
  .tool-faq-section {
    margin-top: 44px;
    padding-inline: 0;
  }

  .tool-knowledge-section::before,
  .tool-faq-section::before {
    margin-bottom: 26px;
  }

  .tool-knowledge-header h2 {
    font-size: 2rem;
  }

  .article-prose-block {
    padding: 26px 20px;
  }

  .tool-guide-insights,
  .faq-list-premium {
    padding: 20px;
  }

  .faq-list-premium summary {
    align-items: flex-start;
    padding: 16px;
  }

  .faq-list-premium p {
    padding: 0 16px 18px 16px;
  }

  .format-stats-grid,
  .tool-link-grid,
  .tool-trust-grid {
    grid-template-columns: 1fr;
  }

  .format-hub-hero {
    padding: 24px 20px;
  }

  .blog-hero,
  .blog-post-hero,
  .blog-post-body {
    padding: 24px 20px;
  }

  .blog-admin-grid {
    grid-template-columns: 1fr;
  }

  .blog-related-tool-list {
    grid-template-columns: 1fr;
  }

  .social-admin-grid {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .top-nav a {
    min-height: 48px;
    padding-inline: 12px;
  }

  .home-workbench {
    padding-top: 32px;
  }

  .home-copy h1,
  .page-hero h1,
  .tool-hero h1,
  .admin-title h1,
  .not-found h1,
  .admin-lock h1 {
    font-size: 2.4rem;
  }

  .home-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .home-metrics {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .tool-hero {
    padding-top: 36px;
  }

  .converter-panel,
  .tool-meta,
  .editor-panel,
  .search-panel {
    padding: 22px;
  }

  .section-heading,
  .directory-head,
  .admin-title,
  .site-footer,
  .panel-head,
  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  
  .directory-head .search-box.small {
    margin-top: 12px;
  }

  .quick-grid,
  .tool-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  #home-tools.quick-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #home-tools .tool-card {
    min-height: 168px;
    padding: 24px 22px;
  }

  .drop-zone {
    min-height: 200px;
    padding: 24px;
  }

  .format-pair {
    min-height: 132px;
  }
}

/* UX completion layer */
.home-hero {
  padding: 30px 0 22px;
}

.hero-content {
  gap: 12px;
}

.hero-content h1 {
  font-size: clamp(2.45rem, 3.2rem, 4rem);
  line-height: 1.04;
}

.hero-content p {
  font-size: clamp(1rem, 1.08rem, 1.18rem);
  max-width: 660px;
}

.search-and-stats {
  gap: 14px;
  margin-top: 4px;
}

.converter-finder {
  margin-top: 8px;
}

.category-band,
.featured-workbench,
.article-section,
.tool-directory-premium,
.related-section-premium {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.instant-tools,
.shelf-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.category-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 26px;
}

.category-filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink-muted);
  background: #ffffff;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}

.category-filter-chips button:hover,
.category-filter-chips button.active {
  color: var(--brand);
  border-color: rgba(79, 70, 229, 0.42);
  background: var(--brand-light);
}

.category-filter-chips strong {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 9999px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.76rem;
}

.tool-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-trust-item {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tool-trust-item span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-trust-item strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.tool-trust-item p,
.tool-quality-note span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.tool-quality-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1d4ed8;
  background: #eff6ff;
}

.format-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 22px;
  align-items: stretch;
  margin: 28px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.18), transparent 34%);
  box-shadow: var(--shadow-sm);
}

.format-hub-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.format-hub-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 3.2rem, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.format-hub-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.format-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.format-hub-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 8px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.format-hub-panel span {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-hub-panel strong {
  font-size: clamp(2.4rem, 3.45rem, 4.5rem);
  line-height: 1;
}

.format-hub-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.format-stats-grid,
.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.format-stat-card,
.tool-link-panel,
.format-link-column {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.format-stat-card span,
.tool-link-panel h3,
.format-link-column h2 {
  margin: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.format-stat-card strong {
  color: var(--ink);
  font-size: clamp(1.4rem, 1.85rem, 2.2rem);
  line-height: 1.08;
}

.format-stat-card p,
.tool-link-panel p,
.format-link-column p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.format-tool-section,
.tool-internal-links {
  margin: 34px 0;
}

.format-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.format-link-list,
.tool-link-panel > div {
  display: grid;
  gap: 8px;
}

.format-link-list a,
.tool-link-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  font-weight: 800;
}

.format-link-list a:hover,
.tool-link-panel a:hover {
  border-color: rgba(79, 70, 229, 0.38);
  color: var(--brand);
  background: var(--brand-light);
}

.format-link-list span,
.tool-link-panel span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-hero,
.blog-post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin: 28px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.9)),
    radial-gradient(circle at 92% 20%, rgba(14, 165, 233, 0.16), transparent 32%);
  box-shadow: var(--shadow-sm);
}

.blog-hero h1,
.blog-post-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 3.6rem, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-hero p,
.blog-post-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.blog-hero-stat {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 20px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.blog-hero-stat strong {
  color: var(--brand);
  font-size: 2.4rem;
  line-height: 1;
}

.blog-hero-stat span,
.blog-card span,
.blog-post-meta span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-grid-section {
  margin: 34px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.blog-card img,
.blog-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
}

.blog-card-media {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.blog-card > div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.blog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.blog-read-link {
  color: var(--brand);
  font-weight: 900;
}

.blog-post-page {
  max-width: 980px;
  margin: 0 auto;
}

.blog-post-hero {
  grid-template-columns: 1fr;
  align-items: start;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.blog-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-post-body {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  color: var(--ink-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.blog-post-body :is(h2, h3, h4) {
  margin: 1.4em 0 0.45em;
  color: var(--ink);
  line-height: 1.18;
}

.blog-post-body h2 {
  font-size: 1.7rem;
}

.blog-post-body h3 {
  font-size: 1.3rem;
}

.blog-post-body p {
  margin: 0 0 1rem;
}

.blog-post-body a {
  color: var(--brand);
  font-weight: 800;
}

.blog-post-body img,
.blog-post-body video,
.blog-post-body iframe {
  max-width: 100%;
  border-radius: 8px;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-post-body th,
.blog-post-body td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.blog-post-body th {
  color: var(--ink);
  background: #f8fafc;
}

.blog-related {
  max-width: 1180px;
  margin-inline: auto;
}

.blog-related-tools {
  max-width: 1180px;
  margin-inline: auto;
}

.blog-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.blog-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-html-editor {
  min-height: 360px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-html-note {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #854d0e;
  background: #fffbeb;
  font-weight: 750;
}

.blog-admin-related {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.blog-admin-related p {
  margin: 0;
}

.blog-related-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blog-related-tool-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 850;
}

.blog-related-tool-list a:hover {
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--brand);
  background: var(--brand-light);
}

.blog-related-tool-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-related-tool-list em {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-style: normal;
}

.seo-audit-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.seo-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.seo-audit-row:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.seo-audit-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.seo-audit-row strong {
  color: var(--ink);
}

.seo-audit-row em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.seo-audit-row b,
.empty-mini {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 9999px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 750;
}

.tool-pill:hover {
  border-color: var(--accent);
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
  transform: translateY(-1px);
}

.tool-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-pill em {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.tool-shelf {
  padding: 20px 0 8px;
}

.tool-shelf-head {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  text-align: center;
}

.tool-shelf-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.notice-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  line-height: 1.45;
}

.notice-strip .icon {
  color: var(--success);
}

.ad-slot {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-muted);
  background: var(--panel-soft);
  line-height: 1.55;
}

.favorite-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #94a3b8;
  font-size: 1.05rem;
}

.favorite-mark.active {
  color: #f59e0b;
}

.tool-card {
  position: relative;
}

.tool-card > span:last-child {
  padding-right: 20px;
}

.compact-tool-banner {
  margin: 24px 0;
}

.compact-tool-banner .tool-banner-glass {
  padding: 28px 32px;
}

.tool-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-engine-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-engine-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 9999px;
  color: color-mix(in srgb, var(--accent) 85%, var(--ink));
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  font-size: 0.76rem;
  font-weight: 800;
}

.capability-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin-top: 8px;
  padding: 0 11px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.tool-card-foot .capability-chip {
  margin-top: 0;
}

.capability-exact .capability-chip,
.capability-chip.capability-exact,
.capability-panel.capability-exact {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.capability-chip.capability-media,
.capability-panel.capability-media {
  color: #075985;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.capability-chip.capability-extract,
.capability-panel.capability-extract {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.capability-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: -4px 0 18px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 8px;
}

.capability-panel strong {
  color: inherit;
  font-size: 0.9rem;
}

.capability-panel p {
  margin: 0;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
}

.capability-panel > span {
  flex: 0 0 auto;
  max-width: 42%;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.small-button {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.86rem;
}

.converter-layout-premium {
  margin: 24px 0 40px;
}

.tool-clarity-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--warning-light);
  border-radius: var(--radius);
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tool-clarity-note .icon {
  margin-top: 1px;
}

.drop-zone-premium.drag-active {
  border-color: var(--success);
  background: var(--success-light);
  transform: translateY(-2px);
}

.file-name-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
}

.file-name-meta em {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.file-preview-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.file-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.file-preview-card figcaption {
  padding: 8px;
  min-height: 46px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-preview-generic {
  display: grid;
  place-items: center;
  min-height: 124px;
  padding: 14px;
  color: var(--brand);
}

.file-preview-generic strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.file-preview-more {
  display: grid;
  place-items: center;
  min-height: 124px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--panel-soft);
  font-weight: 800;
}

.validation-message {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #9a3412;
  background: #fff7ed;
  line-height: 1.45;
  font-size: 0.9rem;
}

.validation-message.has-message {
  display: grid;
  gap: 4px;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.progress-steps span {
  min-height: 30px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.progress-steps span.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.progress-steps span.done {
  border-color: #a7f3d0;
  color: #065f46;
  background: #ecfdf5;
}

.working-box {
  border-color: var(--brand-light);
  color: var(--brand);
  background: #eef2ff;
}

.download-button {
  width: 100%;
}

.faq-text {
  margin-top: 18px;
  padding-top: 18px !important;
  border-top: 1px solid var(--line);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  background: #ecfdf5;
  box-shadow: var(--shadow-hover);
  font-size: 0.92rem;
  font-weight: 750;
}

.toast.error {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.drop-zone-premium:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 26px 0 20px;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .search-and-stats {
    gap: 14px;
  }

  .converter-finder {
    grid-template-columns: 1fr;
  }

  .tool-trust-grid,
  .article-insight-grid {
    grid-template-columns: 1fr;
  }

  .capability-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-panel > span {
    max-width: none;
    text-align: left;
  }

  .tool-knowledge-section,
  .tool-faq-section {
    margin-top: 40px;
    padding-inline: 0;
  }

  .tool-knowledge-section::before,
  .tool-faq-section::before {
    margin-bottom: 24px;
  }

  .tool-knowledge-header {
    margin-bottom: 18px;
  }

  .tool-knowledge-header h2 {
    font-size: 1.85rem;
  }

  .tool-knowledge-header p,
  .article-container-premium p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .article-prose-block {
    padding: 24px 18px;
  }

  .tool-guide-insights,
  .faq-list-premium {
    padding: 18px;
  }

  .faq-list-premium summary {
    gap: 10px;
    padding: 15px;
  }

  .faq-list-premium summary::before {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .faq-list-premium p {
    padding: 0 15px 16px 15px;
    max-width: none;
  }

  .search-box-home {
    min-height: 54px;
    padding-inline: 16px;
    border-radius: var(--radius-lg);
  }

  .stat-pills {
    gap: 8px;
  }

  .stat-pills span {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .category-band,
  .featured-workbench,
  .article-section,
  .tool-directory-premium,
  .related-section-premium {
    padding: 28px 0;
  }

  .section-heading-centered {
    margin-bottom: 20px;
  }

  .premium-category-banner,
  .premium-tool-banner {
    margin: 18px 0;
  }

  .compact-tool-banner .tool-banner-glass,
  .tool-banner-glass,
  .banner-glass {
    padding: 22px 18px;
  }

  .premium-tool-banner h1,
  .banner-content h1 {
    font-size: 2rem;
  }

  .visual-flow-connector {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .converter-layout-premium {
    margin-top: 16px;
  }

  .converter-panel-premium {
    padding: 18px;
  }

  .panel-head-premium {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .drop-zone-premium {
    min-height: 170px;
    padding: 22px 16px;
  }

  .drop-zone-premium span {
    font-size: 1.18rem;
  }

  .upload-meta-pills {
    align-items: stretch;
  }

  .upload-meta-pills span {
    flex: 1 1 140px;
    justify-content: center;
  }

  .selected-files-head,
  .preview-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-head-actions,
  .conversion-action-row,
  .upload-clear-button,
  .conversion-settings-head {
    width: 100%;
    justify-content: stretch;
  }

  .upload-head-actions > *,
  .conversion-action-row > *,
  .conversion-settings-head > button {
    flex: 1 1 160px;
    justify-content: center;
  }

  .conversion-settings-grid,
  .output-preview-grid {
    grid-template-columns: 1fr;
  }

  .file-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .remove-file-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .tool-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .home-hero .instant-tools {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-hero .instant-tools::-webkit-scrollbar {
    display: none;
  }

  .home-hero .tool-pill {
    flex: 0 0 auto;
    width: auto;
  }

  .trust-layout {
    grid-template-columns: 1fr;
  }

  .trust-nav {
    position: static;
  }

  .analytics-events div,
  .admin-user-row,
  .conversion-history-item,
  .tool-steps-list {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   CNVFY UNIFIED MODERN DESIGN SYSTEM - IMPRESSIVE & USER-FRIENDLY UI
   ========================================================================== */

:root {
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --brand-glow: 0 0 25px rgba(79, 70, 229, 0.35);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(79, 70, 229, 0.08);
  --card-radius: 18px;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Body Ambient Glow */
body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 15% 10%, rgba(99, 102, 241, 0.06) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(6, 182, 212, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 60%, rgba(244, 63, 94, 0.03) 0px, transparent 50%),
    radial-gradient(at 20% 90%, rgba(16, 185, 129, 0.04) 0px, transparent 40%);
  background-attachment: fixed;
  color: #1e293b;
}

/* Header & Brand styling */
.site-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 27, 75, 0.95) 50%, rgba(15, 23, 42, 0.97) 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.brand-mark {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
  border-radius: 12px !important;
  transition: var(--transition-smooth);
}

.brand-link:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
}

.top-nav {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(10px);
  padding: 5px !important;
  border-radius: 9999px !important;
}

.top-nav a {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  transition: var(--transition-smooth) !important;
}

.top-nav a:hover,
.top-nav a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px);
}

/* Hero Section */
.home-hero {
  position: relative;
  padding: 64px 20px 48px !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
}

.home-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px !important;
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(79, 70, 229, 0.22) !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.12) !important;
  margin-bottom: 20px !important;
}

.home-hero h1 {
  font-size: 3rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  margin: 0 0 16px !important;
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero p {
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  max-width: 720px !important;
  margin: 0 auto 32px !important;
}

/* Floating Modern Search Box */
.search-box-home {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 680px !important;
  margin: 0 auto 20px !important;
  padding: 8px 18px !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(79, 70, 229, 0.06) !important;
  transition: var(--transition-smooth) !important;
}

.search-box-home:focus-within {
  border-color: #4f46e5 !important;
  box-shadow: 0 16px 40px -4px rgba(79, 70, 229, 0.18), 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
  transform: translateY(-2px);
}

.search-box-home input {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
}

.search-box-home input::placeholder {
  color: #94a3b8 !important;
}

.search-box-home .icon {
  color: #6366f1 !important;
}

/* Stat Badges in Hero */
.stat-pills {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.stat-pills span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  color: #334155 !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.stat-pills span strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Instant Quick Action Tools */
.home-quick-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 28px !important;
}

.home-quick-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #334155 !important;
}

.instant-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
}

.instant-tools a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 15px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  color: #334155 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: var(--transition-smooth) !important;
}

.instant-tools a:hover {
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
  background: #eef2ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
}

/* Home File Starter Upload Button */
.home-file-starter {
  margin: 12px auto 0 !important;
  max-width: 520px !important;
}

.home-file-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 16px 28px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -3px rgba(79, 70, 229, 0.35) !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
}

.home-file-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 32px -4px rgba(79, 70, 229, 0.45) !important;
}

.home-file-button strong {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
}

.home-file-button small {
  display: block;
  font-size: 0.8rem !important;
  opacity: 0.85;
}

/* Notice Strip (Privacy First) */
.notice-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  max-width: 960px !important;
  margin: 0 auto 40px !important;
  padding: 14px 24px !important;
  background: rgba(238, 242, 255, 0.8) !important;
  border: 1px solid rgba(199, 210, 254, 0.9) !important;
  border-radius: 14px !important;
  color: #3730a3 !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  backdrop-filter: blur(6px);
}

.notice-strip .icon {
  color: #4f46e5 !important;
  flex-shrink: 0;
}

/* Category Cards - Bento Grid */
.category-band {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

.section-heading-centered h2 {
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
}

.section-eyebrow {
  display: inline-block !important;
  color: #6366f1 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 6px !important;
}

.section-subtitle {
  color: #334155 !important;
  font-size: 1.05rem !important;
  max-width: 640px !important;
  margin: 0 auto 36px !important;
}

.category-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
}

.category-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 220px !important;
  padding: 28px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--accent, #4f46e5) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  transition: var(--transition-smooth) !important;
}

.category-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--card-shadow-hover) !important;
  border-color: color-mix(in srgb, var(--accent, #4f46e5) 50%, #e2e8f0) !important;
}

.category-card .icon {
  width: 36px !important;
  height: 36px !important;
  padding: 8px !important;
  background: color-mix(in srgb, var(--accent, #4f46e5) 12%, transparent) !important;
  border-radius: 12px !important;
  color: var(--accent, #4f46e5) !important;
  transition: var(--transition-smooth);
}

.category-card:hover .icon {
  transform: scale(1.12);
  background: color-mix(in srgb, var(--accent, #4f46e5) 20%, transparent) !important;
}

.category-card strong {
  color: #0f172a !important;
  font-size: 1.4rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.015em !important;
  margin: 12px 0 6px !important;
  display: block;
}

.category-card small {
  color: #334155 !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  display: block;
  flex-grow: 1;
}

.category-card em {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  margin-top: 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  transition: var(--transition-smooth);
}

.category-card:hover em {
  background: color-mix(in srgb, var(--accent, #4f46e5) 10%, transparent) !important;
  color: var(--accent, #4f46e5) !important;
  border-color: color-mix(in srgb, var(--accent, #4f46e5) 30%, transparent) !important;
}

/* Tool Cards */
.featured-workbench {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

.quick-grid,
.tool-grid,
.tool-grid-premium {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

.tool-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 180px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  transition: var(--transition-smooth) !important;
}

.tool-card:hover {
  transform: translateY(-5px) !important;
  border-color: #c7d2fe !important;
  box-shadow: var(--card-shadow-hover) !important;
}

.tool-card strong {
  color: #0f172a !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 6px !important;
}

.tool-card small {
  color: #334155 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

.tool-card-flow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 14px !important;
  padding: 5px 12px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #475569 !important;
}

.tool-card-flow b {
  color: #0f172a !important;
}

.tool-card-flow i {
  color: #6366f1 !important;
}

/* Converter Workspace & Drop Zone */
.converter-layout-premium {
  max-width: 920px !important;
  margin: 0 auto 48px !important;
  padding: 0 16px !important;
}

.converter-panel-premium {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 32px !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08) !important;
}

.panel-head-premium {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.panel-status-group h2 {
  font-size: 1.4rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.status-pill.ready {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
}

.drop-zone-premium {
  min-height: 240px !important;
  border: 2px dashed #818cf8 !important;
  border-radius: 20px !important;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, #f8fafc 100%) !important;
  padding: 36px 20px !important;
  transition: var(--transition-smooth) !important;
  cursor: pointer !important;
}

.drop-zone-premium:hover,
.drop-zone-premium.drag-active {
  border-color: #4f46e5 !important;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.09) 0%, #eef2ff 100%) !important;
  transform: translateY(-2px);
}

.drop-icon-container {
  width: 76px !important;
  height: 76px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
  color: #4f46e5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.2) !important;
  transition: var(--transition-smooth);
}

.drop-zone-premium:hover .drop-icon-container {
  transform: scale(1.1) translateY(-3px);
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.35) !important;
}

.upload-select-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 0 32px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.35) !important;
  transition: var(--transition-smooth) !important;
  margin-top: 12px !important;
}

.upload-select-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px -2px rgba(79, 70, 229, 0.45) !important;
}

/* Action Primary Convert Button */
.action-button-premium.primary {
  min-height: 56px !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 24px auto 0 !important;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.35) !important;
  transition: var(--transition-smooth) !important;
}

.action-button-premium.primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.45) !important;
}

/* Tool Banner Glass */
.premium-tool-banner {
  max-width: 1080px !important;
  margin: 32px auto 28px !important;
  padding: 0 16px !important;
}

.tool-banner-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 36px !important;
  box-shadow: var(--card-shadow) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 28px !important;
}

.tool-banner-left h1 {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 10px 0 8px !important;
}

.tool-subtitle {
  font-size: 1.05rem !important;
  color: #334155 !important;
  line-height: 1.6 !important;
  max-width: 620px !important;
}

.visual-flow-connector {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 24px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.flow-node {
  padding: 10px 20px !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.flow-node.target {
  border-color: #818cf8 !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
}

.flow-arrow-glowing {
  color: #6366f1 !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
}

/* Footer Upgrade */
.site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 56px 24px 32px !important;
  margin-top: 64px !important;
}

.site-footer h3 {
  color: #f8fafc !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  margin-bottom: 16px !important;
}

.site-footer a {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  transition: var(--transition-smooth) !important;
}

.site-footer a:hover {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 24px !important;
  margin-top: 40px !important;
  color: #334155 !important;
  font-size: 0.85rem !important;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .home-hero {
    padding: 40px 16px 32px !important;
  }
  
  .tool-banner-glass {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px !important;
  }
  
  .visual-flow-connector {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .converter-panel-premium {
    padding: 20px !important;
  }
}


/* Simple, stable public-page system. Keep this block last so mobile rules win. */
.hero-content h1,
.home-copy h1,
.ssr-hero h1,
.banner-content h1,
.premium-tool-banner h1,
.format-hub-copy h1,
.blog-hero h1,
.blog-post-hero h1 {
  color: #101828;
  background: none;
  -webkit-background-clip: initial;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.category-card,
.tool-card,
#home-tools .tool-card,
.format-stat-card,
.tool-link-panel,
.format-link-column,
.blog-card,
.account-dashboard-card {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.category-card:hover,
.tool-card:hover,
#home-tools .tool-card:hover,
.format-stat-card:hover,
.tool-link-panel:hover,
.format-link-column:hover,
.blog-card:hover,
.account-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.premium-category-banner,
.premium-tool-banner,
.format-hub-hero,
.blog-hero,
.blog-post-hero,
.trust-hero,
.account-hero {
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 58%, #f1fbf7 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.premium-tool-banner h1,
.premium-category-banner h1 {
  font-size: 3.25rem;
}

.converter-layout-premium {
  grid-template-columns: minmax(0, 1fr);
  width: min(calc(100% - 56px), 1120px);
  gap: 16px;
}

.converter-panel-premium {
  padding: 28px;
  border: 1px solid #dbe4ee;
  border-top: 4px solid var(--accent, var(--brand));
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.panel-head-premium {
  padding-bottom: 18px;
}

.panel-status-group h2 {
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.converter-format-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.converter-format-strip > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.converter-format-strip small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.converter-format-strip strong {
  color: #0f172a;
  overflow-wrap: anywhere;
}

.converter-format-strip > svg {
  flex: 0 0 auto;
  color: var(--accent, var(--brand));
}

.converter-format-strip em {
  margin-left: auto;
  color: #64748b;
  font-size: 0.84rem;
  font-style: normal;
  text-align: right;
}

.drop-zone-premium {
  min-height: 188px;
  border-width: 2px;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: none;
}

.drop-zone-premium:hover,
.drop-zone-premium.drag-active,
.drop-zone-premium.has-files {
  background: #f1faf7;
}

.drop-zone-surface {
  gap: 8px;
  padding: 24px 18px;
}

.drop-icon-container {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: none;
}

.drop-zone-premium span {
  font-size: 1.25rem;
}

.drop-info-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.5;
}

.upload-meta-pills {
  margin-top: 4px;
}

.upload-meta-pills span {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.upload-quick-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.selected-files-panel,
.preview-panel,
.conversion-settings-panel,
.converter-guidance-details {
  margin-top: 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.conversion-settings-panel > summary,
.converter-details > summary,
.converter-guidance-details > summary {
  cursor: pointer;
  list-style: none;
}

.conversion-settings-panel > summary::-webkit-details-marker,
.converter-details > summary::-webkit-details-marker,
.converter-guidance-details > summary::-webkit-details-marker {
  display: none;
}

.conversion-settings-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

.conversion-settings-panel[open] .conversion-settings-head > svg {
  transform: rotate(180deg);
}

.conversion-settings-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.action-footer-premium {
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.action-button-premium.primary {
  min-height: 58px;
  border-radius: 14px;
  font-size: 1.02rem;
}

.progress-steps {
  gap: 8px;
}

.progress-steps span {
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.converter-details {
  grid-column: 1 / -1;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #ffffff;
}

.converter-details > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #334155;
  font-weight: 800;
}

.tool-meta-premium {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.tool-run-summary,
.meta-card-premium,
.info-card-premium {
  min-width: 0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.tool-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-link-panel {
  min-width: 0;
  padding: 18px;
}

.tool-link-panel a,
.format-link-list a {
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding-block: 9px;
}

.tool-link-panel span,
.format-link-list span {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.directory-toolbar {
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-left,
.toolbar-left h2,
.toolbar-left p,
.blog-hero > div,
.blog-card,
.category-card,
.tool-card,
.format-link-column {
  min-width: 0;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-hero h1,
.blog-card h2,
.blog-card h3,
.category-card strong,
.category-card small,
.tool-card strong,
.tool-card small,
.format-link-column h2,
.format-link-column p {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .tool-meta-premium {
    grid-template-columns: 1fr;
  }

  .tool-link-grid,
  .blog-grid,
  .blog-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .category-grid,
  .category-grid-premium,
  .tool-grid,
  .tool-grid-premium,
  .quick-grid,
  #home-tools.quick-grid,
  .format-link-columns,
  .format-stats-grid,
  .blog-grid,
  .blog-grid.compact,
  .tool-link-grid,
  .tool-trust-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .directory-toolbar,
  .blog-hero,
  .blog-post-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .directory-toolbar,
  .tool-directory-premium,
  .tool-internal-links,
  .blog-grid-section {
    min-width: 0;
    max-width: 100%;
  }

  .search-box-premium {
    width: 100%;
  }

  .category-filter-chips {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
  }

  .category-filter-chips button {
    flex: 0 0 auto;
  }

  .converter-layout-premium,
  .premium-tool-banner,
  .premium-category-banner,
  .tool-internal-links,
  .tool-directory-premium,
  .blog-grid-section {
    width: min(calc(100% - 24px), 1120px);
  }

  .converter-panel-premium {
    padding: 18px;
  }

  .panel-head-premium {
    align-items: flex-start;
    gap: 10px;
  }

  .converter-format-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .converter-format-strip em {
    grid-column: 1 / -1;
    margin: 0;
    text-align: left;
  }

  .drop-zone-premium {
    min-height: 166px;
  }

  .drop-zone-surface {
    padding: 20px 12px;
  }

  .drop-info-text {
    font-size: 0.84rem;
  }

  .selected-files-head,
  .preview-panel-head,
  .conversion-settings-head {
    align-items: flex-start;
  }

  .file-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .file-name-meta,
  .file-name-meta strong,
  .file-name-meta em {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-link-panel,
  .format-link-column,
  .blog-card,
  .category-card,
  .tool-card,
  #home-tools .tool-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .tool-internal-links .section-heading h2,
  .tool-knowledge-header h2,
  .section-heading h2,
  .directory-toolbar h2,
  .blog-hero h1,
  .blog-post-hero h1 {
    font-size: 2rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .premium-tool-banner h1,
  .premium-category-banner h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .converter-panel-premium {
    padding: 14px;
    border-radius: 14px;
  }

  .panel-status-group {
    min-width: 0;
  }

  .status-pill {
    flex: 0 0 auto;
  }

  .upload-meta-pills {
    gap: 6px;
  }

  .upload-meta-pills span {
    max-width: 100%;
    white-space: normal;
  }

  .tool-page-actions,
  .conversion-action-row,
  .post-conversion-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tool-page-actions > *,
  .conversion-action-row > *,
  .post-conversion-buttons > * {
    width: 100%;
  }

  .tool-link-panel {
    padding: 14px;
  }

  .category-card,
  .tool-card,
  #home-tools .tool-card,
  .blog-card,
  .format-link-column {
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions .language-switcher,
  .header-actions .language-switcher summary,
  .header-actions .auth-link {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small,
  .language-switcher summary span {
    display: none;
  }

  .header-actions .auth-link,
  .header-actions .language-switcher summary {
    min-height: 44px;
  }
}

/* Restrained public and admin interface, July 2026. */
:root {
  --brand: #4f46e5;
  --brand-2: #3730a3;
  --ink: #242428;
  --ink-muted: #334155;
  --ink-soft: #334155;
  --line: #dedee4;
  --surface: #ffffff;
  --surface-soft: #f6f6f8;
  --danger: #c62828;
}

html {
  background: #f6f6f8;
}

body {
  color: var(--ink);
  background: #f6f6f8 !important;
}

body::before,
body::after,
.site-header::before,
.site-header::after,
.site-footer::before,
.home-hero::before,
.home-hero::after,
.premium-category-banner::before,
.premium-category-banner::after,
.premium-tool-banner::before,
.premium-tool-banner::after,
.category-card::before,
.category-card::after,
.tool-card::before,
.tool-card::after,
#home-tools .tool-card::before,
#home-tools .tool-card::after {
  display: none !important;
}

a,
button,
input,
select,
textarea,
summary {
  border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.drop-zone-premium:focus-within {
  outline: 3px solid rgba(79, 70, 229, 0.24);
  outline-offset: 2px;
}

.primary-button,
.action-button-premium.primary,
.auth-link.primary,
.upload-select-button {
  color: #ffffff !important;
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  box-shadow: none !important;
}

.primary-button:hover,
.action-button-premium.primary:hover,
.auth-link.primary:hover,
.drop-zone-premium:hover .upload-select-button {
  color: #ffffff !important;
  background: var(--brand-2) !important;
}

.secondary-button,
.small-button,
.banner-back-btn,
.breadcrumb-premium,
.auth-link {
  color: var(--ink) !important;
  border: 1px solid #d6d6dc !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.secondary-button:hover,
.small-button:hover,
.banner-back-btn:hover,
.breadcrumb-premium:hover,
.auth-link:hover {
  color: var(--brand) !important;
  border-color: #b8b8c0 !important;
  background: #fafafa !important;
}

.badge,
.section-eyebrow,
.banner-eyebrow,
.admin-kicker,
.home-quick-label,
.results-badge {
  color: var(--brand) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero-content h1,
.home-copy h1,
.ssr-hero h1,
.banner-content h1,
.premium-tool-banner h1,
.premium-category-banner h1,
.format-hub-copy h1,
.blog-hero h1,
.blog-post-hero h1 {
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Header */
.site-header {
  position: relative !important;
  inset: auto !important;
  z-index: 50;
  overflow: visible !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.site-header-inner {
  width: min(100%, 1720px) !important;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 28px !important;
  display: grid !important;
  grid-template-columns: max-content minmax(360px, 1fr) max-content !important;
  align-items: center;
  gap: 24px !important;
}

.brand-link {
  color: var(--ink) !important;
  gap: 12px;
}

.brand-mark {
  width: 48px !important;
  height: 48px !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--brand) !important;
  box-shadow: none !important;
}

.brand-copy strong {
  color: var(--ink) !important;
  font-size: 1.15rem !important;
}

.brand-copy small {
  color: var(--ink-soft) !important;
  font-size: 0.72rem;
}

.top-nav {
  min-width: 0;
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2px !important;
  overflow-x: visible;
  overflow-y: visible;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  padding: 0 14px !important;
  gap: 8px;
  color: #3f3f46 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--brand) !important;
  background: #f4f4f5 !important;
}

.top-nav a::after {
  display: none !important;
}

.header-actions {
  gap: 8px !important;
}

.header-actions .auth-link,
.language-switcher > summary {
  min-height: 44px !important;
  padding: 0 15px !important;
  border-radius: 6px !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.language-switcher > summary {
  color: #3f3f46 !important;
  border: 1px solid #d6d6dc !important;
  background: #ffffff !important;
}

.language-menu {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.14) !important;
}

.language-menu a.active,
.language-menu a:hover {
  color: var(--brand) !important;
  background: #f6f6f8 !important;
}

/* Homepage and shared sections */
.home-hero {
  min-height: 0 !important;
  padding: 72px 24px 54px !important;
  color: var(--ink) !important;
  background: #ffffff !important;
}

.hero-content {
  width: min(100%, 1040px) !important;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: 4rem !important;
  line-height: 1.02 !important;
}

.hero-content > p {
  max-width: 760px;
  color: var(--ink-muted) !important;
}

.search-box-home,
.ssr-search,
.search-box,
.search-box-premium {
  color: var(--ink);
  border: 1px solid #cfcfd6 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.05) !important;
}

.search-box-home:focus-within,
.search-box:focus-within,
.search-box-premium:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12) !important;
}

.search-box-home svg,
.search-box svg,
.search-box-premium svg {
  color: var(--brand) !important;
}

.stat-pills span,
.home-metrics span,
.home-search-suggestions a,
.home-suggestion-empty,
.tool-pill,
.category-task-link,
.hero-tags span,
.banner-tags span,
.tool-engine-badges span,
.results-badge,
.category-filter-chips button,
.page-button,
.capability-chip {
  color: #3f3f46 !important;
  border: 1px solid #dedee4 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.notice-strip {
  color: #3f3f46 !important;
  border-color: #dedee4 !important;
  background: #ffffff !important;
}

.notice-strip svg {
  color: var(--brand) !important;
}

.category-band,
.featured-workbench,
.article-section,
.tool-shelf,
.tool-steps-section,
.tool-internal-links,
.tool-knowledge-section,
.tool-faq-section,
.related-section-premium,
.blog-grid-section {
  width: min(calc(100% - 48px), 1440px) !important;
  margin-inline: auto !important;
}

.category-band,
.featured-workbench,
.article-section,
.tool-knowledge-section,
.tool-faq-section {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.quick-grid,
#home-tools.quick-grid,
.tool-grid,
.tool-grid-premium {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.category-card,
.tool-card,
#home-tools .tool-card,
.format-stat-card,
.tool-link-panel,
.format-link-column,
.blog-card,
.account-dashboard-card,
.article-insight-card {
  --accent: var(--brand) !important;
  min-width: 0;
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.category-card {
  min-height: 210px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 16px !important;
  color: var(--ink) !important;
}

.category-card:hover,
.tool-card:hover,
#home-tools .tool-card:hover,
.format-stat-card:hover,
.tool-link-panel:hover,
.format-link-column:hover,
.blog-card:hover,
.account-dashboard-card:hover {
  transform: none !important;
  border-color: #aaaab3 !important;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.07) !important;
}

.category-card-head {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 14px !important;
}

.category-card .icon,
.tool-icon,
#home-tools .tool-icon,
.article-illustration .icon {
  flex: 0 0 auto;
  width: 46px !important;
  height: 46px !important;
  color: var(--brand) !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #fff0ef !important;
  box-shadow: none !important;
}

.category-card strong,
.tool-card strong {
  color: var(--ink) !important;
  font-size: 1.2rem !important;
  line-height: 1.28 !important;
}

.category-card small,
.tool-card small {
  display: block !important;
  color: var(--ink-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

.category-card em {
  min-height: 30px;
  margin-top: auto !important;
  color: #52525b !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #f4f4f5 !important;
}

.tool-card,
#home-tools .tool-card {
  min-height: 190px !important;
  padding: 22px !important;
  color: var(--ink) !important;
}

.tool-card-flow,
.tool-card-foot .capability-chip {
  color: #52525b !important;
  border-color: #dedee4 !important;
  background: #f6f6f8 !important;
}

.favorite-mark {
  color: #a1a1aa !important;
}

/* Category and tool headers */
.premium-category-banner,
.premium-tool-banner,
.format-hub-hero,
.blog-hero,
.blog-post-hero,
.trust-hero,
.account-hero {
  width: min(calc(100% - 48px), 1440px) !important;
  margin: 36px auto 0 !important;
  color: var(--ink) !important;
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.premium-category-banner {
  border-top: 4px solid var(--brand) !important;
}

.premium-tool-banner {
  width: min(calc(100% - 48px), 940px) !important;
  padding: 42px 30px 12px !important;
  border: 0 !important;
  background: transparent !important;
}

.tool-banner-glass {
  display: block !important;
  padding: 0 !important;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tool-banner-left {
  max-width: 820px;
  margin: 0 auto;
  align-items: center !important;
}

.premium-tool-banner h1 {
  margin: 16px 0 10px !important;
  font-size: 3rem !important;
  line-height: 1.08 !important;
}

.tool-subtitle {
  max-width: 720px;
  color: var(--ink-muted) !important;
}

.visual-flow-connector {
  display: none !important;
}

.tool-page-actions {
  justify-content: center;
}

/* Converter */
.converter-layout-premium {
  width: min(calc(100% - 48px), 900px) !important;
  margin: 22px auto 56px !important;
  display: block !important;
}

.converter-panel-premium {
  padding: 30px !important;
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.06) !important;
}

.panel-head-premium {
  justify-content: center !important;
  padding-bottom: 12px !important;
  text-align: center;
}

.panel-status-group {
  justify-content: center;
}

.panel-status-group h2 {
  font-size: 1.3rem !important;
}

.pulse-indicator,
.panel-head-premium .status-pill {
  display: none !important;
}

.converter-format-strip {
  display: none !important;
}

.drop-zone-premium {
  min-height: 210px !important;
  display: grid !important;
  place-items: center;
  color: var(--ink) !important;
  border: 2px dashed #cacacf !important;
  border-radius: 8px !important;
  background: #f8f8fa !important;
  box-shadow: none !important;
}

.drop-zone-premium:hover,
.drop-zone-premium.drag-active,
.drop-zone-premium.has-files {
  border-color: var(--brand) !important;
  background: #fffafa !important;
}

.drop-zone-surface {
  width: 100%;
  max-width: 620px;
  padding: 34px 18px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px !important;
}

.upload-select-button {
  min-width: min(100%, 430px);
  min-height: 62px;
  padding: 0 28px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px !important;
  font-size: 1.05rem !important;
  font-weight: 800;
}

.drop-zone-premium .drop-label {
  color: #52525b !important;
  font-size: 0.92rem !important;
  font-weight: 600;
}

.drop-info-text {
  max-width: 560px !important;
  color: #71717a !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
}

.upload-meta-pills {
  display: none !important;
}

.upload-quick-actions {
  margin-top: 12px !important;
}

.selected-files-panel,
.preview-panel,
.conversion-settings-panel,
.converter-guidance-details,
.converter-details,
.tool-run-summary,
.meta-card-premium,
.info-card-premium,
.output-preview-card,
.article-prose-block,
.article-insight-card,
.faq-list-premium details {
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.action-footer-premium {
  border-top: 0 !important;
}

.action-button-premium.primary {
  width: min(100%, 520px);
  min-height: 58px !important;
  margin: 0 auto;
  border-radius: 7px !important;
}

.progress-steps {
  width: min(100%, 620px);
  margin-inline: auto;
}

.progress-steps span {
  color: #71717a !important;
  border-color: #dedee4 !important;
  border-radius: 5px !important;
  background: #f6f6f8 !important;
}

.progress-steps span.active,
.progress-steps span.done {
  color: var(--brand) !important;
  border-color: #f0b7b4 !important;
  background: #fff0ef !important;
}

.converter-details {
  margin-top: 14px;
}

.converter-details > summary,
.conversion-settings-panel > summary,
.converter-guidance-details > summary {
  color: #3f3f46 !important;
}

.tool-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.tool-link-panel {
  padding: 20px !important;
}

.tool-link-panel a {
  color: #3f3f46 !important;
  border-color: #e4e4e7 !important;
  background: #fafafa !important;
}

.tool-link-panel a:hover {
  color: var(--brand) !important;
  border-color: #c6c6cd !important;
}

/* Footer */
.site-footer {
  width: 100% !important;
  margin-top: 40px !important;
  padding: 22px max(24px, calc((100% - 1360px) / 2)) 16px !important;
  display: block !important;
  color: #94a3b8 !important;
  border-top: 1px solid #1e293b !important;
  border-radius: 0 !important;
  background: #0f172a !important;
  box-shadow: none !important;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.4fr);
  gap: 56px;
  align-items: start;
}

.footer-brand > a {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-brand p {
  max-width: 620px;
  margin: 0;
  color: #b9b9c1;
  line-height: 1.65;
}

.footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 22px !important;
  justify-content: start !important;
}

.site-footer .footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #e5e5e7 !important;
  border: 0 !important;
  background: transparent !important;
}

.site-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #a8a8b1;
  border-top: 1px solid #47474f;
}

.footer-socials {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.social-link-pill.social-icon-only {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  color: #d7d7dc !important;
  border: 1px solid #55555d !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.social-link-pill.social-icon-only:hover {
  color: #ffffff !important;
  border-color: #8b8b94 !important;
  background: #3a3a41 !important;
}

.social-glyph {
  width: 20px !important;
  height: 20px !important;
  display: block;
  fill: currentColor;
}

/* Admin content editing */
.admin-page.pro-admin {
  width: min(calc(100% - 48px), 1540px) !important;
  margin: 32px auto 64px !important;
}

.admin-hero {
  min-height: 0 !important;
  margin: 0 0 22px !important;
  padding: 24px !important;
  display: flex !important;
  align-items: center;
  color: var(--ink) !important;
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-hero h1 {
  margin: 4px 0 !important;
  color: var(--ink) !important;
  font-size: 2rem !important;
}

.admin-hero-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.admin-workspace {
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 22px !important;
}

.admin-sidebar {
  align-self: start;
  padding: 10px !important;
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-nav-button {
  min-height: 44px;
  color: #52525b !important;
  border-radius: 6px !important;
}

.admin-nav-button:hover,
.admin-nav-button.active {
  color: var(--brand) !important;
  background: #f6f6f8 !important;
}

.admin-content,
.admin-section {
  min-width: 0;
}

.admin-section-header {
  margin-bottom: 18px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #dedee4;
}

.admin-section-header h2 {
  color: var(--ink);
  font-size: 1.8rem !important;
}

.admin-section-grid {
  gap: 16px !important;
}

.admin-editor-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.admin-panel-card,
.admin-metric,
.auth-copy,
.auth-form,
.account-dashboard-card,
.empty-account-panel {
  --accent: var(--brand) !important;
  color: var(--ink);
  border: 1px solid #dedee4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-panel-card {
  padding: 22px !important;
}

.admin-panel-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.admin-card-title,
.admin-metric span {
  color: #52525b !important;
}

.admin-editor-selector {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 16px 24px;
  align-items: start;
}

.admin-editor-selector .admin-card-title {
  grid-column: 1 / -1;
}

.admin-preview-card {
  min-height: 100%;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 6px !important;
  background: #fafafa !important;
}

.admin-html-card {
  padding: 24px !important;
}

.form-field {
  gap: 7px !important;
}

.form-field > span {
  color: #3f3f46 !important;
  font-size: 0.86rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea,
.admin-search-field input,
.admin-tool-picker select,
.admin-category-picker select {
  color: var(--ink) !important;
  border: 1px solid #cfcfd6 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.admin-search-field input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.1) !important;
}

.html-editor-field > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.html-editor-field > span em {
  padding: 3px 7px;
  color: var(--brand);
  border-radius: 4px;
  background: #fff0ef;
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

.html-code-editor,
.blog-html-editor {
  min-height: 440px !important;
  padding: 16px !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  tab-size: 2;
  resize: vertical;
}

.html-editor-note,
.blog-html-note {
  margin: 9px 0 0;
  padding: 10px 12px;
  color: #62626b;
  border-left: 3px solid var(--brand);
  background: #fafafa;
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-advanced-card {
  padding: 0 !important;
  overflow: clip;
}

.admin-advanced-card > summary {
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #3f3f46;
  font-weight: 800;
  list-style: none;
}

.admin-advanced-card > summary::-webkit-details-marker {
  display: none;
}

.admin-advanced-card > summary::after {
  content: "+";
  margin-left: auto;
  color: #71717a;
  font-size: 1.25rem;
}

.admin-advanced-card[open] > summary::after {
  content: "−";
}

.admin-details-body {
  padding: 0 20px 20px;
  border-top: 1px solid #e4e4e7;
}

.admin-details-body > :first-child {
  margin-top: 18px;
}

.admin-header-menu-grid label {
  color: #3f3f46 !important;
  border-color: #dedee4 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.admin-language-picker button.active {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  background: #fff0ef !important;
}

@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: max-content minmax(0, 1fr) !important;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .category-grid,
  .quick-grid,
  #home-tools.quick-grid,
  .tool-grid,
  .tool-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .tool-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 10px !important;
    padding: 10px 18px 12px !important;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    border-top: 1px solid #eeeeF0 !important;
  }

  .category-grid,
  .quick-grid,
  #home-tools.quick-grid,
  .tool-grid,
  .tool-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-content h1 {
    font-size: 3rem !important;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .admin-workspace {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar {
    display: flex !important;
    overflow-x: auto;
    gap: 4px;
  }

  .admin-nav-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .site-header-inner {
    display: grid !important;
  }

  .brand-mark {
    width: 42px !important;
    height: 42px !important;
  }

  .brand-copy small {
    display: none !important;
  }

  .header-actions {
    gap: 5px !important;
  }

  .header-actions .auth-link,
  .language-switcher > summary {
    min-height: 42px !important;
    padding: 0 10px !important;
    font-size: 0.78rem;
  }

  .language-switcher > summary span {
    display: none;
  }

  .top-nav a {
    min-height: 42px;
    padding-inline: 11px !important;
    font-size: 0.82rem;
  }

  .home-hero {
    padding: 48px 18px 40px !important;
  }

  .hero-content h1 {
    font-size: 2.35rem !important;
    line-height: 1.08 !important;
  }

  .category-band,
  .featured-workbench,
  .article-section,
  .tool-shelf,
  .tool-steps-section,
  .tool-internal-links,
  .tool-knowledge-section,
  .tool-faq-section,
  .related-section-premium,
  .blog-grid-section {
    width: min(calc(100% - 28px), 1440px) !important;
  }

  .category-grid,
  .quick-grid,
  #home-tools.quick-grid,
  .tool-grid,
  .tool-grid-premium,
  .tool-link-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .category-card,
  .tool-card,
  #home-tools .tool-card {
    min-height: 0 !important;
    padding: 20px !important;
  }

  .premium-category-banner,
  .premium-tool-banner,
  .format-hub-hero,
  .blog-hero,
  .blog-post-hero,
  .trust-hero,
  .account-hero {
    width: min(calc(100% - 28px), 1440px) !important;
    margin-top: 22px !important;
  }

  .premium-tool-banner {
    padding: 28px 10px 8px !important;
  }

  .premium-tool-banner h1 {
    font-size: 2.2rem !important;
    overflow-wrap: anywhere;
  }

  .converter-layout-premium {
    width: min(calc(100% - 28px), 900px) !important;
  }

  .converter-panel-premium {
    padding: 18px !important;
  }

  .drop-zone-premium {
    min-height: 180px !important;
  }

  .drop-zone-surface {
    padding: 24px 12px !important;
  }

  .upload-select-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding-inline: 16px;
  }

  .tool-meta-premium {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 42px 22px 24px !important;
  }

  .admin-page.pro-admin {
    width: min(calc(100% - 24px), 1540px) !important;
    margin-top: 18px !important;
  }

  .admin-hero,
  .admin-section-header {
    display: block !important;
  }

  .admin-actions,
  .admin-section-header > .secondary-button {
    margin-top: 14px;
  }

  .admin-editor-selector {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-editor-selector .admin-card-title {
    grid-column: 1;
  }

  .html-code-editor,
  .blog-html-editor {
    min-height: 340px !important;
  }
}

@media (max-width: 430px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-inline: 12px !important;
  }

  .brand-copy strong {
    max-width: 116px !important;
    font-size: 0.92rem !important;
  }

  .header-actions .auth-link {
    padding-inline: 8px !important;
  }

  .header-actions .sign-in-link {
    display: none;
  }

  .account-link {
    display: inline-flex !important;
    max-width: 92px;
  }

  .account-link span {
    max-width: 56px;
  }

  .tool-page-actions,
  .conversion-action-row,
  .post-conversion-buttons {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Render below-the-fold sections only when they approach the viewport. */
.article-section,
.tool-shelf,
.tool-steps-section,
.tool-internal-links,
.tool-knowledge-section,
.tool-faq-section,
.related-section-premium,
.blog-grid-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.tool-link-panel,
.tool-link-panel > *,
.tool-link-panel a,
.category-card,
.category-card > *,
.tool-card,
.tool-card > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .tool-link-grid,
  .tool-internal-links .tool-link-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }

  .tool-link-panel {
    width: 100% !important;
    padding: 16px !important;
    overflow: hidden;
  }

  .tool-link-panel a {
    width: 100%;
    white-space: normal;
  }

  .account-dashboard-grid,
  .admin-metric-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* Visible only when the public application bundle fails before initialization. */
#cnvfy-startup-error:not([hidden]),
#fmtio-startup-error:not([hidden]) {
  position: relative;
  z-index: 1000;
  padding: 12px 20px;
  background: #fff4e5;
  border-bottom: 1px solid #f1c27d;
  color: #6b3d00;
  font-weight: 700;
  text-align: center;
}


/* ==========================================================================
   ENHANCED UI: POPULAR TASKS, HOME FILE STARTER, CONVERTER FINDER & GENERATORS
   ========================================================================== */

/* Category Popular Tasks Section */
.category-top-tasks {
  margin: 32px 0 40px !important;
  padding: 28px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

.category-top-tasks-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.category-top-tasks-head h2 {
  font-size: 1.45rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 4px 0 0 !important;
  letter-spacing: -0.015em !important;
}

.category-task-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 14px !important;
}

.category-task-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: var(--transition-smooth) !important;
}

.category-task-link:hover {
  transform: translateY(-3px) !important;
  background: #ffffff !important;
  border-color: color-mix(in srgb, var(--accent, #4f46e5) 50%, #e2e8f0) !important;
  box-shadow: 0 10px 22px -4px rgba(15, 23, 42, 0.08) !important;
}

.task-link-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--accent, #4f46e5) 12%, #ffffff) !important;
  color: var(--accent, #4f46e5) !important;
  flex-shrink: 0 !important;
  transition: var(--transition-smooth) !important;
}

.category-task-link:hover .task-link-icon {
  transform: scale(1.1) !important;
  background: var(--accent, #4f46e5) !important;
  color: #ffffff !important;
}

.task-link-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.task-link-text strong {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.task-link-text small {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: 0.02em !important;
}

/* Home Search Floating Autocomplete */
.home-search-suggestions {
  position: absolute !important;
  z-index: 100 !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(680px, calc(100% - 32px)) !important;
  margin-top: 8px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 40px -6px rgba(15, 23, 42, 0.15) !important;
  padding: 10px !important;
  display: grid !important;
  gap: 6px !important;
}

.home-search-suggestions[hidden] {
  display: none !important;
}

.home-search-suggestions a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  transition: var(--transition-smooth) !important;
}

.home-search-suggestions a:hover {
  background: #eef2ff !important;
  color: #4f46e5 !important;
}

/* Home File Starter Upload Box */
.home-file-starter {
  max-width: 680px !important;
  margin: 24px auto 0 !important;
  width: 100% !important;
}

.home-file-hidden-input,
.visually-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
}

.home-file-button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  padding: 22px 28px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 14px 35px -5px rgba(79, 70, 229, 0.4) !important;
  transition: var(--transition-smooth) !important;
  border: 2px dashed rgba(255, 255, 255, 0.4) !important;
  text-align: left !important;
}

.home-file-button:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 20px 45px -5px rgba(79, 70, 229, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.home-file-icon-box {
  display: inline-grid !important;
  place-items: center !important;
  width: 56px !important;
  height: 56px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 16px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.home-file-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.home-file-copy strong {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

.home-file-copy span {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  opacity: 0.92 !important;
}

.home-file-copy small {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
  margin-top: 2px !important;
}

/* Converter Finder Card */
.converter-finder-card {
  max-width: 680px !important;
  margin: 20px auto 0 !important;
  padding: 20px 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.06) !important;
}

.converter-finder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.finder-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  flex: 1 1 180px !important;
}

.finder-col span {
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #334155 !important;
}

.finder-col select {
  width: 100% !important;
  min-height: 46px !important;
  padding: 8px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
}

.finder-col select:focus {
  border-color: #4f46e5 !important;
  outline: 3px solid rgba(79, 70, 229, 0.15) !important;
  background: #ffffff !important;
}

.finder-flow-arrow {
  color: #6366f1 !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  padding-top: 18px !important;
}

.finder-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  margin-top: 18px !important;
  background: #10b981 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
  transition: var(--transition-smooth) !important;
}

.finder-btn:hover {
  background: #059669 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

#finder-status {
  margin: 12px 0 0 !important;
  font-size: 0.84rem !important;
  color: #334155 !important;
  text-align: center !important;
}

/* Card Icons - Clean Dual-Tone (No Red/Pink Box) */
.tool-icon,
#home-tools .tool-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--accent, #4f46e5) 12%, #f8fafc) !important;
  color: var(--accent, #4f46e5) !important;
  border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 20%, transparent) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: var(--transition-smooth) !important;
  flex-shrink: 0 !important;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) !important;
  background: color-mix(in srgb, var(--accent, #4f46e5) 22%, #ffffff) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent, #4f46e5) 25%, transparent) !important;
}

/* Generator Workbench Styling */
.generator-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 5px solid var(--accent, #6366f1) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: var(--card-shadow) !important;
}

.generator-workspace {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 36px !important;
  box-shadow: var(--card-shadow) !important;
}

.generator-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 850 !important;
  box-shadow: 0 8px 20px -3px rgba(79, 70, 229, 0.35) !important;
  transition: var(--transition-smooth) !important;
}

.generator-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px -3px rgba(79, 70, 229, 0.45) !important;
}

.generator-secondary {
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 750 !important;
  transition: var(--transition-smooth) !important;
}

.generator-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

#generator-output {
  border-radius: 14px !important;
  background: #0f172a !important;
  color: #38bdf8 !important;
  border: 1px solid #1e293b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 600px) {
  .home-file-button {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px !important;
  }
  
  .converter-finder {
    flex-direction: column !important;
  }
  
  .finder-col,
  .finder-btn {
    width: 100% !important;
  }
  
  .finder-flow-arrow {
    display: none !important;
  }
}



/* ==========================================================================
   SMART FILE DETECTION CARD & FORMAT FINDER BRIDGE
   ========================================================================== */

.home-file-starter.drag-over {
  transform: scale(1.02) !important;
}

.home-file-starter.drag-over .home-file-button {
  background: linear-gradient(135deg, #4338ca 0%, #0891b2 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.6) !important;
}

/* Detected File Result Card */
.detected-file-card {
  margin-top: 18px !important;
  padding: 24px 26px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1) !important;
  animation: detectedCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: left !important;
}

@keyframes detectedCardPop {
  0% { opacity: 0; transform: translateY(12px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.detected-file-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.detected-file-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--accent, #4f46e5) 14%, #ffffff) !important;
  color: var(--accent, #4f46e5) !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, #4f46e5) 20%, transparent) !important;
}

.detected-file-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.detected-badge-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}

.detected-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
}

.detected-size {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.detected-filename {
  display: block !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.detected-clear-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  display: inline-grid !important;
  place-items: center !important;
}

.detected-clear-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

.detected-conversions {
  margin-top: 18px !important;
}

.detected-choose-label {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #475569 !important;
  margin-bottom: 8px !important;
}

.detected-target-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.target-choice-pill {
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  color: #334155 !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
}

.target-choice-pill:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.target-choice-pill.active {
  background: color-mix(in srgb, var(--accent, #4f46e5) 12%, #ffffff) !important;
  border-color: var(--accent, #4f46e5) !important;
  color: var(--accent, #4f46e5) !important;
  font-weight: 850 !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent, #4f46e5) 25%, transparent) !important;
}

.detected-action-row {
  margin-top: 20px !important;
}

.detected-convert-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-size: 1.02rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px -3px rgba(16, 185, 129, 0.4) !important;
  transition: var(--transition-smooth) !important;
}

.detected-convert-btn:hover {
  transform: translateY(-2px) scale(1.008) !important;
  box-shadow: 0 14px 28px -3px rgba(16, 185, 129, 0.5) !important;
}

.detected-file-error {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 20px !important;
  margin-top: 14px !important;
  border-radius: 14px !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.detected-file-error div {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: left !important;
}

/* Quick Format Converter Bridge Card */
.converter-finder-card {
  max-width: 680px !important;
  margin: 22px auto 0 !important;
  padding: 24px 28px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.07) !important;
}

.converter-finder-heading {
  text-align: left !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.converter-finder-heading h3 {
  font-size: 1.15rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 2px 0 0 !important;
}

.finder-inputs-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.finder-swap-btn {
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  margin-top: 20px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #475569 !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: var(--transition-smooth) !important;
}

.finder-swap-btn:hover {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
  color: #4338ca !important;
  transform: rotate(180deg) !important;
}

.finder-status-box {
  margin-top: 14px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-align: center !important;
}

@media (max-width: 600px) {
  .finder-inputs-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .finder-swap-btn {
    margin-top: 0 !important;
  }
}

/* ========================================================
   CNVFY ULTRA-MODERN WORKSPACE & UPLOAD ENHANCEMENTS
   ======================================================== */

.drop-zone-premium {
  display: block !important;
  position: relative !important;
  border: 2.5px dashed #cbd5e1 !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  padding: 40px 24px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  margin: 16px 0 !important;
}

.drop-zone-premium:hover,
.drop-zone-premium.drag-active {
  border-color: #2563eb !important;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.14) !important;
  transform: translateY(-2px) !important;
}

.drop-zone-surface {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  pointer-events: none !important;
}

.upload-select-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 28px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  letter-spacing: -0.01em !important;
  pointer-events: auto !important;
  transition: all 0.2s ease !important;
}

.drop-zone-premium:hover .upload-select-button {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
  transform: scale(1.02) !important;
}

.drop-zone-premium .drop-label {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.drop-info-text {
  font-size: 0.82rem !important;
  color: #334155 !important;
  margin: 0 !important;
}

/* File input hidden safely */
#file-input,
.home-file-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* Universal Home Starter */
.home-file-starter {
  width: 100% !important;
  max-width: 680px !important;
  margin: 20px auto 0 !important;
}

.home-file-button {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 20px 24px !important;
  border: 2px dashed #93c5fd !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08) !important;
  transition: all 0.25s ease !important;
  text-align: left !important;
}

.home-file-button:hover {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16) !important;
  transform: translateY(-2px) !important;
}

.home-file-icon-box {
  display: grid !important;
  place-items: center !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.home-file-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.home-file-copy strong {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.home-file-copy span {
  font-size: 0.88rem !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.home-file-copy small {
  font-size: 0.76rem !important;
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* Converter Action Buttons */
.action-button-premium.primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 0 32px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.2s ease !important;
}

.action-button-premium.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-2px) !important;
}

.action-button-premium.primary:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}


/* ==========================================================================
   MODERN UI ENHANCEMENTS: Header Auth, Specs, Category, & About CNVFY
   ========================================================================== */

/* Header Auth Buttons */
.auth-button-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.auth-btn.btn-signin {
  color: var(--text-primary, #0f172a);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
}

.auth-btn.btn-signin:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(203, 213, 225, 1);
  transform: translateY(-1px);
  color: #2563eb;
}

.auth-btn.btn-signup {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.auth-btn.btn-signup:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Tool Specifications Card */
.tool-spec-card-premium {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  margin-top: 24px;
}

.tool-spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.spec-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

.spec-title-wrap h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.spec-title-wrap p {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

.spec-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}

.spec-status-pill.status-verified {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.spec-status-pill.status-draft {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.tool-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.tool-trust-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-item-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.spec-item-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.spec-item-helper {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

.tool-quality-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 18px;
  color: #0369a1;
  font-size: 13.5px;
  line-height: 1.5;
}

.quality-note-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Article Prose & Headings */
.article-prose-block {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.article-prose-block h2, .article-prose-block h3, .article-prose-block h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-prose-block h2 {
  font-size: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.article-prose-block h3 {
  font-size: 17px;
}

.article-prose-block ol, .article-prose-block ul {
  padding-left: 24px;
  margin: 12px 0 18px 0;
}

.article-prose-block li {
  margin-bottom: 8px;
}

.article-prose-block p {
  margin: 10px 0;
}

.article-prose-block blockquote {
  border-left: 4px solid #3b82f6;
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: #475569;
}

.article-prose-block code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: monospace;
  color: #2563eb;
}

/* Platform Showcase Section */
.about-platform-section {
  padding: 50px 0;
}

.platform-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.platform-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-feature-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.feature-card-icon.icon-shield { background: #eff6ff; color: #2563eb; }
.feature-card-icon.icon-bolt { background: #fefce8; color: #ca8a04; }
.feature-card-icon.icon-grid { background: #fdf2f8; color: #db2777; }
.feature-card-icon.icon-star { background: #f0fdf4; color: #16a34a; }

.platform-feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.platform-feature-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

.platform-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}


/* ==========================================================================
   POLISHED SPECIFICATIONS GRID, FAQ ACCORDION & TRUST PAGES
   ========================================================================== */

/* Polished Spec Grid */
.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.spec-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.spec-card-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.spec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spec-badge-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.spec-ext-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: monospace;
}

.spec-ext-tag.output-tag {
  background: #f0fdf4;
  color: #16a34a;
}

.spec-ext-tag.private-tag {
  background: #fefce8;
  color: #ca8a04;
}

.spec-ext-tag.speed-tag {
  background: #fdf2f8;
  color: #db2777;
}

.spec-card-val {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.spec-card-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.faq-accordion-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: #ffffff;
}

.faq-accordion-question::-webkit-details-marker {
  display: none;
}

.faq-q-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.faq-q-text {
  flex-grow: 1;
}

.faq-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-accordion-answer {
  padding: 0 22px 20px 64px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-accordion-answer p {
  margin: 0;
}

/* Trust Pages (About, Privacy, Terms, Contact, How It Works) */
.trust-page-premium {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px 20px;
}

.trust-hero-premium {
  margin-bottom: 36px;
}

.trust-hero-premium h1 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 8px 0;
}

.trust-hero-sub {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

.trust-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .trust-content-grid {
    grid-template-columns: 1fr;
  }
}

.trust-main-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.trust-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-nav-card, .trust-guarantee-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.trust-nav-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.trust-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}

.trust-nav-links a:hover, .trust-nav-links a.active {
  background: #eff6ff;
  color: #2563eb;
}

.trust-guarantee-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
}

.guarantee-icon {
  color: #60a5fa;
  margin-bottom: 12px;
}

.trust-guarantee-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
}

.trust-guarantee-card p {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* How It Works Pipeline */
.how-it-works-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.pipeline-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
}

.step-num {
  font-size: 28px;
  font-weight: 900;
  color: #cbd5e1;
  display: block;
  margin-bottom: 8px;
}

.pipeline-step h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.pipeline-step p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Contact Form */
.contact-form-premium {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}


/* =========================================================
   CNVFY UX & SEO STYLES (Drag Overlay, Copy Button, Format Hub)
   ========================================================= */

/* Drag Anywhere Fullscreen Overlay */
.drag-anywhere-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drag-anywhere-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.drag-anywhere-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px dashed #2563eb;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drag-anywhere-overlay.visible .drag-anywhere-box {
  transform: scale(1);
}

.drag-icon-pulse {
  display: inline-flex;
  padding: 20px;
  background: #eff6ff;
  border-radius: 50%;
  color: #2563eb;
  margin-bottom: 20px;
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.drag-anywhere-box h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.drag-anywhere-box p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
}

/* Outputs Wrapper & Cards */
.conversion-outputs-wrapper {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.outputs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.outputs-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #059669;
  font-weight: 700;
  font-size: 18px;
}

.output-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.output-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.output-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.output-file-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.output-filename {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.output-size {
  font-size: 13px;
  color: #64748b;
}

.output-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-output-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-output-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Image Before/After Preview */
.before-after-slider-wrap {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 400px;
}

.before-after-slider-container {
  position: relative;
  background: #0f172a;
}

.img-after {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.slider-badge-after {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Format Matrix Hub Styles */
.format-hub-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.format-hero {
  margin-bottom: 36px;
}

.format-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 8px;
}

.format-hero-sub {
  font-size: 16px;
  color: #64748b;
  max-width: 800px;
  line-height: 1.6;
}

.format-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.format-spec-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.format-spec-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.format-specs-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.spec-row {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-row .spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
}

.spec-row .spec-value {
  font-size: 14px;
  color: #0f172a;
}

.format-conversions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.format-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.matrix-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.matrix-card-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matrix-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.matrix-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}

.matrix-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.matrix-link-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(3px);
}

.matrix-link-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.matrix-link-target {
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.format-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.format-index-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.format-index-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

.format-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.format-card-tag {
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.format-card-category {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.format-index-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.format-index-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}


/* ==========================================
   HOMEPAGE DIRECT UPLOAD CONVERTER STUDIO
   ========================================== */

.home-hero-studio {
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
}

.home-hero-studio .hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.home-hero-studio h1 {
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  line-height: 1.15;
}

.hero-subtext {
  font-size: 17px;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.home-upload-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
  margin-bottom: 36px;
  text-align: left;
}

.home-dropzone {
  border: 2px dashed #3b82f6;
  background: #f8fafc;
  border-radius: 16px;
  padding: 36px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.home-dropzone:hover, .home-dropzone.dragover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.hidden-file-input {
  display: none;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.dropzone-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-text-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.dropzone-text-group p {
  font-size: 14px;
  color: #64748b;
}

.dropzone-browse-btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 6px;
}

.home-file-selected-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.selected-file-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-icon-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
}

.selected-file-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.selected-file-details strong {
  font-size: 16px;
  color: #0f172a;
}

.selected-file-details span {
  font-size: 13px;
  color: #64748b;
}

.home-convert-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.convert-to-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.target-select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
}

.convert-now-btn {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}

.remove-file-btn {
  padding: 10px 16px;
  border-radius: 8px;
}

.home-popular-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.shortcuts-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.shortcut-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.shortcut-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateY(-1px);
}


/* =========================================================
   DUAL-MODE HOMEPAGE HUB, GENERATOR STUDIO & SUMMARY CARD
   ========================================================= */

/* Dual-Mode Homepage Card */
.home-converter-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  text-align: left;
}

.hub-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.hub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.format-selector-studio {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  flex-wrap: wrap;
}

.selector-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-box label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selector-step-badge {
  background: #2563eb;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.format-dropdown {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.format-dropdown:focus {
  border-color: #2563eb;
  outline: none;
}

.selector-swap-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.selector-action {
  padding-top: 24px;
}

.open-converter-cta {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
}

/* Modern Conversion Summary Card */
.conversion-summary-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.summary-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.summary-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-card-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.summary-card-head p {
  font-size: 12px;
  color: #64748b;
}

.summary-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.summary-meta-row .meta-label {
  color: #64748b;
  font-weight: 600;
}

.summary-meta-row .meta-val {
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ext-badge-mini {
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ext-badge-mini.output-mini {
  background: #f0fdf4;
  color: #16a34a;
}

.status-green {
  color: #16a34a;
}

.pulse-dot-mini {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.summary-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Generator Interactive Studio */
.generator-studio-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.generator-studio-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.gen-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generator-studio-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.generator-studio-header p {
  font-size: 14px;
  color: #64748b;
}

.generator-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.checkbox-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.checkbox-group-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.checkbox-grid-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-grid-pills label {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.generate-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
}

.generator-result-card {
  margin-top: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #16a34a;
  font-size: 14px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-result-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 350px;
  overflow-y: auto;
}


/* Homepage Output Card */
.homepage-output-card {
  margin-top: 20px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 18px 22px;
}

.output-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.output-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-weight: 800;
  font-size: 15px;
}

.output-time-badge {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.output-files-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.output-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 10px;
}

.out-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.out-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.out-size {
  font-size: 12px;
  color: #64748b;
}


/* =========================================================
   MODERN TOOL SPECIFICATIONS & SUMMARY 2x2 CARD GRID
   ========================================================= */

.tool-meta-premium {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 0 !important;
  width: 100% !important;
  position: static !important;
  padding: 0 !important;
}

@media (max-width: 840px) {
  .tool-meta-premium {
    grid-template-columns: 1fr !important;
  }
}

.conversion-summary-card-modern,
.meta-card-premium,
.info-card-premium {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  text-align: left !important;
  min-height: auto !important;
}

.meta-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #2563eb !important;
}

.meta-card-head h3 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.spec-list-premium {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.spec-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13.5px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.spec-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.spec-k {
  color: #334155 !important;
  font-weight: 600 !important;
}

.spec-v {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.info-card-premium p {
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Footer Canonical Branding */
.footer-top-brand {
  margin-bottom: 14px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-brand-tagline {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}


/* Output Tag Badge */
.ext-tag.output-tag {
  background: #f0fdf4 !important;
  color: #16a34a !important;
}

.summary-bottom-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  color: #64748b;
}

/* Generator Runtime Styles */
.generator-app {
  width: 100%;
}

.generator-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.generator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.generator-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.generator-field span {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.generator-field input,
.generator-field select,
.generator-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}

.generator-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.generator-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f8fafc;
}

.generator-options legend {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  padding: 0 6px;
}

.generator-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.generator-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.generator-primary {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.generator-primary:hover {
  background: #1d4ed8;
}

.generator-secondary {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.generator-result {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
}

.generator-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.generator-result-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.generator-result-head div {
  display: flex;
  align-items: center;
  gap: 8px;
}

#generator-output {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 350px;
  overflow-y: auto;
}

#generator-document-preview {
  width: 100%;
  height: 400px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

#generator-status {
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
  margin-top: 10px;
}



/* =========================================================================
   SMALLPDF & ILOVEPDF INSPIRED VISUAL DESIGN SYSTEM & THUMBNAILS
   ========================================================================= */

:root {
  --brand: #4f46e5;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --brand-header-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-hover: #f8fafc;
  --card-border: #e2e8f0;
  --card-border-hover: #cbd5e1;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(79, 70, 229, 0.12);
  --card-radius: 16px;
  
  /* Category Accent Badges (Smallpdf/iLovePDF style) */
  --cat-pdf: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --cat-image: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --cat-generate: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --cat-spreadsheet: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --cat-document: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --cat-audio: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --cat-video: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --cat-data: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --cat-archive: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Overall Page Ambient Glow */
body {
  background-color: #f8fafc !important;
  background-image: 
    radial-gradient(at 15% 10%, rgba(99, 102, 241, 0.05) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(6, 182, 212, 0.05) 0px, transparent 45%),
    radial-gradient(at 50% 60%, rgba(239, 68, 68, 0.03) 0px, transparent 50%) !important;
  background-attachment: fixed !important;
  color: #1e293b !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif !important;
}

/* Header Styling (Deep Navy/Indigo Glassmorphism) */
.site-header {
  background: var(--brand-header-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}

.top-announcement-bar {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.announcement-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.announcement-link {
  text-decoration: underline;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tool & Category Cards Thumbnails (Smallpdf / iLovePDF Style) */
.tool-card,
.category-card {
  position: relative !important;
  background: var(--surface-card) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.tool-card:hover,
.category-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--card-border-hover) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

/* Color-Coded Icon Thumbnails */
.tool-card-icon,
.category-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff !important;
  font-weight: bold;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Category-specific thumbnail color themes */
.tool-card[data-category="pdf"] .tool-card-icon,
.category-card[data-category="pdf"] .category-card-icon { background: var(--cat-pdf); }

.tool-card[data-category="image"] .tool-card-icon,
.category-card[data-category="image"] .category-card-icon { background: var(--cat-image); }

.tool-card[data-category="generate"] .tool-card-icon,
.category-card[data-category="generate"] .category-card-icon { background: var(--cat-generate); }

.tool-card[data-category="spreadsheet"] .tool-card-icon,
.category-card[data-category="spreadsheet"] .category-card-icon { background: var(--cat-spreadsheet); }

.tool-card[data-category="document"] .tool-card-icon,
.category-card[data-category="document"] .category-card-icon { background: var(--cat-document); }

.tool-card[data-category="audio"] .tool-card-icon,
.category-card[data-category="audio"] .category-card-icon { background: var(--cat-audio); }

.tool-card[data-category="video"] .tool-card-icon,
.category-card[data-category="video"] .category-card-icon { background: var(--cat-video); }

.tool-card[data-category="data"] .tool-card-icon,
.category-card[data-category="data"] .category-card-icon { background: var(--cat-data); }

/* Fallback card thumbnail background */
.tool-card .tool-card-icon {
  background: var(--brand-gradient);
}

/* Dropzone & Tool Workspace Elevation */
.dropzone-premium {
  border: 2px dashed rgba(79, 70, 229, 0.3) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: var(--card-shadow) !important;
  transition: all 0.25s ease !important;
}

.dropzone-premium:hover,
.dropzone-premium.dragover {
  border-color: var(--brand) !important;
  background: rgba(79, 70, 229, 0.04) !important;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.12) !important;
}

/* Primary CTAs */
.primary-button,
.generator-primary,
.action-button-premium.primary {
  background: var(--brand-gradient) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
  transition: all 0.2s ease !important;
}

.primary-button:hover,
.generator-primary:hover,
.action-button-premium.primary:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45) !important;
  transform: translateY(-1px) !important;
}



/* =========================================================================
   VIBRANT SMALLPDF & ILOVEPDF CATEGORY & TOOL THUMBNAIL DESIGN SYSTEM
   ========================================================================= */

/* Category Grid & Cards Layout */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 24px !important;
}

.category-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--accent, #4f46e5) !important;
  box-shadow: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 0 20px -4px var(--accent, #4f46e5) !important;
}

.category-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* Category Icon Badge (Solid Vibrant Thumbnail) */
.category-icon-badge {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.2s ease !important;
}

.category-card:hover .category-icon-badge {
  transform: scale(1.08) !important;
}

.category-title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.category-title-group strong {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.category-count-badge {
  display: inline-flex !important;
  align-self: flex-start !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.category-desc-text {
  font-size: 0.94rem !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Tool Cards Grid & Thumbnails */
.tool-grid-premium,
.quick-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}

.tool-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 22px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid var(--accent, #4f46e5) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tool-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent, #4f46e5) !important;
  box-shadow: 0 18px 32px -6px rgba(15, 23, 42, 0.12) !important;
}

.tool-card-head-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.tool-icon-thumb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.tool-flow-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
}

.tool-flow-pill i {
  color: var(--accent, #4f46e5) !important;
  font-style: normal !important;
}

.tool-title-text {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.tool-desc-text {
  font-size: 0.88rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}



/* =========================================================================
   ADMIN PANEL PREMIUM DESIGN SYSTEM & METRICS STYLING
   ========================================================================= */

.admin-page {
  width: min(calc(100% - 32px), 1600px) !important;
  margin: 24px auto 64px !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

.admin-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 24px 32px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  margin-bottom: 24px !important;
}

.admin-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4f46e5 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
}

.admin-hero-copy h1 {
  margin: 0 0 6px !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
}

.admin-hero-copy p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.95rem !important;
  max-width: 720px !important;
}

.admin-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.admin-workspace {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

.admin-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  position: sticky !important;
  top: 84px !important;
}

.admin-nav-button {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
}

.admin-nav-button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.admin-nav-button.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

.admin-nav-button svg {
  flex-shrink: 0 !important;
}

.admin-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.admin-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.admin-section-header h2 {
  margin: 2px 0 4px !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.admin-section-header p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
}

.admin-metric-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.admin-metric-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 20px 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px -1px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.admin-metric-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

.admin-metric-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.admin-metric-value {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
}

.admin-metric-note {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
}

.admin-section-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
  gap: 24px !important;
}

.admin-panel-card {
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.admin-panel-card.wide {
  grid-column: 1 / -1 !important;
}

.admin-card-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #4f46e5 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.analytics-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.analytics-list li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  color: #1e293b !important;
}

.analytics-list li strong {
  color: #4f46e5 !important;
  font-weight: 800 !important;
  background: rgba(79, 70, 229, 0.1) !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
}

.serp-preview {
  padding: 16px 20px !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.serp-url {
  font-size: 0.82rem !important;
  color: #15803d !important;
  font-family: monospace !important;
}

.serp-title {
  margin: 2px 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1d4ed8 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.serp-description {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}

.blog-admin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}

.blog-editor-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 16px !important;
}

.admin-tool-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  padding: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}

.admin-tool-chip {
  display: inline-flex !important;
  flex-direction: column !important;
  padding: 8px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 0.85rem !important;
  text-align: left !important;
}

.admin-tool-chip:hover {
  border-color: #4f46e5 !important;
  background: #f4f4f5 !important;
}

.admin-tool-chip.active {
  border-color: #4f46e5 !important;
  background: #4f46e5 !important;
  color: #ffffff !important;
}

.admin-tool-chip.active small {
  color: rgba(255, 255, 255, 0.8) !important;
}


/* === 2026 COMPLETE PREMIUM REDESIGN LAYER === */

/* ==========================================================================
   REDESIGN.CSS - COMPREHENSIVE OVERRIDES FOR PDF CONVERTER
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES OVERRIDE
   -------------------------------------------------------------------------- */
:root {
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-active: #3730a3;
  --brand-glow: rgba(79, 70, 229, 0.15);
  
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --ink-lighter: #94a3b8;
  
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --background: #f7f8fa;
  
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-light: #f1f5f9;
  
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-focus: 0 0 0 3px rgba(79, 70, 229, 0.3);
  
  --card-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  --card-radius: 0.75rem;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  
  /* Category Colors */
  --cat-pdf: #ef4444;
  --cat-image: #10b981;
  --cat-generate: #4f46e5;
  --cat-spreadsheet: #f59e0b;
  --cat-document: #3b82f6;
  --cat-audio: #8b5cf6;
  --cat-video: #ec4899;
  --cat-data: #06b6d4;
  --cat-archive: #64748b;

  --cat-pdf-grad: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
  --cat-image-grad: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --cat-generate-grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --cat-spreadsheet-grad: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --cat-document-grad: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --cat-audio-grad: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --cat-video-grad: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  --cat-data-grad: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --cat-archive-grad: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

/* --------------------------------------------------------------------------
   2. GLOBAL BASE
   -------------------------------------------------------------------------- */
html body {
  background-color: var(--background);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

html body a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

html body a:hover {
  color: var(--brand-hover);
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

html body p {
  color: var(--ink-soft);
  margin-top: 0;
}

html body .app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html body .main-content {
  flex: 1 0 auto;
}

html body .section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 0.5rem;
  display: block;
}

html body .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--brand);
  white-space: nowrap;
}

html body .toast {
  background-color: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  font-weight: 500;
  animation: slideInUp var(--transition-smooth);
}

/* BUTTONS */
html body .primary-button {
  background: var(--brand);
  color: var(--surface);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

html body .primary-button:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--surface);
}

html body .secondary-button {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

html body .secondary-button:hover {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--ink-muted);
}

html body .small-button {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   3. SITE HEADER
   -------------------------------------------------------------------------- */
html body .site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-smooth);
}

html body .site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

html body .site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html body .brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

html body .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

html body .brand-copy {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

html body .top-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0 auto;
}

html body .top-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

html body .top-nav a i {
  display: none !important; /* Hide icons in nav links */
}

html body .top-nav a:hover {
  color: var(--brand);
}

html body .top-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

html body .top-nav a:hover::after {
  width: 100%;
}

html body .header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

html body .language-switcher {
  position: relative;
}

html body .language-menu {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

html body .auth-button-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

html body .auth-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

html body .btn-signin {
  color: var(--ink-soft);
  background: transparent;
}

html body .btn-signin:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

html body .btn-signup {
  color: var(--surface);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

html body .btn-signup:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

html body .top-announcement-bar {
  background: var(--brand-gradient);
  color: var(--surface);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. HOMEPAGE HERO
   -------------------------------------------------------------------------- */
html body .home-hero-studio {
  background-color: var(--surface);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

html body .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

html body .hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

html body .hero-subtext {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

html body .search-box-home {
  max-width: 640px;
  width: 100%;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 4px 18px;
  min-height: 56px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html body .search-box-home:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

html body .search-box-home .icon {
  color: #64748b;
  margin-right: 12px;
  flex-shrink: 0;
}

html body .search-box-home input {
  flex: 1;
  width: auto;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 12px 6px !important;
  font-size: 1.05rem;
  color: #0f172a;
  box-shadow: none !important;
}

html body .search-box-home input::placeholder {
  color: #94a3b8;
}

html body .search-box-home .clear-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-left: 8px;
}

html body .search-box-home .clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html body .stat-pills {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

html body .stat-pills .badge {
  background: var(--surface-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

html body .home-converter-hub-card {
  max-width: 900px;
  margin: -3rem auto 3rem;
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
  z-index: 10;
}

html body .hub-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  gap: 1rem;
  overflow-x: auto;
}

html body .hub-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

html body .hub-tab-btn:hover {
  color: var(--ink);
}

html body .hub-tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

html body .format-selector-studio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

html body .selector-box {
  flex: 1;
  position: relative;
}

html body .format-dropdown {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition-fast);
}

html body .format-dropdown:focus {
  outline: none;
  border-color: var(--brand);
}

html body .home-upload-card, html body .home-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--card-radius);
  background: var(--surface-alt);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

html body .home-dropzone:hover {
  border-color: var(--brand);
  background: var(--brand-glow);
}

html body .dropzone-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

html body .dropzone-inner p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

html body .notice-strip {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  padding: 0.75rem;
  text-align: center;
  font-weight: 500;
  border-radius: var(--radius);
  margin: 1.5rem auto 0;
  max-width: 600px;
}

html body .home-quick-actions, html body .instant-tools, html body .home-file-starter {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   5. TOOL CARDS
   -------------------------------------------------------------------------- */
html body #home-tools {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

html body .tool-grid, html body .quick-grid, html body .tool-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

html body .tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Left colored accent bar on tool cards */
html body .tool-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transition: width var(--transition-fast);
}

/* Category Specific Accent Colors */
html body .tool-card[data-category="pdf"]::before { background: var(--cat-pdf); }
html body .tool-card[data-category="image"]::before { background: var(--cat-image); }
html body .tool-card[data-category="generate"]::before { background: var(--cat-generate); }
html body .tool-card[data-category="spreadsheet"]::before { background: var(--cat-spreadsheet); }
html body .tool-card[data-category="document"]::before { background: var(--cat-document); }
html body .tool-card[data-category="audio"]::before { background: var(--cat-audio); }
html body .tool-card[data-category="video"]::before { background: var(--cat-video); }

html body .tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--line-strong);
}

html body .tool-card:hover::before {
  width: 4px;
}

html body .tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface-alt);
  color: var(--brand);
}

/* Tool card title */
html body .tool-card strong, html body .tool-card-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: block;
}

/* Tool card description */
html body .tool-card small, html body .tool-card-body p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

html body .tool-card-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

html body .tool-card-flow b {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
}

html body .tool-card-flow i {
  color: var(--line-strong);
  font-size: 0.75rem;
}

html body .tool-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html body .capability-chip {
  font-size: 0.75rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

html body .favorite-mark {
  color: var(--ink-lighter);
  transition: color var(--transition-fast);
}

html body .favorite-mark:hover, html body .favorite-mark.active {
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   6. CATEGORY PAGES
   -------------------------------------------------------------------------- */
html body .premium-category-banner {
  background: var(--ink);
  color: var(--surface);
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

/* Base style for category banners */
html body .premium-category-banner.cat-pdf { background: var(--cat-pdf-grad); }
html body .premium-category-banner.cat-image { background: var(--cat-image-grad); }
html body .premium-category-banner.cat-generate { background: var(--cat-generate-grad); }
html body .premium-category-banner.cat-spreadsheet { background: var(--cat-spreadsheet-grad); }
html body .premium-category-banner.cat-document { background: var(--cat-document-grad); }

html body .banner-glass {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

html body .banner-content {
  max-width: 600px;
}

html body .banner-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}

html body .banner-content h1 {
  font-size: 3rem;
  color: var(--surface);
  margin-bottom: 1rem;
}

html body .banner-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

html body .banner-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

html body .banner-tags span {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

html body .banner-stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 2rem;
}

html body .banner-stats-card .stat {
  display: flex;
  flex-direction: column;
}

html body .banner-stats-card .stat-val {
  font-size: 1.5rem;
  font-weight: 700;
}

html body .banner-stats-card .stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

html body .directory-toolbar {
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 64px;
  z-index: 90;
}

html body .category-filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

html body .category-filter-chips button {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

html body .category-filter-chips button:hover, html body .category-filter-chips button.active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

html body .search-box-premium {
  position: relative;
  width: 300px;
}

html body .search-box-premium input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

html body .search-box-premium::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

html body .category-grid {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

html body .category-card {
  /* Inherits from tool-card mostly, just specialized container */
}

html body .category-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

html body .page-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

html body .page-button:hover, html body .page-button.active {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   7. TOOL/CONVERTER PAGES
   -------------------------------------------------------------------------- */
html body .premium-tool-banner {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

html body .breadcrumb-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

html body .breadcrumb-premium a {
  color: var(--ink-soft);
}

html body .breadcrumb-premium a:hover {
  color: var(--brand);
}

html body .tool-banner-left h1 {
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

html body .tool-banner-left p {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

html body .converter-layout-premium {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

html body .converter-panel-premium {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

html body .panel-head-premium {
  background: var(--surface-alt);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html body .panel-head-premium h2 {
  font-size: 1.125rem;
  margin: 0;
}

/* THE STAR: The Upload Drop Zone */
html body .drop-zone-premium {
  padding: 4rem 2rem;
  background: var(--surface);
}

html body .drop-zone-surface {
  border: 3px dashed var(--brand);
  border-radius: var(--radius-lg);
  background: rgba(79, 70, 229, 0.03);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

html body .drop-zone-surface:hover, html body .drop-zone-surface.dragover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--brand-hover);
  transform: scale(1.01);
}

html body .drop-icon-container {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--brand);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

html body .upload-select-button {
  background: var(--brand);
  color: var(--surface);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  margin-bottom: 1rem;
}

html body .upload-select-button:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

html body .drop-label {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* File list after upload */
html body .selected-files-panel {
  padding: 2rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

html body .file-list-premium {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html body .file-list-row {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

html body .action-footer-premium {
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

html body .action-button-premium {
  /* Big green convert button */
  background: #10b981;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

html body .action-button-premium:hover {
  background: #059669;
  box-shadow: var(--shadow-md);
}

/* Outputs */
html body .conversion-outputs-wrapper {
  margin-top: 2rem;
}

html body .output-item-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #10b981;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html body .download-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Tool Metadata / FAQ */
html body .tool-meta-premium, html body .tool-knowledge-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

html body .faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html body .faq-accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

html body .faq-accordion-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

html body .faq-accordion-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-soft);
  display: none;
}

html body .faq-accordion-item[open] .faq-accordion-answer,
html body .faq-accordion-item.active .faq-accordion-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   8. AUTH PAGES
   -------------------------------------------------------------------------- */
html body .auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  background: var(--surface-alt);
  padding: 2rem 1.5rem;
}

html body .auth-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.1));
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
}

html body .auth-copy h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

html body .auth-copy p {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

html body .auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

html body .auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
}

html body .auth-tabs a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

html body .form-field {
  margin-bottom: 1.5rem;
}

html body .form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

html body .form-field input, 
html body .form-field select, 
html body .form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

html body .form-field input:focus, 
html body .form-field select:focus, 
html body .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}

html body .auth-form .primary-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   9. ACCOUNT PAGE
   -------------------------------------------------------------------------- */
html body .account-page {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

html body .account-hero {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

html body .empty-account-panel {
  background: var(--surface-alt);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line-strong);
}

/* --------------------------------------------------------------------------
   10. BLOG PAGES
   -------------------------------------------------------------------------- */
html body .article-prose-block {
  max-width: 768px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

html body .article-prose-block h2, 
html body .article-prose-block h3 {
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

html body .article-prose-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
html body .site-footer {
  background-color: #0f172a; /* Dark footer as requested */
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

html body .site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

html body .footer-top-brand {
  max-width: 300px;
}

html body .footer-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

html body .footer-brand-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
}

html body .footer-links h4 {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

html body .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

html body .footer-links li {
  margin-bottom: 0.75rem;
}

html body .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

html body .footer-links a:hover {
  color: white;
}

html body .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

html body .footer-socials {
  display: flex;
  gap: 1rem;
}

html body .social-link-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

html body .social-link-pill:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  html body .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  html body .hero-content h1 {
    font-size: 3rem;
  }
  
  html body .banner-glass {
    flex-direction: column;
    text-align: center;
  }
  
  html body .banner-tags {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html body .site-header-inner {
    flex-wrap: wrap;
  }
  
  html body .top-nav {
    display: none; /* In a real app, you'd add a hamburger menu */
  }
  
  html body .hero-content h1 {
    font-size: 2.5rem;
  }
  
  html body .search-box-home input {
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1rem;
  }
  
  html body .hub-tabs-nav {
    padding-bottom: 0.5rem;
  }
  
  html body .tool-grid, html body .quick-grid {
    grid-template-columns: 1fr;
  }
  
  html body .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  html body .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  html body .drop-zone-premium {
    padding: 2rem 1rem;
  }
  
  html body .drop-zone-surface {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  html body .hero-content h1 {
    font-size: 2rem;
  }
  
  html body .stat-pills {
    flex-direction: column;
    align-items: center;
  }
  
  html body .auth-form {
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   13. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseBrand {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

html body .main-content {
  animation: fadeIn 0.5s ease-out;
}

html body .upload-select-button {
  animation: pulseBrand 2s infinite;
}

/* End of redesign.css */

/* --------------------------------------------------------------------------
   14. ILOVEPDF-STYLE HORIZONTAL CATEGORY PILLS & TOOL CARDS
   -------------------------------------------------------------------------- */
.ilovepdf-section {
  padding-top: 40px !important;
  margin-top: 0 !important;
}

.category-pills-bar-wrapper {
  width: 100%;
  margin: 0 0 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-pills-bar-wrapper::-webkit-scrollbar {
  display: none;
}

.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  min-width: max-content;
}

.category-pill {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.category-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tools-grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.tools-grid-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.tools-grid-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.ilovepdf-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1200px) {
  .ilovepdf-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .ilovepdf-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ilovepdf-tools-grid {
    grid-template-columns: 1fr;
  }
}

.ilovepdf-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ilovepdf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08), 0 0 0 1px #e2e8f0;
  border-color: #cbd5e1;
}

.ilovepdf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ilovepdf-badge-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.ilovepdf-card:hover .ilovepdf-badge-wrap {
  transform: scale(1.08);
}

.card-fav-star {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.card-fav-star:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.card-fav-star.active {
  color: #f59e0b;
}

.ilovepdf-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.ilovepdf-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ilovepdf-card-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px solid #f8fafc;
}

.card-flow-badge {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.card-flow-badge.highlight {
  background: #e0e7ff;
  color: #4338ca;
}

.card-flow-arrow {
  color: #94a3b8;
  font-size: 0.9rem;
}

.category-more-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
}

.category-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.category-more-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

/* --------------------------------------------------------------------------
   15. SLEEK COMPACT FOOTER
   -------------------------------------------------------------------------- */
.footer-inner-compact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-brand-compact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-compact .footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-brand-badge {
  font-size: 0.725rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.footer-nav-compact {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer-nav-compact a {
  color: #94a3b8 !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  min-height: unset !important;
  padding: 4px 6px;
}

.footer-nav-compact a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-dot {
  color: #475569;
  font-size: 0.75rem;
  user-select: none;
}

.footer-actions-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-lang-wrapper {
  position: relative;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.825rem;
  font-weight: 500;
  list-style: none;
  transition: all 0.15s ease;
  user-select: none;
}

.footer-lang-btn::-webkit-details-marker {
  display: none;
}

.footer-lang-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

.footer-lang-btn .icon {
  width: 15px;
  height: 15px;
  color: #38bdf8;
}

.footer-lang-caret {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-lang-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  width: min(520px, 92vw);
  z-index: 100;
  max-height: 340px;
  overflow-y: auto;
}

.footer-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 540px) {
  .footer-lang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.footer-lang-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.footer-lang-item.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.footer-lang-check {
  font-size: 0.75rem;
  color: #93c5fd;
}

.footer-socials-compact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-socials-compact .social-link-pill.social-icon-only {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #1e293b !important;
  color: #94a3b8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  border: 1px solid #334155 !important;
  transition: all 0.15s ease;
}

.footer-socials-compact .social-link-pill:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
  transform: translateY(-1px);
}

.footer-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #64748b;
}

.footer-sub-row p {
  margin: 0;
}

.footer-note-sub {
  color: #475569;
}

@media (max-width: 768px) {
  .footer-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-sub-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-lang-menu {
    right: auto;
    left: 0;
  }
}



/* --------------------------------------------------------------------------
   16. ILOVEPDF HEADER, MEGA-MENU, THUMBNAIL BADGES & FOOTER LANG FIX
   -------------------------------------------------------------------------- */
body, html body {
  background-color: #f4f6fa !important;
  background-image: 
    radial-gradient(at 15% 10%, rgba(99, 102, 241, 0.05) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(239, 68, 68, 0.04) 0px, transparent 45%),
    radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 70%) !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif !important;
}

/* Header Styling (Clean White Header matching ilovepdf.com) */
.site-header,
html body .site-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: 64px !important;
}

html body .brand-copy strong {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
html body .brand-copy small {
  color: #64748b !important;
  font-weight: 500 !important;
}

.top-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 64px !important;
  margin: 0 auto !important;
}

/* Nav item dropdown on HOVER */
.nav-item-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 64px !important;
}

.nav-main-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 14px !important;
  color: #334155 !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.nav-main-link:hover,
.nav-item-dropdown:hover .nav-main-link {
  color: #e11d48 !important;
  background: #f8fafc !important;
}

.nav-caret {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  transition: transform 0.2s ease !important;
}

.nav-item-dropdown:hover .nav-caret {
  transform: rotate(180deg) !important;
  color: #e11d48 !important;
}

/* Mega menu container on hover */
.nav-mega-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(4px) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 22px 24px !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  gap: 28px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10000 !important;
  min-width: 480px !important;
}

/* Invisible hover bridge */
.nav-mega-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -12px !important;
  left: 0 !important;
  right: 0 !important;
  height: 14px !important;
}

.nav-item-dropdown:hover .nav-mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.mega-menu-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 175px !important;
}

.mega-col-title {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.mega-tool-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.mega-tool-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  transform: translateX(2px) !important;
}

.mega-mini-badge {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}
.mega-mini-badge.bg-red { background: #e5322d !important; }
.mega-mini-badge.bg-amber { background: #f59e0b !important; }
.mega-mini-badge.bg-word { background: #2b579a !important; }
.mega-mini-badge.bg-excel { background: #107c41 !important; }
.mega-mini-badge.bg-ppt { background: #d83b01 !important; }
.mega-mini-badge.bg-green { background: #00b06f !important; }
.mega-mini-badge.bg-purple { background: #8b5cf6 !important; }
.mega-mini-badge.bg-pink { background: #ec4899 !important; }
.mega-mini-badge.bg-blue { background: #3b82f6 !important; }

/* Auth Links (Sign in & Red Sign up) */
.auth-link:not(.primary) {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.925rem !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: color 0.15s !important;
}
.auth-link:not(.primary):hover {
  color: #0f172a !important;
  background: #f8fafc !important;
}
.auth-link.primary {
  background: #e11d48 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.925rem !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25) !important;
  transition: all 0.2s ease !important;
}
.auth-link.primary:hover {
  background: #be123c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
}

/* iLovePDF-style Thumbnail Badge */
.ilovepdf-thumb-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ilovepdf-card:hover .ilovepdf-thumb-badge {
  transform: scale(1.08) !important;
}

/* iLovePDF Tool Card */
.ilovepdf-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 14px !important;
  padding: 24px 20px !important;
  text-decoration: none !important;
  color: inherit !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ilovepdf-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.09), 0 0 0 1px #cbd5e1 !important;
  border-color: #cbd5e1 !important;
}
.ilovepdf-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 12px 0 6px 0 !important;
  line-height: 1.3 !important;
}
.ilovepdf-card-desc {
  font-size: 0.875rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  flex-grow: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Footer & Language Selector Fix */
.site-footer,
html body .site-footer {
  overflow: visible !important;
  position: relative !important;
  z-index: 10 !important;
}
.footer-inner-compact,
.footer-main-row,
.footer-actions-compact {
  overflow: visible !important;
  position: relative !important;
}
.footer-lang-wrapper {
  position: relative !important;
  overflow: visible !important;
  z-index: 50 !important;
}
.footer-lang-details {
  position: relative !important;
  overflow: visible !important;
}
.footer-lang-menu {
  position: absolute !important;
  bottom: calc(100% + 12px) !important;
  left: 0 !important;
  right: auto !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
  width: min(540px, 94vw) !important;
  z-index: 99999 !important;
  max-height: 360px !important;
  overflow-y: auto !important;
}
.footer-lang-details:not([open]) .footer-lang-menu {
  display: none !important;
}
.footer-lang-details[open] .footer-lang-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* --------------------------------------------------------------------------
   17. ROBUST HEADER HOVER DROPDOWN & CATEGORY PILLS WRAP FIX
   -------------------------------------------------------------------------- */
.site-header,
html body .site-header {
  overflow: visible !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: 64px !important;
  background: #ffffff !important;
}

.site-header-inner,
html body .site-header-inner {
  overflow: visible !important;
  height: 100% !important;
}

.top-nav,
html body .top-nav {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Nav Item Dropdown */
.nav-item-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 64px !important;
  overflow: visible !important;
}

.nav-main-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 14px !important;
  color: #334155 !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.nav-main-link:hover,
.nav-item-dropdown:hover .nav-main-link {
  color: #e11d48 !important;
  background: #f8fafc !important;
}

.nav-caret {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  transition: transform 0.2s ease !important;
}

.nav-item-dropdown:hover .nav-caret {
  transform: rotate(180deg) !important;
  color: #e11d48 !important;
}

/* Sleek Floating Dropdown on Hover */
.nav-item-dropdown .nav-mega-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
  z-index: 999999 !important;
  min-width: 250px !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Seamless hover bridge so mouse moving from link to menu never loses hover */
.nav-item-dropdown .nav-mega-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -14px !important;
  left: 0 !important;
  right: 0 !important;
  height: 16px !important;
}

/* Activate on hover or focus */
.nav-item-dropdown:hover .nav-mega-menu,
.nav-item-dropdown:focus-within .nav-mega-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.mega-menu-header-label {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 4px 10px 8px 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 4px !important;
}

.mega-tool-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.mega-tool-item:hover {
  background: #f1f5f9 !important;
  color: #e11d48 !important;
  transform: translateX(3px) !important;
}

.mega-mini-badge {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

/* Fix Horizontal Category Pills - Wrap and Center so Audio/Video is never cut off */
.category-pills-bar-wrapper {
  width: 100% !important;
  margin: 0 0 28px 0 !important;
  display: flex !important;
  justify-content: center !important;
  overflow: visible !important;
}

.category-pills-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 8px !important;
  padding: 4px 8px !important;
  max-width: 1200px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.category-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 8px 18px !important;
  font-size: 0.925rem !important;
}


/* --------------------------------------------------------------------------
   18. PREMIUM TYPOGRAPHY, MODERN PALETTE & HERO CONVERTER BOX UPGRADE
   -------------------------------------------------------------------------- */
* {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif !important;
}

body, html body {
  background-color: #f8fafc !important;
  background-image: 
    radial-gradient(at 10% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 0%, rgba(225, 29, 72, 0.03) 0px, transparent 50%),
    radial-gradient(at 50% 30%, #ffffff 0%, #f1f5f9 100%) !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
}

/* Hero Section Spacing & Typography */
.home-hero-studio,
html body .home-hero-studio {
  padding: 56px 20px 48px !important;
  background: transparent !important;
  border-bottom: 1px solid #eef2f6 !important;
  text-align: center !important;
}

.home-hero-studio .hero-content,
html body .hero-content {
  max-width: 960px !important;
  margin: 0 auto !important;
}

.hero-content .badge,
.home-hero-studio .badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.03em !important;
  padding: 6px 18px !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
  margin-bottom: 18px !important;
}

.home-hero-studio h1,
html body .hero-content h1 {
  font-size: 3.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.035em !important;
  line-height: 1.14 !important;
  margin: 0 auto 16px auto !important;
  max-width: 820px !important;
}

.hero-subtext,
html body .hero-subtext {
  font-size: 1.15rem !important;
  color: #64748b !important;
  max-width: 660px !important;
  margin: 0 auto 36px auto !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
}

/* Premium Dual-Mode Converter Hub Card */
.home-converter-hub-card,
html body .home-converter-hub-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
  margin: 0 auto 36px auto !important;
  text-align: left !important;
  max-width: 900px !important;
}

/* Tabs: Sleek Segmented Switch */
.hub-tabs-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 5px !important;
  margin-bottom: 24px !important;
}

.hub-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hub-tab-btn:hover {
  color: #0f172a !important;
}

.hub-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3) !important;
}

/* Format Selector Studio Box */
.format-selector-studio {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 24px !important;
  flex-wrap: wrap !important;
}

.selector-box {
  flex: 1 !important;
  min-width: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.selector-box:focus-within,
.selector-box:hover {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.selector-box label {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.selector-step-badge {
  background: #eff6ff !important;
  color: #2563eb !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.format-dropdown {
  width: 100% !important;
  padding: 6px 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
}

.selector-swap-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1.5px solid #bfdbfe !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.selector-swap-icon:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  transform: scale(1.08) rotate(180deg) !important;
}

/* Open Converter CTA Button */
.open-converter-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.025rem !important;
  padding: 16px 32px !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.open-converter-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

/* Popular Shortcuts Row */
.home-converter-hub-card .hero-shortcuts {
  margin-top: 24px !important;
}

.shortcut-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.shortcut-pill:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15) !important;
}

/* Dropzone styling upgrade */
.home-dropzone {
  border: 2px dashed #93c5fd !important;
  background: #f8fafc !important;
  border-radius: 20px !important;
  padding: 44px 28px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.home-dropzone:hover,
.home-dropzone.dragover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px) !important;
}

.dropzone-icon-wrap {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
}

.dropzone-browse-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  border: none !important;
  margin-top: 18px !important;
}


/* --------------------------------------------------------------------------
   19. BALANCED FONT SIZES & BEAUTIFUL LIVE SEARCH RESULTS DROPDOWN
   -------------------------------------------------------------------------- */
/* Moderate Font Sizes */
.home-hero-studio h1,
html body .hero-content h1 {
  font-size: 2.35rem !important; /* well balanced */
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.03em !important;
  line-height: 1.18 !important;
  margin: 0 auto 12px auto !important;
  max-width: 760px !important;
}

.hero-subtext,
html body .hero-subtext {
  font-size: 1.05rem !important;
  color: #64748b !important;
  max-width: 620px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.55 !important;
}

.format-dropdown {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.format-dropdown option {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  color: #1e293b !important;
  background: #ffffff !important;
}

.selector-box label {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

/* Beautiful Floating Search Results Dropdown */
.search-box-home {
  position: relative !important;
}

.search-results-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
  z-index: 99999 !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  text-align: left !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.search-dropdown-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 12px 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.06em !important;
}

.search-dropdown-header small {
  font-size: 0.72rem !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
}

.search-dropdown-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 6px 0 !important;
}

.search-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  transition: all 0.15s ease !important;
}

.search-dropdown-item:hover {
  background: #f8fafc !important;
  transform: translateX(3px) !important;
}

.search-dropdown-thumb {
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.search-dropdown-thumb .ilovepdf-thumb-badge {
  width: 38px !important;
  height: 38px !important;
}
.search-dropdown-thumb svg {
  width: 38px !important;
  height: 38px !important;
}

.search-dropdown-info {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
}

.search-dropdown-title {
  font-size: 0.925rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.search-dropdown-meta {
  font-size: 0.75rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.search-dropdown-action {
  color: #94a3b8 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.search-dropdown-item:hover .search-dropdown-action {
  color: #2563eb !important;
  transform: translateX(2px) !important;
}

.search-dropdown-footer {
  padding: 8px 12px 4px !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  text-align: center !important;
}

.search-dropdown-empty {
  padding: 24px 16px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
}
