/*
 * VLETOOLS.IN — Premium Design System v3
 * Indian-theme: Saffron · Tricolor accent · Deep Navy
 * Container: 1160px max  |  font: Inter + Plus Jakarta Sans
 * ─────────────────────────────────────────────────────────
 */

/* ── Google Fonts (single import, no duplicate) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap');

/* ════════════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════════════ */
:root {
  /* Brand — Indian palette */
  --saffron:      #FF9933;       /* Tiranga saffron */
  --saffron-d:    #E07800;
  --saffron-l:    #FFF3E0;
  --green-india:  #138808;       /* Tiranga green */
  --green-d:      #0d6606;
  --green-l:      #E8F5E9;
  --navy:         #000080;       /* Ashoka chakra blue */
  --chakra:       #0047AB;

  /* Primary brand (teal-green, trust + tech) */
  --brand:        #059669;
  --brand-d:      #047857;
  --brand-l:      #ECFDF5;
  --brand-mid:    #10B981;

  /* Accent */
  --accent:       #FF9933;
  --accent-d:     #E07800;

  /* Neutral scale */
  --ink:          #111827;
  --ink2:         #1F2937;
  --ink3:         #374151;
  --muted:        #6B7280;
  --muted2:       #9CA3AF;
  --line:         #E5E7EB;
  --line-d:       #D1D5DB;
  --bg:           #F9FAFB;
  --bg2:          #F3F4F6;
  --surface:      #FFFFFF;
  --surface2:     #FAFAFA;

  /* Gradients */
  --g-brand:     linear-gradient(135deg, #059669 0%, #0EA5E9 100%);
  --g-saffron:   linear-gradient(135deg, #FF9933 0%, #FF6B00 100%);
  --g-india:     linear-gradient(135deg, #FF9933 0%, #138808 100%);
  --g-card:      linear-gradient(160deg, #FFFFFF 0%, #F9FAFB 100%);
  --g-hero:      linear-gradient(145deg, #F0FDF4 0%, #EFF6FF 45%, #FFF7ED 100%);
  --g-dark-hero: linear-gradient(145deg, #0D1F17 0%, #0F1B2D 50%, #1A1200 100%);

  /* Shadows */
  --sh-xs:  0 1px 2px rgba(0,0,0,.05);
  --sh-sm:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --sh-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --sh-lg:  0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  --sh-xl:  0 20px 50px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --sh-glow: 0 0 0 3px rgba(5,150,105,.15), 0 4px 14px rgba(5,150,105,.25);
  --sh-saffron: 0 4px 14px rgba(255,153,51,.35);

  /* Border radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Easing */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --spring:   cubic-bezier(.34,1.56,.64,1);
}

/* ── Dark mode tokens ── */
body.dark {
  --ink:     #F9FAFB;  --ink2: #E5E7EB;  --ink3: #D1D5DB;
  --muted:   #9CA3AF;  --muted2: #6B7280;
  --line:    #374151;  --line-d: #4B5563;
  --bg:      #030712;  --bg2:  #111827;
  --surface: #1F2937;  --surface2: #111827;
  --g-card:  linear-gradient(160deg,#1F2937 0%,#111827 100%);
  --g-hero:  var(--g-dark-hero);
}

/* ════════════════════════════════════════════════
   BASE RESET
   ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}

a { text-decoration: none; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }

/* Selection */
::selection { background: rgba(5,150,105,.2); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════ */
.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* ════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════ */
.hidden   { display: none !important; }
.sr-only  { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }
.search-hidden { display: none !important; }

/* ════════════════════════════════════════════════
   TRICOLOR ACCENT BAR (top of page)
   ════════════════════════════════════════════════ */
.tricolor-bar {
  height: 3px;
  background: linear-gradient(90deg,
    var(--saffron) 0% 33.3%,
    #fff          33.3% 66.6%,
    var(--green-india) 66.6% 100%);
}

/* ════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background .25s, box-shadow .25s, transform .3s var(--ease-out);
}
body.dark .site-header {
  background: rgba(17,24,39,.9);
  border-color: var(--line);
}
.site-header.scrolled { box-shadow: var(--sh-lg); }
.site-header.hidden   { transform: translateY(-100%); }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--g-brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font: 800 16px "Plus Jakarta Sans", sans-serif;
  color: #fff;
  letter-spacing: -1px;
  box-shadow: var(--sh-glow);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.brand-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%);
}
.brand-text b {
  display: block;
  font: 800 20px/1 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.8px;
  color: var(--ink);
}
.brand-text b .dot { color: var(--accent); }
.brand-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
  letter-spacing: .1px;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font: 600 13px Inter, sans-serif;
  color: var(--ink3);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-menu a:hover  { background: var(--bg2); color: var(--brand-d); }
.nav-menu a.active {
  background: var(--brand-l);
  color: var(--brand-d);
  font-weight: 700;
}
.nav-badge-new {
  display: inline-block;
  padding: 1px 6px;
  background: var(--g-saffron);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 99px;
  letter-spacing: .5px;
}

/* Action buttons */
.nav-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink3);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--g-brand);
  color: #fff;
  font: 700 13px Inter, sans-serif;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: var(--sh-glow);
  white-space: nowrap;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-xl); }

.mobile-menu {
  display: none;
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 18px;
  place-items: center;
  color: var(--ink);
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--g-hero);
  padding: 56px 0 48px;
}
/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(5,150,105,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Tricolor glow blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob-saffron { width:320px;height:320px; background:rgba(255,153,51,.12); top:-80px; right:-60px; }
.blob-green   { width:280px;height:280px; background:rgba(19,136,8,.1);   bottom:-60px; left:-40px; }
.blob-blue    { width:200px;height:200px; background:rgba(0,71,171,.08);   top:40px; left:30%; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { padding: 0; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-l);
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 99px;
  font: 700 11px Inter, sans-serif;
  color: var(--brand-d);
  letter-spacing: .4px;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font: 900 clamp(32px,4vw,56px)/1.05 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .saffron { color: var(--saffron); -webkit-text-fill-color: var(--saffron); }

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink3);
  max-width: 500px;
  margin-bottom: 28px;
}
body.dark .hero-desc { color: var(--muted); }

/* Search */
.searchbar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-d);
  border-radius: var(--r-xl);
  padding: 5px 5px 5px 16px;
  box-shadow: var(--sh-lg);
  max-width: 520px;
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within {
  border-color: var(--brand);
  box-shadow: var(--sh-glow), var(--sh-lg);
}
.searchbar-icon { font-size: 18px; color: var(--muted2); flex-shrink:0; }
.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 12px;
  font: 500 14px Inter, sans-serif;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.searchbar input::placeholder { color: var(--muted2); }
.searchbar-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: var(--r-md);
  padding: 10px 20px;
  background: var(--g-brand);
  color: #fff;
  font: 700 13px Inter, sans-serif;
  cursor: pointer;
  transition: transform .2s var(--spring);
}
.searchbar-btn:hover { transform: scale(1.04); }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 11px Inter, sans-serif;
  color: var(--muted);
}
.trust-pill-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-l);
  border: 1.5px solid rgba(5,150,105,.3);
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--brand-d);
  flex-shrink: 0;
}

/* Hero art */
.hero-art {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup {
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  padding: 24px;
  position: relative;
  z-index: 2;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.mockup-dot { width:10px;height:10px;border-radius:50%; }
.mockup-dot:nth-child(1){background:#FF5F57;}
.mockup-dot:nth-child(2){background:#FEBC2E;}
.mockup-dot:nth-child(3){background:#28C840;}
.mockup-title { font: 700 13px Inter,sans-serif; color: var(--ink3); margin-left:4px; }
.mockup-upload {
  border: 2px dashed rgba(5,150,105,.4);
  border-radius: var(--r-lg);
  padding: 28px 16px;
  text-align: center;
  background: var(--brand-l);
}
.mockup-upload-icon {
  width: 48px; height: 48px;
  background: var(--g-brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 0 auto 12px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.mockup-upload b { font-size: 14px; color: var(--ink); display:block; margin-bottom:4px; }
.mockup-upload small { font-size: 11px; color: var(--muted); }
.mockup-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mtag {
  padding: 4px 10px;
  border-radius: 99px;
  font: 700 10px Inter, sans-serif;
  letter-spacing: .3px;
}
.mtag-pdf  { background:#FEE2E2; color:#DC2626; }
.mtag-jpg  { background:#DBEAFE; color:#1D4ED8; }
.mtag-png  { background:#D1FAE5; color:#065F46; }
.mtag-webp { background:#F3E8FF; color:#6D28D9; }

/* Floating badges on hero art */
.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  box-shadow: var(--sh-lg);
  font: 700 12px Inter, sans-serif;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
}
.hero-float-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0;
}
.hf1 { top:20px; right:0px; animation: hfloat1 4s ease-in-out infinite; }
.hf2 { bottom:40px; left:0px; animation: hfloat2 5s ease-in-out infinite; }
.hf3 { top:50%; left:-30px; transform:translateY(-50%); animation: hfloat1 4.5s ease-in-out infinite .5s; }
@keyframes hfloat1 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-10px)} }
@keyframes hfloat2 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(8px)} }

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-item:last-child { border-right: 0; }
.stat-num {
  display: block;
  font: 800 26px/1 "Plus Jakarta Sans", sans-serif;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.stat-label {
  display: block;
  font: 500 11px Inter, sans-serif;
  color: var(--muted);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════
   PAGE SECTION
   ════════════════════════════════════════════════ */
.page-section {
  padding: 48px 0;
}
.page-section--alt { background: var(--bg2); }
body.dark .page-section--alt { background: var(--bg2); }

/* Section heading */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sec-head-left {}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px Inter, sans-serif;
  color: var(--brand-d);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.sec-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.sec-head h2 {
  font: 800 24px/1.15 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.6px;
  color: var(--ink);
  margin: 0;
}
.sec-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 12px Inter, sans-serif;
  color: var(--brand-d);
  padding: 8px 14px;
  border: 1.5px solid rgba(5,150,105,.25);
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: .15s;
}
.sec-link:hover { background: var(--brand-l); border-color: var(--brand); }

/* ════════════════════════════════════════════════
   TOOL CARDS — MAIN GRID
   ════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tools-grid--3 { grid-template-columns: repeat(3, 1fr); }

.tool-card {
  position: relative;
  background: var(--g-card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform .22s var(--spring), box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--brand);
}
.tool-card:hover .tc-arrow { opacity: 1; transform: translate(0,0); }
/* Shine overlay */
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

/* Tone backgrounds */
.tc-saffron { background: linear-gradient(160deg,#FFFBF5,#FFF3E0); border-color: #FDDBA0; }
.tc-green   { background: linear-gradient(160deg,#F0FDF4,#DCFCE7); border-color: #BBF7D0; }
.tc-blue    { background: linear-gradient(160deg,#EFF6FF,#DBEAFE); border-color: #BFDBFE; }
.tc-purple  { background: linear-gradient(160deg,#FAF5FF,#EDE9FE); border-color: #DDD6FE; }
.tc-red     { background: linear-gradient(160deg,#FFF1F2,#FFE4E6); border-color: #FECDD3; }
.tc-teal    { background: linear-gradient(160deg,#F0FDFA,#CCFBF1); border-color: #99F6E4; }

body.dark .tc-saffron { background:linear-gradient(160deg,#1C1200,#2A1800); border-color:#78350F44; }
body.dark .tc-green   { background:linear-gradient(160deg,#052E16,#0D3321); border-color:#16653044; }
body.dark .tc-blue    { background:linear-gradient(160deg,#0C1A3E,#0F2254); border-color:#1D4ED844; }
body.dark .tc-purple  { background:linear-gradient(160deg,#1E1040,#27144F); border-color:#6D28D944; }
body.dark .tc-red     { background:linear-gradient(160deg,#2A0A10,#371020); border-color:#DC262644; }
body.dark .tc-teal    { background:linear-gradient(160deg,#012220,#022B29); border-color:#0D948444; }

.tc-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font: 900 16px Inter, sans-serif;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  flex-shrink: 0;
  margin-bottom: 2px;
}
/* Icon backgrounds per tone */
.tc-saffron .tc-icon { background: linear-gradient(135deg,#FF9933,#FF6B00); }
.tc-green   .tc-icon { background: linear-gradient(135deg,#16A34A,#059669); }
.tc-blue    .tc-icon { background: linear-gradient(135deg,#2563EB,#0EA5E9); }
.tc-purple  .tc-icon { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.tc-red     .tc-icon { background: linear-gradient(135deg,#E11D48,#F43F5E); }
.tc-teal    .tc-icon { background: linear-gradient(135deg,#0D9488,#10B981); }

.tc-name {
  font: 700 14px/1.3 Inter, sans-serif;
  color: var(--ink);
}
.tc-desc {
  font: 400 12px/1.5 Inter, sans-serif;
  color: var(--muted);
  flex: 1;
}
.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.tc-tag {
  font: 600 10px Inter, sans-serif;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .3px;
}
.tc-saffron .tc-tag { background:rgba(255,153,51,.15); color:var(--saffron-d); }
.tc-green   .tc-tag { background:rgba(22,163,74,.12);  color:var(--green-d); }
.tc-blue    .tc-tag { background:rgba(37,99,235,.12);  color:#1D4ED8; }
.tc-purple  .tc-tag { background:rgba(124,58,237,.12); color:#6D28D9; }
.tc-red     .tc-tag { background:rgba(225,29,72,.12);  color:#BE123C; }
.tc-teal    .tc-tag { background:rgba(13,148,136,.12); color:#0F766E; }

.tc-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
  color: #fff;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s, transform .2s;
}
.tc-saffron .tc-arrow { background: linear-gradient(135deg,#FF9933,#FF6B00); }
.tc-green   .tc-arrow { background: linear-gradient(135deg,#16A34A,#059669); }
.tc-blue    .tc-arrow { background: linear-gradient(135deg,#2563EB,#0EA5E9); }
.tc-purple  .tc-arrow { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.tc-red     .tc-arrow { background: linear-gradient(135deg,#E11D48,#F43F5E); }
.tc-teal    .tc-arrow { background: linear-gradient(135deg,#0D9488,#10B981); }

/* ── Popular / compact card (list row) ── */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  transition: .2s;
}
.pop-card:hover {
  border-color: var(--brand);
  box-shadow: var(--sh-md);
  transform: translateX(3px);
}
.pop-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font: 800 12px Inter, sans-serif;
  color: #fff;
  flex-shrink: 0;
}
.pop-card b  { font-size: 13px; color: var(--ink); display: block; }
.pop-card small { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }
.pop-card em { margin-left: auto; font-style: normal; color: var(--brand); font-weight: 700; flex-shrink: 0; }

/* ── All-tools compact grid ── */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.compact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink2);
  transition: .18s;
}
.compact-card:hover {
  border-color: var(--brand);
  color: var(--brand-d);
  background: var(--brand-l);
}
.compact-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  color: var(--brand-d);
  display: grid; place-items: center;
  font: 700 11px Inter, sans-serif;
  flex-shrink: 0;
}
.compact-card b     { font-size: 12px; font-weight: 700; display: block; }
.compact-card small { font-size: 10px; color: var(--muted); display: block; margin-top: 1px; }
.compact-card em    { margin-left: auto; font-style: normal; color: var(--brand); font-weight: 700; flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.compact-card:hover em { opacity: 1; }

/* ════════════════════════════════════════════════
   CARD PRINTING BANNER
   ════════════════════════════════════════════════ */
.card-print-banner {
  background: linear-gradient(135deg, #1E3A5F 0%, #0D1F3C 100%);
  border-radius: var(--r-2xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.card-print-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,153,51,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.card-print-banner::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,153,51,.06);
}
.cpb-eyebrow {
  font: 700 11px Inter, sans-serif;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cpb-title {
  font: 800 22px/1.2 "Plus Jakarta Sans", sans-serif;
  color: #fff;
  margin-bottom: 10px;
}
.cpb-desc { font-size: 14px; color: rgba(255,255,255,.65); max-width: 480px; }
.cpb-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cpb-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px;
  font: 600 11px Inter, sans-serif;
  color: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
}
.cpb-btns { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.cpb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font: 700 13px Inter, sans-serif;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: transform .2s var(--spring);
}
.cpb-btn:hover { transform: translateY(-2px); }
.cpb-btn--primary { background: var(--g-saffron); color: #fff; box-shadow: var(--sh-saffron); }
.cpb-btn--sec     { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ════════════════════════════════════════════════
   FEATURES / BENEFITS STRIP
   ════════════════════════════════════════════════ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
}
.feat-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .15s;
}
.feat-item:last-child { border-right: 0; }
.feat-item:hover { background: var(--bg2); }
.feat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-l);
  color: var(--brand-d);
  display: grid; place-items: center;
  font-size: 18px;
  margin: 0 auto 10px;
}
.feat-item b   { font-size: 13px; display: block; font-weight: 700; color: var(--ink); }
.feat-item small { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }

/* ════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.step-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  text-align: center;
  transition: .2s var(--spring);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--g-brand);
  color: #fff;
  font: 800 20px "Plus Jakarta Sans", sans-serif;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: var(--sh-glow);
}
.step-card h3  { font: 700 16px Inter, sans-serif; margin-bottom: 8px; color: var(--ink); }
.step-card p   { font-size: 13px; color: var(--muted); line-height: 1.6; }
.step-connector {
  position: absolute;
  top: 46px;
  right: -20px;
  font-size: 24px;
  color: var(--muted2);
  z-index: 5;
}
.step-card:last-child .step-connector { display: none; }

/* ════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 24px;
  position: relative;
  transition: .2s;
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.testi-card::before {
  content: '"';
  position: absolute;
  top: 14px; right: 18px;
  font: 900 64px Georgia, serif;
  line-height: 1;
  color: var(--brand-l);
}
body.dark .testi-card::before { color: rgba(5,150,105,.15); }
.stars { font-size: 13px; letter-spacing: 2px; color: #F59E0B; margin-bottom: 12px; }
.testi-text { font-size: 14px; line-height: 1.75; color: var(--ink3); margin-bottom: 18px; }
body.dark .testi-text { color: var(--muted); }
.testi-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g-brand);
  color: #fff;
  font: 700 16px Inter, sans-serif;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.author-name  { font: 700 13px Inter, sans-serif; color: var(--ink); display: block; }
.author-role  { font: 400 11px Inter, sans-serif; color: var(--muted); display: block; margin-top: 1px; }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(175deg, #0F1E35 0%, #050D1A 100%);
  color: rgba(255,255,255,.6);
  padding: 48px 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.45); }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  margin-top: 12px;
  max-width: 260px;
}
.footer-col h4 {
  font: 700 11px Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom small { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(5,150,105,.15);
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 99px;
  font: 700 11px Inter, sans-serif;
  color: #6EE7B7;
}

/* Simple footer (tool page) */
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   TOOL PAGE
   ════════════════════════════════════════════════ */
.tool-page {
  background: var(--g-hero);
  min-height: calc(100vh - 64px);
  padding: 32px 0 56px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px Inter, sans-serif;
  color: var(--brand-d);
  padding: 7px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  transition: .15s;
}
.back-link:hover { border-color: var(--brand); box-shadow: var(--sh-sm); }

.tool-shell {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}

/* Tool header */
.tool-header {
  padding: 20px 24px 12px;
  background: var(--g-hero);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.tool-eyebrow {
  display: none; /* Hide to save space as requested */
}
.tool-icon-big {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: inline-grid; place-items: center;
  font: 800 16px Inter, sans-serif;
  color: #fff;
  box-shadow: var(--sh-md);
  margin: 0 auto 8px;
}
.tool-header h1 {
  font: 800 24px/1.2 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.tool-header p  { font-size: 13px; color: var(--muted); max-width: 500px; margin: 0 auto; }
.tool-badges    { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tbadge {
  padding: 3px 8px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 600 11px Inter, sans-serif;
  color: var(--muted);
  transition: .15s;
}
.tbadge:hover { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); }

/* Tool body */
.tool-body { padding: 28px 36px 36px; }

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(5,150,105,.35);
  border-radius: var(--r-xl);
  padding: 24px 24px 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--brand-l) 0%, rgba(14,165,233,.04) 100%);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0, rgba(5,150,105,.07), transparent 60%);
  pointer-events: none;
}
.drop-zone.dragging {
  border-color: var(--brand);
  background: rgba(5,150,105,.08);
  transform: scale(.99);
}
.drop-zone:hover .dz-icon { transform: translateY(-6px); }
.dz-icon {
  width: 52px; height: 52px;
  background: var(--g-brand);
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  font-size: 22px;
  margin: 0 auto 12px;
  transition: transform .3s var(--spring);
  box-shadow: var(--sh-glow);
}
.dz-title { font: 700 17px "Plus Jakarta Sans", sans-serif; color: var(--ink); margin-bottom: 4px; }
.dz-sub   { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.dz-note  { font-size: 10px; color: var(--muted2); margin-top: 10px; }

/* Image preview after file select */
.img-preview-wrap {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
}
.img-preview-thumb {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.img-preview-info { flex: 1; min-width: 0; }
.img-preview-info b    { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-preview-info small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.img-preview-info .remove-file {
  margin-top: 8px; padding: 5px 12px;
  font: 600 11px Inter, sans-serif; color: #E11D48;
  background: rgba(225,29,72,.06); border: 1px solid rgba(225,29,72,.2);
  border-radius: var(--r-sm); cursor: pointer;
  transition: background .2s;
}
.img-preview-info .remove-file:hover { background: rgba(225,29,72,.12); }


/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 13px 28px;
  background: var(--g-brand);
  color: #fff;
  font: 700 14px Inter, sans-serif;
  border-radius: var(--r-lg);
  cursor: pointer;
  box-shadow: var(--sh-glow);
  transition: transform .2s var(--spring), box-shadow .2s;
  letter-spacing: .1px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-xl); }
.btn-primary:active { transform: translateY(0); }

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink3);
  font: 600 13px Inter, sans-serif;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: .18s;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }

/* Options panel */
.opts-panel {
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  margin-top: 18px;
}
.opts-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px Inter, sans-serif;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.opts-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--g-brand);
  color: #fff;
  display: grid; place-items: center;
  font: 700 13px Inter, sans-serif;
  flex-shrink: 0;
}
.opts-tip {
  margin-left: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-l);
  border: 1px solid rgba(5,150,105,.25);
  color: var(--brand-d);
  display: grid; place-items: center;
  font: 800 11px Inter, sans-serif;
  cursor: help;
  flex-shrink: 0;
}

/* Option grid */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.opt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 700 10px Inter, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.opt-label input,
.opt-label select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 500 13px Inter, sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.opt-label input:focus,
.opt-label select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

/* Range slider */
.range-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.range-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 99px;
  background: var(--line-d);
  outline: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--g-brand);
  border: 2px solid #fff;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform .15s var(--spring);
}
.range-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }
.range-wrap output {
  min-width: 36px;
  text-align: center;
  font: 700 12px Inter, sans-serif;
  color: var(--brand-d);
  background: var(--brand-l);
  border-radius: var(--r-sm);
  padding: 3px 6px;
}

/* Info bar */
.info-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand-l);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--brand-d);
  line-height: 1.5;
}
.info-bar--warn {
  background: var(--saffron-l);
  border-color: rgba(255,153,51,.3);
  color: var(--accent-d);
}
.info-bar-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(5,150,105,.15);
  display: grid; place-items: center;
  font: 800 10px Inter, sans-serif;
  flex-shrink: 0;
}

/* Preset box */
.preset-box {
  padding: 14px 16px;
  background: var(--brand-l);
  border: 1.5px solid rgba(5,150,105,.2);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.preset-box b     { font-size: 13px; color: var(--ink); display: block; }
.preset-box span  { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.preset-box.warn  { background: var(--saffron-l); border-color: rgba(255,153,51,.3); }

/* File row */
.file-list  { display: grid; gap: 8px; margin-bottom: 14px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
}
.file-row > div { flex: 1; min-width: 0; }
.file-row strong { font-size: 13px; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row span   { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.remove-file {
  border: 0;
  background: rgba(225,29,72,.08);
  color: #E11D48;
  border-radius: var(--r-sm);
  padding: 7px 11px;
  cursor: pointer;
  font: 600 11px Inter, sans-serif;
  flex-shrink: 0;
  transition: .15s;
}
.remove-file:hover { background: rgba(225,29,72,.15); }

/* Processing note */
.proc-note { font-size: 11px; color: var(--muted2); text-align: center; margin-top: 8px; }

/* Download area */
.dl-list { display: grid; gap: 8px; }
.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 1.5px solid var(--line);
  transition: .15s;
}
.dl-item:hover { border-color: var(--brand); box-shadow: var(--sh-sm); }
.dl-item-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  color: var(--brand-d);
  display: grid; place-items: center;
  font: 700 16px Inter, sans-serif;
  flex-shrink: 0;
}
.dl-item > div { flex: 1; min-width: 0; }
.dl-item b     { font-size: 13px; display: block; color: var(--ink); }
.dl-item small { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }
.dl-item em    { font-style: normal; font: 700 12px Inter, sans-serif; color: var(--brand-d); flex-shrink: 0; }

/* Success box */
.success-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-l);
  border: 1.5px solid rgba(5,150,105,.25);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.success-icon {
  width: 44px; height: 44px;
  background: var(--g-brand);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--sh-glow);
}
.success-box b    { font-size: 14px; color: var(--ink); display: block; }
.success-box span { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }

/* Progress / spinner */
.progress-box {
  padding: 36px 20px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg2);
}
.spinner {
  width: 36px; height: 36px;
  border: 3.5px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-box b    { font-size: 14px; color: var(--ink); display: block; }
.progress-box span { font-size: 12px; color: var(--muted); display: block; margin-top: 5px; }

/* Error box */
.error-box {
  padding: 16px 18px;
  background: rgba(225,29,72,.06);
  border: 1.5px solid rgba(225,29,72,.2);
  border-radius: var(--r-md);
}
.error-box b    { color: #BE123C; font-size: 14px; display: block; }
.error-box span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

/* Preview area */
.preview-area { margin-top: 20px; }

/* Related tools */
.related-tools  { margin-top: 32px; }
.related-title  { font: 700 16px Inter, sans-serif; color: var(--ink); margin-bottom: 14px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  transition: .2s;
  position: relative;
  overflow: hidden;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand); }
.related-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font: 700 13px Inter, sans-serif;
  color: #fff;
  flex-shrink: 0;
}
.related-card > div { flex: 1; min-width: 0; }
.related-card b     { font-size: 12px; color: var(--ink); display: block; }
.related-card small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.related-card em    { font-style: normal; color: var(--brand); font-weight: 700; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   ADVANCED TOOL UI — shared across all tool panels
   ════════════════════════════════════════════════ */

/* Quality preset buttons */
.qual-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.qual-btn {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition: .15s var(--spring);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.qual-btn span  { font-size: 20px; line-height: 1; }
.qual-btn b     { font: 700 11px Inter, sans-serif; color: var(--ink); display: block; }
.qual-btn small { font: 400 10px Inter, sans-serif; color: var(--muted); display: block; }
.qual-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.qual-btn--active {
  border-color: var(--brand) !important;
  background: var(--brand-l) !important;
  box-shadow: var(--sh-glow);
  transform: translateY(-2px);
}
.qual-btn--active b { color: var(--brand-d); }

/* Size target grid */
.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.size-choice {
  border: 1.5px solid var(--line);
  background: var(--surface);
  padding: 12px;
  border-radius: var(--r-md);
  color: var(--brand-d);
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
  text-align: center;
  transition: .15s var(--spring);
}
.size-choice:hover, .size-choice.selected {
  background: var(--g-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-glow);
  transform: translateY(-2px);
}

/* KB input */
.kb-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.kb-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.kb-input-wrap input {
  flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  padding: 10px 12px; font: 600 14px Inter, sans-serif; color: var(--ink); background: transparent; min-width: 0;
}
.kb-unit {
  padding: 0 12px; font: 700 12px Inter, sans-serif; color: #fff;
  background: var(--g-brand); display: flex; align-items: center; white-space: nowrap;
}
.target-kb-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 0; }

/* Progress steps */
.prog-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.prog-step { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; }
.prog-step span { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.3; }
.prog-step__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 700 12px Inter, sans-serif;
  border: 2px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition: .25s;
}
.prog-step--done   .prog-step__dot { background: var(--g-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-glow); }
.prog-step--active .prog-step__dot { border-color: var(--brand); color: var(--brand-d); animation: step-pulse 1.4s ease-in-out infinite; }
.prog-step--done   span { color: var(--brand-d); font-weight: 600; }
.prog-step--active span { color: var(--ink); font-weight: 700; }
.prog-step__line   { width: 24px; height: 2px; background: var(--line); border-radius: 99px; margin-bottom: 18px; flex-shrink: 0; align-self: center; }
@keyframes step-pulse { 0%,100%{box-shadow:0 0 0 3px rgba(5,150,105,.15)} 50%{box-shadow:0 0 0 7px rgba(5,150,105,.06)} }

/* Size compare */
.size-compare {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.size-compare__item   { text-align: center; }
.size-compare__label  { display: block; font: 700 10px Inter, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 3px; }
.size-compare__val    { display: block; font: 700 18px "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.size-compare__val--smaller { color: #059669; }
.size-compare__val--bigger  { color: #E11D48; }
.size-compare__arrow  { font-size: 20px; color: var(--muted2); flex-shrink: 0; }
.size-compare__badge  { margin-left: auto; padding: 7px 14px; border-radius: 99px; background: rgba(5,150,105,.1); border: 1px solid rgba(5,150,105,.25); color: #059669; font: 700 13px Inter, sans-serif; white-space: nowrap; }
.size-compare__badge--warn { background:rgba(225,29,72,.08); border-color:rgba(225,29,72,.2); color:#E11D48; }

/* PDF stats grid */
.pdf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pdf-stat {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
}
.pdf-stat__label { display: block; font: 700 10px Inter, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.pdf-stat__val   { display: block; font: 700 15px "Plus Jakarta Sans", sans-serif; color: var(--ink); }

/* Method selector */
.method-row { display: flex; gap: 8px; flex-wrap: wrap; }
.method-btn {
  flex: 1; min-width: 90px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font: 600 12px Inter, sans-serif;
  color: var(--ink3);
  cursor: pointer;
  text-align: center;
  transition: .15s;
}
.method-btn:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }
.method-btn--active { background: var(--brand-l) !important; border-color: var(--brand) !important; color: var(--brand-d) !important; box-shadow: 0 0 0 2px rgba(5,150,105,.15); }

/* Rotate buttons */
.rotate-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rot-btn {
  flex: 1; min-width: 76px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 8px;
  font: 600 12px Inter, sans-serif;
  color: var(--ink3);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: .15s var(--spring);
}
.rot-btn:hover { background: var(--g-brand); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--sh-glow); }

/* Filter presets */
.filter-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-preset {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: 600 12px Inter, sans-serif;
  color: var(--ink3);
  cursor: pointer;
  transition: .15s;
}
.filter-preset:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }
.filter-preset--active { background: var(--g-brand) !important; color: #fff !important; border-color: transparent !important; box-shadow: var(--sh-glow); }

/* Filter sliders */
.filter-sliders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.filter-row { display: flex; flex-direction: column; gap: 5px; }
.filter-row label { font: 700 10px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Filter preview */
.filter-preview-area {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg2);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-filter-canvas { display: block; max-width: 100%; max-height: 300px; object-fit: contain; }

/* Canvas preview */
.canvas-preview-wrap {
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #f9fafb 0% 50%) 0 0 / 16px 16px;
  display: flex; flex-direction: column; align-items: center;
}
body.dark .canvas-preview-wrap { background: repeating-conic-gradient(#374151 0% 25%, #1f2937 0% 50%) 0 0 / 16px 16px; }
.canvas-preview-label {
  width: 100%; padding: 8px 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  font: 600 11px Inter, sans-serif; color: var(--muted); text-align: center;
}
.tool-canvas-preview { display: block; max-width: 100%; max-height: 380px; object-fit: contain; margin: 14px auto; }

/* OCR */
.ocr-progress-bar { width: 100%; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 5px; }
.ocr-progress-fill { height: 100%; background: var(--g-brand); border-radius: 99px; width: 0; transition: width .3s var(--ease-out); }
.ocr-result-box { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 14px; }
.ocr-toolbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ocr-label   { font: 700 12px Inter, sans-serif; color: var(--ink3); flex: 1; min-width: 80px; }
.ocr-textarea { width: 100%; min-height: 180px; padding: 14px 16px; border: 0; outline: none; font: 400 13px/1.7 'Courier New', monospace; color: var(--ink); background: var(--surface); resize: vertical; display: block; }

/* Adv notice */
.adv-notice { padding: 11px 14px; border-radius: var(--r-md); font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.adv-notice--warn { background: rgba(255,153,51,.08); border: 1.5px solid rgba(255,153,51,.25); color: var(--ink3); }

/* New tool card (homepage) */
.new-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.new-tool-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 16px 16px;
  display: flex; flex-direction: column; gap: 7px;
  transition: .22s var(--spring);
  overflow: hidden;
  cursor: pointer;
}
.new-tool-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--brand); }
.ntc-icon-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.ntc-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 20px; color: #fff;
  box-shadow: var(--sh-md);
}
.ntc-badge {
  font: 700 9px Inter, sans-serif;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--brand-l);
  border: 1px solid rgba(5,150,105,.25);
  color: var(--brand-d);
}
.new-tool-card h3    { font: 700 14px Inter, sans-serif; color: var(--ink); }
.new-tool-card p     { font: 400 11px/1.5 Inter, sans-serif; color: var(--muted); flex: 1; }
.ntc-arrow { align-self: flex-end; font: 700 14px Inter, sans-serif; color: var(--brand); opacity: 0; transition: opacity .2s; }
.new-tool-card:hover .ntc-arrow { opacity: 1; }

/* Apply tone bg/icon to ntc */
.new-tool-card.tc-saffron .ntc-icon { background: linear-gradient(135deg,#FF9933,#FF6B00); }
.new-tool-card.tc-green   .ntc-icon { background: linear-gradient(135deg,#16A34A,#059669); }
.new-tool-card.tc-blue    .ntc-icon { background: linear-gradient(135deg,#2563EB,#0EA5E9); }
.new-tool-card.tc-purple  .ntc-icon { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.new-tool-card.tc-red     .ntc-icon { background: linear-gradient(135deg,#E11D48,#F43F5E); }
.new-tool-card.tc-teal    .ntc-icon { background: linear-gradient(135deg,#0D9488,#10B981); }

/* Card-print banner — NEW badge */
.new-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--g-saffron);
  color: #fff;
  font: 800 10px Inter, sans-serif;
  letter-spacing: 1px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: var(--sh-saffron);
  animation: glow-badge 2s ease-in-out infinite;
}
@keyframes glow-badge { 0%,100%{box-shadow:var(--sh-saffron)} 50%{box-shadow:0 4px 22px rgba(255,153,51,.6)} }

/* Passport preview */
.passport-preview-wrap {
  margin-top: 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  background: #eee; display: flex; align-items: center; justify-content: center; padding: 12px;
}
.passport-preview-canvas { max-width: 100%; max-height: 260px; display: block; box-shadow: var(--sh-md); }

/* Toast */
.toast {
  position: fixed;
  right: 20px; bottom: 20px;
  background: linear-gradient(135deg,#111827,#1F2937);
  color: #F9FAFB;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sh-xl);
  font: 500 13px Inter, sans-serif;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.96);
  transition: .28s var(--ease-out);
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* Tooltip */
.vlt-tooltip, .vlt-tip2 {
  position: fixed;
  z-index: 9999;
  background: #111827;
  color: #F9FAFB;
  font: 400 12px/1.5 Inter, sans-serif;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  max-width: 240px;
  box-shadow: var(--sh-lg);
  pointer-events: none;
  transition: opacity .15s;
}

/* Ripple */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim .5s linear;
  background: rgba(255,255,255,.3);
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════ */

/* 1100px — 4→3 col tools, hide some hero art */
@media (max-width: 1100px) {
  .tools-grid     { grid-template-columns: repeat(3, 1fr); }
  .new-tools-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid      { grid-template-columns: 1fr; gap: 32px; }
  .hero-art       { display: none; }
  .hero-copy      { max-width: 640px; margin: 0 auto; text-align: center; }
  .searchbar      { margin: 0 auto; }
  .trust-row      { justify-content: center; }
  .footer-top     { grid-template-columns: 1fr 1fr; gap: 28px; }
  .qual-presets   { grid-template-columns: repeat(5,1fr); }
}

/* 900px — 3→2 */
@media (max-width: 900px) {
  .tools-grid       { grid-template-columns: repeat(2, 1fr); }
  .new-tools-grid   { grid-template-columns: repeat(2, 1fr); }
  .pop-grid         { grid-template-columns: repeat(2, 1fr); }
  .compact-grid     { grid-template-columns: repeat(2, 1fr); }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
  .testi-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid       { grid-template-columns: repeat(3, 1fr); }
  .features-strip   { grid-template-columns: repeat(3, 1fr); }
  .features-strip .feat-item:nth-child(3) { border-right: 0; }
  .opt-grid         { grid-template-columns: repeat(2, 1fr); }
  .filter-sliders   { grid-template-columns: repeat(2, 1fr); }
  .pdf-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .target-grid      { grid-template-columns: repeat(4, 1fr); }
  .card-print-banner { grid-template-columns: 1fr; }
  .cpb-btns         { flex-direction: row; }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
}

/* 760px — mobile */
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1160px); }

  /* Nav */
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px; left: 12px; right: 12px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
    flex-direction: column;
    padding: 8px;
    z-index: 200;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a    { justify-content: flex-start; }
  .mobile-menu   { display: grid; }
  .cta-btn       { display: none; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 34px; letter-spacing: -1.5px; }
  .hero-desc { font-size: 15px; }

  /* Grids */
  .tools-grid       { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .new-tools-grid   { grid-template-columns: repeat(2, 1fr); }
  .pop-grid         { grid-template-columns: 1fr; }
  .compact-grid     { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
  .testi-grid       { grid-template-columns: 1fr; }
  .steps-grid       { grid-template-columns: 1fr; }
  .features-strip   { grid-template-columns: 1fr; }
  .features-strip .feat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .features-strip .feat-item:last-child { border-bottom: 0; }
  .footer-top       { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; align-items: flex-start; }
  .step-connector   { display: none; }
  .qual-presets     { grid-template-columns: repeat(3, 1fr); }
  .filter-sliders   { grid-template-columns: 1fr; }
  .pdf-stats-grid   { grid-template-columns: 1fr 1fr; }
  .target-grid      { grid-template-columns: repeat(2, 1fr); }
  .opt-grid         { grid-template-columns: 1fr 1fr; }

  /* Tool page */
  .tool-header  { padding: 16px 16px 12px; }
  .tool-header h1 { font-size: 20px; }
  .tool-body    { padding: 18px 18px 24px; }
  .opts-panel   { padding: 16px; }
  .card-print-banner { padding: 24px 20px; }
}

/* 480px — tiny mobile */
@media (max-width: 480px) {
  .hero h1        { font-size: 28px; }
  .tools-grid     { grid-template-columns: 1fr; }
  .new-tools-grid { grid-template-columns: 1fr; }
  .related-grid   { grid-template-columns: 1fr 1fr; }
  .opt-grid       { grid-template-columns: 1fr; }
  .qual-presets   { grid-template-columns: repeat(3, 1fr); }
  .target-grid    { grid-template-columns: repeat(2, 1fr); }
  .pdf-stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner    { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   TOOL PAGE — Buttons & Action UI (Missing Styles)
   ════════════════════════════════════════════════ */
.primary-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 28px; margin-top: 14px;
  background: var(--brand); color: #fff;
  font: 600 15px Inter, sans-serif;
  border: none; border-radius: var(--r-lg); cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.primary-btn:hover  { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,.4); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.secondary-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 22px;
  background: var(--bg2); color: var(--ink3);
  font: 500 14px Inter, sans-serif;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.secondary-btn:hover  { background: var(--bg); border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.secondary-btn:active { transform: translateY(0); }

.download-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.download-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; font-family: Inter, sans-serif;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.download-item:hover  { border-color: var(--brand); box-shadow: var(--sh-md); transform: translateY(-1px); }
.download-item:active { transform: translateY(0); }
.download-item > span:first-child { font-size: 22px; color: var(--brand); flex-shrink: 0; }
.download-item > div  { flex: 1; min-width: 0; }
.download-item b      { font-size: 13px; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-item small  { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.download-item em     { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); flex-shrink: 0; padding: 5px 12px; background: var(--brand-l); border-radius: var(--r-sm); }

.adv-panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-top: 14px; }
.adv-panel__head {
  display: flex; align-items: center; gap: 8px;
  font: 600 14px Inter, sans-serif; color: var(--ink);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.adv-panel__icon { width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }

.opt-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.opt-row:last-child { margin-bottom: 0; }
.opt-row label { font: 600 12px Inter, sans-serif; color: var(--ink3); text-transform: uppercase; letter-spacing: .5px; }
.opt-row input[type="number"], .opt-row input[type="text"], .opt-row select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 500 14px Inter, sans-serif; color: var(--ink); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.opt-row input:focus, .opt-row select:focus { border-color: var(--brand); box-shadow: var(--sh-glow); }
.opt-row input[type="range"] { width: 100%; accent-color: var(--brand); }

.processing-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }

.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; margin: 20px auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

body.dark .adv-panel { border-color: rgba(255,255,255,.08); }
body.dark .download-item { border-color: rgba(255,255,255,.08); }
body.dark .download-item em { background: rgba(5,150,105,.15); }
body.dark .secondary-btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--muted); }
body.dark .opt-row input, body.dark .opt-row select { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--ink); }
/* ════════════════════════════════════════════════════════════
   TOOL UI — COMPLETE MISSING STYLES
   option-grid, qual-btn, size-choice, adv-tip, adv-info-bar,
   target-grid, kb-input-wrap, preset-box, range-wrap,
   prog-step, vlt-reveal, option-help, ocr, print-preview
   ════════════════════════════════════════════════════════════ */

/* ── option-grid: label+input 2-col layout ── */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}
.option-grid label {
  display: flex; flex-direction: column; gap: 6px;
  font: 600 12px Inter, sans-serif; color: var(--ink3);
}
.option-grid select,
.option-grid input[type="number"],
.option-grid input[type="text"] {
  padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 500 13px Inter, sans-serif; color: var(--ink); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.option-grid select:focus,
.option-grid input:focus { border-color: var(--brand); box-shadow: var(--sh-glow); }

/* ── range slider wrap ── */
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--brand); height: 4px; }
.range-wrap output {
  min-width: 32px; text-align: right;
  font: 700 13px Inter, sans-serif; color: var(--brand);
}

/* ── Quality preset buttons (PDF compress) ── */
.qual-presets {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 4px;
}
.qual-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--bg);
  cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
  font-family: Inter, sans-serif;
}
.qual-btn span  { font-size: 18px; }
.qual-btn b     { font-size: 11px; font-weight: 700; color: var(--ink); }
.qual-btn small { font-size: 9px; color: var(--muted); }
.qual-btn:hover { border-color: var(--brand); background: var(--brand-l); transform: translateY(-2px); }
.qual-btn--active { border-color: var(--brand); background: var(--brand-l); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.qual-btn--active b { color: var(--brand); }

/* ── Size choice buttons (Target KB) ── */
.target-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.size-choice {
  padding: 9px 8px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--bg);
  font: 600 13px Inter, sans-serif; color: var(--ink3);
  cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.size-choice:hover  { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.size-choice.selected { border-color: var(--brand); background: var(--brand-l); color: var(--brand); }

/* ── KB input wrap ── */
.kb-input-wrap {
  display: flex; align-items: center; gap: 8px;
}
.kb-input-wrap input {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 500 13px Inter, sans-serif; color: var(--ink); background: var(--bg);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.kb-input-wrap input:focus { border-color: var(--brand); box-shadow: var(--sh-glow); }
.kb-unit {
  font: 700 13px Inter, sans-serif; color: var(--muted);
  background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; flex-shrink: 0;
}

/* ── target-kb-wrap ── */
.target-kb-wrap { display: flex; align-items: center; gap: 6px; padding: 8px 0; }
.target-kb-wrap input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }

/* ── adv-info-bar ── */
.adv-info-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-top: 12px;
  background: var(--brand-l); border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--r-md); font: 500 12px Inter, sans-serif; color: var(--ink3);
}
.adv-info-bar__icon {
  font-size: 16px; color: var(--brand); flex-shrink: 0;
}
.adv-info-bar b { color: var(--ink); }

/* ── adv-tip (tooltip badge) ── */
.adv-tip {
  margin-left: auto; width: 20px; height: 20px;
  background: var(--muted2); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font: 700 11px Inter, sans-serif; cursor: help; flex-shrink: 0;
  transition: background .2s;
}
.adv-tip:hover { background: var(--brand); }

/* ── option-help ── */
.option-help {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  margin-top: 12px; padding: 10px 14px;
  background: var(--bg2); border-radius: var(--r-sm);
}
.option-help b { color: var(--ink3); }

/* ── preset-box ── */
.preset-box {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; background: var(--brand-l);
  border: 1px solid rgba(5,150,105,.2); border-radius: var(--r-md);
}
.preset-box b     { font-size: 13px; color: var(--brand); }
.preset-box span  { font-size: 12px; color: var(--muted); }

/* ── Progress steps ── */
.prog-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 16px; flex-wrap: wrap;
}
.prog-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 500 11px Inter, sans-serif; color: var(--muted); min-width: 70px; text-align: center;
}
.prog-step__dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg);
  display: grid; place-items: center;
  font: 700 11px Inter, sans-serif; color: var(--muted2);
  transition: all .3s;
}
.prog-step--done .prog-step__dot   { background: var(--brand); border-color: var(--brand); color: #fff; }
.prog-step--active .prog-step__dot { background: var(--brand-l); border-color: var(--brand); color: var(--brand); animation: pulse-dot 1s infinite; }
.prog-step--done   { color: var(--brand); }
.prog-step--active { color: var(--brand); font-weight: 600; }
.prog-step__line   { width: 28px; height: 2px; background: var(--line); margin-bottom: 18px; flex-shrink: 0; }
.prog-step--done + .prog-step__line { background: var(--brand); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(5,150,105,.0); }
}

/* ── Scroll reveal animation ── */
.vlt-will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.vlt-revealed    { opacity: 1; transform: translateY(0); }

/* ── OCR result ── */
.ocr-result-label {
  font: 700 13px Inter, sans-serif; color: var(--ink3); margin-bottom: 8px; display: block;
}
.ocr-result-toolbar {
  display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.ocr-result-toolbar button {
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--bg);
  font: 600 12px Inter, sans-serif; color: var(--ink3); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ocr-result-toolbar button:hover { border-color: var(--brand); color: var(--brand); }

/* ── Print preview ── */
.print-preview-wrap {
  background: #f0f0f0; border-radius: var(--r-md);
  padding: 20px; text-align: center; margin-top: 14px;
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}

/* ── bg-method-row, filter-preset-row, wm-type-row ── */
.bg-method-row, .filter-preset-row, .wm-type-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.bg-method-row button, .filter-preset-row button, .wm-type-row button {
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--bg);
  font: 500 12px Inter, sans-serif; color: var(--ink3); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.bg-method-row button:hover, .filter-preset-row button:hover, .wm-type-row button:hover,
.bg-method-row button.active, .filter-preset-row button.active, .wm-type-row button.active {
  border-color: var(--brand); background: var(--brand-l); color: var(--brand);
}

/* ── .input utility ── */
.input {
  padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 500 13px Inter, sans-serif; color: var(--ink); background: var(--bg);
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus { border-color: var(--brand); box-shadow: var(--sh-glow); }

/* Dark mode for all new classes */
body.dark .qual-btn           { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
body.dark .qual-btn:hover     { background: rgba(5,150,105,.15); }
body.dark .qual-btn--active   { background: rgba(5,150,105,.15); border-color: var(--brand); }
body.dark .size-choice        { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: var(--muted); }
body.dark .size-choice.selected { background: rgba(5,150,105,.15); }
body.dark .adv-info-bar       { background: rgba(5,150,105,.1); border-color: rgba(5,150,105,.2); }
body.dark .preset-box         { background: rgba(5,150,105,.1); }
body.dark .option-grid select,
body.dark .option-grid input  { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--ink); }
body.dark .option-help        { background: rgba(255,255,255,.04); }
body.dark .kb-input-wrap input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--ink); }
body.dark .kb-unit            { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
body.dark .prog-step__dot     { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
body.dark .bg-method-row button,
body.dark .filter-preset-row button,
body.dark .wm-type-row button  { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: var(--muted); }
/* ════════════════════════════════════════════════════════════
   PREMIUM UPLOAD UI — vle-file-card, vle-process-btn, etc.
   ════════════════════════════════════════════════════════════ */
.vle-preview-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.vle-file-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  animation: vle-slide-in .25s var(--ease) both;
}
@keyframes vle-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thumbnail */
.vle-thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  opacity: 0;
  transition: opacity .3s;
}
.vle-thumb--loaded { opacity: 1; }
.vle-thumb--icon {
  opacity: 1;
  display: grid; place-items: center;
  font-size: 30px;
}

/* File info */
.vle-file-info { flex: 1; min-width: 0; }
.vle-file-name {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.vle-file-meta { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }

/* Status indicator */
.vle-file-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--brand); font-weight: 600;
}
.vle-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  animation: vle-pulse 1.5s ease infinite;
  flex-shrink: 0;
}
@keyframes vle-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* Remove button */
.vle-remove-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(225,29,72,.25);
  background: rgba(225,29,72,.06);
  color: #E11D48; font-size: 13px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
  transition: background .2s, transform .15s, border-color .2s;
}
.vle-remove-btn:hover  { background: rgba(225,29,72,.15); border-color: rgba(225,29,72,.5); transform: scale(1.1); }
.vle-remove-btn:active { transform: scale(.95); }

/* Process button */
.vle-process-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 28px;
  background: var(--g-brand);
  color: #fff;
  font: 700 15px "Plus Jakarta Sans", sans-serif;
  border: none; border-radius: var(--r-lg); cursor: pointer;
  box-shadow: 0 4px 20px rgba(5,150,105,.35);
  transition: transform .2s var(--spring), box-shadow .2s;
  position: relative; overflow: hidden;
  letter-spacing: .2px;
}
.vle-process-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 50%);
}
.vle-process-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(5,150,105,.45); }
.vle-process-btn:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.vle-process-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Privacy note */
.vle-privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center;
}
.vle-privacy-note span { font-size: 13px; }

/* Dark mode */
body.dark .vle-file-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
body.dark .vle-thumb      { border-color: rgba(255,255,255,.1); }
/* Download item thumbnail */
.dl-thumb {
  width: 48px; height: 48px;
  object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg2);
  flex-shrink: 0;
}
.dl-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 22px; color: var(--brand);
  background: var(--brand-l); border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* PDF Stats Grid */
.pdf-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px;
}
.pdf-stat {
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.pdf-stat__label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.pdf-stat__val { font-size: 14px; font-weight: 700; color: var(--ink); }

/* Preset Box Warn */
.preset-box.warn {
  background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3);
}
.preset-box.warn b { color: #d97706; }
.preset-box.warn span { color: #b45309; }

/* Adv Notice */
.adv-notice {
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 13px; margin-top: 14px;
  background: var(--bg2); border: 1px solid var(--line);
}
.adv-notice--warn {
  background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #b45309;
}

/* Tooltip */
.vlt-tooltip {
  position: absolute; z-index: 1000;
  background: var(--ink); color: #fff;
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 500;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  box-shadow: var(--sh-md); max-width: 200px;
  transform: translateX(-50%); text-align: center;
}

/* Desktop 2-column layout */
@media (min-width: 900px) {
  .tool-body {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
    gap: 30px;
    align-items: start;
  }
  .tool-left-col { display: flex; flex-direction: column; }
  .tool-right-col { position: sticky; top: 100px; }
  .preview-area { margin-top: 0; }
  .drop-zone { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
}


/* target-kb-wrap checkbox styles */
.target-kb-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--bg2); padding: 10px; border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.target-kb-wrap input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer;
}
.target-kb-wrap label { font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; flex: 1; }
.kb-input-wrap {
  display: flex; align-items: center; gap: 6px;
}
.kb-input-wrap input[type="number"] {
  width: 70px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  text-align: right;
}
.kb-unit { font-size: 13px; color: var(--muted); font-weight: 600; }

/* === PREMIUM ADVANCED OPTIONS UI === */
.opts-panel, .adv-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}
.opts-head, .adv-panel__head {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.opts-icon, .adv-panel__icon {
  width: 36px; height: 36px;
  background: var(--brand-l);
  color: var(--brand-dark);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
}
.opt-grid {
  display: grid; gap: 16px;
}
.opt-label, .adv-panel label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.opt-label select, .opt-label input, .adv-panel select, .adv-panel input {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--bg2);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.opt-label select:focus, .opt-label input:focus, .adv-panel select:focus, .adv-panel input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  background: var(--surface);
}

.preset-box {
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.2);
  position: relative;
  overflow: hidden;
}
.preset-box b { font-size: 14px; color: var(--brand-dark); display: block; margin-bottom: 4px; }
.preset-box span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

.info-bar {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.info-bar-icon {
  font-size: 16px; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.05); color: var(--ink);
  display: grid; place-items: center;
}

.opt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .opt-grid--2, .opt-grid--3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PREMIUM MOBILE APP DESIGN OVERRIDES (Added for premium feel)
   ========================================================================== */
@media (max-width: 760px) {
  /* 1. Edge-to-Edge Container for Tool Page */
  .tool-page .container { 
    width: 100%; 
    padding: 0; 
  }
  
  /* 2. Premium Sticky Glass Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  
  /* 3. App-Style Tool Shell */
  .tool-shell {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .tool-header {
    background: rgba(248, 250, 252, 0.6);
  }
  .tool-body {
    padding: 16px 16px 30px;
  }
  
  /* 4. Drop-Zone Native App Feel */
  .drop-zone {
    border-radius: var(--r-xl);
    border: 2px dashed rgba(5,150,105,0.4);
    padding: 40px 20px;
    background: rgba(5,150,105,0.02);
  }
  .dz-title { font-size: 0; }
  .dz-title::after { 
    content: "Tap to Upload Files"; 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--brand); 
  }
  .dz-sub, .dz-note, .dz-icon { display: none; }
  #browseBtn { display: none; } /* Hide the button, the whole zone is clickable */

  /* 5. Sticky Action Button at the Bottom (Like Native iOS) */
  .vle-process-btn {
    position: sticky;
    bottom: 20px;
    z-index: 900;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
    margin-top: 24px;
    width: 100%;
  }

  /* 6. App Icon Grid for Homepage */
  .tools-grid, .new-tools-grid, .pop-grid, .compact-grid, .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px;
  }
  .tool-card {
    padding: 16px 10px !important;
    text-align: center;
    border-radius: var(--r-xl) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .tc-icon {
    margin: 0 auto 10px !important;
    width: 48px !important; height: 48px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
  }
  .tool-card p, .tcard-arrow {
    display: none !important;
  }
  .tool-card h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }
}

/* Tiny mobile overrides to preserve the 2-column grid */
@media (max-width: 480px) {
  .tools-grid, .new-tools-grid, .pop-grid, .compact-grid, .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
