*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C63FF;
  --primary-hover: #5B54F5;
  --primary-light: #F0EFFF;
  --primary-muted: #E8E6FF;
  --primary-gradient: linear-gradient(135deg, #8B85FF 0%, #6C63FF 50%, #5B54F5 100%);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --navy: #121826;
  --navy-mid: #1E2433;
  --navy-soft: #2D3344;
  --gold: var(--primary);
  --gold-light: #8B85FF;
  --gold-dark: var(--primary-hover);
  --gold-gradient: var(--primary-gradient);

  --white: #FFFFFF;
  --bg-main: #F3F4F8;
  --bg-secondary: #EEF1F7;
  --bg-alt: #E8ECF5;
  --off-white: var(--bg-main);
  --bg-warm-start: var(--bg-main);
  --bg-warm-mid: var(--bg-secondary);
  --bg-warm-end: var(--bg-alt);
  --site-bg: var(--bg-main);
  --site-bg-overlay:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(108, 99, 255, 0.07) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(108, 99, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 80%, rgba(108, 99, 255, 0.04) 0%, transparent 50%);

  --text-primary: #121826;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border: #D9DDF2;
  --border-subtle: rgba(108, 99, 255, 0.12);
  --card-bg: #FFFFFF;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --scroll-offset: 80px;
  --shadow-sm: 0 2px 8px rgba(18, 24, 38, 0.04), 0 1px 3px rgba(18, 24, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 24, 38, 0.07), 0 4px 12px rgba(108, 99, 255, 0.06);
  --shadow-lg: 0 20px 48px rgba(18, 24, 38, 0.1), 0 8px 24px rgba(108, 99, 255, 0.08);
  --shadow-gold: 0 8px 24px rgba(108, 99, 255, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.35s var(--ease-out);
}

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--scroll-offset);
  min-height: 100%;
  background-color: var(--off-white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#categories,
#about,
#faq {
  scroll-margin-top: var(--scroll-offset);
}

section[id],
[id].hero,
.tool-category-block {
  scroll-margin-top: var(--scroll-offset);
}

body {
  font-family: var(--font-sans);
  background: var(--site-bg);
  background-color: var(--off-white);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--site-bg-overlay);
  pointer-events: none;
  z-index: -1;
}

html, body, button, input, textarea, select {
  font-family: var(--font-sans);
}

button,
.input,
textarea,
select {
  font-family: var(--font-sans);
}

code,
pre {
  font-family: var(--font-mono);
}

label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

a:hover,
 a:focus-visible {
  color: var(--gold-dark);
  text-decoration: underline;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 1;
  text-align: left;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin-bottom: 1.4rem;
}

ul,
ol {
  margin: 0 0 1.35rem 1.35rem;
  padding: 0;
  color: var(--text-secondary);
}

section {
  padding: clamp(3.5rem, 4vw, 6.5rem) 5%;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 99, 255, 0.18);
}

/* NAV — only .site-nav (do not style bare <nav> — breaks breadcrumbs) */
.site-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 32px;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(217, 221, 242, 0.7);
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.02);
  overflow: visible;
  contain: layout style;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.08);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav-toggle span {
  display: block;
  width: 100%;
  max-width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(108, 99, 255, 0.16);
  border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(108, 99, 255, 0.14);
}

.nav-toggle:active {
  background: rgba(108, 99, 255, 0.2);
  transform: scale(0.98);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.22);
  border-color: var(--primary-hover);
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.4px;
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.85; }

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.is-active:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--white) !important;
}

/* UTILITIES */
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
  padding: 88px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(108, 99, 255, 0.11) 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 100% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid var(--primary-muted);
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--primary-light);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.6px;
  max-width: 720px;
  margin: 0 auto 22px;
}

.hero h1 em {
  font-style: normal;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.search-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--white);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--primary-hover);
  background: var(--primary-light);
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.btn,
button[type="button"],
button[type="submit"],
button[type="reset"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-trust li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--primary);
  font-weight: 600;
}

/* HOME HERO — split layout */
.hero--home {
  padding: 72px 5% 88px;
  text-align: left;
}

.hero-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hero--home .hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--primary-muted);
  background: var(--primary-light);
  backdrop-filter: blur(8px);
}

.hero-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-muted);
  border-radius: 50%;
}

.hero--home h1 {
  margin: 0 0 20px;
  max-width: none;
  font-size: clamp(40px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.hero--home .hero-lead {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero--home .hero-actions {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 24px;
}

.hero--home .hero-search.search-wrap {
  margin: 0 0 8px;
  max-width: 480px;
}

.hero--home .search-hint {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
}

.hero--home .hero-trust {
  justify-content: flex-start;
  margin-top: 28px;
  padding-top: 24px;
  gap: 12px 24px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual__glow {
  position: absolute;
  inset: 8% 4%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(108, 99, 255, 0.18) 0%, transparent 68%),
    radial-gradient(ellipse 50% 45% at 60% 60%, rgba(108, 99, 255, 0.1) 0%, transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-visual__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 12px;
  border-radius: calc(var(--radius-xl) + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: contain;
}

/* SEARCH */
.search-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}

.search-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.search-wrap input::placeholder {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 1;
  text-align: left;
}
.search-wrap input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.search-wrap button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 26px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-wrap button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* HOW IT WORKS */
.section--steps {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.link-arrow:hover { color: var(--navy); }

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: none;
}

.step-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F7FF 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CATEGORIES */
.section { padding: clamp(3.5rem, 4vw, 6.5rem) 5%; }
.section-header { margin-bottom: 36px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  max-width: 500px;
}

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.cat-card:hover { border-color: #6C63FF55; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,28,53,0.08); }
.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.cat-icon--text { background: #EEF2FF; }
.cat-icon--image { background: #FFF7ED; }
.cat-icon--calc { background: #F0FDF4; }
.cat-icon--dev { background: #FDF4FF; }

.cat-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cat-count {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* FEATURED TOOLS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-med), transform var(--transition-med), background-color var(--transition-fast);
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-icon-sm {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.tool-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.tool-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* BENEFITS */
.section--benefits {
  padding-bottom: 48px;
}

/* FEATURED SECTION (homepage) */
.featured-section {
  padding: 0 5% 72px;
}

.featured-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 40px 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.featured-panel__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% 0%, rgba(108, 99, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.featured-panel .container {
  position: relative;
  z-index: 1;
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.featured-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.featured-header__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-header__text p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.btn-outline-light {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-outline-light:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-muted);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.featured-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.featured-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 16px;
}

.featured-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: color 0.2s;
}

.featured-card:hover .featured-card__cta {
  color: var(--primary-hover);
}

.featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-size: 16px;
  color: var(--text-secondary);
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.featured-empty a {
  color: var(--primary);
  font-weight: 500;
}


.section--featured {
  background: transparent;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F7FF 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.28);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* WHY US STRIP (legacy / other pages) */
.why-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 5%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}
.why-label { font-size: 14px; color: var(--text-secondary); }

/* CTA BANNER */
.cta-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 40px;
  text-align: center;
  margin: 0 5% 64px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  display: inline-block;
  background: var(--primary-gradient);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.28);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-gold:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
  filter: brightness(1.06);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.25);
}

/* FOOTER */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding:5% 10% 0% 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
 .footer-col .footer-logo{
  font-size:30px;
 }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo span { color: var(--primary); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s forwards; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* PAGE HERO (non-tool pages) */
.hero--page:not(.hero--category) {
  padding: 72px 5% 72px;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  border: none;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(244, 246, 252, 0.98));
}

.hero--page:not(.hero--category)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(108, 99, 255, 0.16), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(255, 183, 77, 0.10), transparent 18%),
    radial-gradient(circle at 50% 82%, rgba(108, 99, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.hero-inner--page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero--page .hero-copy {
  max-width: 720px;
}

.hero--page h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.08;
}

.hero--page .hero-lead {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.78;
}

.hero--page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero--page .hero-actions a {
  min-width: 160px;
}

.hero--page .hero-eyebrow {
  margin-bottom: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  background: none;
  border: none;
  height: auto;
  width: auto;
  min-height: 0;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb span:last-child { color: var(--text-primary); }

.nav-links a.is-active { color: var(--primary); }

/* ALL TOOLS PAGE */
.section--tools-page { padding-top: 40px; }

.tools-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-pill:hover {
  border-color: #6C63FF55;
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.tools-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.tools-container { display: flex; flex-direction: column; gap: 56px; }


.category-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-block-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.category-block-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.category-block-title p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
}

.category-view-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.category-view-all:hover { color: var(--navy); }

.tools-grid--flat { margin-top: 0; }

.search-empty,
.search-empty-state {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 48px 20px;
}

.search-empty a,
.search-empty-state a { color: var(--gold); }

.search-empty-state .btn-gold--sm {
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.section--tight { padding-top: 0; }

/* CATEGORY PAGE (image-tools, etc.) */
.hero--category {
  text-align: center;
  padding: 64px 5% 72px;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  border-radius: 36px;
  border: 1px solid rgba(108, 99, 255, 0.12);
  background: linear-gradient(180deg, rgba(246, 247, 253, 0.9) 0%, rgba(243, 244, 248, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.hero--category::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(108, 99, 255, 0.16), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 183, 77, 0.10), transparent 20%),
    radial-gradient(circle at 50% 88%, rgba(108, 99, 255, 0.06), transparent 34%);
  pointer-events: none;
}

.hero-inner--category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
  padding: 46px 44px 40px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  border: 1px solid rgba(108, 99, 255, 0.14);
  box-shadow: var(--shadow-sm);
}

.hero--category .breadcrumb {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 24px;
}

.hero--category .hero-eyebrow {
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero--category h1 {
  margin: 0 auto 20px;
  max-width: 680px;
  width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero--category .hero-lead {
  margin: 0 auto 30px;
  max-width: 600px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 500;
  color: var(--text-secondary);
}

.category-hero-badge {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.hero--category .category-hero-badge.cat-icon--image {
  background: rgba(255, 247, 237, 0.14);
  border: 1px solid rgba(108, 99, 255, 0.22);
}

.hero--category .hero-search {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.hero--category .hero-search .search-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}

.hero-lead--page {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero--page:not(.hero--category) .search-wrap {
  max-width: min(560px, 100%);
}

.section--category-page {
  padding-top: 48px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 248, 0.85));
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.category-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  color: var(--text-secondary);
}

.category-page-intro .tools-count {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.category-page-intro .link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.category-page-intro .tools-count,
.category-page-intro .link-arrow,
.seo-popular-tools,
.seo-popular-tools__label,
.seo-popular-tools a {
  font-family: var(--font-sans);
}

.tools-grid--category {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.tools-grid--category .tool-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tools-grid--category .tool-card .tool-icon-sm {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.08);
}

.tools-grid--category .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.1);
  text-decoration: none;
}

.tools-grid--category .tool-icon-sm {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.tools-grid--category .tool-card h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tools-grid--category .tool-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.all-tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.all-tools-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.all-tools-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.tool-category-block {
  margin-bottom: 36px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tool-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.tool-category-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--navy);
}

.tool-category-copy {
  max-width: 720px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.tool-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(108, 99, 255, 0.12);
}

@media (max-width: 900px) {
  .tool-category-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .all-tools-nav {
    gap: 8px;
  }
}

.section--category-cta {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
  border-top: 1px solid rgba(108, 99, 255, 0.12);
  padding: 64px 5%;
}

.category-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.category-cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.category-cta-inner p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.category-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost--dark {
  border-color: rgba(18, 24, 38, 0.14);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.btn-ghost--dark:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* STATS STRIP */
.stats-strip {
  background: transparent;
  padding: 0 5% 56px;
  margin-top: 50px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: var(--shadow-md);
}

.stat-block {
  position: relative;
  padding: 8px 16px;
}

.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.35), transparent);
}

.stat-block__num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-block__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

/* CATEGORIES SHOWCASE (homepage) */
.section--categories {
  position: relative;
  padding: 80px 5% 88px;
  background: transparent;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
  border-bottom: 1px solid rgba(18, 24, 38, 0.06);
}

.section--categories .container {
  position: relative;
}

.section--categories .section-header h2 {
  color: #121826;
}

.section--categories .section-header p {
  color: #3D4A5C;
}

.section--categories .section-eyebrow {
  background: rgba(18, 24, 38, 0.06);
  border-color: rgba(108, 99, 255, 0.45);
  color: #5B54F5;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}

@media (min-width: 1280px) {
  .category-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-showcase__card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F7FF 48%, #F0EFFF 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 16px rgba(18, 24, 38, 0.06),
    0 12px 32px rgba(18, 24, 38, 0.04);
  transition: border-color 0.2s ease;
}

.category-showcase__card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.category-showcase__card::after {
  display: none;
}

.category-showcase__card:hover {
  border-color: rgba(108, 99, 255, 0.45);
  text-decoration: none;
}

.category-showcase__card:hover::before {
  transform: scaleX(1);
}

.category-showcase__card:hover::after {
  opacity: 1;
}

.category-showcase__card:nth-child(1):hover { border-color: rgba(99, 102, 241, 0.4); }
.category-showcase__card:nth-child(2):hover { border-color: rgba(234, 88, 12, 0.4); }
.category-showcase__card:nth-child(3):hover { border-color: rgba(22, 163, 74, 0.4); }
.category-showcase__card:nth-child(4):hover { border-color: rgba(147, 51, 234, 0.4); }

.category-showcase__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(18, 24, 38, 0.08);
  transition: none;
}

.category-showcase__card:hover .category-showcase__icon {
  box-shadow: 0 4px 12px rgba(18, 24, 38, 0.1);
}

  .category-showcase__subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 10px;
  }

  .category-showcase__mini-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(18, 24, 38, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .category-showcase__card:hover .category-showcase__mini-card {
    background: rgba(255, 255, 255, 1);
  }

  .category-showcase__mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(18, 24, 38, 0.04);
  }

  .category-showcase__mini-card strong {
    display: block;
    font-size: 13px;
    color: #121826;
    margin-bottom: 4px;
  }

  .category-showcase__mini-card span {
    display: block;
    font-size: 12px;
    color: #5A667F;
    line-height: 1.4;
  }

  @media (min-width: 900px) {
    .category-showcase__subgrid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }


.section--categories .cat-icon--image {
  background: linear-gradient(145deg, #FFF4E8 0%, #FFE4C4 100%);
  border: 1px solid rgba(234, 88, 12, 0.12);
}

.section--categories .cat-icon--calc {
  background: linear-gradient(145deg, #E8FAF0 0%, #C6F0D8 100%);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.section--categories .cat-icon--dev {
  background: linear-gradient(145deg, #F6EDFF 0%, #E9D4FF 100%);
  border: 1px solid rgba(147, 51, 234, 0.12);
}

.section--categories .cat-icon--pdf {
  background: linear-gradient(145deg, #F8F0E8 0%, #F2E4D0 100%);
  border: 1px solid rgba(214, 149, 90, 0.15);
}

.section--categories .cat-icon--converter {
  background: linear-gradient(145deg, #E8F7FF 0%, #D6EEFF 100%);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.section--categories .cat-icon--seo {
  background: linear-gradient(145deg, #EFF6E8 0%, #E6F3D9 100%);
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.section--categories .cat-icon--social {
  background: linear-gradient(145deg, #FFF4F8 0%, #FFE4F2 100%);
  border: 1px solid rgba(236, 72, 153, 0.16);
}

.section--categories .cat-icon--utility {
  background: linear-gradient(145deg, #F7F7FB 0%, #EAEAFA 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.section--categories .cat-icon--video {
  background: linear-gradient(145deg, #FFF7E8 0%, #FFEDD5 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.section--categories .cat-icon--audio {
  background: linear-gradient(145deg, #F0F6FF 0%, #DDEEFB 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.section--categories .cat-icon--document {
  background: linear-gradient(145deg, #F9FAFB 0%, #E5E7EB 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.section--categories .cat-icon--security {
  background: linear-gradient(145deg, #F5F7FF 0%, #E8EEFF 100%);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

.section--categories .cat-icon--color {
  background: linear-gradient(145deg, #FFF1F5 0%, #FCE7F3 100%);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.section--categories .cat-icon--date {
  background: linear-gradient(145deg, #F0EFFF 0%, #E8E6FF 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.category-showcase__card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #121826;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.category-showcase__card:hover h3 {
  color: var(--navy-mid);
}

.category-showcase__card p {
  font-size: 15px;
  color: #3D4A5C;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.category-showcase__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5B54F5;
  margin-bottom: 12px;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.category-showcase__card:hover .category-showcase__meta {
  color: var(--gold);
  letter-spacing: 0.65px;
}

.category-showcase__cta {
  font-size: 14px;
  font-weight: 600;
  color: #0B1C35;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.category-showcase__card:hover .category-showcase__cta {
  color: var(--gold);
  transform: translateX(4px);
}

.categories-footer-note {
  text-align: center;
  margin-top: 40px;
  padding: 18px 24px;
  font-size: 15px;
  color: #3D4A5C;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 100px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.categories-footer-note a {
  color: #5B54F5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.categories-footer-note a:hover {
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .category-showcase__card,
  .category-showcase__card::before,
  .category-showcase__card::after,
  .category-showcase__icon,
  .category-showcase__cta,
  .category-showcase__meta {
    transition: none;
  }

  .category-showcase__card:hover {
    transform: none;
  }

  .category-showcase__card:hover .category-showcase__icon {
    transform: none;
  }

  .category-showcase__card:hover .category-showcase__cta {
    transform: none;
  }
}

/* TOOL DIRECTORY (legacy) */
.section--directory {
  background: transparent;
  padding-bottom: 72px;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(18, 24, 38, 0.06);
}

.category-jump__link {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-jump__link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.home-categories {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.home-category-block {
  scroll-margin-top: var(--scroll-offset);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 4px 24px rgba(18, 24, 38, 0.05);
}

.home-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.home-category-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.home-category-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.home-category-title p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
}

.tools-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tools-grid--home .tool-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tools-grid--home .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.1);
}

.tools-grid--home .tool-icon-sm {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.tools-grid--home .tool-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tools-grid--home .tool-card p {
  font-size: 13px;
}

.cat-icon--calculators { background: #F0FDF4; }

.home-search-empty,
.home-search-results-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 24px;
}

.home-search-empty {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.home-search-results-label {
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.btn-gold--sm {
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ABOUT */
.section--about {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(18, 24, 38, 0.08);
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
}

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content .btn-gold {
  margin-top: 12px;
}

.about-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.about-list {
  list-style: none;
}

.about-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.about-list li:last-child { border-bottom: none; }

.about-list strong {
  color: var(--primary);
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  margin-right: 8px;
}

/* FAQ */
.section--faq {
  padding-bottom: 72px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 48px 42px 72px;
}

.container--narrow {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.98));
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 28px;
  overflow: hidden;
}

.faq-item summary {
  padding: 24px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* FOOTER PRO */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.05), transparent 30%),
    radial-gradient(circle at bottom right, rgba(108, 99, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(160px, 1fr));
  gap: 32px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
  align-items: start;
}

.footer-col--brand {
  min-width: 0;
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 300px;
  line-height: 1.8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-legal-bar .footer-copy,
.footer-legal-bar .footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.footer-legal-bar .footer-disclaimer {
  max-width: 100%;
}

.site-footer .footer-copy {
  margin-top: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile menu — hamburger (no horizontal nav scroll) */
@media (max-width: 768px) {
  .site-nav .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .site-nav .logo {
    flex-shrink: 0;
    margin-right: auto;
  }

  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 221, 242, 0.6);
    padding: 12px 5% 20px;
    box-shadow: 0 4px 12px rgba(18, 24, 38, 0.05);
    max-height: min(70vh, calc(100dvh - 64px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 199;
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .site-nav .nav-links li {
    width: 100%;
  }

  .site-nav .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(217, 221, 242, 0.5);
    white-space: normal;
  }

  .site-nav .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    border: none;
    border-bottom: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .site-nav .nav-toggle {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-inner--split {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero--home .hero-content {
    max-width: none;
    margin: 0 auto;
  }

  .hero--home h1,
  .hero--home .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--home .hero-lead {
    max-width: 560px;
  }

  .hero--home .hero-actions,
  .hero--home .hero-trust {
    justify-content: center;
  }

  .hero--home .hero-search.search-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-visual__frame {
    width: min(100%, 440px);
  }
}

@media (max-width: 768px) {
  .hero--home {
    padding: 56px 5% 72px;
  }

  .hero--category .hero-search,
  .hero-search,
  .hero .search-wrap {
    padding: 0;
  }

  .search-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .search-wrap input {
    width: 100%;
    flex: 1 1 auto;
    font-size: 16px;
  }

  .search-wrap button {
    width: 100%;
    height: 48px;
  }

  .section-header--row { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .featured-panel { padding: 40px 24px 32px; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .featured-card { min-height: 200px; padding: 22px 20px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn-gold,
  .hero-actions .btn-ghost { width: 100%; text-align: center; }

  .hero--home .hero-actions {
    max-width: 360px;
  }

  .hero-visual__frame {
    width: min(100%, 380px);
    padding: 8px;
  }
}

@media (max-width: 900px) {
  .tool-controls {
    grid-template-columns: 1fr 1fr;
  }

  .tool-control--actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cta-banner { padding: 36px 24px; margin: 0 4% 48px; }
  .tool-panel { padding: 20px 16px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero--page:not(.hero--category),
  .hero--category { padding: 40px 20px 48px; }
  .tools-page-toolbar { flex-direction: column; align-items: flex-start; }
  .category-block-header { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-section { padding: 0 4% 48px; }
  .stats-strip { margin-top: -28px; padding: 0 4% 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 28px 20px; }
  .stat-block::after { display: none; }
  .stat-block__num { font-size: 32px; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .category-jump { top: 64px; position: relative; }
  .home-category-block { padding: 24px 20px; }
  .category-showcase { grid-template-columns: 1fr; gap: 18px; }
  .category-showcase__card { min-height: auto; padding: 28px 24px; }
  .section--categories { padding: 56px 4% 64px; }
  .tools-grid--category { grid-template-columns: 1fr; }
  .category-page-intro { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero--page:not(.hero--category),
  .hero--category {
    padding: 36px 16px 40px;
  }

  .hero--category h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero--category .hero-lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero--category .category-hero-badge {
    width: 64px;
    height: 64px;
    font-size: 30px;
    margin-bottom: 16px;
  }

  .search-wrap button {
    padding: 0 16px;
    font-size: 13px;
  }

  .tool-controls {
    grid-template-columns: 1fr;
  }

  .tool-control--actions {
    flex-direction: column;
  }

  .tool-control--actions .btn-gold,
  .tool-control--actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .tool-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-previews {
    grid-template-columns: 1fr;
  }
}

/* TOOL PAGES (shared) */
.hero--tool {
  padding: 44px 5% 40px;
  text-align: center;
  overflow-x: hidden;
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 248, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero--tool::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(108, 99, 255, 0.08), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(255, 183, 77, 0.06), transparent 18%);
  pointer-events: none;
}

.hero-inner--tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  text-align: center;
}

.hero--tool .breadcrumb {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero--tool h1 {
  margin: 0 auto 12px;
  max-width: 520px;
}

.hero--tool .hero-lead {
  margin: 0 auto;
  max-width: 480px;
  font-size: 16px;
}

.tool-page {
  padding-top: 0;
  padding-bottom: 56px;
}

.tool-page__container {
  max-width: 960px;
}

.tool-wrapper {
  display: grid;
  gap: 20px;
  width: 100%;
}

.tool-wrapper.diff-wrapper,
.tool-wrapper.md-wrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-input-panel,
.tool-output-panel {
  background: linear-gradient(155deg, #FFFFFF 0%, #F9F7F2 100%);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 14px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(18, 24, 38, 0.08);
  display: grid;
  gap: 20px;
}

.tool-wrapper .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.tool-input-panel .form-group.full-width,
.tool-output-panel .form-group.full-width {
  grid-column: 1 / -1;
}

.tool-input-panel textarea,
.tool-output-panel textarea,
.tool-input-panel input,
.tool-output-panel input,
.diff-output,
.markdown-preview {
  font-family: var(--font-sans);
}

.tool-panel {
  background: linear-gradient(155deg, #FFFFFF 0%, #F9F7F2 100%);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 14px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(18, 24, 38, 0.08);
}

.tool-dropzone {
  border: 2px dashed rgba(108, 99, 255, 0.45);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.5);
}

.tool-dropzone:hover,
.tool-dropzone:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.tool-dropzone--drag {
  border-color: var(--gold);
  background: rgba(108, 99, 255, 0.08);
}

.tool-dropzone--active {
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.tool-dropzone--active:hover {
  box-shadow: none;
}

.tool-dropzone--error {
  border-color: #c53030;
  background: rgba(197, 48, 48, 0.04);
}

.tool-dropzone__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.tool-dropzone__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tool-dropzone__hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tool-dropzone__error {
  color: #c53030;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 12px;
}

.btn-gold--sm {
  padding: 10px 22px;
  font-size: 13px;
}

.tool-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.tool-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-control__value {
  color: var(--gold);
  font-weight: 600;
}

.tool-control input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
  cursor: pointer;
}

.tool-control--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tool-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
}

.tool-control--actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-format-note {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 12px 14px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(108, 99, 255, 0.25);
  margin: 0;
}

.tool-status--success {
  color: #1f2937;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.tool-status--error {
  color: #7f1d1d;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.tool-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tool-stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-align: center;
}

.tool-stat--highlight {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
}

.tool-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tool-stat__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-stat--highlight .tool-stat__value {
  color: #5B54F5;
}

.tool-stat__value--warn {
  color: #c05621;
}

.tool-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tool-preview figcaption {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tool-preview__frame {
  position: relative;
  background: rgba(18, 24, 38, 0.04);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius-lg);
  min-height: 200px;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-preview__frame img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.tool-preview__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(247, 246, 242, 0.85);
  font-size: 14px;
  color: var(--text-secondary);
}

.tool-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(108, 99, 255, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: toolSpin 0.7s linear infinite;
}

@keyframes toolSpin {
  to { transform: rotate(360deg); }
}

.tool-privacy-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* IMAGE COMPRESSOR */
.hero--tool-compact {
  padding: 44px 5% 40px;
  position: relative;
  overflow-x: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 248, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero--tool-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(108, 99, 255, 0.08), transparent 22%),
    radial-gradient(circle at 90% 22%, rgba(255, 183, 77, 0.06), transparent 18%);
  pointer-events: none;
}

.hero--tool-compact h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}

.hero--tool-compact .hero-lead {
  font-size: 15px;
  color: var(--text-secondary);
}

.ic-page {
  padding-top: 0;
  padding-bottom: 48px;
}

.ic-page__inner {
  max-width: 920px;
}

.ic-page__inner--wide {
  max-width: 1000px;
}

.ic-app {
  background: linear-gradient(160deg, #FFFFFF 0%, #FAF8F4 55%, #F5F2EB 100%);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}



/* Upload — CloudConvert-style drop zone */
.ic-upload {
  padding: 28px;
}

.ic-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  padding: 48px 32px;
  border: 2px dashed rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F6F2 100%);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-med), transform var(--transition-med);
}

.ic-drop:hover {
  border-color: rgba(108, 99, 255, 0.55);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EB 100%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.ic-drop:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.22);
}

.ic-drop--drag {
  border-color: var(--gold);
  background: rgba(108, 99, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.18), var(--shadow-md);
  transform: scale(1.01);
}

.ic-drop--error {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.04);
}

.ic-drop__icon {
  color: #8b9ab0;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 1;
}

.ic-controls--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}

/* Image resizer */
.ir-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ir-size-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ir-field {
  flex: 1;
  min-width: 120px;
}

.ir-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ir-field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  box-sizing: border-box;
}

.ir-field input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.ir-lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ir-lock.is-locked {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.5);
  color: #5B54F5;
}

.ir-lock:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.ir-lock__open {
  display: none;
}

.ir-lock:not(.is-locked) .ir-lock__open {
  display: block;
}

.ir-presets__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ir-presets__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ir-presets__btns .ir-preset {
  flex: 1;
  min-width: 64px;
}

.ir-controls__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

/* Image cropper */
.crop-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.crop-editor__hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.crop-stage {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 24, 38, 0.04);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 12px;
  overflow: auto;
  max-height: 460px;
}

.crop-stage__frame {
  position: relative;
  display: inline-block;
  user-select: none;
  touch-action: none;
}

.crop-stage__frame img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(18, 24, 38, 0.55);
}

.crop-box__size {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: rgba(18, 24, 38, 0.75);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 2px;
  box-sizing: border-box;
}

.crop-handle--nw { left: -6px; top: -6px; cursor: nwse-resize; }
.crop-handle--ne { right: -6px; top: -6px; cursor: nesw-resize; }
.crop-handle--sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.crop-handle--se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.crop-handle--n { left: 50%; top: -6px; margin-left: -6px; cursor: ns-resize; }

.tool-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.tool-stat-card span {
  font-size: 13px;
  color: var(--text-secondary);
}

.tool-stat-card strong {
  font-size: 22px;
  color: var(--text-primary);
}

.tool-top-words {
  list-style: disc inside;
  margin: 12px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.tool-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.tool-note-group {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.tool-grid-2,
.tool-grid-3 {
  display: grid;
  gap: 12px;
}
.tool-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-panel + .tool-panel {
  margin-top: 20px;
}

.text-tool-panel {
  display: grid;
  gap: 16px;
}

.text-tool-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-input,
.tool-select {
  width: 100%;
  min-height: 50px;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  box-sizing: border-box;
  align-items: center;
}

textarea.tool-input,
.tool-panel textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding-top: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.tool-input--date {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2.5V6M17 2.5V6M3.5 8.5h17M5 22h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Z' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 50px;
}

.tool-input--date::-webkit-clear-button,
.tool-input--date::-webkit-inner-spin-button {
  display: none;
}

.tool-input--date::-ms-expand {
  display: none;
}

.tool-input:focus,
.tool-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.tool-input-with-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

/* Apply calculator typography to all tool pages: labels, headings, inputs, placeholders */
.tool-page .tool-panel label,
.tool-page .tool-panel .tool-control label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.tool-page .tool-panel h2,
.tool-page .tool-panel h3 {
  color: var(--text-primary);
  font-weight: 600;
}

.tool-page .tool-panel h2 { font-size: 17px; margin-bottom: 8px; }
.tool-page .tool-panel h3 { font-size: 15px; margin-top: 12px; }

.tool-page .tool-panel input,
.tool-page .tool-panel textarea,
.tool-page .tool-panel select,
.tool-page .tool-panel .tool-input,
.tool-page .tool-panel .tool-select {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  text-align: left;
}

.tool-page .tool-panel input::placeholder,
.tool-page .tool-panel textarea::placeholder,
.tool-page .tool-panel select::placeholder,
.tool-page .tool-panel .tool-input::placeholder {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 1;
  text-align: left;
}

.tool-panel .tool-input[readonly],
.tool-panel textarea[readonly],
.output-box,
.password-display,
.token-display,
.hash-output,
.diff-result,
.html-preview,
.regex-output,
.code-output,
.uuid-output {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.tool-inline-btn {
  min-width: 92px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.tool-inline-btn:hover,
.tool-inline-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.tool-checkbox-row {
  display: flex;
  justify-content: flex-start;
}

.tool-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.diff-output {
  padding: 18px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  min-height: 220px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.diff {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 2px 2px 2px 0;
}

.diff--added {
  background: rgba(56, 178, 80, 0.12);
  color: #1f592c;
}

.diff--removed {
  background: rgba(234, 84, 85, 0.14);
  color: #8b1d1d;
  text-decoration: line-through;
}

.crop-handle--s { left: 50%; bottom: -6px; margin-left: -6px; cursor: ns-resize; }
.crop-handle--e { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.crop-handle--w { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }

.crop-aspects {
  margin-top: 16px;
}

.crop-aspects__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.crop-aspects__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-aspects__btns .crop-aspect {
  flex: 1;
  min-width: 72px;
}

.crop-preview .ic-pane__frame {
  min-height: 200px;
}

.crop-export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .crop-layout {
    grid-template-columns: 1fr;
  }

  .crop-preview .ic-pane__frame {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .crop-export {
    grid-template-columns: 1fr;
  }

  .ir-controls__bottom {
    grid-template-columns: 1fr;
  }

  .ir-size-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ir-lock {
    align-self: center;
  }
}

.ic-drop:hover .ic-drop__icon,
.ic-drop--drag .ic-drop__icon {
  color: var(--navy-mid);
}

.ic-drop__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.ic-drop__hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.ic-drop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 13px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(18, 24, 38, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.ic-drop__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.28);
}

.ic-drop__meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ic-drop__error {
  margin: 16px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  color: #9b2c2c;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
  max-width: 100%;
}

.ic-drop__error[hidden] {
  display: none;
}

.ic-drop__warn {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #5B54F5;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 8px;
  max-width: 100%;
}

.ic-drop__warn[hidden] {
  display: none;
}

/* Workspace */
.ic-workspace {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ic-workspace__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
}

.ic-workspace__file {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.ic-workspace__replace {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(108, 99, 255, 0.45);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ic-workspace__replace:hover {
  background: rgba(108, 99, 255, 0.12);
  color: var(--navy);
}

.ic-workspace__error {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #9b2c2c;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
}

.ic-workspace__error[hidden] {
  display: none;
}

/* Split preview */
.ic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ic-pane {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ic-pane__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ic-pane--output .ic-pane__label {
  color: #5B54F5;
}

.ic-pane__frame {
  position: relative;
  background: rgba(18, 24, 38, 0.04);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 12px;
  min-height: 220px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ic-pane--output .ic-pane__frame {
  border-color: rgba(108, 99, 255, 0.35);
  background: rgba(108, 99, 255, 0.06);
}

.ic-pane__frame--alpha {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e8e6e1 25%, transparent 25%),
    linear-gradient(-45deg, #e8e6e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e6e1 75%),
    linear-gradient(-45deg, transparent 75%, #e8e6e1 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.ic-privacy--api {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ic-pane__frame img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ic-pane__busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 2;
}

.ic-pane__busy[hidden] {
  display: none !important;
}

/* Stats row */
.ic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ic-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 12px;
}

.ic-stat--highlight {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
}

.ic-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ic-stat__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ic-stat--highlight .ic-stat__value {
  color: #5B54F5;
}

.ic-stat__value--good {
  color: #15803d;
}

.ic-stat__value--warn {
  color: #c05621;
}

/* Controls */
.ic-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.ic-control__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ic-control__head label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ic-control__head output {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.ic-control input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
  cursor: pointer;
}

.ic-control input[type="range"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ic-formats {
  border: none;
  margin: 0;
  padding: 0;
}

.ic-formats legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding: 0;
}

.ic-formats__btns {
  display: flex;
  gap: 8px;
}

.ic-format {
  flex: 1;
  height: 42px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ic-format:hover {
  border-color: rgba(108, 99, 255, 0.5);
  color: var(--text-primary);
}

.ic-format.is-active {
  background: var(--primary);
  border-color: var(--navy);
  color: var(--white);
}

.ic-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  padding: 12px 14px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 8px;
  line-height: 1.45;
}

.ic-tip[hidden] {
  display: none;
}

.ic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ic-actions__download {
  flex: 1;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.ic-actions__download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ic-actions__reset {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.ic-actions__reset:hover {
  border-color: var(--navy);
  color: var(--text-primary);
}

.ic-privacy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .ic-split {
    grid-template-columns: 1fr;
  }

  .ic-controls {
    grid-template-columns: 1fr;
  }

  .ic-stats {
    grid-template-columns: 1fr;
  }

  .ic-upload {
    padding: 16px;
  }

  .ic-drop {
    min-height: 260px;
    padding: 36px 20px;
  }

  .ic-workspace {
    padding: 16px;
  }

  .ic-actions {
    flex-direction: column;
  }

  .ic-actions__download,
  .ic-actions__reset {
    width: 100%;
  }
}

/* Image converter extras (shared ic-* layout) */
.ic-pane__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(18, 24, 38, 0.08);
  border-radius: 4px;
  vertical-align: middle;
}

.ic-pane__tag--out {
  color: #5B54F5;
  background: rgba(108, 99, 255, 0.2);
}

.ic-controls--convert {
  grid-template-columns: 1fr 1fr;
}

.ic-formats--full {
  grid-column: 1;
}

.ic-formats--full .ic-formats__btns {
  width: 100%;
}

.ic-format:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#qualityWrap[hidden] {
  display: none;
}

.ic-control--format-select {
  grid-column: 1 / -1;
}

.ic-control--format-select label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ic-format-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.ic-format-select:focus {
  outline: 2px solid rgba(108, 99, 255, 0.45);
  outline-offset: 2px;
}

/* Demo preview on image tool upload screens */
.ic-demo-preview {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ic-demo-preview__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.ic-demo-preview__hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.ic-workspace.ic-workspace--demo .ic-workspace__bar,
.ic-workspace.ic-workspace--demo .ic-workspace__error,
.ic-workspace.ic-workspace--demo .ic-stats,
.ic-workspace.ic-workspace--demo .ic-controls,
.ic-workspace.ic-workspace--demo .ic-actions,
.ic-workspace.ic-workspace--demo .ic-tip,
.ic-workspace.ic-workspace--demo .itp-options,
.ic-workspace.ic-workspace--demo .gif-layout__frames,
.ic-workspace.ic-workspace--demo .itp-list {
  display: none !important;
}

.ic-workspace.ic-workspace--demo .ic-split,
.ic-workspace.ic-workspace--demo .gif-preview {
  margin-top: 0;
}

.ic-workspace.ic-workspace--demo .ic-demo-preview__hint--workspace {
  margin: 0 0 16px;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.ic-workspace.ic-workspace--demo .ic-pane__frame img,
.ic-workspace.ic-workspace--demo .gif-preview__frame img {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.ic-workspace.ic-workspace--demo .ic-pane__frame img.loaded,
.ic-workspace.ic-workspace--demo .gif-preview__frame img.loaded,
.ic-workspace.ic-workspace--demo .ic-demo-img--visible {
  opacity: 1;
  transform: translateY(0);
}

.ic-split--demo {
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.ic-split--demo .ic-pane__frame img {
  filter: saturate(1.05);
}

.ic-pane__frame--demo-doc {
  min-height: 260px;
}

.ic-demo-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 150px;
  background: #fff;
  border: 2px solid rgba(18, 24, 38, 0.14);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.12);
}

.ic-demo-doc span {
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.05em;
}

.ic-demo-crop-source {
  position: relative;
.tool-format-note:first-child {
  margin-top: 0;
}
}

.ic-demo-crop-source::after {
  content: '';
  position: absolute;
  top: 18%;
  left: 22%;
  width: 48%;
  height: 52%;
  border: 2px dashed rgba(108, 99, 255, 0.95);
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(18, 24, 38, 0.35);
  pointer-events: none;
}

.ic-demo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ic-demo-grid__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100px;
}

.ic-demo-grid__cell img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(18, 24, 38, 0.12);
}

.ic-demo-grid__cell span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ic-demo-grid__doc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 100px;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.ic-demo-frames {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ic-demo-frames__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
}

.ic-demo-frames__cell img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(18, 24, 38, 0.12);
}

.ic-demo-frames__cell span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.ic-demo-frames__arrow {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.ic-demo-frames__result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.45);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #5B54F5;
}

@media (max-width: 768px) {
  .ic-demo-preview {
    margin-top: 20px;
    padding-top: 18px;
  }
}

@media (max-width: 768px) {
  .ic-controls--convert {
    grid-template-columns: 1fr;
  }
}

/* QR CODE GENERATOR */
.qr-app {
  overflow: hidden;
}

.qr-workspace {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
}

.qr-editor {
  padding: 28px;
  border-right: 1px solid rgba(18, 24, 38, 0.08);
}

.qr-types {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.qr-types__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.qr-fields label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.qr-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.qr-fields input[type="text"],
.qr-fields input[type="url"],
.qr-fields input[type="email"],
.qr-fields input[type="tel"],
.qr-fields textarea,
.qr-fields .tool-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  resize: vertical;
}

.qr-fields input:focus,
.qr-fields textarea:focus,
.qr-fields .tool-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.qr-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 4px;
}

.qr-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.qr-char-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qr-char-count--warn {
  color: #c05621;
}

.qr-error {
  font-size: 13px;
  color: #c53030;
  margin-bottom: 12px;
}

.qr-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.qr-options__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.qr-options__row--colors {
  grid-template-columns: 1fr 1fr minmax(120px, 140px);
}

.qr-control {
  margin: 0;
}

.qr-field--ecc .tool-select {
  height: 44px;
}

.qr-color label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.qr-color__input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-color__input input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--card-bg);
}

.qr-color__input input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
}

.qr-preview-panel {
  padding: 28px 24px;
  background: rgba(18, 24, 38, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.qr-preview-panel__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  align-self: flex-start;
}

.qr-preview-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(18, 24, 38, 0.06);
}

.qr-preview-frame--ready {
  padding: 12px;
}

.qr-preview-frame canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-preview-frame canvas[hidden] {
  display: none;
}

.qr-preview-placeholder {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 200px;
  line-height: 1.5;
}

.qr-preview-frame--ready .qr-preview-placeholder {
  display: none;
}

.qr-preview-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 240px;
  margin-top: 20px;
}

.qr-actions__btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .qr-workspace {
    grid-template-columns: 1fr;
  }

  .qr-editor {
    border-right: none;
    border-bottom: 1px solid rgba(18, 24, 38, 0.08);
  }

  .qr-preview-panel {
    padding: 24px 28px 28px;
  }

  .qr-options__row--colors {
    grid-template-columns: 1fr 1fr;
  }

  .qr-control--margin {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .qr-options__row,
  .qr-options__row--colors {
    grid-template-columns: 1fr;
  }
}

/* GIF MAKER */
.gif-app .gif-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.gif-frame-list {
  max-height: 520px;
}

.gif-preview {
  margin-bottom: 20px;
}

.gif-preview__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.gif-preview__frame {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.gif-preview__placeholder {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding: 24px 12px;
}

.gif-preview__frame img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.gif-preview__frame img[hidden] {
  display: none;
}

.gif-preview__placeholder[hidden] {
  display: none;
}

.gif-field-check {
  display: flex;
  align-items: flex-end;
}

.gif-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.gif-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
}

.gif-actions {
  flex-wrap: wrap;
}

.gif-busy {
  margin-top: 16px;
  position: relative;
}

@media (max-width: 900px) {
  .gif-app .gif-layout {
    grid-template-columns: 1fr;
  }

  .gif-frame-list {
    max-height: 360px;
  }
}

/* IMAGE TO PDF */
.itp-app {
  overflow: hidden;
}

.itp-upload {
  padding: 28px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
}

.itp-workspace {
  padding: 24px 28px 28px;
}

.itp-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.itp-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius-lg);
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.itp-item:hover {
  border-color: rgba(108, 99, 255, 0.4);
}

.itp-item--dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.itp-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(18, 24, 38, 0.06);
  border: 1px solid rgba(18, 24, 38, 0.08);
}

.itp-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itp-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itp-item__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.itp-item__actions {
  display: flex;
  gap: 6px;
}

.itp-item__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.itp-item__btn:hover {
  border-color: var(--gold);
  background: rgba(108, 99, 255, 0.1);
}

.itp-item__btn--remove:hover {
  border-color: #c53030;
  background: rgba(197, 48, 48, 0.08);
  color: #c53030;
}

.itp-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.itp-options__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.itp-options__row:last-child {
  grid-template-columns: 1fr 1fr;
}

.itp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.itp-field .tool-select {
  width: 100%;
  height: 44px;
}

.itp-text-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
}

.itp-text-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.itp-control {
  margin: 0;
}

.itp-stats {
  margin-bottom: 20px;
}

.itp-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

.itp-busy[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .itp-options__row,
  .itp-options__row:last-child {
    grid-template-columns: 1fr;
  }

  .itp-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .itp-item__thumb {
    width: 56px;
    height: 56px;
  }

  .itp-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* PDF TO IMAGE (shared itp-* layout) */
.pti-app .ic-upload {
  padding: 28px;
}

.pti-pages {
  min-height: 120px;
}

.itp-item--page {
  cursor: pointer;
}

.itp-item--page.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.35);
  background: rgba(108, 99, 255, 0.06);
}

.itp-formats {
  border: none;
  margin: 0;
  padding: 0;
}

.itp-formats legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pti-app .itp-options__row {
  grid-template-columns: auto 1fr 1fr;
  align-items: end;
}

.pti-app .ic-actions__download {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 900px) {
  .pti-app .itp-options__row {
    grid-template-columns: 1fr 1fr;
  }

  .pti-app .itp-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .pti-app .itp-options__row {
    grid-template-columns: 1fr;
  }
}

/* ── Premium polish (global refinements) ── */
.footer-logo span,
.footer-col--brand .footer-logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-banner {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  margin-top:60px;
}

.cat-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  box-shadow: var(--shadow-md);
}

.ic-stat {
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ic-stat--highlight {
  background: rgba(108, 99, 255, 0.14);
  border-color: rgba(108, 99, 255, 0.35);
}

.section--steps {
  background: var(--bg-alt);
}

.tool-panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  .step-card:hover,
  .tool-card:hover,
  .benefit-card:hover,
  .btn-gold:hover,
  .nav-cta:hover,
  .ic-drop:hover {
    transform: none;
  }
}

/* —— Professional footer (AdSense-friendly) —— */
.footer-grid--pro {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-legal-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-legal-bar .footer-copy,
.footer-legal-bar .footer-disclaimer {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-legal-bar .footer-copy {
  text-align: left;
  flex: 0 0 auto;
}

.footer-legal-bar .footer-disclaimer {
  text-align: right;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 60%;
}

.footer-legal-bar .footer-disclaimer {
  color: var(--text-muted);
  max-width: 56rem;
}

.footer-disclaimer a {
  color: rgba(108, 99, 255, 0.85);
  text-decoration: none;
}

.footer-disclaimer a:hover {
  color: var(--gold-light);
}

.nav-links {
  gap: 20px;
}

@media (max-width: 900px) {
  .footer-grid--pro {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid--pro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-col--brand .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-legal-bar {
    flex-direction: column;
    text-align: center;
    padding: 12px 0 16px;
    gap: 10px;
  }

  .footer-legal-bar .footer-copy {
    text-align: center;
    flex: 1;
  }

  .footer-legal-bar .footer-disclaimer {
    text-align: center;
    margin-left: 0;
    max-width: 100%;
  }

  /* .site-footer {
    padding: 32px 5% 20px;
  } */
}

/* —— Legal & static pages —— */
.legal-page {
  padding: 0;
  min-height: auto;
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.legal-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--site-bg-overlay);
  pointer-events: none;
  z-index: -1;
}

.legal-page__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 5%, 48px) 56px;
}

.legal-page__header {
  position: relative;
  box-sizing: border-box;
  margin: 0 auto 24px;
  width: min(760px, 100%);
  padding: 32px 28px 28px;
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(24, 35, 71, 0.06);
}

.legal-page__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 8%, rgba(108, 99, 255, 0.05), transparent 18%);
  pointer-events: none;
}

.legal-page__header > * {
  position: relative;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.legal-page__header .breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.legal-page__header .breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-page__header .breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.legal-page__header .section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.12);
}

.legal-page__header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 2.4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  max-width: 640px;
}

.legal-page__header h1 em {
  font-style: normal;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-page__meta {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  max-width: 36rem;
}

.about-page__lead,
.contact-page__lead {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 44rem;
  margin-top: 16px;
}

.legal-prose {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.legal-prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
  letter-spacing: -0.4px;
}

.legal-prose p,
.legal-prose li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.legal-prose ul {
  margin: 0 0 20px 1.4rem;
}

.legal-prose a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--navy);
}

.legal-prose strong {
  color: var(--text-primary);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-table th {
  background: var(--off-white);
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-page__inner {
    padding: 56px clamp(20px, 5%, 60px) 64px;
  }

  .legal-page__header {
    margin-bottom: 36px;
  }

  .legal-page__header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 12px;
  }

  .legal-page__meta {
    font-size: 15px;
  }

  .about-page__inner,
  .contact-page__inner {
    padding: 56px clamp(20px, 5%, 60px) 64px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-story-card {
    padding: 24px 20px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* —— Contact page —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.98));
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--off-white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-form__note a {
  color: var(--gold-dark);
}

.contact-form__intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: -4px 0 20px;
}

.contact-page__inner {
  width: min(1180px, 100%);
  max-width: 1180px;
  padding: 72px clamp(24px, 6%, 80px) 80px;
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}

.contact-page__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.contact-aside__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 14px 16px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  margin: 0;
}

.contact-aside__note a {
  color: var(--gold-dark);
  font-weight: 500;
}

.contact-card--muted {
  background: rgba(255, 255, 255, 0.55);
}

.contact-card--muted ul {
  margin: 0 0 8px 1.1rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card--form h2 {
  margin-bottom: 4px;
}

.contact-card--success {
  border-color: rgba(108, 99, 255, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(247, 246, 242, 0.9));
}

.contact-card--success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card--success p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-field {
  margin-bottom: 4px;
}

.contact-field__error {
  font-size: 13px;
  color: #c53030;
  margin: -8px 0 12px;
}

.contact-select {
  width: 100%;
  margin-bottom: 0;
}

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-select[aria-invalid="true"] {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.12);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__row .contact-field {
  margin-bottom: 0;
}

.contact-char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin: -6px 0 12px;
}

.contact-char-count.is-near-limit {
  color: var(--gold-dark);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-card--form {
  position: relative;
  overflow: hidden;
}

.contact-card--form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.contact-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-email-chip:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.contact-email-chip span {
  color: var(--gold-dark);
}

.contact-aside .contact-card + .contact-card {
  margin-top: 20px;
}

.contact-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* —— About page —— */
.about-page__inner {
  width: min(1180px, 100%);
  max-width: 1180px;
  padding: 72px clamp(24px, 6%, 80px) 80px;
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}

.about-page__header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 48px;
}

.about-page__lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 760px;
  margin-top: 18px;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.about-story-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.about-story-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.about-story-card p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.about-story-card--founder {
  background: transparent;
  border: none;
}

.about-founder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.1);
  box-shadow: none;
  margin-bottom: 14px;
}

.about-founder-sign {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 20px !important;
}

.about-values,
.about-problems {
  margin: 0 0 16px 1.25rem;
  padding: 0;
}

.about-values li,
.about-problems li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-values strong {
  color: var(--text-primary);
}

.about-cta-panel {
  margin-top: 48px;
  padding: 42px 44px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.98));
  color: var(--text-primary);
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
}

.about-cta-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.about-cta-panel p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-cta-panel .btn-ghost--dark {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
}

.about-cta-panel .btn-ghost--dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

.about-trust-note {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.about-trust-note a {
  color: var(--gold-dark);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-story-card {
    padding: 24px 22px;
  }

  .about-cta-panel {
    padding: 28px 22px;
  }
}

/* —— Blog —— */
.blog-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.blog-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 253, 0.96));
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 32px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.blog-card:hover {
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: var(--shadow-md);
}

.blog-card__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}

.blog-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.blog-card__tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}

/* —— Scroll & interaction performance —— */
.section--steps,
.section--categories,
.section--benefits,
.section--about,
.section--faq,
.section--category-page,
.section--tools-page,
.ic-page,
.legal-page {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

html.is-scrolling *,
html.is-scrolling *::before,
html.is-scrolling *::after {
  transition-duration: 0.001ms !important;
  animation-play-state: paused !important;
}

@media (hover: hover) and (pointer: fine) {
  .tool-card:hover,
  .cat-card:hover,
  .benefit-card:hover,
  .step-card:hover,
  .featured-card:hover,
  .blog-card:hover {
    transform: translateY(-2px);
  }

  .btn-gold:hover,
  .search-wrap button:hover {
    transform: translateY(-1px);
  }
}

@media (hover: none), (pointer: coarse) {
  .tool-card:hover,
  .cat-card:hover,
  .benefit-card:hover,
  .step-card:hover,
  .category-showcase__card:hover,
  .featured-card:hover,
  .blog-card:hover,
  .btn-gold:hover,
  .btn-ghost:hover,
  .btn-ghost--dark:hover,
  .search-wrap button:hover,
  .ic-drop:hover {
    transform: none !important;
    filter: none !important;
  }

  .category-showcase__card:hover .category-showcase__cta {
    transform: none !important;
  }
}

@supports (backdrop-filter: blur(1px)) {
  .site-nav,
  .btn-ghost,
  .section--steps,
  .section--about,
  .stats-grid,
  .section--category-cta,
  .categories-footer-note {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* —— Watermark tool —— */
.wm-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wm-type,
.wm-format {
  margin: 0;
}

.wm-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.wm-row--sliders {
  align-items: stretch;
}

.wm-row--sliders .ic-control {
  flex: 1 1 180px;
  min-width: 0;
}

/* SEO CONTENT SECTION */
.section--seo-content {
  background: var(--site-bg);
  padding: clamp(3.5rem, 4vw, 6.5rem) 5%;
}

.seo-content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-primary);
}

.seo-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 32px;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 28px 0 16px;
}

.seo-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.seo-content__intro {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* STEPS LIST */
.seo-steps {
  list-style: decimal;
  padding-left: 28px;
  margin: 20px 0 32px 0;
}

.seo-steps li {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 12px;
}

.seo-steps li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* FEATURE LIST - Grid Layout */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}

.feature-list h3 {
  grid-column: 1 / -1;
  margin: 0 0 16px 0;
}

.feature-list > h3:nth-of-type(n+2) {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.feature-list > h3 + p {
  grid-column: 1 / -1;
  margin-top: -8px;
  margin-bottom: 16px;
}

.feature-list > div {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F7FF 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.feature-list > div:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.28);
  box-shadow: var(--shadow-md);
}

/* Create card-like items from feature-list children */
.feature-list h3:not(:first-of-type),
.feature-list h3 + p + p,
.feature-list h3 + p + p + p {
  display: contents;
}

/* TABLE STYLING */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.seo-table thead {
  background: linear-gradient(180deg, #F8F7FF 0%, #F0EFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.seo-table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  font-size: 14px;
}

.seo-table td {
  padding: 14px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:hover {
  background: rgba(108, 99, 255, 0.04);
}

.seo-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

/* FAQ LIST STYLING */
.faq-list.seo-faq {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
}

.seo-faq__item,
.faq-list .faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.98));
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.seo-faq__item:hover,
.faq-list .faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 99, 255, 0.24);
}

.seo-faq__item summary,
.faq-list .faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background var(--transition-fast);
}

.seo-faq__item summary:hover,
.faq-list .faq-item summary:hover {
  background: rgba(108, 99, 255, 0.04);
}

.seo-faq__item summary::-webkit-details-marker,
.faq-list .faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq__item summary::after,
.faq-list .faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  font-weight: 300;
  transition: transform var(--transition-fast);
}

.seo-faq__item[open] summary::after,
.faq-list .faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.seo-faq__item p,
.faq-list .faq-item p {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.seo-faq__item[open] summary {
  background: rgba(108, 99, 255, 0.06);
}

/* WHY CHOOSE SECTION */
.why-choose-section {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F7FF 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.why-choose-section h2 {
  margin-top: 0;
}

.why-choose-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}

.why-choose-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.why-choose-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .seo-content {
    max-width: 100%;
  }

  .seo-content h2 {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 16px;
  }

  .seo-content h3 {
    font-size: 16px;
    margin: 20px 0 12px;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0 24px;
  }

  .seo-table {
    font-size: 14px;
    margin: 16px 0 24px;
  }

  .seo-table th,
  .seo-table td {
    padding: 12px 14px;
  }

  .faq-list.seo-faq {
    gap: 8px;
    margin: 16px 0 24px;
  }

  .seo-faq__item summary,
  .faq-list .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .seo-faq__item p,
  .faq-list .faq-item p {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  .why-choose-section {
    padding: 28px 20px;
    margin: 24px 0;
  }

  .seo-steps {
    padding-left: 24px;
    margin: 16px 0 24px;
  }

  .seo-content__intro {
    font-size: 15px;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .seo-content h2 {
    font-size: 22px;
  }

  .seo-content h3 {
    font-size: 15px;
  }

  .feature-list {
    gap: 12px;
  }

  .seo-table {
    font-size: 13px;
  }

  .seo-table th,
  .seo-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .seo-table th {
    font-size: 12px;
  }

  .faq-list.seo-faq {
    gap: 6px;
  }

  .seo-faq__item summary {
    padding: 12px 14px;
    font-size: 13px;
  }

  .seo-faq__item p {
    padding: 0 14px 12px;
    font-size: 13px;
  }

  .why-choose-section {
    padding: 20px 16px;
  }

  .why-choose-list li {
    padding-left: 24px;
    font-size: 14px;
  }
}

/* BACKGROUND REMOVER DEMO */
.ic-demo {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.ic-demo[hidden],
#demoView[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.ic-demo__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* Ensure workspace hidden state */
.ic-workspace[hidden],
#workspaceView[hidden] {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure upload view is visible by default */
#uploadView {
  display: block;
  visibility: visible;
}

#uploadView[hidden] {
  display: none !important;
  visibility: hidden !important;
}
}

.wm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.wm-field--grow {
  flex: 1 1 220px;
  min-width: 180px;
}

.wm-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.wm-field input[type="text"] {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
}

.wm-field input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.wm-field input[type="color"] {
  width: 56px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--off-white);
}

.wm-file {
  font-size: 14px;
  max-width: 100%;
}

.wm-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -6px 0 0;
}

.wm-position__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.wm-position__grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  max-width: 160px;
}

.wm-pos {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.wm-pos::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wm-pos[data-pos="top-left"]::after { top: 10px; left: 10px; transform: none; }
.wm-pos[data-pos="top-center"]::after { top: 10px; left: 50%; transform: translateX(-50%); }
.wm-pos[data-pos="top-right"]::after { top: 10px; right: 10px; left: auto; transform: none; }
.wm-pos[data-pos="center-left"]::after { top: 50%; left: 10px; transform: translateY(-50%); }
.wm-pos[data-pos="center"]::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.wm-pos[data-pos="center-right"]::after { top: 50%; right: 10px; left: auto; transform: translateY(-50%); }
.wm-pos[data-pos="bottom-left"]::after { bottom: 10px; left: 10px; top: auto; transform: none; }
.wm-pos[data-pos="bottom-center"]::after { bottom: 10px; left: 50%; top: auto; transform: translateX(-50%); }
.wm-pos[data-pos="bottom-right"]::after { bottom: 10px; right: 10px; left: auto; top: auto; transform: none; }

.wm-pos:hover {
  border-color: rgba(108, 99, 255, 0.45);
}

.wm-pos.is-active {
  border-color: var(--gold);
  background: rgba(108, 99, 255, 0.12);
}

.wm-pos.is-active::after {
  background: var(--gold);
}

.wm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.wm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
}

@media (max-width: 640px) {
  .wm-controls {
    padding: 18px;
  }

  .wm-row--sliders {
    flex-direction: column;
  }
}

/* ── SEO content blocks (tool pages) ── */
.section--seo-content {
  padding-top: 0;
  padding-bottom: 48px;
}

.seo-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.seo-content__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.seo-steps {
  margin: 0 0 8px 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.seo-steps li {
  margin-bottom: 8px;
}

.seo-steps strong {
  color: var(--text-primary);
}

.seo-faq {
  margin-top: 4px;
}

.seo-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.seo-related h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.seo-related__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .seo-related__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-related__list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.seo-related__list a:hover {
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: var(--shadow-sm);
}

.seo-related__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.seo-related__list strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.seo-related__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.seo-popular-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.seo-popular-tools__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.seo-popular-tools ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
}

.seo-popular-tools a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.seo-popular-tools a:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* —— UI polish: accessibility, focus, touch, usability —— */
::selection {
  background: rgba(108, 99, 255, 0.35);
  color: var(--navy);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(-140%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.38);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.filter-pill:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(108, 99, 255, 0.65);
  outline-offset: 2px;
}

.nav-links a:focus-visible {
  outline-offset: 4px;
}

.btn-gold,
.search-wrap button,
.contact-form__submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-pill {
  min-height: 40px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}

.filter-pill.is-active {
  box-shadow: 0 4px 14px rgba(18, 24, 38, 0.18);
}

.filter-pill:focus-visible {
  border-color: var(--gold);
}

.tools-page-toolbar {
  position: sticky;
  top: calc(var(--scroll-offset) - 4px);
  z-index: 40;
  margin-bottom: 32px;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, rgba(247, 246, 242, 0.98) 70%, rgba(247, 246, 242, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section--tools-page .container,
.section--tools-page {
  padding-left: 5%;
  padding-right: 5%;
}

.faq-item {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 18px 22px;
  gap: 16px;
  transition: background var(--transition-fast);
}

.faq-item summary:hover {
  background: rgba(108, 99, 255, 0.06);
}

.faq-item summary:focus-visible {
  background: rgba(108, 99, 255, 0.08);
}

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
}

.category-showcase__card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tool-card:focus-visible,
.cat-card:focus-visible,
.blog-card:focus-visible {
  outline: 3px solid rgba(108, 99, 255, 0.7);
  outline-offset: 2px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-col a {
  display: inline-block;
  padding: 2px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

/* ── UTILITY TOOLS SPECIFIC ── */

/* Online Notepad */
.notepad-textarea {
  width: 100%;
  min-height: 400px;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notepad-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.notepad-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(108, 99, 255, 0.06);
  border-radius: var(--radius-lg);
}

.notepad-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.notepad-stat span {
  font-weight: 600;
  color: var(--text-secondary);
}

.notepad-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.tool-panel__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Random Number Generator */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text-primary);
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.rng-result-box {
  margin-top: 20px;
  padding: 20px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
}

.rng-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.rng-output {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  word-break: break-all;
}

.rng-history {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rng-history h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.rng-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 13px;
}

.history-result {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--gold);
}

.history-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stopwatch */
.stopwatch-display {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  padding: 40px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.stopwatch-time {
  font-feature-settings: "tnum" 1;
}

.stopwatch-controls {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.stopwatch-laps {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stopwatch-laps h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.laps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.lap-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-sans);
}

.lap-num {
  font-weight: 600;
  color: var(--text-secondary);
}

.lap-time {
  font-weight: 700;
  color: var(--gold);
}

/* Timer */
.timer-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.timer-display {
  font-family: var(--font-sans);
  font-size: 72px;
  font-weight: 700;
  text-align: center;
  padding: 40px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.timer-time {
  font-feature-settings: "tnum" 1;
}

.timer-controls {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.timer-sound-control {
  padding: 12px 16px;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.sound-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

/* Timezone Converter */
.timezone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.timezone-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timezone-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.timezone-group input,
.timezone-group select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text-primary);
  font-size: 14px;
}

.timezone-group input:focus,
.timezone-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.timezone-result {
  margin-top: 20px;
}

.timezone-result-box {
  padding: 20px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.result-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  font-family: var(--font-sans);
}

/* Barcode Generator */
.barcode-preview {
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0;
}

.barcode-image {
  margin-top: 16px;
}

.barcode-image svg {
  max-width: 100%;
  height: auto;
}

/* IP Checker */
.ip-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.ip-result-card {
  padding: 20px;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}

.ip-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.ip-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  font-family: var(--font-sans);
  word-break: break-all;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
  margin-top: 10px;
}

/* Line Break Remover */
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.tool-panel__copy {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tool-panel__copy strong {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 640px) {
  .form-grid,
  .timezone-grid,
  .ip-results-grid {
    grid-template-columns: 1fr;
  }

  .timer-input-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stopwatch-display,
  .timer-display {
    font-size: 48px;
  }

  .notepad-controls {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-col a:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.categories-footer-note {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.categories-footer-note a {
  font-weight: 600;
  color: var(--gold-dark);
}

@media (max-width: 1200px) {
  .site-nav .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 14px 0;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    padding: 28px 20px;
  }

  .stat-block::after {
    display: none;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}

/* SEO Content Internal Links */


.seo-content .seo-link{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    padding:.42rem .9rem;
    margin:.15rem .25rem;
    border-radius:999px;

    color:#5b5cf0;
    background:rgba(91,92,240,.08);
    border:1px solid rgba(91,92,240,.18);

    font-size:.94rem;
    font-weight:600;
    text-decoration:none;
    line-height:1;

    transition:all .28s ease;
}

.seo-content .seo-link::after{
    content:"→";
    font-size:.8rem;
    transition:transform .25s ease;
}

.seo-content .seo-link:hover{
    color:#fff;
    background:linear-gradient(135deg,#6c63ff,#7f7cff,#5b5cf0);
    border-color:#6c63ff;

    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(108,99,255,.22),
        0 3px 8px rgba(108,99,255,.12);
}

.seo-content .seo-link:hover::after{
    transform:translateX(3px);
}

.seo-content .seo-link:focus-visible{
    outline:none;
    box-shadow:
        0 0 0 3px rgba(108,99,255,.18),
        0 10px 24px rgba(108,99,255,.22);
}

@media (max-width:768px){
    .seo-content .seo-link{
        margin:.18rem;
        font-size:.9rem;
    }
}