/* FilesConverts — Design System */
:root {
  --header-h: 64px;
  --bg: #FAFAF7;
  --bg-soft: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #2A2D35;
  --muted: #6B6F7A;
  --muted-2: #9CA0AC;
  --line: #E8E5DC;
  --line-2: #EFEDE6;
  --primary: #2D2DD6;
  --primary-hover: #1F1FB8;
  --primary-soft: #EDEDFF;
  --accent-pdf: #FF5A4E;
  --accent-img: #14B86E;
  --accent-aud: #F2A81E;
  --accent-vid: #8B5CF6;
  --accent-data: #1F86F0;
  --accent-code: #0EA5E9;
  --accent-color: #EC4899;
  --accent-mark: #6366F1;
  --accent-money: #10B981;
  --accent-unit: #A855F7;
  --shadow-sm: 0 1px 2px rgba(15,17,21,0.04);
  --shadow-md: 0 4px 16px rgba(15,17,21,0.06);
  --shadow-lg: 0 24px 64px rgba(15,17,21,0.10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}
html { overflow-x: clip; }
body { position: relative; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
.serif { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ===== Top Banner ===== */
.banner {
  background: var(--ink);
  color: #DCDDE3;
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.banner b { color: #fff; font-weight: 600; }
.banner .dot { color: #4ade80; margin: 0 10px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s;
}
.header.scrolled {
  background: rgba(250,250,247,0.95);
  box-shadow: 0 6px 24px -16px rgba(15,17,21,0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Nunito', 'Inter', sans-serif; font-weight: 800;
  font-size: 20px; color: #1a2a5e;
  letter-spacing: 0;
  position: relative;
}
.logo img {
  width: 32px; height: 32px; object-fit: contain;
  transition: transform .4s cubic-bezier(.2,.7,.4,1);
}
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo span b { font-weight: 800; color: #1a2a5e; }
.logo span i { font-style: normal; color: #2563eb; }

.nav { display: flex; align-items: center; gap: 2px; position: relative; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile nav drawer */
#mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
}
#mobile-nav.open { display: flex; justify-content: flex-end; }
.mnav-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,17,21,0.45);
  backdrop-filter: blur(2px);
}
.mnav-panel {
  position: relative; width: min(300px, 85vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  padding: 24px 20px; gap: 2px;
  height: 100%; overflow-y: auto;
  box-shadow: -8px 0 40px rgba(15,17,21,0.14);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
}
#mobile-nav.open .mnav-panel { transform: translateX(0); }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#mnav-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.mnav-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mnav-links a {
  padding: 12px 16px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  transition: background .12s;
}
.mnav-links a:hover { background: var(--bg-soft); }
.mnav-cta {
  margin-top: 20px; width: 100%;
  justify-content: center; border-radius: 14px !important;
  padding: 14px !important; font-size: 15px !important;
}
.mnav-signin {
  justify-content: center; border-radius: 14px !important;
  padding: 14px !important; font-size: 15px !important;
}
.mnav-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--bg-soft);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; order: 99; flex-shrink: 0; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 600px) {
  .header-cta .btn-primary { display: none; }
  .auth-user-name { display: none; }
  .auth-user-pill { padding: 0 !important; max-width: none; background: transparent; border: none; box-shadow: none; }
  .banner { font-size: 10px; padding: 7px 8px; letter-spacing: 0; }
  .search-wrap { padding: 5px; }
  .search-wrap .kbd { display: none; }
  .search-wrap input { font-size: 15px; padding: 10px 4px; }
}
.nav-item {
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  transition: color .15s, background .15s;
}
.nav-item .nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.5; flex-shrink: 0;
}
.nav-item:hover {
  background: var(--ink); color: #fff;
}
.nav-item svg { width: 14px; height: 14px; opacity: 0.55; transition: transform .2s; }
.nav-item:hover svg { transform: rotate(180deg); opacity: 1; }

/* (consolidated header styles above) */

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { background: var(--primary); }
.btn-light {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.btn-light:hover { border-color: var(--ink); }

/* ===== Hero ===== */
.hero {
  padding: 88px 0 56px;
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-eyebrow .pill {
  background: #ECFDF3; color: #0F7B41; padding: 3px 10px;
  border-radius: 999px; font-weight: 600; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 .inline-logo {
  height: 0.85em; width: auto;
  display: inline-block; vertical-align: -0.12em;
  margin: 0 0.05em;
}
.hero-sub {
  font-size: 19px; color: var(--muted); max-width: 52ch;
  line-height: 1.5; margin-bottom: 36px;
}

/* Search */
.search-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  transition: all .2s;
}
.search-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 6px rgba(15,17,21,0.05), var(--shadow-md);
}
.search-wrap svg { width: 22px; height: 22px; color: var(--muted); margin-left: 14px; flex-shrink: 0; }
.search-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 17px; padding: 14px 4px; color: var(--ink);
}
.search-wrap input::placeholder { color: var(--muted-2); }
.search-wrap .kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.search-wrap button.go {
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 14px;
  font-weight: 500; font-size: 14px;
}
.search-wrap button.go:hover { background: var(--primary); }

/* Search autocomplete */
.search-ac-outer {
  position: relative;
  max-width: 720px;
  width: 100%;
}
.search-ac-outer .search-wrap { max-width: none; }

.search-ac {
  position: fixed; /* bypasses any parent overflow:hidden */
  /* top / left / width set by JS */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px -12px rgba(15,17,21,0.14);
  overflow: hidden;
  z-index: 9999;
}

/* 2-column grid */
.search-ac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 8px;
}
.search-ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .1s;
  min-width: 0;
}
.search-ac-item:hover,
.search-ac-item.ac-active { background: var(--bg-soft); }
.search-ac-glyph {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 8px; font-weight: 800; letter-spacing: 0.03em;
  flex-shrink: 0;
}
.search-ac-body { min-width: 0; flex: 1; overflow: hidden; }
.search-ac-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-ac-name mark { background: none; color: var(--primary); font-weight: 700; }
.search-ac-desc {
  font-size: 11px; color: var(--muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Footer with count + prev/next nav */
.search-ac-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line-2);
}
.search-ac-count { font-size: 11px; color: var(--muted-2); }
.search-ac-nav { display: flex; align-items: center; gap: 6px; }
.search-ac-arrow {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line);
  font-size: 17px; line-height: 1; color: var(--muted);
  background: var(--surface); cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.search-ac-arrow:hover:not(:disabled) {
  border-color: var(--ink); color: var(--ink); background: var(--bg-soft);
}
.search-ac-arrow:disabled { opacity: 0.28; cursor: not-allowed; }
.search-ac-pageinfo {
  font-size: 12px; font-weight: 500; color: var(--muted);
  min-width: 38px; text-align: center;
}

.search-ac-empty {
  padding: 22px 20px; text-align: center;
  font-size: 14px; color: var(--muted);
}

/* Quick chips under search */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.chips-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip {
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Hero popular mini pills */
.hero-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  max-width: 720px;
}
.hero-pop-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.hero-pop-pill:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.hero-pop-pill .glyph-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 8px;
}

/* Trust row */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.025em;
}
.trust-num em { font-style: normal; color: var(--primary); font-weight: 600; }
.trust-label { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* Hero side visual — product preview */
.hero-art {
  position: absolute;
  right: 0; top: 0;
  width: 440px; height: 460px;
  pointer-events: none;
  display: none;
}
@media (min-width: 1100px) { .hero-art { display: block; } }
.hero-visual { position: relative; width: 100%; height: 100%; }

/* Live activity badge */
.hv-live {
  position: absolute; top: 14px; right: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-2); font-weight: 500;
  box-shadow: 0 2px 10px rgba(15,17,21,0.08);
  animation: hv-float 5s 2s ease-in-out infinite;
}
.hv-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0D9F6F;
  animation: hv-pulse 2s ease-in-out infinite;
}

/* Main card wrapper (float isolated from position transform) */
.hv-card-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-46%, -46%);
}
.hv-card {
  width: 290px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 28px 56px -12px rgba(15,17,21,0.16), 0 0 0 1px rgba(255,255,255,0.5);
  animation: hv-float 4.5s ease-in-out infinite;
}
.hv-card-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.hv-dot-r, .hv-dot-y, .hv-dot-g { width: 10px; height: 10px; border-radius: 50%; }
.hv-dot-r { background: #FF5A4E; }
.hv-dot-y { background: #F59E0B; }
.hv-dot-g { background: #0D9F6F; }
.hv-card-title { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.hv-drop-zone {
  padding: 28px 20px 16px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.hv-drop-icon {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border: 2px dashed var(--line); border-radius: 14px;
  display: grid; place-items: center; color: var(--muted);
  background: var(--bg-soft);
}
.hv-drop-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hv-drop-sub { font-size: 11px; color: var(--muted); }
.hv-type-grid {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 12px 16px; justify-content: center;
}
.hv-type {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px; border-radius: 6px;
}
.hv-t-pdf { background: #FFF0EF; color: #FF5A4E; }
.hv-t-doc { background: #EEF5FF; color: #1F86F0; }
.hv-t-img { background: #EEFBF5; color: #0D9F6F; }
.hv-t-vid { background: #F4F0FF; color: #8B5CF6; }
.hv-t-aud { background: #FFF8EC; color: #F59E0B; }
.hv-t-arc { background: #F0F8FF; color: #0E7FB5; }

/* Toast notification cards */
.hv-toast {
  position: absolute;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px -6px rgba(15,17,21,0.12);
  width: 230px;
}
.hv-toast-a { top: 50px; left: 4px; animation: hv-float 5s 0.4s ease-in-out infinite; }
.hv-toast-b { bottom: 80px; right: 4px; animation: hv-float 5.2s 1.1s ease-in-out infinite; }
.hv-toast-c { bottom: 16px; left: 24px; animation: hv-float 4.8s 0.7s ease-in-out infinite; }
.hv-t-ico {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.hv-t-body { flex: 1; min-width: 0; }
.hv-t-body b { display: block; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-t-body small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.hv-check {
  width: 22px; height: 22px; border-radius: 50%; background: #ECFDF3;
  display: grid; place-items: center; flex-shrink: 0;
}
.hv-check svg { width: 11px; height: 11px; }
.hv-prog-track {
  height: 3px; background: var(--line); border-radius: 99px;
  margin-top: 5px; overflow: hidden;
}
.hv-prog-fill {
  height: 100%; width: 0; background: var(--primary); border-radius: 99px;
  animation: hv-progress 3.5s 0.5s ease-in-out infinite;
}

/* Keyframes */
@keyframes hv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes hv-progress {
  0% { width: 0; }
  70%, 100% { width: 68%; }
}
@keyframes hv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,159,111,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(13,159,111,0); }
}

html { scroll-behavior: smooth; }
.cat-block { scroll-margin-top: 90px; }
[id^="all-tools"] { scroll-margin-top: 80px; }

/* ===== Directory: TOC + filter empty state ===== */
.all-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) {
  .all-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
.toc {
  position: sticky; top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  align-self: flex-start;
}
.toc h6 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin-bottom: 12px; padding: 0 8px;
}
.toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
  transition: all 0.12s ease;
}
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a .swatch { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.toc a .count { margin-left: auto; color: var(--muted-2); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.cat-block.dim { opacity: 0.25; }
.tool-mini.hidden { display: none !important; }

/* Mobile: TOC becomes a horizontal scrollable chip strip */
@media (max-width: 720px) {
  .toc {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    gap: 6px; padding: 10px 12px;
    align-items: center; border-radius: 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc h6 { display: none; }
  .toc a {
    flex-shrink: 0; white-space: nowrap;
    padding: 6px 12px; border-radius: 20px;
    font-size: 12.5px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
  }
  .toc a:hover { background: var(--bg-soft); }
  .toc a .count {
    margin-left: 3px; font-size: 10.5px;
    font-family: inherit; opacity: 0.55;
  }
  .toc a .swatch { width: 7px; height: 7px; }
  .cat-block-head .desc {
    display: block;
    font-size: 11px; color: var(--muted);
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 80px; flex-shrink: 0;
  }
  .cat-block-head h3 { font-size: 18px; }
  .cat-block { margin-bottom: 40px; }
  .tools-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tool-mini { padding: 12px; gap: 10px; }
  .tool-mini h4 { font-size: 13px; }
  .tool-mini p { font-size: 11.5px; }
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 36px; gap: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.025em;
  max-width: 20ch;
}
.section-head h2 em { font-style: normal; color: var(--primary); }
.section-head p {
  color: var(--muted); max-width: 36ch;
  font-size: 15px; line-height: 1.55;
}
.section-head .link {
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  flex-shrink: 0;
}

/* Popular tools — editorial grid */
.popular-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}
@media (max-width: 1024px) {
  .popular-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 600px) {
  .popular-grid { grid-template-columns: 1fr; }
}

/* Divider between popular picks and full category directory */
.all-cats-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.all-cats-divider > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}
.all-cats-divider .search-wrap {
  max-width: 480px;
  width: 100%;
}
@media (max-width: 600px) {
  .all-cats-divider { flex-direction: column; align-items: flex-start; gap: 12px; }
  .all-cats-divider .search-wrap { max-width: 100%; }
}

.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: all .2s;
  min-height: 220px;
}
.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tool-card .glyph {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.tool-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin-top: 16px; margin-bottom: 6px;
}
.tool-card p {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.tool-card .meta {
  font-size: 12px; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px;
}
.tool-card .meta .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.tool-card.featured {
  grid-row: span 2;
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}
.tool-card.featured:hover { transform: translateY(-2px); }
.tool-card.featured h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 36px; line-height: 1.05;
  letter-spacing: -0.025em;
}
.tool-card.featured p { color: rgba(255,255,255,0.65); font-size: 15px; }
.tool-card.featured .meta { color: rgba(255,255,255,0.5); }
.tool-card.featured .glyph { background: var(--primary); }
.tool-card.featured .arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  position: absolute; right: 24px; bottom: 24px;
}

.glyph-pdf { background: var(--accent-pdf); }
.glyph-img { background: var(--accent-img); }
.glyph-aud { background: var(--accent-aud); }
.glyph-vid { background: var(--accent-vid); }
.glyph-data { background: var(--accent-data); }
.glyph-code { background: var(--accent-code); }
.glyph-color { background: var(--accent-color); }
.glyph-money { background: var(--accent-money); }
.glyph-unit { background: var(--accent-unit); }
.glyph-mark { background: var(--accent-mark); }
.glyph-arch { background: #6B7280; }
.glyph-cert { background: #F59E0B; }
.glyph-gps  { background: #059669; }
.glyph-cal  { background: #3B82F6; }
.glyph-web  { background: #0EA5E9; }
.glyph-chain{ background: #7C3AED; }
.glyph-font { background: #94A3B8; }
.glyph-log  { background: #475569; }
.glyph-email{ background: #EC4899; }

/* Categories megagrid */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.cat-tab {
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.cat-tab .count {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
}
.cat-tab:hover { border-color: var(--ink); }
.cat-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-tab.active .count { background: rgba(255,255,255,0.15); color: #fff; }

.cat-block { margin-bottom: 64px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cat-block-head h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 12px;
}
.cat-block-head h3 .swatch {
  width: 12px; height: 12px; border-radius: 4px;
}
.cat-block-head .desc { color: var(--muted); font-size: 14px; }

.tools-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tool-mini {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex; align-items: flex-start; gap: 12px;
  transition: all .15s;
}
.tool-mini:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
}
.tool-mini .glyph-sm {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-size: 9px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.tool-mini h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.tool-mini p { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tool-mini h4 mark { background: none; color: var(--primary); font-weight: 700; }

/* ===== How it works ===== */
.how {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  margin: 0 auto; max-width: 1280px;
}
@media (max-width: 720px) { .how { padding: 48px 28px; border-radius: 24px; } }
.how-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: 56px;
}
.how-head h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em;
  line-height: 1.1; max-width: 16ch;
}
.how-head h2 em { font-style: normal; color: #F97316; font-weight: 600; }
.how-head p { color: rgba(255,255,255,0.6); max-width: 30ch; font-size: 15px; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--ink); padding: 36px 32px;
}
.step-num {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1; color: #F97316;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.step h4 { font-size: 22px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; }

/* ===== Privacy / promise ===== */
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .promise { grid-template-columns: 1fr; } }
.promise-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.promise-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.promise-card .icon svg { width: 22px; height: 22px; }
.promise-card h4 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 20px; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.promise-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ===== Audience strip ===== */
.audience {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
.audience-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.audience-cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .audience-cell { border-bottom: 1px solid var(--line); }
  .audience-cell:nth-child(even) { border-right: none; }
}
.audience-cell .role {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}
.audience-cell h5 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.audience-cell p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ===== CTA ===== */
.cta-block {
  text-align: center; padding: 96px 0 64px;
}
.cta-block h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 18ch; margin: 0 auto 24px;
}
.cta-block h2 em { font-style: normal; color: var(--primary); }
.cta-block p { color: var(--muted); font-size: 17px; max-width: 50ch; margin: 0 auto 36px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: #B8BCC8;
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .logo { color: #fff; }
.footer .logo b { color: #fff; }
.footer .logo i { color: rgba(255,255,255,0.55); }
.footer-brand p { font-size: 13px; line-height: 1.55; margin-top: 16px; max-width: 32ch; }
.footer-col h6 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; color: #B8BCC8;
  padding: 5px 0; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bot {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 16px;
}
.footer-bot .privacy-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
}
.footer-bot .privacy-pill .dot {
  width: 8px; height: 8px; background: #4ade80;
  border-radius: 50%; box-shadow: 0 0 0 4px rgba(74,222,128,0.2);
}

/* ===== Tool page (PDF to Word) ===== */
.tool-hero {
  padding: 56px 0 32px;
}
.crumbs {
  font-size: 13px; color: var(--muted);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 8px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted-2); }

.tool-head {
  display: flex; gap: 24px; align-items: flex-start;
  margin-bottom: 40px;
}
.tool-head .glyph-lg {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.tool-head h1 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.tool-head p {
  font-size: 17px; color: var(--muted); max-width: 60ch;
}
.tool-stat-row {
  display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.tool-stat-row span { display: inline-flex; align-items: center; gap: 6px; }
.tool-stat-row svg { width: 14px; height: 14px; color: #10B981; }

.tool-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  align-items: flex-start;
}
@media (max-width: 1024px) { .tool-layout { grid-template-columns: 1fr; } }

.dropzone {
  background: var(--surface); border: 2px dashed #C7CDD8;
  border-radius: var(--radius-lg);
  padding: 72px 32px; text-align: center;
  transition: all .2s;
  position: relative;
}
.dropzone:hover { border-color: var(--primary); background: #FAFAFF; }
.dropzone .upload-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin: 0 auto 24px;
}
.dropzone .upload-icon svg { width: 32px; height: 32px; }
.dropzone h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px;
}
.dropzone p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.dropzone .browse-btn {
  background: var(--ink); color: #fff;
  padding: 14px 32px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.dropzone .browse-btn:hover { background: var(--primary); }
.dropzone .file-meta {
  display: flex; gap: 16px; justify-content: center;
  font-size: 12px; color: var(--muted-2);
  flex-wrap: wrap;
}
.dropzone .file-meta span::before {
  content: '·'; margin-right: 16px; color: var(--line);
}
.dropzone .file-meta span:first-child::before { display: none; }

.source-tabs {
  display: flex; gap: 4px; margin-top: 16px;
  background: var(--bg-soft);
  border-radius: 999px; padding: 4px;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.source-tab {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted);
}
.source-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.source-tab svg { width: 14px; height: 14px; }

.tool-side .side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
}
.tool-side h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.tool-side ul { list-style: none; }
.tool-side li {
  font-size: 14px; padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2);
}
.tool-side li svg { width: 16px; height: 16px; color: #10B981; flex-shrink: 0; }

.related-tools { margin-top: 12px; }
.related-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line-2);
  font-size: 14px;
}
.related-tool:first-child { border-top: none; }
.related-tool .glyph-xs {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-size: 8px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.related-tool .arrow { margin-left: auto; color: var(--muted-2); }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
}
.faq-q .plus {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 16px;
  flex-shrink: 0; margin-left: 16px;
}
.faq-a {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  max-width: 70ch; margin-top: 12px; display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .plus { background: var(--ink); color: #fff; }

/* Hero ribbon — animated converter strip */
.ribbon {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 24px;
  font-size: 13px; color: var(--muted);
  overflow: hidden;
  margin-top: 56px;
}
.ribbon-label { color: var(--muted); flex-shrink: 0; font-weight: 500; }
.ribbon-track {
  display: flex; gap: 28px; flex: 1;
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-pair {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.ribbon-pair .arrow { color: var(--muted-2); }
.ribbon-pair span:first-child, .ribbon-pair span:last-child {
  background: var(--bg-soft); padding: 4px 8px; border-radius: 6px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   Tool page (PDF to Word & all tool pages)
   ======================================== */

/* Hero */
.t-hero {
  padding: 56px 0 48px;
  text-align: center;
}
.t-crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: left;
}
.t-crumbs a { color: var(--muted); transition: color .15s; }
.t-crumbs a:hover { color: var(--ink); }
.t-crumbs .sep { margin: 0 8px; color: var(--muted-2); }
.t-crumbs .here { color: var(--ink); font-weight: 500; }

.t-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 100%; overflow: hidden;
}
.t-pill {
  background: var(--ink); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.t-pill-pdf { background: var(--accent-pdf); }
.t-pill-img { background: var(--accent-img); }
.t-pill-aud { background: var(--accent-aud); }
.t-pill-vid { background: var(--accent-vid); }
.t-pill-data{ background: var(--accent-data); }
.t-pill-code{ background: var(--accent-code); }

.t-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.04; letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 14ch;
  margin: 0 auto 18px;
}
.t-sub {
  font-size: 18px; color: var(--muted);
  max-width: 56ch; margin: 0 auto 24px;
  line-height: 1.5;
}
.t-stats {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 24px; margin-bottom: 36px;
  font-size: 13px; color: var(--ink-2);
}
.t-stats span { display: inline-flex; align-items: center; gap: 6px; }
.t-stats svg { width: 14px; height: 14px; color: #10B981; }

/* Dropzone */
.t-drop {
  max-width: 720px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px -16px rgba(15,17,21,0.10);
  overflow: hidden;
  text-align: left;
}
.t-drop-tabs {
  display: flex; gap: 4px;
  padding: 8px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.t-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: all .15s; white-space: nowrap;
}
.t-tab svg, .t-tab img { width: 14px; height: 14px; opacity: 0.7; flex-shrink: 0; }
.t-tab:hover { color: var(--ink-2); }
.t-tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(15,17,21,0.06);
}
.t-tab.active svg, .t-tab.active img { opacity: 1; }

.t-drop-body {
  padding: 56px 32px;
  text-align: center;
  border: 2px dashed transparent;
  border-radius: 0;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.t-drop:hover .t-drop-body,
.t-drop-body.is-drag {
  background: rgba(45,45,214,0.02);
  border-color: var(--primary);
}
.t-drop-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--bg-soft);
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: transform .3s cubic-bezier(.2,.7,.4,1);
}
.t-drop:hover .t-drop-icon { transform: translateY(-4px) scale(1.04); }
.t-drop-icon svg { width: 32px; height: 32px; }
.t-drop-title {
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em; margin-bottom: 6px;
}
.t-drop-hint { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.t-drop-btn {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 0 auto 22px;
  background: var(--primary); color: #fff;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .15s;
  box-shadow: 0 8px 20px -6px rgba(45,45,214,0.35);
}
.t-drop-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.t-drop-meta {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  justify-content: center; gap: 8px;
  margin-top: 22px;
  font-size: 12px; color: var(--muted);
}
.t-drop-meta .dot { width: 3px; height: 3px; background: var(--muted-2); border-radius: 50%; }
.t-fmt {
  background: var(--accent-pdf); color: #fff;
  padding: 3px 9px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .t-drop-tabs { flex-wrap: wrap; }
  .t-tab { font-size: 12px; padding: 8px 10px; }
  .t-drop-body { padding: 40px 20px; }
  .t-stats { gap: 12px 16px; }
}

/* "Three steps" */
.t-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 880px) { .t-steps { grid-template-columns: 1fr; } }
.t-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 28px 32px;
}
.t-step-num {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1;
  color: var(--primary); margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.t-step h4 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.t-step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Related tools row */
.t-related {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1024px) { .t-related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .t-related { grid-template-columns: 1fr; } }

/* Related tool cards — compact row layout (glyph left, text right) */
.t-related .tool-card {
  flex-direction: row; align-items: flex-start;
  gap: 14px; min-height: unset; padding: 18px 20px;
}
.t-related .tool-card .glyph {
  flex-shrink: 0;
}
.t-related .tool-card > div {
  min-width: 0;
}
.t-related .tool-card h3 {
  font-size: 15px; margin-top: 0; margin-bottom: 4px;
}
.t-related .tool-card p {
  font-size: 12.5px;
}

/* ========================================
   Reviews
   ======================================== */
.rev-layout {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
  max-width: 660px; margin-left: auto; margin-right: auto;
}
.rev-layout.has-reviews {
  grid-template-columns: 1fr 1.1fr;
  max-width: none;
  margin-left: 0; margin-right: 0;
}
@media (max-width: 980px) { .rev-layout.has-reviews { grid-template-columns: 1fr; } }

.rev-form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
  position: sticky; top: 90px;
}
.rev-form-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.rev-form-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.rev-field { margin-bottom: 18px; position: relative; }
.rev-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink-2); margin-bottom: 8px;
}
.rev-field .req { color: var(--accent-pdf); }
.rev-field .opt { color: var(--muted-2); font-weight: 400; }

.rev-stars { display: flex; gap: 4px; }
.rev-stars button {
  padding: 4px; border-radius: 6px;
  transition: transform .12s;
}
.rev-stars svg {
  width: 26px; height: 26px;
  fill: var(--line); stroke: none;
  transition: fill .12s;
}
.rev-stars button:hover { transform: scale(1.1); }
.rev-stars button.on svg { fill: #F59E0B; }

.rev-textarea, .rev-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s, background .15s;
  outline: none;
}
.rev-textarea { min-height: 96px; resize: none; }
.rev-textarea:focus, .rev-input:focus {
  border-color: var(--ink); background: var(--surface);
}
.rev-count {
  position: absolute; right: 4px; bottom: -18px;
  font-size: 11px; color: var(--muted-2);
}

.rev-submit {
  width: 100%;
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  transition: all .15s; margin-top: 6px;
}
.rev-submit:hover:not(:disabled) { background: var(--primary); }
.rev-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Review list */
.rev-list { display: flex; flex-direction: column; gap: 14px; }
.rev-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px;
}
.rev-card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.rev-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.rev-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.rev-when { font-size: 12px; color: var(--muted); }
.rev-rating { margin-left: auto; display: inline-flex; gap: 2px; }
.rev-rating svg {
  width: 14px; height: 14px; fill: #F59E0B;
}
.rev-rating svg.empty { fill: var(--line); }
.rev-body { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.rev-more-list {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.rev-more-list.is-open { /* max-height set inline by JS */ }
/* Add gap above the extra cards only when expanded */
.rev-more-list.is-open { margin-top: 14px; }

.rev-more {
  display: inline-block; margin-top: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  background: none; border: none; cursor: pointer;
  padding: 0; font-family: inherit;
}
.rev-more:hover { color: var(--ink); text-decoration-color: var(--ink); }

.rev-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 20px;
}
.rev-pag-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.rev-pag-btn:hover:not(.disabled):not(.active) { border-color: var(--ink); color: var(--ink); }
.rev-pag-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rev-pag-btn.disabled { opacity: 0.35; cursor: not-allowed; }

/* ========================================
   Conversion States (interactive demo flow)
   ======================================== */

/* Drag-drop wrapper */
.t-cvt-wrap {
  transition: background .2s;
}
.t-cvt-wrap.is-idle { cursor: pointer; }
.t-drop:hover .t-cvt-wrap.is-idle,
.t-cvt-wrap.is-drag {
  background: rgba(45,45,214,0.025);
}
/* Border lives on .t-drop itself — no overflow:hidden clipping */
#dropzone {
  transition: box-shadow .2s, border-color .2s;
}
#dropzone.is-drag,
#dropzone:has(.t-cvt-wrap.is-idle):hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 24px 64px -16px rgba(15,17,21,0.10);
}
#ftDropzone {
  transition: box-shadow .2s, border-color .2s;
}
#ftDropzone.is-drag,
#ftDropzone:has(.t-cvt-wrap.is-idle):hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 24px 64px -16px rgba(15,17,21,0.10);
}

/* Base state panel */
.cvt-state {
  padding: 52px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.4,1);
}
.cvt-state.cvt-enter {
  opacity: 1;
  transform: translateY(0);
}
.cvt-state[hidden] { display: none !important; }

@media (max-width: 720px) { .cvt-state { padding: 40px 18px; } }

/* ── Selected state ── */
.cvt-sel-wrap {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Preview area */
.cvt-preview-area {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cvt-preview-area.is-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Document mock (non-image files) */
.cvt-doc-mock {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.cvt-doc-ext {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 8px;
  text-transform: uppercase;
}
.cvt-doc-lines {
  display: flex; flex-direction: column;
  gap: 8px; width: 120px;
}
.cvt-doc-line {
  height: 7px; background: var(--line); border-radius: 4px;
}

/* File info row */
.cvt-file-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.cvt-file-row .cvt-file-info { flex: 1; min-width: 0; }
.cvt-file-info { flex: 1; min-width: 0; }
.cvt-file-name {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.cvt-file-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.cvt-file-size { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.cvt-meta-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.cvt-meta-tag {
  font-size: 11px; font-weight: 500; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 20px; white-space: nowrap;
}
.cvt-file-remove {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted); flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cvt-file-remove:hover { background: var(--bg-soft); color: var(--ink); }

/* Convert button */
.cvt-convert-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  padding: 16px 36px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 10px 28px -8px rgba(45,45,214,0.38);
  transition: all .15s;
  margin-bottom: 2px;
}
.cvt-convert-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(45,45,214,0.45);
}
/* Full-width variant used in the selected state */
.cvt-convert-full {
  width: 100%; justify-content: center;
  padding: 16px 24px;
}

.cvt-hint-sm { font-size: 12px; color: var(--muted); }

/* ── Processing state ── */
.cvt-proc-wrap {
  position: relative; width: 80px; height: 80px;
  margin: 0 auto 24px;
}
.cvt-spin-svg {
  width: 80px; height: 80px;
  animation: cvt-spin 1.1s linear infinite;
}
.cvt-spin-track { stroke: var(--line); }
.cvt-spin-arc   { stroke: var(--primary); }
@keyframes cvt-spin { to { transform: rotate(360deg); } }

.cvt-proc-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.cvt-proc-status {
  font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 20px; min-height: 24px;
  transition: opacity .14s ease;
}
.cvt-proc-status.cvt-status-fade { opacity: 0; }

.cvt-prog-track {
  max-width: 320px; margin: 0 auto 12px;
  height: 5px; background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.cvt-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #5D5FEF 100%);
  border-radius: 999px;
}
.cvt-proc-hint { font-size: 12px; color: var(--muted); }

/* ── Done state ── */
.cvt-done-icon-wrap {
  width: 72px; height: 72px; margin: 0 auto 20px;
}
.cvt-check-svg {
  width: 72px; height: 72px;
  animation: cvt-pop .42s cubic-bezier(.2,.8,.35,1.25) both;
}
@keyframes cvt-pop {
  from { transform: scale(.55); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Stroke-draw checkmark (path length ≈ 46) */
.cvt-check-path {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: cvt-draw .48s .28s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes cvt-draw { to { stroke-dashoffset: 0; } }

.cvt-done-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 22px;
}

.cvt-result-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 20px;
  margin: 0 auto 16px;
  max-width: 380px; width: 100%; text-align: left;
  animation: cvt-slide-up .36s .18s cubic-bezier(.2,.7,.4,1) both;
}
@keyframes cvt-slide-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cvt-result-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: #DCEEFF;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; flex-shrink: 0;
  color: #2B7CD3;
}
.cvt-result-ext {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.07em; color: #2B7CD3;
  line-height: 1;
}
.cvt-result-info { min-width: 0; }
.cvt-result-name {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.cvt-result-size { font-size: 12px; color: var(--muted); }

.cvt-dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 380px; margin: 0 auto 14px;
  background: #10B981; color: #fff;
  padding: 16px 36px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 10px 28px -8px rgba(16,185,129,0.42);
  transition: all .15s;
  animation: cvt-dl-appear .4s .52s cubic-bezier(.2,.7,.4,1) both;
}
.cvt-dl-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(16,185,129,0.5);
}
@keyframes cvt-dl-appear {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cvt-again {
  display: block; margin: 0 auto;
  font-size: 13px; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px;
  background: none; border: none; padding: 6px; cursor: pointer;
  transition: color .15s, text-decoration-color .15s;
  animation: cvt-dl-appear .4s .7s cubic-bezier(.2,.7,.4,1) both;
}
.cvt-again:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ── Soon badge on tabs ── */
.t-tab-soon-item {
  opacity: 0.55;
  cursor: not-allowed;
}
.t-tab-soon-item:hover { color: var(--muted); }
.t-soon {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 2px 5px; border-radius: 4px;
  margin-left: 4px; vertical-align: middle;
}

/* ── From URL state ── */
.cvt-url-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.cvt-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.cvt-url-input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.cvt-url-input:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.cvt-url-input::placeholder { color: var(--muted-2); }
.cvt-url-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
  box-shadow: 0 6px 16px -4px rgba(45,45,214,0.35);
  flex-shrink: 0;
}
.cvt-url-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.cvt-url-btn:disabled { opacity: 0.6; cursor: wait; }
.cvt-url-err {
  display: none;
  font-size: 13px; font-weight: 500; color: #C62828;
  text-align: left; line-height: 1.5;
  margin-top: 8px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 8px; padding: 8px 12px;
}

/* ── Review pagination ── */
.rev-pagination {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}
@media (max-width: 980px) { .rev-pagination { grid-column: 1; } }

.rev-pg-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .15s, color .15s, opacity .15s;
}
.rev-pg-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.rev-pg-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.rev-pg-nums { display: flex; gap: 4px; }

.rev-pg-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.rev-pg-num:hover:not(.active) { background: var(--bg-soft); color: var(--ink); }
.rev-pg-num.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Support Widget ===== */
#sup-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  box-shadow: 0 4px 20px rgba(45,45,214,0.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}
#sup-fab:hover { background: var(--primary-hover); transform: scale(1.08); box-shadow: 0 8px 28px rgba(45,45,214,0.45); }
#sup-panel {
  position: fixed; bottom: 92px; right: 28px; z-index: 9998;
  width: 360px; max-width: calc(100vw - 40px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.88) translateY(16px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
#sup-panel.sup-open { opacity: 1; pointer-events: auto; transform: scale(1) translateY(0); }
.sup-head {
  background: var(--primary); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.sup-head-ico {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sup-head-text { flex: 1; }
.sup-head-text strong { display: block; font-size: 14px; font-weight: 600; }
.sup-head-text span { font-size: 12px; opacity: 0.82; }
.sup-close-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
  transition: background .15s;
}
.sup-close-btn:hover { background: rgba(255,255,255,0.24); }
.sup-body {
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-soft);
}
.sup-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px;
}
.sup-field input, .sup-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--surface); outline: none; resize: none;
  transition: border-color .15s;
}
.sup-field input:focus, .sup-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sup-field textarea { height: 88px; }
.sup-chars { font-size: 11px; color: var(--muted-2); text-align: right; margin-top: 3px; }
.sup-actions {
  padding: 12px 16px; background: var(--surface);
  border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end;
}
.sup-send-btn {
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: 9px 18px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.sup-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sup-send-btn:not(:disabled):hover { background: var(--primary-hover); }
.sup-cancel-btn {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 13px; font-family: inherit;
  color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s;
}
.sup-cancel-btn:hover { border-color: var(--ink); color: var(--ink); }
.sup-result {
  padding: 32px 20px; text-align: center;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-soft);
}
.sup-result.visible { display: flex; }
.sup-result-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ECFDF3; color: #0F7B41;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 4px;
}
.sup-result strong { font-size: 15px; color: var(--ink); }
.sup-result p { font-size: 13px; color: var(--muted); margin: 0; max-width: 26ch; }
.sup-result-again {
  margin-top: 6px; background: none; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 16px; font-size: 13px; color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.sup-result-again:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 480px) {
  #sup-fab { bottom: 20px; right: 20px; }
  #sup-panel { bottom: 84px; right: 20px; width: calc(100vw - 40px); }
}
/* Screenshot section */
.sup-shot-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.sup-shot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-shot-add {
  width: 72px; height: 54px;
  border: 2px dashed var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.sup-shot-add span { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; }
.sup-shot-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.sup-shot-add:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.sup-thumb {
  position: relative; width: 72px; height: 54px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); background: var(--ink);
  flex-shrink: 0; cursor: pointer; transition: border-color .15s;
}
.sup-thumb:hover { border-color: var(--primary); }
.sup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sup-thumb-remove {
  position: absolute; top: 3px; right: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(15,17,21,0.7); color: #fff; border: none;
  font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; transition: background .15s;
}
.sup-thumb-remove:hover { background: #ef4444; }
.sup-shot-hint { font-size: 11px; color: var(--muted-2); margin-top: 5px; }
/* Lightbox */
/* Lightbox overlay */
#sup-lightbox {
  display: none; position: fixed; inset: 0; z-index: 10100;
  background: rgba(15,17,21,0.92);
  align-items: center; justify-content: center;
  padding: 56px 20px 20px;
  box-sizing: border-box;
}
#sup-lightbox.sup-lb-open { display: flex; }

/* Two-panel layout */
#sup-lb-layout {
  display: flex; flex-direction: row; gap: 12px;
  width: 100%; height: 100%;
  max-width: 1000px; max-height: 80vh;
}

/* Left sidebar — page thumbnails */
#sup-lb-sidebar {
  display: flex; flex-direction: column; gap: 8px;
  width: 80px; flex-shrink: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
#sup-lb-sidebar::-webkit-scrollbar { width: 4px; }
#sup-lb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.sup-lb-thumb {
  width: 100%; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: opacity .15s, border-color .15s;
  background: #1a1d22;
}
.sup-lb-thumb img { display: block; width: 100%; }
.sup-lb-thumb .sup-lb-page-num {
  text-align: center; color: rgba(255,255,255,0.55);
  font-size: 10px; padding: 2px 0 4px; font-family: inherit;
}
.sup-lb-thumb:hover { opacity: 0.75; border-color: rgba(255,255,255,0.35); }
.sup-lb-thumb.active { opacity: 1; border-color: var(--primary); }

/* Right main area */
#sup-lb-main {
  flex: 1; min-width: 0;
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  background: #fff;
}
#sup-lb-img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: top center;
}
#sup-lb-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(transparent, rgba(15,17,21,0.8));
  text-align: center; color: #fff;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}

/* Mobile: sidebar flips to horizontal strip at bottom */
@media (max-width: 600px) {
  #sup-lightbox { padding: 48px 10px 10px; }
  #sup-lb-layout {
    flex-direction: column; max-height: 88vh;
  }
  #sup-lb-sidebar {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    width: 100%; height: 68px; min-height: 68px; flex-shrink: 0;
    order: 2; gap: 6px; padding: 4px 2px;
  }
  .sup-lb-thumb { width: 50px; min-width: 50px; height: auto; }
  #sup-lb-main { flex: 1; min-height: 0; order: 1; }
}

/* Close button */
#sup-lb-close {
  position: fixed; top: 14px; right: 16px;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 22px; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 10101;
}
#sup-lb-close:hover { background: rgba(255,255,255,0.3); }

.nowrap-desktop { white-space: nowrap; }

@media (max-width: 600px) {
  .nowrap-desktop { white-space: normal; }
  .t-hero-eyebrow { font-size: 11px; gap: 7px; padding: 5px 10px 5px 5px; }
  .t-crumbs { font-size: 12px; }
}

/* ── Profile Page ───────────────────────────────────────────────── */
.prof-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 40px 32px 56px;
}
#prof-main, #prof-guest {
  display: flex; flex-direction: column; gap: 48px;
}
.prof-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: 32px 36px; min-width: 0; overflow: hidden;
}
.prof-header {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.prof-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18); user-select: none; letter-spacing: 1px;
}
.prof-header-info { flex: 1; min-width: 0; }
.prof-name-display {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.prof-edit-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 3px 8px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: color .15s, background .15s;
  border-radius: 6px;
}
.prof-edit-trigger:hover { color: var(--ink); background: var(--bg-soft); }
.prof-edit-trigger svg { width: 12px; height: 12px; }
.prof-name-edit {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.prof-name-edit input {
  font-size: 15px; font-weight: 600; color: var(--ink);
  border: 2px solid #2563eb; border-radius: 9px;
  padding: 6px 12px; outline: none; max-width: 240px; box-sizing: border-box;
}
.prof-save-btn, .prof-cancel-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: opacity .15s;
}
.prof-save-btn   { background: #2563eb; color: #fff; }
.prof-cancel-btn { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); }
.prof-save-btn:hover, .prof-cancel-btn:hover { opacity: .85; }
.prof-save-msg { font-size: 12px; color: #16a34a; }

.prof-meta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); margin-top: 4px; margin-right: 14px;
}
.prof-meta svg { flex-shrink: 0; }
.prof-meta-sep { margin: 0 4px; color: var(--muted-2); }

.prof-stats-divider { display: none; width: 100%; height: 1px; background: var(--line); }
.prof-stats {
  margin-left: auto; display: flex; gap: 0; flex-wrap: wrap;
  border-left: 1.5px solid var(--line); padding-left: 36px;
}
.prof-stat-box { text-align: center; padding: 0 20px; }
.prof-stat-box + .prof-stat-box { border-left: 1.5px solid var(--line); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; }

.prof-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.prof-demo-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  background: #fef3c7; color: #92400e; border-radius: 4px; padding: 2px 7px;
  text-transform: uppercase;
}
.prof-empty {
  font-size: 14px; color: var(--muted); margin: 0; padding: 16px 0;
}
.prof-empty a { color: #2563eb; text-decoration: none; }
.prof-empty a:hover { text-decoration: underline; }

/* Tools grid */
.prof-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.prof-tool-chip {
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s; min-width: 0; overflow: hidden;
}
.prof-tool-chip:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.chip-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
}
.chip-label {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Activity table */
.prof-table-wrap { overflow-x: auto; }
.prof-activity-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.prof-activity-table thead th {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 0 12px 10px; border-bottom: 2px solid var(--line); text-align: left;
  white-space: nowrap;
}
.prof-activity-table tbody tr { border-bottom: 1px solid var(--line-2); transition: background .1s; }
.prof-activity-table tbody tr:hover { background: var(--bg-soft); }
.prof-activity-table tbody tr:last-child { border-bottom: none; }
.prof-activity-table tbody td { padding: 10px 12px; vertical-align: middle; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tool-badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fname {
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-size: 13px;
}
.prof-size-col { color: var(--muted); font-size: 13px; white-space: nowrap; }
.prof-status-pill {
  display: inline-block; border-radius: 50px;
  padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.prof-status-pill.completed  { background: #dcfce7; color: #15803d; }
.prof-status-pill.failed     { background: #fee2e2; color: #dc2626; }
.prof-status-pill.pending,
.prof-status-pill.processing { background: #fef9c3; color: #854d0e; }
.date-col { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Guest state */
.prof-guest-box {
  text-align: center; padding: 80px 24px;
  max-width: 380px; margin: 0 auto;
}
.prof-guest-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
}
.prof-guest-icon svg { width: 28px; height: 28px; }
.prof-guest-box h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.prof-guest-box p  { font-size: 14px; color: var(--muted); margin: 0 0 24px; }

/* Responsive */
@media (max-width: 700px) {
  .prof-card { padding: 20px 16px; }
  .prof-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .prof-stats { margin-left: 0; gap: 24px; }
  .prof-stats-divider { display: block; }
  .prof-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .fname { max-width: 120px; }
}
@media (max-width: 420px) {
  .prof-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .prof-tool-chip { font-size: 12px; padding: 8px 10px; }
}

/* ── User Profile Panel ─────────────────────────────────────────── */
.user-panel {
  position: absolute; z-index: 4000;
  width: 272px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,23,42,.14), 0 1px 4px rgba(15,23,42,.06);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(-6px) scale(.97);
  transition: opacity .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.user-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.up-arrow {
  position: absolute; top: -7px; right: 18px;
  width: 13px; height: 13px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 2px;
}

.up-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 14px;
}
.up-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: .5px; user-select: none;
}
.up-info { flex: 1; min-width: 0; }
.up-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.up-email {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 1px;
}

.up-divider { height: 1px; background: var(--line); margin: 0; }

.up-stats {
  display: flex; align-items: center; gap: 0;
  padding: 14px 18px;
}
.up-stat { flex: 1; text-align: center; }
.up-stat-num { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1; }
.up-stat-lbl { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.up-stat-sep { width: 1px; background: var(--line); height: 36px; flex-shrink: 0; }

.up-menu { padding: 6px 8px 8px; }
.up-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: 10px;
  border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-align: left; transition: background .13s;
  text-decoration: none;
}
.up-item:hover { background: var(--surface); }
.up-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-2); }
.up-soon {
  margin-left: auto; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 50px;
}
.up-signout { color: #dc2626; }
.up-signout:hover { background: #fef2f2; }
.up-signout svg { color: #dc2626; }

/* ── Auth Modal ─────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(15,23,42,.52);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.auth-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal {
  background: #fff; border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  transform: translateY(14px);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.auth-overlay.open .auth-modal { transform: translateY(0); }

.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background .15s; padding: 0;
}
.auth-close:hover { background: var(--line); }
.auth-close svg { width: 16px; height: 16px; }

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 800; font-size: 18px;
  color: #1a2a5e; margin-bottom: 24px; text-align: center;
}
.auth-brand-logo { width: 30px; height: 30px; object-fit: contain; }
.auth-brand b { font-weight: 800; color: #1a2a5e; }
.auth-brand i { font-style: normal; color: #2563eb; }

.auth-title {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin: 0 0 6px;
}
.auth-sub {
  font-size: 14px; color: var(--ink-2);
  margin: 0 0 22px; line-height: 1.55;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px;
  color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s;
  box-sizing: border-box;
}
.auth-field input:focus { border-color: #2563eb; }
.auth-field input.auth-input-err { border-color: #ef4444; }

.auth-primary {
  width: 100%; padding: 12px;
  background: #2563eb; color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, opacity .15s;
  margin-bottom: 14px;
}
.auth-primary:hover { background: #1d4ed8; }
.auth-primary:disabled { opacity: .42; cursor: not-allowed; }

.auth-legal {
  font-size: 12px; color: var(--muted);
  text-align: center; margin: 0; line-height: 1.5;
}

.auth-back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; margin-bottom: 18px;
  transition: color .15s;
}
.auth-back:hover { color: var(--ink); }
.auth-back svg { width: 15px; height: 15px; }

.auth-otp-row {
  display: flex; gap: 10px; margin-bottom: 8px;
  width: 100%;
}
.auth-otp-box {
  flex: 1; min-width: 0; height: 62px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 30px; font-weight: 700; text-align: center;
  color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s, background .15s;
  padding: 0; box-sizing: border-box; width: 0;
}
.auth-otp-box:focus { border-color: #2563eb; }
.auth-otp-box.filled { border-color: #2563eb; background: #eff6ff; }
.auth-otp-box.otp-err { border-color: #ef4444; background: #fef2f2; animation: otp-shake .35s ease; }
@keyframes otp-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth-otp-err {
  font-size: 13px; color: #ef4444;
  min-height: 18px; margin-bottom: 10px;
}

.auth-resend {
  font-size: 13px; color: var(--muted);
  text-align: center; margin: 0;
}
.auth-resend-btn {
  background: none; border: none; padding: 0;
  font-size: 13px; color: #2563eb;
  cursor: pointer; text-decoration: underline;
}
.auth-resend-btn:hover { color: #1d4ed8; }

.auth-dev-hint {
  margin-top: 14px;
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 8px; padding: 8px 12px;
  font-size: 12px; color: #713f12;
  text-align: center; display: none;
  font-family: 'JetBrains Mono', monospace;
}
.auth-dev-hint.show { display: block; }

/* Logged-in header pill */
.auth-user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  cursor: pointer; transition: background .15s, border-color .15s;
  max-width: 200px; overflow: hidden; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.auth-user-pill:hover { background: var(--bg-soft); border-color: #c7d2dd; }
.auth-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.auth-user-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.auth-user-email {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 480px) {
  .auth-modal { padding: 28px 20px 22px; }
  .auth-otp-box { height: 54px; font-size: 26px; }
}

/* ===== Bootstrap utility shim (for legacy internal pages) ===== */
/* Display */
.d-none        { display: none !important; }
.d-block       { display: block !important; }
.d-flex        { display: flex !important; }
.d-inline      { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }
/* Flex */
.flex-wrap     { flex-wrap: wrap !important; }
.flex-column   { flex-direction: column !important; }
.flex-1        { flex: 1 !important; }
.align-items-center  { align-items: center !important; }
.align-items-start   { align-items: flex-start !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end     { justify-content: flex-end !important; }
/* Gap */
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
/* Margin */
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-auto  { margin-left: auto !important; }
.mx-auto  { margin-left: auto !important; margin-right: auto !important; }
/* Padding */
.p-0  { padding: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
/* Text */
.text-muted    { color: var(--muted) !important; }
.text-center   { text-align: center !important; }
.text-start    { text-align: left !important; }
.text-end      { text-align: right !important; }
.fw-bold       { font-weight: 700 !important; }
.fw-semibold   { font-weight: 600 !important; }
.fw-medium     { font-weight: 500 !important; }
.small, .fs-6  { font-size: .875rem !important; }
/* Sizing */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
/* Bootstrap grid (responsive col-* → centered single column) */
.row { display: flex !important; flex-wrap: wrap !important; margin-right: -12px !important; margin-left: -12px !important; }
[class*="col-"] { padding-right: 12px !important; padding-left: 12px !important; box-sizing: border-box !important; }
.col-12 { width: 100% !important; }
.col-lg-8, .col-md-8 { width: 100% !important; max-width: 760px !important; }
.col-lg-10,.col-md-10 { width: 100% !important; max-width: 900px !important; }
/* Badge */
.badge { display: inline-block; padding: .3em .6em; font-size: .75em; font-weight: 700; border-radius: 6px; }
/* Breadcrumb */
.breadcrumb { display: flex !important; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; gap: 4px; }
.breadcrumb-item { font-size: .85rem; color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 4px; color: var(--muted); }
.breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--ink); }
.breadcrumb-item.active { color: var(--ink); }
/* Forms */
.form-label { display: block; margin-bottom: .5rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.form-control { display: block; width: 100%; padding: .5rem .75rem; font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,45,214,.12); }
.form-select { display: block; width: 100%; padding: .5rem .75rem; font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; outline: none; box-sizing: border-box; }
/* Button variants */
.btn-sm  { padding: .35rem .75rem !important; font-size: .8rem !important; }
.btn-lg  { padding: .75rem 1.5rem !important; font-size: 1.05rem !important; }
.btn-outline-secondary { background: transparent !important; border: 1.5px solid var(--line) !important; color: var(--ink) !important; }
.btn-outline-secondary:hover { background: var(--bg-soft) !important; }
/* Alert */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
