/* ImgVexa Master Stylesheet - Modern, Clean & High Polish */
:root {
  color-scheme: light;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Light Theme */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-input: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --border-line: #e2e8f0;
  --border-card: #e2e8f0;
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-subtle: rgba(13, 148, 136, 0.08);
  --accent-red: #ef4444;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --mega-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-muted: #1e293b;
  --bg-input: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --border-line: #334155;
  --border-card: #1e293b;
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --primary-subtle: rgba(20, 184, 166, 0.15);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --mega-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Smooth transition ONLY when theme is actively toggled by the user */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *:before,
.theme-transitioning *:after {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
  transition-delay: 0s !important;
}

/* Container */
.container {
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
}
[data-theme="dark"] header.site-header {
  background-color: rgba(17, 24, 39, 0.88);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.brand-logo svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}
.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Mega Menus */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 720px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  box-shadow: var(--mega-shadow);
  padding: 24px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  z-index: 100;
  animation: fadeIn 0.15s ease-out;
}
/* The rightmost nav item's dropdown gets clipped off the right edge of the
   viewport when center-aligned under its (narrow) trigger button, since the
   trigger sits near the header's right edge but the menu itself is 720px
   wide. Right-align it to the trigger instead so it extends leftward and
   stays on-screen. */
.mega-menu.align-right {
  left: auto;
  right: 0;
  transform: translateY(10px);
  animation: fadeInRight 0.15s ease-out;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(10px); }
}

.nav-item:hover .mega-menu {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(5px); }
  to { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}
.mega-col-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.mega-item a:hover {
  color: var(--primary);
  background-color: var(--primary-subtle);
  transform: translateX(3px);
}
.mega-item a svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.mega-footer-link:hover {
  text-decoration: underline;
}

/* Header Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  position: relative;
  width: 260px;
}
.header-search input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 36px;
  border-radius: 20px;
  border: 1px solid var(--border-line);
  background: var(--bg-muted);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  width: 300px;
}
.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-sub);
  pointer-events: none;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.theme-toggle-btn:hover {
  color: var(--primary);
  background: var(--bg-muted);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu: Hamburger Toggle + Slide-in Accordion Panel */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.mobile-menu-toggle:hover {
  color: var(--primary);
  background: var(--bg-muted);
}
.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--bg-surface);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
}
.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-line);
  flex-shrink: 0;
}
.mobile-menu-title {
  font-weight: 750;
  font-size: 16px;
  color: var(--text-main);
}
.mobile-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu-close svg {
  width: 16px;
  height: 16px;
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-alltools {
  display: block;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  background: var(--primary-subtle);
  margin-bottom: 10px;
}

.mobile-accordion {
  border-bottom: 1px solid var(--border-line);
}
.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: none;
  border: none;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.mobile-accordion-trigger svg.chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.mobile-accordion.open .mobile-accordion-trigger svg.chevron {
  transform: rotate(180deg);
}
.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  padding: 0 14px 12px 14px;
}
.mobile-accordion.open .mobile-accordion-panel {
  display: flex;
}
.mobile-accordion-panel a {
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
}
.mobile-accordion-panel a:hover,
.mobile-accordion-panel a:active {
  background: var(--primary-subtle);
  color: var(--primary);
}

@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 821px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}

/* Centered Hero Section (ZexaPDF Style) */
.hero-section {
  padding: 60px 0 44px;
  position: relative;
  text-align: center;
}

.hero-center-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Top Pill Tag */
.hero-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0d9488;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 22px;
  letter-spacing: -0.2px;
}
[data-theme="dark"] .hero-top-tag {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.25);
  color: #2dd4bf;
}
.hero-top-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d9488;
  display: inline-block;
}
[data-theme="dark"] .hero-top-tag .tag-dot {
  background: #2dd4bf;
}

/* 2. Main Title */
.hero-title {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -1.6px;
  color: var(--text-main);
  margin-bottom: 18px;
  text-align: center;
}
.hero-highlight-red, .hero-highlight-teal {
  color: #0d9488;
}
[data-theme="dark"] .hero-highlight-red, [data-theme="dark"] .hero-highlight-teal {
  color: #14b8a6;
}

/* 3. Subtitle */
.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

/* 4. CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ea580c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.btn-hero-primary:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 15px;
  font-weight: 650;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
[data-theme="dark"] .btn-hero-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-line);
}
.btn-hero-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-hero-secondary:hover {
  background: var(--bg-muted);
}

/* 5. Trust Badges Row */
.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.trust-icon-box {
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}
.trust-icon-box.free-box {
  background: #0d9488;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 6px;
  border-radius: 5px;
}
.trust-icon-box.lock-box {
  font-size: 18px;
}
.trust-icon-box.device-box {
  font-size: 18px;
}
.trust-item-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.2;
}
.trust-item-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 6. Quick Access Tool Pills */
.hero-quick-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 820px;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  padding: 7px 14px 7px 9px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.quick-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.quick-pill-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.badge-green { background: #10b981; }
.badge-orange { background: #f97316; }
.badge-red { background: #dc2626; }
.badge-teal { background: #0d9488; }
.badge-navy { background: #1e3a8a; }
.badge-purple { background: #9333ea; }

/* Popular Tools Section */
.section-popular {
  padding: 40px 0 60px;
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-wrap .fire-icon {
  font-size: 26px;
  display: inline-flex;
}
.section-title-wrap .fire-icon svg {
  width: 26px;
  height: 26px;
}
.section-title-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
}
.section-title-wrap p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.view-all-link,
.link-view-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.view-all-link:hover,
.link-view-all:hover {
  gap: 8px;
  color: #0f766e;
}

[data-theme="dark"] .view-all-link,
[data-theme="dark"] .link-view-all {
  color: #ffffff !important;
}
[data-theme="dark"] .view-all-link:hover,
[data-theme="dark"] .link-view-all:hover {
  color: #ffffff !important;
  opacity: 0.85;
}

/* Tool Grid (Popular & Category Views) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  min-height: 155px;
  box-sizing: border-box;
  overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(13, 148, 136, 0.4);
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}
.tool-card:hover .tool-card-icon {
  transform: scale(1.08);
}

.tool-card-info {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.tool-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.tool-card-arrow {
  margin-top: auto;
  color: var(--text-sub);
  opacity: 0.6;
  display: flex;
  align-items: center;
  transition: transform 0.15s, opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tool-card:hover .tool-card-arrow {
  transform: translateX(3px);
  opacity: 1;
  color: var(--primary);
}

/* Category Filter Tabs Section */
.section-categories {
  padding: 40px 0 80px;
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-line);
}

.cat-header {
  margin-bottom: 24px;
}
.cat-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}
.cat-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.category-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.cat-pill-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--bg-muted);
  color: var(--text-muted);
}
.cat-pill:hover .cat-pill-count, .cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Interactive Tool Workspace Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.modal-tool-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.modal-tool-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.modal-close-btn:hover {
  background: var(--border-line);
  color: var(--text-main);
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

/* AI upload consent prompt (passport photo background removal only) */
.ai-consent-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ai-consent-overlay.open { opacity: 1; }
.ai-consent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.ai-consent-overlay.open .ai-consent-card { transform: scale(1); }
.ai-consent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.12);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.ai-consent-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}
.ai-consent-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.ai-consent-card p.ai-consent-alt {
  font-size: 12px;
  font-style: italic;
}
.ai-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.ai-consent-btn-yes, .ai-consent-btn-no {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-line);
  transition: all 0.15s;
}
.ai-consent-btn-yes {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ai-consent-btn-yes:hover { background: var(--primary-hover); }
.ai-consent-btn-no {
  background: var(--bg-surface);
  color: var(--text-main);
}
.ai-consent-btn-no:hover { background: var(--bg-muted); }

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 20px;
  background: var(--primary-subtle);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.dropzone * {
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.12);
  transform: scale(1.005);
}
[data-theme="dark"] .dropzone {
  border-color: #14b8a6;
  background: rgba(13, 148, 136, 0.06);
}
[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.dragover {
  border-color: #2dd4bf;
  background: rgba(13, 148, 136, 0.12);
}
.dropzone-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--bg-surface);
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.dropzone-title {
  font-size: 18px;
  font-weight: 750;
  color: var(--text-main);
}
.dropzone-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 400px;
}
.dropzone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.dropzone-btn:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
}
.dropzone-limit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 10px;
  transition: all 0.2s ease;
}
[data-theme="dark"] .dropzone-limit-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Workspace Grid (When file is loaded) */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.preview-container {
  background: var(--bg-muted);
  border-radius: 16px;
  border: 1px solid var(--border-line);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.preview-canvas, .preview-image {
  max-width: 100%;
  max-height: 480px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Control Panel */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.control-group {
  background: var(--bg-muted);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-line);
}
.control-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.control-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}
.control-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.action-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
  transition: all 0.15s;
}
.action-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Data Table (For EXIF & Analysis Tools) */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.meta-table tr {
  border-bottom: 1px solid var(--border-line);
}
.meta-table td {
  padding: 10px 12px;
}
.meta-table td.key {
  font-weight: 650;
  color: var(--text-muted);
  width: 40%;
}
.meta-table td.val {
  font-weight: 600;
  color: var(--text-main);
}
.meta-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* Palette Swatches & Color Picker */
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
  position: relative;
}
.swatch:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 10;
}
.mini-copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.5;
}
.mini-copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.pinned-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  font-size: 11.5px;
  font-family: monospace;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.pinned-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.pinned-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-line);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
  font-size: 12.5px;
  color: var(--text-sub);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  nav.main-nav, .header-search { display: none; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .hero-badges-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tool-card {
    padding: 13px 11px;
    min-height: 142px;
    border-radius: 12px;
    gap: 8px;
  }
  .tool-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .tool-card-icon svg {
    width: 18px;
    height: 18px;
  }
  .tool-card-title {
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  .tool-card-desc {
    font-size: 11px;
    line-height: 1.3;
  }
  .hero-badges-row { grid-template-columns: 1fr; }
  .hero-trust-row {
    gap: 16px;
    flex-wrap: wrap;
  }
  .section-header-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .section-title-wrap h2 {
    font-size: 20px;
  }
  .hero-quick-pills {
    gap: 8px;
  }
  .quick-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Transparency Checkerboard Pattern */
.checkerboard-bg {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
[data-theme="dark"] .checkerboard-bg {
  background-color: #1e293b;
  background-image: 
    linear-gradient(45deg, #0f172a 25%, transparent 25%),
    linear-gradient(-45deg, #0f172a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #0f172a 75%),
    linear-gradient(-45deg, transparent 75%, #0f172a 75%);
}

/* Dedicated Live Output Preview Box */
.live-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  text-align: center;
}
.live-result-title {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-result-img, .live-result-canvas {
  max-height: 180px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: inline-block;
}
.circle-preview-img, .circle-preview-canvas {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border: 3px solid #ffffff;
  display: inline-block;
}
[data-theme="dark"] .circle-preview-img, [data-theme="dark"] .circle-preview-canvas {
  border-color: #14b8a6;
}

/* ==========================================================================
   Dedicated Standalone Tool Landing Page Styles (ZexaPDF Style)
   ========================================================================== */

/* Breadcrumbs Bar */
.tool-breadcrumb-bar {
  padding: 14px 0;
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border-line);
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.bc-sep {
  color: var(--text-sub);
  opacity: 0.6;
  font-size: 11px;
}
.bc-cat {
  color: var(--text-muted);
}
.bc-current {
  color: var(--text-main);
  font-weight: 700;
}

/* Tool Hero Section */
.tool-hero-section {
  padding: 44px 0 24px;
  text-align: center;
}
.tool-hero-content {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tool-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.tool-hero-icon svg {
  width: 32px;
  height: 32px;
}
.tool-hero-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin-bottom: 12px;
  color: var(--text-main);
}
.tool-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 680px;
}
.tool-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-muted);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
  display: inline-block;
  flex-shrink: 0;
}
.badge-dot.dot-green { background: #10b981; }
.badge-dot.dot-teal { background: #0d9488; }
.badge-dot.dot-purple { background: #8b5cf6; }

/* In-Page Standalone Tool Workspace Card */
.tool-workspace-section {
  padding: 16px 0 60px;
}
.tool-workspace-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.07);
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
}
[data-theme="dark"] .tool-workspace-card {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);
}
.tool-workspace-card .modal-body {
  padding: 32px;
  max-height: none;
  overflow: visible;
}

/* How-To 3-Step Guide Section */
.tool-steps-section {
  padding: 60px 0;
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}
.tool-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}
.step-card h3 {
  font-size: 17.5px;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--text-main);
}
.step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Trust & Security Feature Badges */
.tool-features-section {
  padding: 60px 0;
}
.tool-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: left;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}
.feature-box:hover {
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-box h3 {
  font-size: 17.5px;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--text-main);
}
.feature-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Related Tools Section */
.tool-related-section {
  padding: 40px 0 80px;
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border-line);
}

/* Responsive adjustments for Tool Page */
@media (max-width: 768px) {
  .tool-hero-title {
    font-size: 25px;
    letter-spacing: -0.6px;
  }
  .tool-hero-desc {
    font-size: 14px;
  }
  .tool-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .tool-hero-icon svg {
    width: 26px;
    height: 26px;
  }
  .tool-workspace-card .modal-body {
    padding: 16px;
  }
  .tool-steps-grid,
  .tool-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card,
  .feature-box {
    padding: 22px 18px;
  }
}

/* Uploaded File Banner (Instant Visual Confirmation) */
.uploaded-file-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
}
.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.uploaded-file-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uploaded-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uploaded-file-meta {
  min-width: 0;
}
.uploaded-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
.uploaded-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
[data-theme="dark"] .uploaded-check-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.uploaded-file-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 550;
  flex-wrap: wrap;
}
.change-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.change-file-btn:hover {
  background: var(--border-line);
  color: var(--primary);
}

/* OCR & Text Extraction Styles */
.ocr-textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ocr-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.ocr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-muted);
  border-radius: 10px;
  border: 1px solid var(--border-line);
  margin-top: 10px;
}
.ocr-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.ocr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Progress Bar */
.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--bg-muted);
  border-radius: 9999px;
  overflow: hidden;
  margin: 12px 0 6px;
  border: 1px solid var(--border-line);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 9999px;
  transition: width 0.3s ease;
  width: 0%;
}

/* PDF Preview Sheet */
.pdf-sheet-wrapper {
  background: #cbd5e1;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
[data-theme="dark"] .pdf-sheet-wrapper {
  background: #1e293b;
}
.pdf-sheet-inner {
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}
.pdf-sheet-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Batch Processing Queue Styles */
.batch-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.batch-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
  gap: 12px;
}
.batch-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.batch-badge {
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}
.batch-options-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}
.batch-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.batch-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.15s ease;
}
.batch-item-row:hover {
  border-color: var(--primary);
}
.batch-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.batch-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-muted);
  border: 1px solid var(--border-line);
  flex-shrink: 0;
}
.batch-item-meta {
  min-width: 0;
}
.batch-item-name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.batch-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.batch-item-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-pill {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}
.status-pill.ready { background: #e0f2fe; color: #0284c7; }
.status-pill.processing { background: #fef3c7; color: #d97706; }
.status-pill.done { background: #dcfce7; color: #16a34a; }
.status-pill.error { background: #fee2e2; color: #dc2626; }

/* 9-Point Watermark Grid */
.pos-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 180px;
}
.pos-grid-btn {
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-grid-btn.active, .pos-grid-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Passport Photo Oval Guide */
.passport-guide-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(13, 148, 136, 0.7);
  pointer-events: none;
  box-sizing: border-box;
}
.passport-guide-oval {
  position: absolute;
  top: 15%;
  left: 18%;
  width: 64%;
  height: 70%;
  border: 2px dashed rgba(239, 68, 68, 0.75);
  border-radius: 50%;
  box-sizing: border-box;
}

/* Merger Thumbnails Bar */
.merger-thumbs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}
.merger-thumb-card {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-line);
  flex-shrink: 0;
}
.merger-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.merger-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-muted);
  border-radius: 14px;
  border: 1px solid var(--border-line);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.faq-item:hover {
  border-color: var(--primary);
}
.faq-item[open] {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 750;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item[open] .faq-answer {
  animation: faqFadeIn 0.25s ease;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Passport Photo Maker Enhanced Styling */
.passport-mode-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
  width: 100%;
  gap: 6px;
}
.passport-tab-btn {
  flex: 1;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.passport-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
}
.passport-tab-btn:not(.active):hover {
  background: var(--bg-muted);
  color: var(--text-main);
}
.passport-spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.passport-spec-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  margin-right: 6px;
}
.sheet-preview-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-main);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}
.sheet-canvas-container {
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  max-width: 100%;
}
#passport-sheet-canvas {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Static Content & Legal Pages (About, Privacy, Terms) */
.page-hero {
  padding: 50px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-surface);
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.page-hero-title {
  font-size: 34px;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}
.content-section {
  padding: 50px 0 70px;
}
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  max-width: 880px;
  margin: 0 auto;
}
.content-body {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.75;
}
.content-body h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}
.content-body h2:first-child {
  margin-top: 0;
}
.content-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 8px;
}
.content-body p {
  margin-bottom: 16px;
  color: var(--text-muted);
}
.content-body ul, .content-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-muted);
}
.content-body li {
  margin-bottom: 8px;
}
.content-body strong {
  color: var(--text-main);
}
.content-highlight-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-main);
}
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}
.feature-item-card {
  background: var(--bg-body);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 20px;
}
.feature-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
  .content-card {
    padding: 24px 18px;
  }
  .page-hero-title {
    font-size: 26px;
  }
}

/* Support & Bug Report Forms */
.form-wrap {
  margin-top: 10px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}
.form-label span.req {
  color: var(--accent-red);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-line);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
.form-help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}
.form-success-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  margin-top: 20px;
  display: none;
}
.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info-card {
  background: var(--bg-body);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-card svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}



