/* ==========================================================================
   MeLovePDF Application - Pixel-Perfect Modern Design System
   Matches https://www.ilovepdf.com/ Exact Colors, Icons, Typography & Layout
   ========================================================================== */

/* Typography & Root Design Tokens */

:root {
  /* Brand Colors */
  --primary-red: #e5322d;
  --primary-red-hover: #cf231e;
  --primary-red-light: #fff2f2;
  --primary-red-border: #f8c2c0;

  /* Category Palette */
  --cat-organize: #ee6c4d;
  --cat-organize-bg: #fff1ed;
  --cat-optimize: #8fbc5d;
  --cat-optimize-bg: #f4f9ef;
  --cat-word: #295795;
  --cat-word-sub: #5f83c6;
  --cat-word-bg: #edf2f9;
  --cat-powerpoint: #d04526;
  --cat-powerpoint-sub: #ff7651;
  --cat-powerpoint-bg: #fdf1ed;
  --cat-excel: #2e7237;
  --cat-excel-sub: #5ea162;
  --cat-excel-bg: #edf6ee;
  --cat-jpg: #b7a001;
  --cat-jpg-sub: #d6bf2d;
  --cat-jpg-bg: #fdfbe8;
  --cat-edit: #ab6993;
  --cat-edit-bg: #faf2f7;
  --cat-security: #4a7aab;
  --cat-security-bg: #edf4fa;
  --cat-intelligence: #7253e2;
  --cat-intelligence-bg: #f3f0fd;

  /* UI Tokens */
  --bg-page: #f7f7fa;
  --bg-white: #ffffff;
  --bg-gray-light: #f4f5f7;
  --bg-gray-subtle: #f9fafb;
  --border-subtle: #e8e8ed;
  --border-focus: #c5c5d3;
  
  --text-main: #33333b;
  --text-muted: #6b6b7b;
  --text-light: #9494a5;
  --text-white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 16px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --header-height: 60px;
  --transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.header__container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
}

.header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.header__brand img {
  height: 27px;
  width: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.header__brand:hover img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(229, 32, 48, 0.25));
}

.brand-divider {
  color: #cbd5e1;
  font-size: 1.35rem;
  font-weight: 300;
  user-select: none;
}

.brand-img-badge {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: #0f172a;
  user-select: none;
}

.brand-img-badge .brand-i {
  color: #0f172a;
}

.brand-img-badge .brand-heart {
  margin: 0 2px;
  font-size: 1.05rem;
}

.brand-img-badge .brand-img {
  color: #3b82f6;
}

.header__nav-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  align-items: center;
  list-style: none;
  width: 100%;
  gap: 2px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__item--anchor-right {
  margin-left: auto;
  padding-right: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 5px;
  font-weight: 600;
  font-size: 0.77rem;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  letter-spacing: -0.2px;
  transition: all 0.16s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.nav__link:hover,
.nav__item:hover > .nav__link {
  color: var(--primary-red);
  background: #fff1f2;
}

.nav__link.active {
  color: var(--primary-red) !important;
  background: #fee2e2 !important;
  font-weight: 700;
}

.nav__link svg.icon-arrow {
  width: 9px;
  height: 9px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  fill: currentColor;
  opacity: 0.65;
}

.nav__item:hover > .nav__link svg.icon-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__separator {
  width: 1px;
  height: 15px;
  background: #e2e8f0;
  margin: 0 2px;
  flex-shrink: 0;
}

.nav__link--img {
  font-weight: 600;
  letter-spacing: -0.15px;
}

.nav__link--img:hover,
.nav__item:hover > .nav__link--img {
  color: #2563eb !important;
  background: #eff6ff !important;
}

.nav__link--img.active {
  color: #2563eb !important;
  background: #dbeafe !important;
  font-weight: 700;
}

/* Dropdown Mega Menus Base */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav__item:hover > .dropdown-menu,
.nav__item.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__item.is-open > .nav__link {
  color: var(--primary-red);
  background: var(--bg-gray-light);
}

.nav__item.is-open > .nav__link svg.icon-arrow {
  transform: rotate(180deg);
}

/* Convert PDF Dropdown (2 Columns Modern Professional SaaS Design) */
.dropdown-menu--convert {
  width: 530px;
  left: -40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 12px 18px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-top: 3.5px solid #2563eb;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: absolute;
  top: calc(100% + 4px);
  z-index: 1200;
  box-sizing: border-box;
}

.dropdown-menu--convert .dropdown-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-menu--convert .dropdown-col:nth-child(1) .dropdown__link:hover { background: #eff6ff; }
.dropdown-menu--convert .dropdown-col:nth-child(1) .dropdown__link:hover strong { color: #2563eb; }

.dropdown-menu--convert .dropdown-col:nth-child(2) .dropdown__link:hover { background: #fffbeb; }
.dropdown-menu--convert .dropdown-col:nth-child(2) .dropdown__link:hover strong { color: #d97706; }

.dropdown-menu--convert .dropdown-footer-action {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, #f1f5f9);
  text-align: center;
}

.btn-view-all-convert {
  color: #2563eb !important;
}

.btn-view-all-convert:hover {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
}

/* All PDF Tools Mega Menu (6 Columns Modern SaaS Mega Menu - Same Style as All Utilities) */
.dropdown-menu--all-tools {
  width: 980px;
  max-width: calc(100vw - 32px);
  left: -270px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 16px 16px 12px 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-top: 3.5px solid #e11d48;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: absolute;
  top: calc(100% + 4px);
  z-index: 1200;
  box-sizing: border-box;
}

/* iLoveIMG More Tools Mega Menu (5 Columns) */
.dropdown-menu--img-tools {
  width: 980px;
  right: 0;
  left: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 22px 24px 16px 24px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.16);
  border-top: 3.5px solid #2563eb;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown__category-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e293b;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #f1f5f9;
  white-space: nowrap;
}

.dropdown__category-title .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

.dropdown__category-title--organize { color: #ee6c4d; }
.dropdown__category-title--optimize { color: #10b981; }
.dropdown__category-title--to-pdf { color: #2563eb; }
.dropdown__category-title--from-pdf { color: #d97706; }
.dropdown__category-title--edit { color: #db2777; }
.dropdown__category-title--security { color: #7c3aed; }

.dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
  color: var(--text-dark, #1e293b);
  text-decoration: none;
  min-width: 0;
}

.dropdown__link > div {
  min-width: 0;
  flex: 1;
}

.dropdown__link strong {
  display: block;
  font-size: 0.80rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
}

.dropdown__link .dropdown-tool-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 1px;
  line-height: 1.15;
  white-space: nowrap;
}

.dropdown__link .mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.dropdown__link:hover {
  transform: translateX(2px);
}

.dropdown__link:hover .mini-icon {
  transform: scale(1.12);
}

.dropdown__link .mini-icon svg {
  width: 14px;
  height: 14px;
}

/* Category column hover highlights */
.dropdown-menu--all-tools .dropdown-col:nth-child(1) .dropdown__link:hover { background: #fff7ed; }
.dropdown-menu--all-tools .dropdown-col:nth-child(1) .dropdown__link:hover strong { color: #ea580c; }

.dropdown-menu--all-tools .dropdown-col:nth-child(2) .dropdown__link:hover { background: #f0fdf4; }
.dropdown-menu--all-tools .dropdown-col:nth-child(2) .dropdown__link:hover strong { color: #059669; }

.dropdown-menu--all-tools .dropdown-col:nth-child(3) .dropdown__link:hover { background: #eff6ff; }
.dropdown-menu--all-tools .dropdown-col:nth-child(3) .dropdown__link:hover strong { color: #2563eb; }

.dropdown-menu--all-tools .dropdown-col:nth-child(4) .dropdown__link:hover { background: #fffbeb; }
.dropdown-menu--all-tools .dropdown-col:nth-child(4) .dropdown__link:hover strong { color: #d97706; }

.dropdown-menu--all-tools .dropdown-col:nth-child(5) .dropdown__link:hover { background: #fdf2f8; }
.dropdown-menu--all-tools .dropdown-col:nth-child(5) .dropdown__link:hover strong { color: #db2777; }

.dropdown-menu--all-tools .dropdown-col:nth-child(6) .dropdown__link:hover { background: #f5f3ff; }
.dropdown-menu--all-tools .dropdown-col:nth-child(6) .dropdown__link:hover strong { color: #7c3aed; }

/* Micro Badges */
.badge-mini-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-mini-tag--new {
  background: #e0f2fe;
  color: #0284c7;
}

.badge-mini-tag--ai {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.35);
}

/* Mega Menu Bottom Footer Bar */
.dropdown-menu--all-tools .dropdown-footer-action {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, #f1f5f9);
  text-align: center;
}

.btn-view-all-pdf {
  color: #e11d48 !important;
}

.btn-view-all-pdf:hover {
  color: #be123c !important;
  background: #fff1f2 !important;
}

/* Header Right Actions */
.header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-ecosystem-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f0f0f5;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.header-ecosystem-badge:hover {
  background: #e4e4ed;
}

.header-ecosystem-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.btn-login {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.btn-login:hover {
  background: var(--bg-gray-light);
}

.btn-signup {
  background: var(--primary-red);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(229, 50, 45, 0.25);
}

.btn-signup:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 4px 12px rgba(229, 50, 45, 0.35);
  transform: translateY(-1px);
}

.btn-grid-apps {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  position: relative;
}

.btn-grid-apps:hover {
  background: var(--bg-gray-light);
}

/* Products Dropdown (9 dots) */
.dropdown-menu--products {
  width: 340px;
  right: 0;
  left: auto;
  top: calc(100% + 6px);
}

.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.product-item:hover {
  background: var(--bg-gray-light);
}

.product-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-item__title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
}

.product-item__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile Hamburger Button */
.btn-mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Title & Subtitle Section
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
  contain: layout;
}

.hero-outer-wrapper {
  max-width: 1580px;
  width: 98%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.ad-hero-side {
  width: 300px;
  min-height: 250px;
  contain: layout;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-box--hero-side {
  width: 100%;
  min-height: 250px;
  max-height: 320px;
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.ad-box--hero-side:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.ad-clickable-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 20px 16px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.ad-clickable-card__badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1e40af;
  margin-bottom: 8px;
}

.ad-clickable-card__icon {
  font-size: 2.5rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: 1px;
  margin: 6px 0;
}

.ad-clickable-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-clickable-card__desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 14px;
}

.ad-clickable-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.ad-clickable-card:hover .ad-clickable-card__btn {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

@media (min-width: 1440px) {
  .ad-hero-side {
    width: 320px;
  }
}

@media (max-width: 1240px) {
  .ad-hero-side {
    width: 240px;
  }
}

@media (max-width: 1024px) {
  .ad-hero-side {
    width: 200px;
  }
}

@media (max-width: 860px) {
  .ad-hero-side {
    display: none;
  }
}

.pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(229, 50, 45, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.hero__container {
  max-width: 980px;
  margin: 0 auto;
  flex-grow: 1;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-badge-pill__text-mobile {
  display: none;
}

@media (max-width: 640px) {
  .hero-badge-pill__text-full {
    display: none !important;
  }
  .hero-badge-pill__text-mobile {
    display: inline !important;
  }
}

.hero-badge-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero__title {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 auto 16px auto;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 900px;
}

.hero__subtitle {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

.hero__subtitle strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-highlights-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-highlight-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ==========================================================================
   Ecosystem Switcher Bar (Modern, Sleek, Compact Segmented Dock)
   ========================================================================== */
.ecosystem-nav-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 3px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  flex-wrap: nowrap;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
}

.ecosystem-nav-bar::-webkit-scrollbar {
  display: none;
}

.ecosystem-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 33px;
  padding: 0 12px;
  background: transparent;
  border: none !important;
  border-radius: 9999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  line-height: 1;
}

.ecosystem-tab svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ecosystem-tab .eco-label {
  font-weight: 600;
  line-height: 1;
}

.ecosystem-tab .eco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  font-weight: 750;
  padding: 1px 5px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  line-height: 1.1;
  transition: all 0.18s ease;
}

/* Hover & Active States */
.ecosystem-tab:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
}

.ecosystem-tab:hover svg {
  opacity: 1;
}

/* Active Segmented State - Clean Solid White Card */
.ecosystem-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.04) !important;
  border: none !important;
}

.ecosystem-tab.active .eco-label {
  font-weight: 700;
  color: #0f172a;
}

.ecosystem-tab.active svg {
  opacity: 1;
}

/* 1. All Tools Active */
.ecosystem-tab[data-eco="all"].active .eco-badge {
  background: #fee2e2;
  color: #dc2626;
}

/* 2. MeLovePDF Suite Active */
.ecosystem-tab[data-eco="melovepdf"].active .eco-badge {
  background: #fee2e2;
  color: #dc2626;
}

/* 3. meLoveIMG Tools Active */
.ecosystem-tab[data-eco="meloveimg"].active .eco-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 4. All Utilities Tools Active */
.ecosystem-tab--utility .eco-badge {
  background: #d1fae5;
  color: #059669;
}

.ecosystem-tab--utility.active .eco-badge {
  background: #d1fae5;
  color: #047857;
}

.ecosystem-tab--utility .eco-hot-tag {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .ecosystem-nav-bar {
    gap: 3px;
    margin-top: 14px;
    padding: 3px 4px;
  }
  .ecosystem-tab {
    height: 31px;
    padding: 0 9px;
    font-size: 0.76rem;
    gap: 4px;
  }
  .ecosystem-tab svg {
    width: 12.5px;
    height: 12.5px;
  }
  .ecosystem-tab .eco-badge {
    font-size: 0.68rem;
    padding: 1px 4px;
  }
}

/* ==========================================================================
   Category Filter Tabs
   ========================================================================== */

.filter-section {
  max-width: 1580px;
  width: 98%;
  margin: 6px auto 20px auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  background: var(--bg-white);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-tags::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  padding: 6px 11px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-tag:hover {
  color: var(--text-main);
  background: var(--bg-gray-light);
}

.filter-tag.active {
  background: var(--text-main);
  color: var(--text-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Tools Grid & Tool Cards
   ========================================================================== */

.tools-grid-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(229, 50, 45, 0.15);
}

.tool-card__icon {
  width: auto;
  min-width: 48px;
  height: 44px;
  border-radius: 0;
  background: transparent !important;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover .tool-card__icon {
  transform: translateY(-2px) scale(1.05);
}

.tool-card__icon svg {
  width: auto;
  height: 44px;
  max-width: 110px;
  display: block;
}

.tool-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.tool-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.tool-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
  transition: all 0.2s ease;
}

.tool-card__badge--pdf {
  background: #fef2f2;
  color: #e5252a;
  border: 1px solid #fecaca;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.2px;
}

.tool-card:hover .tool-card__badge--pdf {
  background: #fee2e2;
  border-color: #f87171;
}

.tool-card__badge--new {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.tool-card__badge--popular {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Promotional Content Sections
   ========================================================================== */

.promo-block {
  background: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 24px;
}

.promo-block--gray {
  background: var(--bg-gray-subtle);
}

.promo-block__container {
  max-width: 1200px;
  margin: 0 auto;
}

.promo-block__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* Three Cards: Work Your Way */
.work-way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-way-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
}

.work-way-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-focus);
}

.work-way-card__img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
}

.work-way-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.work-way-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.work-way-card__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--primary-red);
}

.work-way-card__action svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.work-way-card:hover .work-way-card__action svg {
  transform: translate(3px, -3px);
}

/* Premium Banner */
.premium-banner {
  background: linear-gradient(135deg, #fff7ea 0%, #fffbf5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-xl);
  padding: 44px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.premium-banner__content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #7c2d12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.premium-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.premium-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #431407;
}

.premium-perks li svg {
  width: 20px;
  height: 20px;
  color: #ea580c;
  flex-shrink: 0;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f59e0b;
  color: #78350f;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-premium:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.premium-banner__img {
  text-align: center;
}

.premium-banner__img img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

/* Image Editing (iLoveIMG) Banner */
.iloveimg-banner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.iloveimg-banner__img img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.iloveimg-banner__content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.iloveimg-banner__content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gray-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #e5e5ec;
  transform: translateY(-1px);
}

/* ==========================================================================
   Trust & Compliance Section (Enterprise Luxury Redesign)
   ========================================================================== */

.trust-section {
  text-align: center;
  padding: 80px 24px 70px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(229, 50, 45, 0.035) 0%, rgba(248, 250, 252, 0.7) 60%, #ffffff 100%);
  border-top: 1px solid #f1f5f9;
}

.trust-container {
  max-width: 1140px;
  margin: 0 auto;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.05);
}

.trust-section__title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.trust-section__subtitle {
  font-size: 1.06rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 38px auto;
  line-height: 1.65;
}

/* Trust Stats Ribbon */
.trust-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 40px;
  max-width: 820px;
  margin: 0 auto 44px auto;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.05);
  flex-wrap: wrap;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trust-stat__num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.trust-stat__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.trust-stat__divider {
  width: 1px;
  height: 38px;
  background: #e2e8f0;
}

/* 3 Interactive Trust Cards */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 24px;
  text-align: left;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.08);
}

.trust-card__img-box {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  transition: transform 0.25s ease;
}

.trust-card:hover .trust-card__img-box {
  transform: scale(1.06);
}

.trust-card__img-box img {
  max-height: 40px;
  width: auto;
}

.trust-card__details {
  display: flex;
  flex-direction: column;
}

.trust-card__badge-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.trust-card__badge-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* ==========================================================================
   Mega Footer (Enterprise Luxury Dark Redesign)
   ========================================================================== */

.footer {
  background: #090d16;
  border-top: 1px solid #1e293b;
  padding: 76px 24px 36px 24px;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 50, 45, 0.6), rgba(37, 99, 235, 0.6), transparent);
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Footer Top Row: Brand Info + 5 Nav Columns */
.footer__top-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
}

.footer__brand-logo {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer__brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Live Operational Status Badge */
.footer__status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  width: fit-content;
}

.status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreenGlow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreenGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-details {
  display: flex;
  flex-direction: column;
}

.status-text-bold {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.status-text-dim {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer__mini-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-trust-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: #111827;
  border: 1px solid #1f2937;
  padding: 5px 11px;
  border-radius: 8px;
}

/* 5 Columns Nav Grid */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.footer__col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  position: relative;
  padding-bottom: 8px;
}

.footer__col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: #e5322d;
  border-radius: 2px;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer__nav a {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-block;
}

.footer__nav a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-eco-link {
  font-weight: 600;
}

.footer-eco-link--img:hover {
  color: #60a5fa !important;
}

.footer-eco-link--sign:hover {
  color: #f472b6 !important;
}

.footer-eco-link--api:hover {
  color: #fbbf24 !important;
}

/* Footer Bottom Bar */
.footer__bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
  background: #131b2e;
  border: 1px solid #1e293b;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer__lang:hover {
  color: #f1f5f9;
  border-color: #334155;
  background: #1e293b;
}

.footer__security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(6, 78, 59, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
}

.footer__copyright {
  font-size: 0.84rem;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.footer__copyright strong {
  color: #cbd5e1;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .footer__top-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust-section {
    padding: 50px 16px 40px 16px;
  }

  .trust-section__title {
    font-size: 1.7rem;
  }

  .trust-stats-bar {
    gap: 20px;
    padding: 16px 20px;
  }

  .trust-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Dedicated Informational Page Views (About Us & Contact Us)
   ========================================================================== */

.page-view {
  min-height: 70vh;
  padding: 40px 24px 80px 24px;
  background: #f8fafc;
  animation: fadeIn 0.25s ease-out;
}

.page-container {
  max-width: 1140px;
  margin: 0 auto;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 32px;
}

.page-breadcrumb a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px auto;
}

.page-badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--primary-red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: 1.12rem;
  color: #64748b;
  line-height: 1.65;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

/* Values Grid */
.about-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.about-section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.about-section-header p {
  font-size: 1rem;
  color: #64748b;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.value-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.value-card:hover {
  transform: translateY(-3px);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* Security Highlight Card */
.about-security-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-left: 6px solid #16a34a;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 48px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.05);
}

.about-security-badge {
  flex-shrink: 0;
}

.about-security-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.about-security-content p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Page CTA Box */
.page-cta-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.page-cta-box h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.page-cta-box p {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.btn-primary-cta {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.4);
}

.btn-primary-cta:hover {
  background: #cc221d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.5);
}

/* Contact Page Specific Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  margin-bottom: 56px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.contact-channel-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.45;
}

.contact-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-hours-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12);
}

.btn-submit-contact {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.35);
}

.btn-submit-contact:hover {
  background: #cc221d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.45);
}

/* Corporate Information & Legal Registration Styles (About Us) */
.about-corp-section {
  margin: 52px 0 48px 0;
}

.page-badge--corporate {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.corp-details-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-top: 24px;
}

.corp-details-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px 28px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.corp-badge-verified {
  display: flex;
  align-items: center;
  gap: 12px;
}

.corp-badge-verified strong {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
  display: block;
}

.corp-sub-badge {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.corp-reg-number {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.corp-reg-number .reg-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.corp-reg-number .reg-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0284c7;
  font-family: monospace;
}

.corp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e2e8f0;
}

.corp-info-item {
  background: #ffffff;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.corp-info-item .info-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.corp-info-item .info-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.info-val--highlight {
  color: #0284c7 !important;
  font-family: monospace;
  font-size: 1.15rem !important;
}

.corp-status-active {
  color: #16a34a !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  display: inline-block;
}

.corp-footer-bar {
  background: #fafafa;
  border-top: 1.5px solid #e2e8f0;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.corp-desc-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #475569;
  max-width: 720px;
  line-height: 1.45;
}

.corp-desc-note svg {
  flex-shrink: 0;
  color: #0284c7;
}

.btn-corp-verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-corp-verify:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.corp-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.gov-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.gov-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.gov-card .gov-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.gov-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.gov-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Contact Form Enhancements */
.contact-form-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.contact-form-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.contact-form-header p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.contact-error-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.contact-success-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 28px 24px;
  animation: fadeIn 0.3s ease;
}

.contact-success-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.contact-success-body h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 6px;
}

.contact-success-body p {
  font-size: 0.92rem;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 16px;
}

.ticket-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  border: 1px solid #bbf7d0;
}

.ticket-info-box {
  background: #ffffff;
  border: 1.5px dashed #86efac;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ticket-info-box .lbl {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.ticket-info-box .ticket-code {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0284c7;
}

.btn-reset-contact {
  background: transparent;
  border: 1.5px solid #22c55e;
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-contact:hover {
  background: #22c55e;
  color: #ffffff;
}

.contact-success-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.contact-success-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Contact FAQ */
.contact-faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   Tool Workspace View (Dedicated Tool Interface)
   ========================================================================== */

/* Anti-FOUC Instant Route Rules (Eliminates Flash of Home Page on Refresh) */
html.is-tool-route #homeView,
html.is-page-active #homeView {
  display: none !important;
}

html.is-tool-route #toolWorkspace {
  display: flex !important;
}

html.is-page-about #aboutView { display: block !important; }
html.is-page-contact #contactView { display: block !important; }
html.is-page-privacy #privacyView { display: block !important; }
html.is-page-terms #termsView { display: block !important; }
html.is-page-security #securityView { display: block !important; }

.tool-workspace {
  display: none;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  position: relative;
  background: #fbfbfd;
  flex-direction: row;
  align-items: stretch;
}

.tool-workspace.active {
  display: flex !important;
}

.tool-workspace__main {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  position: relative;
  box-sizing: border-box;
}

.tool-workspace__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tool-breadcrumb a:hover {
  color: var(--primary-red);
}

.tool-header-info {
  text-align: center;
  margin-bottom: 30px;
}

.tool-header-info h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.tool-header-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Drop & Upload Zone */
.uploader-box {
  max-width: 620px;
  width: 100%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background: var(--bg-white);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  text-align: center;
}

.uploader-box.drag-over {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
  transform: scale(1.02);
}

.btn-upload-big {
  background: var(--primary-red);
  color: var(--text-white);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 18px 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(229, 50, 45, 0.35);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.btn-upload-big:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 8px 24px rgba(229, 50, 45, 0.45);
  transform: translateY(-2px);
}

.btn-upload-big svg {
  width: 24px;
  height: 24px;
}

.uploader-extra-sources {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.btn-cloud-source {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.btn-cloud-source:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.uploader-drop-hint {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 12px;
  font-weight: 500;
}

/* File Grid inside Workspace (Once files are uploaded) */
.files-workspace-view {
  display: none;
  width: 100%;
  position: relative;
}

.files-workspace-view.active {
  display: block;
}

/* Floating Add More Files Action Bar (Matching iLovePDF Desktop & Mobile) */
.floating-add-more-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.float-btn-main {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e5322d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.42);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

.float-btn-main:hover {
  background: #cc2520;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(229, 50, 45, 0.55);
}

.float-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #ffffff;
}

.float-sub-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.float-sub-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5322d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(229, 50, 45, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.float-sub-btn:hover {
  background: #b91c1c;
  transform: scale(1.1);
  box-shadow: 0 5px 16px rgba(229, 50, 45, 0.45);
}

.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.files-toolbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}

.files-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool-action {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tool-action:hover {
  background: #e2e8f0;
}

/* Fast In-Toolbar Convert Button */
.btn-files-convert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5322d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(229, 50, 45, 0.32);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-files-convert:hover:not(:disabled) {
  background: #c8231e;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(229, 50, 45, 0.45);
}

.btn-files-convert:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Prominent In-Page Action Banner Directly Below File Cards */
.files-action-banner {
  margin-top: 24px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.files-action-banner__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.files-action-banner__icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}

.files-action-banner strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.files-action-banner #filesActionBannerSub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.btn-files-big-convert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e5322d;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(229, 50, 45, 0.38);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-files-big-convert:hover:not(:disabled) {
  background: #c8231e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.5);
}

.btn-files-big-convert:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .files-action-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .files-action-banner__info {
    flex-direction: column;
    text-align: center;
  }
  .btn-files-big-convert {
    width: 100%;
  }
}

.file-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.file-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  cursor: grab;
}

.file-item-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

.file-item-card__thumb {
  width: 100%;
  height: 190px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.file-item-card__thumb canvas,
.file-item-card__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.file-item-card__badge-order {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-main);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-item-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.file-item-card__btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.8rem;
}

.file-item-card__btn:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

.file-item-card__info {
  margin-top: 4px;
}

.file-item-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-card__meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Add More Files Card */
.add-more-card {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
}

.add-more-card:hover {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
}

.add-more-card .plus-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.add-more-card:hover .plus-icon {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
}

/* Tool Sidebar Options Panel */
.tool-sidebar {
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  background: var(--bg-white);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  box-shadow: -2px 0 14px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  z-index: 90;
  box-sizing: border-box;
}

.tool-sidebar__header {
  flex-shrink: 0;
}

.tool-sidebar__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-sidebar__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.4) transparent;
}

.tool-sidebar__content::-webkit-scrollbar {
  width: 4px;
}

.tool-sidebar__content::-webkit-scrollbar-track {
  background: transparent;
}

.tool-sidebar__content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tool-sidebar__content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.tool-sidebar__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-white);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12);
}

/* Option Cards (for compression, format, orientation) */
.option-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-select-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-white);
}

.option-select-card:hover {
  border-color: #cbd5e1;
}

.option-select-card.active {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-weight: 700;
}

/* 3x3 Position Selector (for watermark, page numbers) */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 140px;
}

.position-cell {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.position-cell.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.position-cell.active::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

/* Action Button at bottom of sidebar */
.btn-process-action {
  width: 100%;
  background: #e5322d;
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(229, 50, 45, 0.35);
  margin-top: 0;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-process-action:hover:not(:disabled) {
  background: #cc2520;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 50, 45, 0.45);
}

.btn-process-action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Protect PDF & Security Sidebar Styles (Matches & Exceeds iLovePDF)
   ========================================================================== */
.protect-pdf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.protect-header-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 2px;
}

.protect-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.protect-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.protect-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.protect-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.protect-input:focus {
  border-color: #e5322d;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12);
}

.btn-toggle-eye {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e5322d;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-toggle-eye:hover {
  background: #cf231e;
  transform: scale(1.05);
}

.protect-strength-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding: 0 2px;
}

.protect-strength-bar {
  display: flex;
  gap: 4px;
  flex: 1;
  height: 5px;
}

.strength-bar-seg {
  flex: 1;
  height: 100%;
  background: #e2e8f0;
  border-radius: 3px;
  transition: background 0.25s ease;
}

.strength-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

.protect-match-hint {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 4px;
  min-height: 18px;
}

.protect-match-hint.match-success {
  color: #059669;
}

.protect-match-hint.match-error {
  color: #dc2626;
}

.protect-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #065f46;
  margin-top: 4px;
}

.protect-warning-note {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.45;
}

/* ==========================================================================
   Tool On-Page Instructions & SEO Guide Section
   ========================================================================== */
.tool-seo-guide {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  padding: 48px 24px 60px 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.tool-seo-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tool-seo-how-to h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.4px;
}

.tool-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-step-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.tool-step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.tool-step-item .step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e5322d;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(229, 50, 45, 0.3);
}

.tool-step-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.tool-step-item p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.tool-seo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.tool-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tool-feature-box .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-feature-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.tool-feature-box p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .tool-steps-grid,
  .tool-seo-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tool-seo-guide {
    padding: 32px 16px;
  }
}

/* OCR & Advanced PDF to Word Option Styles */
.ocr-smart-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.45;
  margin-bottom: 4px;
}

.ocr-smart-notice strong {
  color: #1d4ed8;
}

.ocr-mode-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.ocr-mode-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ocr-mode-card.active {
  border-color: #10b981;
  background: #f0fdf4;
}

.ocr-mode-card[data-ocr-mode="ocr"].active {
  border-color: var(--primary-red);
  background: #fff1f2;
}

.ocr-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ocr-mode-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-free-ai {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #e5322d 0%, #ff6b6b 100%);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ocr-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s ease;
}

.ocr-mode-card.active .ocr-check-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.ocr-mode-card[data-ocr-mode="ocr"].active .ocr-check-circle {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
}

.ocr-mode-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.word-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Split PDF Advanced Engine & Interface Styles (Matching & Beating iLovePDF)
   ========================================================================== */

/* Split PDF Mode Tabs */
.split-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 16px;
  background: #f8fafc;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.split-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.split-tab-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.02);
}

.split-tab-btn.active {
  color: #e5322d;
  background: #ffffff;
  border-bottom-color: #e5322d;
}

.split-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-badge-free {
  font-size: 0.60rem;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 6px;
  margin-left: 2px;
  text-transform: uppercase;
}

/* Range Mode Sub-pills (Custom / Fixed / Smart) */
.split-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.split-pill {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.split-pill:hover {
  border-color: #94a3b8;
}

.split-pill.active {
  border-color: #e5322d;
  color: #e5322d;
  background: #fff5f5;
  font-weight: 700;
}

/* Split Ranges List & Range Cards */
.split-ranges-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.split-range-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.split-range-item:hover {
  border-color: #cbd5e1;
}

.split-range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.btn-remove-range {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-remove-range:hover {
  color: #ef4444;
  background: #fee2e2;
}

.split-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-input-col {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  background: #ffffff;
}

.range-input-col span {
  font-size: 0.74rem;
  color: #64748b;
  margin-right: 6px;
  white-space: nowrap;
}

.range-num-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  outline: none;
}

.btn-add-range {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed #fca5a5;
  background: #fff5f5;
  color: #dc2626;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-range:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

/* Checkbox Label */
.split-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.split-checkbox-label input[type="checkbox"] {
  accent-color: #e5322d;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Pages Mode Selection */
.split-pages-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.split-quick-actions {
  display: flex;
  gap: 6px;
}

.btn-quick-sel {
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 4px;
  cursor: pointer;
  color: #475569;
}

.btn-quick-sel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Canvas Display for Split PDF (Page cards with range banners) */
.split-range-canvas-wrapper {
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.split-range-canvas-wrapper.active {
  border-color: #e5322d;
  background: #fffafa;
}

.split-range-canvas-header {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.split-range-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.split-page-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.split-page-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.split-page-card.selected {
  border-color: #10b981;
  background: #f0fdf4;
}

.split-page-card.dimmed {
  opacity: 0.35;
}

.split-page-card__thumb {
  width: 100%;
  height: 150px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.split-page-card__thumb canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.split-page-card__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.split-page-card__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.15s ease;
}

.split-page-card.selected .split-page-card__check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Split PDF Mobile Responsiveness */
@media (max-width: 640px) {
  .split-mode-tabs {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 12px;
  }

  .split-tab-btn {
    padding: 10px 4px;
    font-size: 0.78rem;
    gap: 3px;
  }

  .split-tab-btn svg {
    width: 18px;
    height: 18px;
  }

  .split-badge-free {
    font-size: 0.55rem;
    padding: 1px 3px;
  }

  .split-range-canvas-wrapper {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .split-range-pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
  }

  .split-page-card {
    padding: 6px;
  }

  .split-page-card__thumb {
    height: 125px;
  }

  .split-pills-row {
    gap: 6px;
  }

  .split-pill {
    padding: 7px 6px;
    font-size: 0.76rem;
  }

  .range-input-col {
    padding: 4px 6px;
  }

  .range-input-col span {
    font-size: 0.70rem;
    margin-right: 4px;
  }

  .range-num-input {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Processing & Download Success Screens
   ========================================================================== */

.overlay-processing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.overlay-processing.active {
  display: flex;
}

.processing-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.processing-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.progress-bar-container {
  width: 320px;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-red);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Success Download Page View */
.download-success-view {
  display: none;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-page);
}

.download-success-view.active {
  display: flex;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon-badge svg {
  width: 40px;
  height: 40px;
}

.download-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.download-meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.btn-download-big {
  background: var(--primary-red);
  color: var(--text-white);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 18px 46px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.35);
  margin-bottom: 24px;
  cursor: pointer;
}

.btn-download-big:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(229, 50, 45, 0.45);
}

.success-extra-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.btn-success-action {
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-success-action:hover {
  background: var(--bg-gray-light);
  border-color: #cbd5e1;
}

/* ==========================================================================
   Canvas Signature Pad & Drawing Tools (for Sign PDF)
   ========================================================================== */

.signature-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature-canvas-wrap {
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 160px;
}

.signature-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.signature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.color-swatch.active {
  border-color: var(--text-main);
  transform: scale(1.15);
}

.btn-clear-sig {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-clear-sig:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   Remove Background Interactive Split Comparison Slider (iLoveIMG Style)
   ========================================================================== */

.bg-remove-workspace-view {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 16px 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Floating Toolbar (Matching remove.bg) */
.rmbg-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  z-index: 20;
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}

.rmbg-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rmbg-toolbar-divider {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 4px;
}

.rmbg-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.rmbg-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.rmbg-tool-btn.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.rmbg-btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.rmbg-btn-icon-only:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rmbg-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.18s ease;
}

.rmbg-download-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Popover Panels */
.rmbg-popover-panel {
  position: absolute;
  top: 65px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  width: 320px;
  max-width: 90vw;
  z-index: 30;
  animation: rmbgFadeIn 0.18s ease;
}

@keyframes rmbgFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rmbg-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.rmbg-panel-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.rmbg-panel-close:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.rmbg-brush-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.rmbg-brush-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rmbg-brush-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 700;
}

.rmbg-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.rmbg-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.rmbg-subtabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 12px;
  gap: 4px;
}

.rmbg-subtab-btn {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rmbg-subtab-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rmbg-color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rmbg-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease;
  position: relative;
}

.rmbg-swatch:hover {
  transform: scale(1.1);
}

.rmbg-swatch.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.rmbg-swatch--picker input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rmbg-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rmbg-photo-item {
  height: 54px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  background-size: cover;
  background-position: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.rmbg-photo-item:hover {
  transform: scale(1.04);
}

.rmbg-photo-item.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.rmbg-photo-upload {
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  color: #475569;
  text-shadow: none;
}

.rmbg-photo-item[data-bg-preset="studio"] { background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%); color: #334155; text-shadow: none; }
.rmbg-photo-item[data-bg-preset="office"] { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.rmbg-photo-item[data-bg-preset="sunset"] { background: linear-gradient(135deg, #f97316 0%, #ec4899 100%); }
.rmbg-photo-item[data-bg-preset="bokeh"] { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.rmbg-photo-item[data-bg-preset="brick"] { background: linear-gradient(135deg, #78350f 0%, #b45309 100%); }

.rmbg-reset-btn {
  width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  margin-top: 4px;
}

.rmbg-reset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Canvas Card (remove.bg style preview frame) */
.rmbg-canvas-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 520px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmbg-canvas-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  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;
  user-select: none;
}

.rmbg-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: filter 0.2s ease, background 0.2s ease;
}

.rmbg-main-canvas {
  position: absolute;
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  z-index: 2;
  border-radius: 4px;
}

.rmbg-original-overlay {
  position: absolute;
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
}

.rmbg-brush-cursor {
  position: absolute;
  border: 2px solid rgba(37, 99, 235, 0.9);
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
}

/* AI Loader Overlay */
.rmbg-ai-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  gap: 12px;
}

.rmbg-ai-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-right-color: #3b82f6;
  border-radius: 50%;
  animation: rmbgSpin 0.75s linear infinite;
}

@keyframes rmbgSpin {
  to { transform: rotate(360deg); }
}

.rmbg-ai-status {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.rmbg-ai-sub {
  font-size: 0.82rem;
  color: #64748b;
}

/* Bottom Thumbnails Strip (Matching remove.bg) */
.rmbg-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  max-width: 760px;
  width: 100%;
  overflow-x: auto;
  padding: 4px;
}

.rmbg-thumb-add {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.rmbg-thumb-add:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.rmbg-thumbs-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.rmbg-thumb-card {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.18s ease;
}

.rmbg-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rmbg-thumb-card.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.split-compare-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.split-compare-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 520px;
  background-color: #ffffff;
  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;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--border-subtle);
}

.split-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.split-clipped-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  background-color: transparent;
}

.split-divider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-divider-knob {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.split-divider-handle:hover .split-divider-knob {
  transform: scale(1.1);
  background: #1d4ed8;
}

.split-compare-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 720px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.label-before {
  color: #334155;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.label-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.label-after {
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Interactive Crop Workspace (Matching iloveimg.com)
   ========================================================================== */
.tool-workspace--fullscreen-editor {
  min-height: calc(100vh - 65px) !important;
}

.tool-workspace--fullscreen-editor .tool-workspace__top-bar,
.tool-workspace--fullscreen-editor .tool-header-info,
.tool-workspace--fullscreen-editor .ad-workspace-wrapper,
.tool-workspace--fullscreen-editor .tool-seo-guide {
  display: none !important;
}

.tool-workspace--fullscreen-editor .tool-workspace__main {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: #f1f5f9 !important;
}

.tool-workspace--fullscreen-editor .tool-sidebar {
  min-height: calc(100vh - 65px) !important;
  height: calc(100vh - 65px) !important;
}

.img-crop-workspace-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 85px);
  padding: 16px;
  background: #f1f5f9;
  border-radius: 0;
}

.crop-workspace-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 120px);
}

.crop-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  user-select: none;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  line-height: 0;
}

.crop-target-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.crop-box {
  position: absolute;
  border: 2px solid #2563eb;
  cursor: move;
  box-sizing: border-box;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  touch-action: none;
  z-index: 10;
}

/* Rule of Thirds Grid Lines */
.crop-grid-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.75;
}

.crop-grid-line--h1 {
  top: 33.333%;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.7);
}

.crop-grid-line--h2 {
  top: 66.666%;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.7);
}

.crop-grid-line--v1 {
  left: 33.333%;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.7);
}

.crop-grid-line--v2 {
  left: 66.666%;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.7);
}

/* 8 Resize Handles (Small blue squares with subtle white border matching iLoveIMG) */
.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 20;
  touch-action: none;
}

.crop-handle--nw { top: -5px; left: -5px; cursor: nwse-resize; }
.crop-handle--n  { top: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.crop-handle--ne { top: -5px; right: -5px; cursor: nesw-resize; }
.crop-handle--e  { top: calc(50% - 5px); right: -5px; cursor: ew-resize; }
.crop-handle--se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.crop-handle--s  { bottom: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.crop-handle--sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.crop-handle--w  { top: calc(50% - 5px); left: -5px; cursor: ew-resize; }

.crop-handle:hover {
  background: #1d4ed8;
  transform: scale(1.2);
}

/* Crop Sidebar Options (Matching iLoveIMG) */
.crop-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.crop-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.crop-option-item:last-child {
  border-bottom: none;
}

.crop-option-item label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.crop-number-input {
  width: 100px;
  height: 42px;
  text-align: right;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.crop-number-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Blue Action Button for MeLoveIMG */
.btn-process-action--iloveimg,
.btn-process-action--meloveimg {
  background: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.btn-process-action--iloveimg:hover:not(:disabled),
.btn-process-action--meloveimg:hover:not(:disabled) {
  background: #1d4ed8 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

/* ==========================================================================
   Interactive Blur Face Workspace (Matching iloveimg.com/blur-face)
   ========================================================================== */
.blur-face-workspace-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 85px);
  padding: 24px;
  background: #f1f5f9;
  box-sizing: border-box;
}

.blur-workspace-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  position: relative;
}

.blur-canvas-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  user-select: none;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
  background: #ffffff;
  line-height: 0;
}

.blur-target-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  border-radius: 4px;
}

.blur-boxes-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  overflow: visible;
  line-height: 1.5;
}

/* Blur Selection Box matching iloveimg */
.blur-box {
  position: absolute;
  border: 1.5px solid rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.08);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  z-index: 10;
  transition: box-shadow 0.15s ease;
}

.blur-box.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1.5px #ffffff, 0 4px 16px rgba(37, 99, 235, 0.25);
  z-index: 15;
}

.blur-box--pixelate {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.18) 75%);
  background-size: 8px 8px;
  background-color: rgba(220, 220, 220, 0.45);
}

/* Floating Delete Trash Button above each blur box */
.btn-delete-blur-box {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  z-index: 25;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.btn-delete-blur-box:hover {
  background: #fee2e2;
  color: #e5322d;
  border-color: #fca5a5;
  transform: translateX(-50%) scale(1.08);
}

/* Circular Blue Handles matching iloveimg */
.blur-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #3b82f6;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 20;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
}

.blur-handle::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  cursor: inherit;
}

.blur-handle--nw { top: -4.5px; left: -4.5px; cursor: nwse-resize; }
.blur-handle--n  { top: -4.5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.blur-handle--ne { top: -4.5px; right: -4.5px; cursor: nesw-resize; }
.blur-handle--e  { top: 50%; right: -4.5px; transform: translateY(-50%); cursor: ew-resize; }
.blur-handle--se { bottom: -4.5px; right: -4.5px; cursor: nwse-resize; }
.blur-handle--s  { bottom: -4.5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.blur-handle--sw { bottom: -4.5px; left: -4.5px; cursor: nesw-resize; }
.blur-handle--w  { top: 50%; left: -4.5px; transform: translateY(-50%); cursor: ew-resize; }

/* Floating Top-Right Add Badge matching iloveimg 1+ circle */
.btn-canvas-add-area {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  z-index: 30;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  padding: 0;
}

.btn-canvas-add-area:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.btn-canvas-add-area .count-badge {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

/* Blur Face Sidebar Options matching Screenshot 1 */
.blur-options-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blur-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.blur-mode-card {
  position: relative;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
}

.blur-mode-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.blur-mode-card.active {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.blur-mode-check-badge {
  position: absolute;
  top: 7px;
  left: 7px;
}

.blur-mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blur-mode-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.25;
}

.blur-mode-card.active .blur-mode-label {
  color: #1e40af;
  font-weight: 700;
}

/* Detection Levels List (Recommended / Low / High) */
.detection-levels-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.detection-level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  color: #475569;
  letter-spacing: 0.2px;
  transition: all 0.18s ease;
  user-select: none;
}

.detection-level-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.detection-level-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
  border-left: 4px solid #3b82f6;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.08);
}

/* Pill Add Button "+ Add blur area" matching Screenshot 1 */
.btn-add-blur-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 16px auto 0 auto;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid #3b82f6;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-blur-pill:hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Big Blue Action Button matching Screenshot 1 */
.btn-process-action--blue {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
}

.btn-process-action--blue:hover:not(:disabled) {
  background: #2563eb !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45) !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .dropdown-menu--all-tools {
    width: 90vw;
    left: 0;
    grid-template-columns: repeat(3, 1fr);
  }
  .dropdown-menu--img-tools {
    width: 90vw;
    right: 0;
    left: auto;
    grid-template-columns: repeat(2, 1fr);
  }
  .work-way-grid {
    grid-template-columns: 1fr;
  }
  .premium-banner {
    grid-template-columns: 1fr;
  }
  .iloveimg-banner {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-sidebar {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    padding: 20px 16px;
  }
}

@media (max-width: 880px) {
  .tool-workspace {
    flex-direction: column;
  }
  .tool-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    position: static;
    height: auto;
    max-height: none;
  }
  .tool-sidebar__footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 16px !important;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .btn-mobile-menu {
    display: flex;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Google AdSense & Responsive Ad Placement System
   ========================================================================== */

.ad-wrapper {
  width: 100%;
  min-height: 100px;
  contain: layout;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  clear: both;
}

.ad-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-label svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.ad-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.ad-box:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* 1. Top & Mid Leaderboard Banner (728x90 Desktop, 320x50/300x100 Mobile) */
.ad-box--leaderboard {
  width: 728px;
  min-height: 90px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ad-box--leaderboard {
    width: 320px;
    min-height: 50px;
  }
}

/* 2. In-Grid Tool Card Ad (Matching standard tool-card size) */
.tool-card--ad {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 20px;
  box-sizing: border-box;
}

.tool-card--ad:hover {
  border-color: #94a3b8;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ad-native-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ad-native-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #0f172a;
}

.ad-native-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

.ad-native-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-native-cta {
  display: inline-block;
  padding: 5px 15px;
  background: #0369a1;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
  transition: var(--transition);
}

.ad-native-cta:hover {
  background: #075985;
}

/* 3. Tool Workspace Ad Placement (Matching MeLovePDF below upload box) */
.ad-workspace-wrapper {
  margin-top: 24px;
  width: 100%;
  max-width: 728px;
}

/* 4. Download Success Screen Ad */
.ad-download-wrapper {
  margin: 28px auto 14px auto;
  max-width: 728px;
  width: 100%;
}

/* Placeholder Demo Style */
.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.ad-placeholder__icon {
  font-size: 1.2rem;
  opacity: 0.6;
}

.ad-placeholder__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.ad-placeholder__meta {
  font-size: 0.75rem;
  color: #334155;
  font-weight: 600;
}

/* ==========================================================================
   Tool On-Page SEO Guide & Content Section
   ========================================================================== */

.tool-seo-guide {
  width: 100%;
  flex: 1 1 100%;
  margin-top: 48px;
  padding: 40px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.tool-seo-container {
  max-width: 960px;
  margin: 0 auto;
}

.tool-seo-how-to h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin-bottom: 28px;
}

.tool-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.tool-step-item {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 18px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.tool-seo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px dashed #cbd5e1;
  padding-top: 32px;
}

.tool-feature-box {
  text-align: center;
  padding: 16px;
}

.tool-feature-box .feature-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: inline-block;
}

.tool-feature-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.tool-feature-box p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .tool-steps-grid,
  .tool-seo-features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE VIEW ENHANCEMENTS - Professional, App-Like & Highly Attractive
   ========================================================================== */

/* 1. Header Mobile Actions & Animated Hamburger Button */
.header__mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-mobile-search-quick {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: var(--bg-gray-light);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-mobile-search-quick:active {
  background: #fee2e2;
  color: var(--primary-red);
  transform: scale(0.94);
}

.btn-mobile-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-mobile-toggle:active {
  background: var(--bg-gray-light);
  transform: scale(0.94);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2.2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
  background-color: var(--primary-red);
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
  background-color: var(--primary-red);
}

/* 2. Slide-out Mobile Navigation Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.mobile-drawer-backdrop.active,
.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 88vw);
  background: #ffffff;
  z-index: 1250;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  overflow: hidden;
}

.mobile-drawer.open,
.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  display: flex !important;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  flex-shrink: 0;
}

.mobile-drawer__brand img {
  height: 28px;
  width: auto;
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-gray-light);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-drawer:hover,
.btn-close-drawer:active {
  background: #fee2e2;
  color: var(--primary-red);
}

/* Mobile Drawer Search Box */
.mobile-drawer__search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 18px 10px 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-drawer__search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12);
  color: var(--primary-red);
}

.mobile-drawer__search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.mobile-drawer__search-box input::placeholder {
  color: #94a3b8;
}

.btn-clear-drawer-search {
  font-size: 1.2rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
}

/* Drawer Filter Segmented Pills */
.mobile-drawer__filter-pills {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-pill {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-pill.active {
  background: #b91c1c;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
}

/* Drawer Scrollable Content */
.mobile-drawer__content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 30px 18px;
}

.drawer-group {
  margin-bottom: 20px;
}

.drawer-group__title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.drawer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.18s ease;
  background: #ffffff;
  border: 1px solid transparent;
}

.drawer-tool-link:active,
.drawer-tool-link:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(3px);
}

.drawer-tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.drawer-tool-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-tool-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-tool-desc {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-footer-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.8;
}

.drawer-footer-links a {
  color: #0f172a;
  font-weight: 700;
}

.drawer-footer-links a:hover {
  color: var(--primary-red);
}

/* 3. Floating Mobile Bottom Navigation Bar (Glassmorphic iOS/Android style) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1100;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.bottom-nav-item:active .bottom-nav-icon {
  transform: scale(0.85);
}

.bottom-nav-item.active {
  color: var(--primary-red);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-1px);
}

.bottom-nav-item.active .bottom-nav-label {
  font-weight: 700;
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   Responsive Breakpoints & Layout Adaptations
   ========================================================================== */

/* Tablets & Small Laptops (<= 1120px) */
@media (max-width: 1120px) {
  .header__nav-wrapper {
    display: none !important;
  }

  .header__mobile-actions {
    display: flex !important;
  }

  .header__container {
    padding: 0 14px !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .header__right {
    display: none !important;
  }
}

/* Smart Phones & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .header {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .header__container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  /* Hero Section Scaled for Mobile Viewports */
  .hero-section {
    padding-top: calc(var(--header-height) + 14px) !important;
    padding-bottom: 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero-outer-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  .hero__container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .hero-badge-pill {
    max-width: calc(100% - 10px) !important;
    width: auto !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    line-height: 1.35 !important;
    margin: 0 auto 10px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    letter-spacing: 0.2px !important;
    box-sizing: border-box !important;
  }

  .hero-badge-pill span:not(.pill-dot) {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
  }

  .hero__title {
    font-size: 1.48rem !important;
    line-height: 1.24 !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .hero__subtitle {
    font-size: 0.84rem !important;
    line-height: 1.48 !important;
    padding: 0 4px !important;
    color: #475569 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .hero-highlights-row {
    gap: 6px !important;
    margin-top: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-highlight-item {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .ecosystem-nav-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    padding: 6px 4px !important;
    gap: 7px !important;
    margin-top: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .ecosystem-nav-bar::-webkit-scrollbar {
    display: none !important;
  }

  .ecosystem-tab {
    padding: 7px 13px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Filter Tags Horizontal Scroll */
  .filter-section {
    margin-top: 6px !important;
    margin-bottom: 14px !important;
    padding: 0 10px !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .filter-tags {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 5px 8px !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .filter-tags::-webkit-scrollbar {
    display: none !important;
  }

  .filter-tag {
    padding: 5px 11px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Tool Card Badges (MeLovePDF, MeLoveIMG, New!) Scaled for Mobile */
  .tool-card__badge {
    top: 10px !important;
    right: 10px !important;
    font-size: 0.60rem !important;
    padding: 2px 5px !important;
    letter-spacing: 0.1px !important;
    line-height: 1.15 !important;
    border-radius: 9999px !important;
  }

  /* Responsive Leaderboard Ads */
  .ad-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    margin: 12px auto !important;
  }

  .ad-box--leaderboard {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .ad-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .ad-placeholder__title {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .ad-placeholder__meta {
    font-size: 0.75rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Footer Padding for Bottom Bar */
  .footer {
    padding-bottom: 90px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .footer__container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 16px !important;
  }

  .footer__bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .footer__bottom-left {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Informational Pages Mobile Responsive (About Us & Contact Us) */
  .page-view {
    padding: calc(var(--header-height) + 16px) 14px 60px 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-hero {
    margin-bottom: 28px !important;
  }

  .page-title {
    font-size: 1.65rem !important;
    line-height: 1.28 !important;
    margin-bottom: 12px !important;
  }

  .page-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 32px !important;
  }

  .stat-card {
    padding: 16px 10px !important;
    border-radius: 12px !important;
  }

  .stat-number {
    font-size: 1.6rem !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
  }

  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .about-security-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 18px 16px !important;
    gap: 12px !important;
    margin-bottom: 32px !important;
  }

  .corp-info-grid {
    grid-template-columns: 1fr !important;
  }

  .corp-info-item {
    padding: 14px 16px !important;
  }

  .corp-governance-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .corp-details-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 10px !important;
  }

  .corp-footer-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 14px !important;
  }

  .btn-corp-verify {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }

  .contact-form-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .contact-form-card .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .btn-submit-contact {
    width: 100% !important;
    justify-content: center !important;
  }

  .ticket-info-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tool Workspace Mobile View */
  .tool-workspace {
    padding: calc(var(--header-height) + 10px) 12px 40px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: calc(100vh - var(--header-height)) !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  /* When Photo Enhancer studio is active, allow window scrolling and sticky positioning */
  .tool-workspace.photo-enhancer-studio-active,
  .tool-workspace[data-current-tool="photo_enhancer"] {
    overflow: visible !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    padding-top: calc(var(--header-height) + 4px) !important;
    height: auto !important;
    min-height: auto !important;
  }

  .tool-workspace.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Hide floating bottom navigation whenever user is inside a tool workspace */
  body.in-tool-workspace .mobile-bottom-nav,
  body:has(.tool-workspace.active) .mobile-bottom-nav,
  .tool-workspace.active ~ .mobile-bottom-nav {
    display: none !important;
  }

  .tool-workspace__main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  .tool-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
    padding: 20px 16px 36px 16px !important;
    margin-top: 14px !important;
  }

  .tool-sidebar__content {
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
  }

  .tool-sidebar__footer {
    position: sticky !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    padding: 12px 0 env(safe-area-inset-bottom, 8px) 0 !important;
    z-index: 100 !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  /* Fullscreen Editors Mobile Rules (Blur Face, Crop, Split BG, TikTok, QR) */
  .tool-workspace--fullscreen-editor {
    min-height: calc(100vh - var(--header-height)) !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: calc(var(--header-height) + 6px) 8px 40px 8px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .tool-workspace--fullscreen-editor .tool-workspace__main {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .tool-workspace--fullscreen-editor .tool-sidebar {
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  /* Interactive Blur Face Workspace Mobile View */
  .blur-face-workspace-view {
    min-height: auto !important;
    height: auto !important;
    padding: 10px 4px !important;
    width: 100% !important;
    background: #e2e8f0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .blur-workspace-wrapper {
    max-height: 48vh !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .blur-canvas-container {
    max-width: 100% !important;
    max-height: 48vh !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .blur-target-img {
    max-height: 46vh !important;
    max-width: 92vw !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Touch-friendly handles on mobile */
  .blur-handle {
    width: 13px !important;
    height: 13px !important;
  }
  .blur-handle--nw { top: -6.5px !important; left: -6.5px !important; }
  .blur-handle--n  { top: -6.5px !important; }
  .blur-handle--ne { top: -6.5px !important; right: -6.5px !important; }
  .blur-handle--e  { right: -6.5px !important; }
  .blur-handle--se { bottom: -6.5px !important; right: -6.5px !important; }
  .blur-handle--s  { bottom: -6.5px !important; }
  .blur-handle--sw { bottom: -6.5px !important; left: -6.5px !important; }
  .blur-handle--w  { left: -6.5px !important; }

  .btn-delete-blur-box {
    width: 36px !important;
    height: 36px !important;
    top: -44px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  }

  .btn-canvas-add-area {
    top: -12px !important;
    right: -10px !important;
    width: 38px !important;
    height: 38px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5) !important;
  }

  /* Crop Workspace Mobile View */
  .img-crop-workspace-view {
    min-height: auto !important;
    height: auto !important;
    padding: 10px 4px !important;
    background: #e2e8f0 !important;
    border-radius: 12px !important;
  }

  .crop-workspace-wrapper {
    max-height: 48vh !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .crop-container {
    max-height: 48vh !important;
    max-width: 100% !important;
  }

  .crop-target-img {
    max-height: 46vh !important;
    max-width: 92vw !important;
  }

  /* Remove BG Workspace Mobile Split View */
  .bg-remove-workspace-view {
    padding: 6px 0 12px 0 !important;
  }

  .split-compare-box {
    max-height: 45vh !important;
    height: 45vh !important;
    width: 100% !important;
  }

  .uploader-box {
    min-height: 230px !important;
    padding: 24px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .uploader-icon {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 14px !important;
  }

  .btn-select-files {
    width: 100% !important;
    max-width: 290px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }

  .btn-process-action {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 1.12rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
  }

  .btn-process-action--blue {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
  }
}

/* Smartphone Strict 2-Column App Grid (<= 640px) */
@media (max-width: 640px) {
  .tools-grid-section {
    padding: 0 10px 85px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tool-card {
    padding: 14px 10px !important;
    border-radius: 14px !important;
    min-height: 136px !important;
    border: 1px solid #f0f0f4 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
  }

  .tool-card:active {
    transform: scale(0.97) !important;
    background: #fafafb !important;
  }

  .tool-card__icon {
    width: auto !important;
    height: 38px !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .tool-card__icon svg {
    width: auto !important;
    height: 36px !important;
    max-width: 90px !important;
    display: block !important;
  }

  .tool-card__title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    line-height: 1.25 !important;
    color: #1e293b !important;
  }

  .tool-card__desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #475569 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  .tool-card__badge {
    top: 7px !important;
    right: 7px !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
    font-weight: 800 !important;
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ==========================================================================
   Everyday Viral Utilities - Full Design System (QR, Word Counter, Case, Video)
   ========================================================================== */

/* Universal Utility Workspace */
.utility-workspace-view {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 20px;
  box-sizing: border-box;
}

/* 1. Custom QR Code Generator Workspace */
.qr-generator-workspace-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 30px 20px;
  box-sizing: border-box;
}

.qr-workspace-wrapper {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.qr-preview-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Dynamic Live QR Card Header */
.qr-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.qr-card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 50px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.qr-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 0 0;
  line-height: 1.25;
  max-width: 90%;
  word-break: break-word;
}

.qr-card-subtitle {
  font-size: 0.90rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
  word-break: break-all;
  max-width: 90%;
}

.qr-card-msg-bubble {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #475569;
  font-style: italic;
  max-width: 90%;
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
}

.qr-canvas-holder {
  width: 280px;
  height: 280px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  position: relative;
  box-sizing: border-box;
}

.qr-code-target {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.qr-code-target canvas,
.qr-code-target img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
}

.qr-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #a7f3d0;
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: qrPulse 1.8s infinite;
}

@keyframes qrPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qr-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-qr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.90rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-qr-action--card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  flex: 1 1 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 13px 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-qr-action--card:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-qr-action--png {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.btn-qr-action--png:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-qr-action--svg {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-qr-action--svg:hover {
  background: #e2e8f0;
}

.btn-qr-action--copy {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-qr-action--copy:hover {
  background: #e2e8f0;
}

/* QR Sidebar Controls */
.qr-type-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.qr-pill-btn {
  padding: 8px 6px;
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.qr-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.qr-pill-btn.active {
  background: #e5322d;
  color: #ffffff;
  border-color: #e5322d;
  box-shadow: 0 2px 6px rgba(229, 50, 45, 0.3);
}

.qr-fields-container {
  margin-top: 14px;
}

.qr-field-group {
  display: flex;
  flex-direction: column;
}

.qr-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.qr-color-input {
  width: 44px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: #ffffff;
}

.qr-color-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qr-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qr-swatch:hover {
  transform: scale(1.15);
}

.qr-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #2563eb;
  transform: scale(1.1);
}

.qr-logo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.qr-logo-chip {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.qr-logo-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.qr-logo-chip.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.qr-logo-chip--upload {
  border-style: dashed;
  border-color: #3b82f6;
  color: #2563eb;
  background: #eff6ff;
}

.qr-colors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

/* 2. Word Counter Workspace */
.word-counter-workspace-view {
  display: flex;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

.word-counter-wrapper {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.metric-card--highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.metric-card--highlight .metric-val {
  color: #2563eb;
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.editor-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-editor-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-editor-tool:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-editor-tool--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-editor-tool--primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-editor-tool--danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-editor-tool--danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.word-counter-textarea {
  width: 100%;
  min-height: 340px;
  padding: 20px;
  box-sizing: border-box;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  resize: vertical;
  background: #ffffff;
}

.density-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.density-header {
  margin-bottom: 12px;
}

.density-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.density-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.density-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.density-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f1f5f9;
  border-radius: 50px;
  font-size: 0.82rem;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.density-chip strong {
  color: #0f172a;
  font-weight: 700;
}

.density-chip__badge {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.density-empty-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
}

/* 3. Case Converter Workspace */
.case-converter-workspace-view {
  display: flex;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

.case-converter-wrapper {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-buttons-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.btn-case-action {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-case-action:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-case-action:active {
  transform: scale(0.97);
}

.case-stats-pills {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill-stat {
  font-size: 0.80rem;
  color: #64748b;
}

.pill-stat strong {
  color: #1e293b;
}

.case-converter-textarea {
  width: 100%;
  min-height: 380px;
  padding: 20px;
  box-sizing: border-box;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  resize: vertical;
  background: #ffffff;
}

/* 4 & 5. Video Tools (Video to MP3 & Compress Video) */
.video-mp3-workspace-view {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 30px 0;
}

.video-tool-wrapper {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

.video-preview-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.video-card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.video-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #059669;
}

.video-card-status .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-change-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-video:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.video-player-container {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #090d16;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 420px;
}

.video-player-container video {
  width: 100%;
  max-height: 420px;
  display: block;
}

.video-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.video-file-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.video-file-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-file-badge {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.video-quality-tag {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.btn-v2mp3-action {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e5322d 0%, #cf231e 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.btn-v2mp3-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 50, 45, 0.45);
}

.audio-result-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-weight: 700;
  font-size: 0.90rem;
}

.audio-meta-text {
  font-size: 0.80rem;
  color: #64748b;
}

/* Video Compress Progress & Comparison */
.compress-progress-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compress-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.compress-progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
}

.compress-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 50px;
  transition: width 0.2s ease;
}

.compress-comparison-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.comparison-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.comp-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.comp-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}

.comparison-stat--saved .comp-val {
  color: #059669;
}

.comp-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  background: #ecfdf5;
  color: #059669;
}

.comparison-arrow {
  font-size: 1.4rem;
  color: #94a3b8;
}

/* Floating Toast Notification */
.melove-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e293b;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.90rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.melove-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Responsiveness for Utility Workspaces */
@media (max-width: 640px) {
  .qr-preview-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .qr-canvas-holder {
    width: 230px;
    height: 230px;
  }

  .qr-type-pills {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .qr-pill-btn {
    font-size: 0.72rem;
    padding: 6px 3px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-card {
    padding: 12px 8px;
  }

  .metric-val {
    font-size: 1.3rem;
  }

  .btn-case-action {
    font-size: 0.78rem;
    padding: 8px 12px;
    flex: 1;
    min-width: 100px;
  }

  .word-counter-textarea,
  .case-converter-textarea {
    min-height: 260px;
    font-size: 0.95rem;
    padding: 14px;
  }
}



/* All Utilities Pill Button */
.nav__link--utility {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 0.76rem;
  color: #065f46 !important;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-full);
  padding: 4px 8px !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12);
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0;
}

.nav__link--utility:hover,
.nav__item:hover > .nav__link--utility {
  color: #047857 !important;
  background: #d1fae5 !important;
  border-color: #10b981 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.22) !important;
  transform: translateY(-1px);
}

.nav-icon-sparkle {
  font-size: 0.85rem;
  line-height: 1;
}

.nav-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 9999px;
  line-height: 1.2;
}

.dropdown-menu--utility {
  min-width: 280px;
  right: 0;
  left: auto;
  padding: 14px 12px;
  border-top: 3px solid #10b981;
}

.dropdown-menu--utility .dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu--utility .dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
  color: var(--text-dark);
  text-decoration: none;
}

.dropdown-menu--utility .dropdown__link:hover {
  background: #f0fdf4;
  transform: translateX(2px);
}

.dropdown-menu--utility .dropdown-tool-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.dropdown-footer-action {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.btn-view-all-utilities {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-view-all-utilities:hover {
  color: #047857;
  background: #ecfdf5;
}

.filter-tag[data-filter="utility"] {
  color: #059669;
  font-weight: 700;
  border-color: rgba(16, 185, 129, 0.35);
}

.filter-tag[data-filter="utility"].active,
.filter-tag[data-filter="utility"]:hover {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #10b981 !important;
}

/* ==========================================================================
   Header Navbar Responsive Scaling (Fits all laptop & desktop screens)
   ========================================================================== */

@media (min-width: 1600px) {
  .header__container {
    padding: 0 20px;
    gap: 8px;
  }
  .header__nav {
    gap: 3px;
  }
  .nav__link {
    padding: 5px 7px;
    font-size: 0.80rem;
  }
  .nav__link--utility {
    padding: 5px 9px !important;
    font-size: 0.79rem;
    gap: 4px;
  }
}

@media (max-width: 1440px) {
  .header__container {
    padding: 0 10px;
    gap: 4px;
  }
  .header__nav {
    gap: 1.5px;
  }
  .nav__link {
    padding: 4px 4px;
    font-size: 0.75rem;
    letter-spacing: -0.25px;
  }
  .nav__link--utility {
    padding: 4px 7px !important;
    font-size: 0.75rem;
    gap: 2.5px;
  }
}

@media (max-width: 1280px) {
  .header__container {
    padding: 0 8px;
    gap: 3px;
  }
  .header__nav {
    gap: 1px;
  }
  .nav__link {
    padding: 3px 3.5px;
    font-size: 0.72rem;
    letter-spacing: -0.3px;
  }
  .nav__separator {
    margin: 0 1.5px;
  }
  .nav__link--utility {
    padding: 3px 6px !important;
    font-size: 0.72rem;
    gap: 2px;
  }
}

@media (max-width: 1180px) {
  .header__container {
    padding: 0 6px;
    gap: 2px;
  }
  .header__nav {
    gap: 0.5px;
  }
  .nav__link {
    padding: 3px 2.5px;
    font-size: 0.70rem;
    letter-spacing: -0.35px;
  }
  .nav__separator {
    margin: 0 1px;
  }
  .nav__link--utility {
    padding: 3px 5px !important;
    font-size: 0.70rem;
    gap: 2px;
  }
}

@media (max-width: 1380px) {
  .dropdown-menu--all-tools {
    width: 980px;
    left: -270px;
    gap: 8px;
    padding: 16px 16px 12px 16px;
  }
}

@media (max-width: 1180px) {
  .dropdown-menu--all-tools {
    width: 920px;
    left: -290px;
    gap: 6px;
    padding: 14px 12px 10px 12px;
  }
  .dropdown__link {
    font-size: 0.76rem;
    padding: 4px 4px;
    gap: 6px;
  }
  .dropdown__link .mini-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .dropdown__link strong {
    font-size: 0.76rem;
  }
  .dropdown__link .dropdown-tool-sub {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   TikTok Downloader Tool (No Watermark HD) Styles - Responsive Design
   ========================================================================== */
.tiktok-downloader-workspace-view:not(.active) {
  display: none;
}

.tiktok-downloader-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}

.tiktok-tool-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-search-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 32px 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00f2fe, #fe0979, #00f2fe);
  background-size: 200% auto;
  animation: tiktokGlow 4s linear infinite;
}

@keyframes tiktokGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.tiktok-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: #db2777;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid #fbcfe8;
}

.tiktok-search-title h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tiktok-search-title p {
  color: #64748b;
  font-size: 0.98rem;
  margin: 0 auto 24px auto;
  max-width: 620px;
  line-height: 1.5;
  word-break: break-word;
}

.tiktok-input-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

.tiktok-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.tiktok-url-input {
  width: 100%;
  max-width: 100%;
  height: 54px;
  padding: 0 100px 0 48px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
}

.tiktok-url-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #00f2fe;
  box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.15);
}

.btn-tiktok-paste {
  position: absolute;
  right: 10px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-tiktok-paste:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-tiktok-clear {
  position: absolute;
  right: 88px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-tiktok-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-tiktok-submit {
  height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 40%, #fe0979 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px -3px rgba(254, 9, 121, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-tiktok-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px rgba(254, 9, 121, 0.5);
  filter: brightness(1.05);
}

.btn-tiktok-submit:active {
  transform: translateY(0);
}

.btn-tiktok-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading & Error States */
.tiktok-loading-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tiktok-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e2e8f0;
  border-top-color: #fe0979;
  border-right-color: #00f2fe;
  border-radius: 50%;
  animation: tiktokSpin 0.75s linear infinite;
}

@keyframes tiktokSpin {
  to { transform: rotate(360deg); }
}

.tiktok-loading-box p {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.tiktok-error-box {
  margin-top: 18px;
  padding: 12px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #dc2626;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

/* TikTok Result Card */
.tiktok-result-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-result-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.tiktok-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tiktok-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.tiktok-result-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.tiktok-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.tiktok-author-meta {
  display: flex;
  flex-direction: column;
}

.tiktok-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.tiktok-author-handle {
  font-size: 0.85rem;
  color: #64748b;
}

.tiktok-video-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.tiktok-stats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tiktok-stat-pill {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.84rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tiktok-stat-pill strong {
  color: #0f172a;
}

.tiktok-download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.btn-tiktok-dl {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.btn-tiktok-dl .dl-btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  min-width: 0;
}

.btn-tiktok-dl .dl-btn-text strong {
  font-size: 1rem;
}

.btn-tiktok-dl .dl-btn-text span {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 2px;
}

.btn-tiktok-dl--hd {
  background: #059669;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-tiktok-dl--hd:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.dl-badge-hd {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-tiktok-dl--fast {
  background: #2563eb;
  color: #ffffff !important;
}

.btn-tiktok-dl--fast:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.tiktok-dl-row-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.btn-tiktok-dl-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-tiktok-dl-sec:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.btn-tiktok-another {
  margin-top: 6px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-tiktok-another:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Feature Grid */
.tiktok-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-feature-item {
  background: #ffffff;
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: transform 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-feature-item:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.tiktok-feature-item .feat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.tiktok-feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  word-break: break-word;
}

.tiktok-feature-item p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

/* TikTok SEO Authority & Competitor Section */
.tiktok-seo-authority {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-seo-block {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.tiktok-seo-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  letter-spacing: -0.4px;
  word-break: break-word;
}

.tiktok-seo-block h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
  word-break: break-word;
}

.tiktok-seo-block p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 14px 0;
  word-break: break-word;
}

.tiktok-seo-block p:last-child {
  margin-bottom: 0;
}

/* Comparison Table */
.tiktok-comp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.tiktok-comp-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.tiktok-comp-table th,
.tiktok-comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  white-space: normal;
  word-break: break-word;
}

.tiktok-comp-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiktok-comp-table .th-highlight {
  background: #ecfdf5;
  color: #065f46;
  border-left: 2px solid #10b981;
  border-right: 2px solid #10b981;
}

.tiktok-comp-table .td-highlight {
  background: #f0fdf4;
  color: #065f46;
  border-left: 2px solid #10b981;
  border-right: 2px solid #10b981;
  font-weight: 600;
}

.badge-check {
  color: #059669;
  font-weight: 700;
}

.badge-cross {
  color: #94a3b8;
  font-weight: 600;
}

/* 3-Step How-To Grid */
.tiktok-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
  width: 100%;
  min-width: 0;
}

.tiktok-step-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid #e2e8f0;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-step-card .step-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f2fe, #fe0979);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tiktok-step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.tiktok-step-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* Device Guides Grid */
.tiktok-device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
  width: 100%;
  min-width: 0;
}

.tiktok-device-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid #e2e8f0;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-device-card .device-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.tiktok-device-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.tiktok-device-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* FAQ Accordion */
.tiktok-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  width: 100%;
  min-width: 0;
}

.tiktok-faq-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 22px;
  border: 1px solid #e2e8f0;
  min-width: 0;
  box-sizing: border-box;
}

.tiktok-faq-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.tiktok-faq-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

/* Related Tools Linkwheel */
.tiktok-related-tools {
  background: #f8fafc;
}

.tiktok-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-chip:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

/* Mobile Media Queries for TikTok Downloader (< 768px) */
@media (max-width: 768px) {
  .tiktok-downloader-workspace-view:not(.active) {
    display: none;
  }

  .tiktok-downloader-workspace-view.active,
  #tiktokDownloaderWorkspaceView.active,
  .tool-workspace[data-current-tool="tiktok_downloader"] #tiktokDownloaderWorkspaceView {
    display: block !important;
    padding: 4px 4px 36px 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .tiktok-tool-wrapper {
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .tiktok-search-card {
    padding: 20px 12px 18px 12px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .tiktok-badge {
    font-size: 0.70rem !important;
    padding: 3px 10px !important;
    margin-bottom: 8px !important;
  }
  .tiktok-search-title h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.3px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .tiktok-search-title p {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 2px !important;
    word-break: break-word !important;
  }
  .tiktok-input-form {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  .tiktok-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-url-input {
    height: 48px !important;
    font-size: 0.86rem !important;
    padding: 0 74px 0 38px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tiktok-input-icon {
    left: 12px !important;
  }
  .tiktok-input-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .btn-tiktok-paste {
    right: 6px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
  }
  .btn-tiktok-clear {
    right: 74px !important;
    width: 22px !important;
    height: 22px !important;
  }
  .btn-tiktok-submit {
    width: 100% !important;
    height: 48px !important;
    font-size: 0.96rem !important;
    border-radius: 12px !important;
    justify-content: center !important;
    padding: 0 16px !important;
  }
  .tiktok-features-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-feature-item {
    padding: 12px 8px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
  }
  .tiktok-feature-item .feat-icon {
    font-size: 20px !important;
    margin-bottom: 2px !important;
  }
  .tiktok-feature-item h4 {
    font-size: 0.82rem !important;
    margin-bottom: 2px !important;
    word-break: break-word !important;
  }
  .tiktok-feature-item p {
    font-size: 0.70rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }
  .tiktok-result-card {
    padding: 14px 10px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-result-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-media-box {
    max-height: 280px !important;
    border-radius: 12px !important;
  }
  .tiktok-author-avatar {
    width: 40px !important;
    height: 40px !important;
  }
  .tiktok-author-name {
    font-size: 0.95rem !important;
  }
  .tiktok-author-handle {
    font-size: 0.78rem !important;
  }
  .tiktok-video-desc {
    font-size: 0.86rem !important;
  }
  .tiktok-stat-pill {
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
  }
  .btn-tiktok-dl {
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    gap: 10px !important;
  }
  .btn-tiktok-dl .dl-btn-text strong {
    font-size: 0.88rem !important;
  }
  .btn-tiktok-dl .dl-btn-text span {
    font-size: 0.70rem !important;
  }
  .dl-badge-hd {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
  }
  .tiktok-dl-row-secondary {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .btn-tiktok-dl-sec {
    padding: 10px 12px !important;
    font-size: 0.80rem !important;
  }
  .tiktok-seo-authority {
    margin-top: 18px !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-seo-block {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-seo-block h2 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .tiktok-seo-block h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .tiktok-seo-block p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }
  .tiktok-comp-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
  }
  .tiktok-comp-table {
    min-width: 480px !important;
  }
  .tiktok-comp-table th,
  .tiktok-comp-table td {
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
  }
  .tiktok-comp-table th {
    font-size: 0.70rem !important;
  }
  .tiktok-steps-row,
  .tiktok-device-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .tiktok-step-card,
  .tiktok-device-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .tiktok-faq-card {
    padding: 12px 12px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .tiktok-faq-card h4 {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
  }
  .tiktok-faq-card p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }
  .related-chip {
    padding: 7px 11px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 380px) {
  .tiktok-features-grid {
    grid-template-columns: 1fr !important;
  }
  .tiktok-search-title h3 {
    font-size: 1.15rem !important;
  }
  .tiktok-url-input {
    font-size: 0.80rem !important;
    padding: 0 68px 0 32px !important;
  }
}

/* ==========================================================================
   ILOVEPDF-STYLE SIGNING SUITE & MODALS STYLING
   ========================================================================== */

/* 1. Modal Backdrops & Dialog Shells */
.sig-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: sigFadeIn 0.2s ease-out;
}

@keyframes sigFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sig-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.sig-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modal 1: Who will sign this document? */
.sig-choice-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 660px;
  width: 100%;
  padding: 36px 40px 32px 40px;
  position: relative;
  text-align: center;
  animation: sigSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sigSlideUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sig-choice-modal .sig-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.sig-choice-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 28px;
}

.sig-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 580px) {
  .sig-choice-grid {
    grid-template-columns: 1fr;
  }
}

.sig-choice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.sig-choice-card:hover {
  border-color: #f87171;
  box-shadow: 0 8px 24px rgba(229, 50, 45, 0.12);
  transform: translateY(-3px);
}

.sig-choice-art {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sig-choice {
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-sig-choice--red {
  background: #e5322d;
  color: #ffffff;
}
.sig-choice-card:hover .btn-sig-choice--red {
  background: #cf231e;
}

.sig-choice-desc {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.sig-choice-footer {
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.sig-choice-footer strong {
  color: #1e293b;
}

/* Modal 2: Set your signature details */
.sig-details-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sigSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sig-details-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}
.sig-details-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.badge-guest-signer {
  font-size: 11px;
  font-weight: 700;
  color: #e5322d;
  background: #fff2f2;
  border: 1px solid #fecaca;
  padding: 3px 10px;
  border-radius: 20px;
}

.sig-inputs-row {
  display: flex;
  gap: 20px;
  padding: 18px 28px 12px 28px;
  background: #ffffff;
}
@media (max-width: 600px) {
  .sig-inputs-row {
    flex-direction: column;
  }
}

.sig-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sig-input-group--full {
  flex: 2;
}
.sig-input-group--initials {
  flex: 1;
}
.sig-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sig-text-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sig-text-input:focus {
  border-color: #e5322d;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.15);
}

/* Tabs Bar */
.sig-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 0 28px;
  border-bottom: 2px solid #f1f5f9;
}
.sig-tab-item {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 0.90rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.sig-tab-item:hover {
  color: #1e293b;
}
.sig-tab-item.active {
  color: #e5322d;
  border-bottom-color: #e5322d;
}
.badge-ac {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Body Layout with Left Mode Bar */
.sig-body-layout {
  display: flex;
  min-height: 240px;
  background: #f8fafc;
}
.sig-mode-bar {
  width: 58px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 14px 8px;
  gap: 10px;
  align-items: center;
}
.sig-mode-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sig-mode-btn:hover {
  background: #ffffff;
  color: #0f172a;
}
.sig-mode-btn.active {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #e5322d;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sig-mode-content {
  flex: 1;
  padding: 18px 24px;
  overflow-y: auto;
  max-height: 320px;
}

/* Fonts List */
.sig-fonts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sig-font-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sig-font-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.sig-font-card.active {
  border-color: #e5322d;
  background: #fffafa;
  box-shadow: 0 2px 8px rgba(229, 50, 45, 0.08);
}
.sig-font-radio {
  accent-color: #e5322d;
  cursor: pointer;
  width: 17px;
  height: 17px;
}
.sig-font-preview {
  flex: 1;
  font-size: 26px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

/* Draw Panel */
.sig-draw-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#modalDrawCanvas {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
}
.btn-sig-clear {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sig-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Upload Panel */
.sig-upload-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sig-upload-box:hover {
  border-color: #e5322d;
  background: #fffafa;
}

/* Stamp Panel */
.sig-stamp-builder {
  display: flex;
  gap: 24px;
  align-items: center;
}
@media (max-width: 600px) {
  .sig-stamp-builder {
    flex-direction: column;
  }
}
.sig-stamp-preview-holder {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sig-stamp-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

/* Modal 2 Footer */
.sig-details-footer {
  padding: 16px 28px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sig-color-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}
.sig-colors-row {
  display: flex;
  gap: 8px;
}
.sig-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sig-color-dot:hover {
  transform: scale(1.15);
}
.sig-color-dot.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #e5322d;
  transform: scale(1.15);
}

.btn-sig-apply {
  background: #e5322d;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sig-apply:hover {
  background: #cf231e;
}


/* ==========================================================================
   2. INTERACTIVE SIGNING STUDIO WORKSPACE VIEW (#pdfSignWorkspaceView)
   ========================================================================== */

.pdf-sign-workspace-view {
  width: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-top: 10px;
}

/* Studio Topbar */
.sign-studio-topbar {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.sign-studio-topbar__left,
.sign-studio-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sign-page-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 8px;
}

.btn-studio-nav {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-studio-nav:hover {
  background: #f8fafc;
}

.studio-page-input {
  width: 36px;
  height: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  outline: none;
}
.studio-page-total {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

.sign-doc-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-studio-zoom {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.btn-studio-zoom:hover {
  background: #e2e8f0;
}
.studio-zoom-val {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  min-width: 40px;
  text-align: center;
}

.btn-studio-tool {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-studio-tool:hover {
  background: #f1f5f9;
}

/* Main 3-Column Studio Body */
.sign-studio-body {
  display: flex;
  min-height: 640px;
  max-height: 780px;
  height: calc(100vh - 220px);
  position: relative;
  background: #f1f5f9;
}
@media (max-width: 900px) {
  .sign-studio-body {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
}

/* Column 1: Thumbnails Sidebar (Left) */
.sign-thumbnails-sidebar {
  width: 120px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 900px) {
  .sign-thumbnails-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
  }
}

.sign-thumbnail-item {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.2s;
}
.sign-thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.sign-thumbnail-item.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7, 0 4px 12px rgba(2, 132, 199, 0.2);
}
.sign-thumbnail-canvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.sign-thumb-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.sign-thumbnail-item.active .sign-thumb-badge {
  color: #0284c7;
}

/* Column 2: Center PDF Document Viewer */
.sign-viewer-main {
  flex: 1;
  background: #e2e8f0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  position: relative;
}

.sign-canvas-outer {
  position: relative;
  display: inline-block;
  margin: auto;
}

.sign-canvas-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  user-select: none;
}

#signMainPdfCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Placed Elements Overlay Layer */
.sign-elements-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* Placed Signature / Item */
.sign-placed-item {
  position: absolute;
  cursor: move;
  border: 1.5px dashed #0284c7;
  background: rgba(239, 246, 255, 0.35);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sign-placed-item:hover,
.sign-placed-item.selected {
  border-style: solid;
  border-color: #e5322d;
  background: rgba(254, 242, 242, 0.45);
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.18);
}
.sign-placed-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.placed-item-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  font-size: 14px;
}

.btn-item-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: none;
}
.sign-placed-item:hover .btn-item-delete,
.sign-placed-item.selected .btn-item-delete {
  display: flex;
}

.placed-item-resize {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 2px solid #e5322d;
  border-radius: 2px;
  cursor: nwse-resize;
  display: none;
}
.sign-placed-item:hover .placed-item-resize,
.sign-placed-item.selected .placed-item-resize {
  display: block;
}

/* Floating Quick Add (Top-Right of Page Preview - Matching Screenshot 3) */
.floating-quick-add {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5322d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(229, 50, 45, 0.4);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s, background 0.2s;
}
.floating-quick-add:hover {
  transform: scale(1.1);
  background: #cf231e;
}
.quick-add-count {
  position: absolute;
  top: -3px;
  left: -3px;
  background: #0f172a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}
.quick-add-plus {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

/* Column 3: "Signing options" Sidebar (Right - Matching Screenshot 3) */
.sign-options-sidebar {
  width: 290px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 20px;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .sign-options-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
}

.sign-options-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.sign-subheading {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

/* Type Grid */
.sign-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sign-type-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.sign-type-card:hover {
  border-color: #94a3b8;
}
.sign-type-card.active {
  border: 2px solid #e5322d;
  background: #fffafa;
  box-shadow: 0 2px 8px rgba(229, 50, 45, 0.08);
}
.crown-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 13px;
}
.sign-type-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

/* Field Cards (Draggable Blocks) */
.sign-fields-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sign-field-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
}
.sign-field-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sign-field-card:active {
  cursor: grabbing;
}
.sign-field-card--required {
  border-color: #fca5a5;
  background: #fffafa;
}

.field-grip {
  color: #94a3b8;
  font-size: 14px;
  letter-spacing: -2px;
}

.field-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eff6ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.field-icon-box--initials {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.field-content {
  flex: 1;
  min-width: 0;
}
.field-tag-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.field-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.field-preview-text {
  font-size: 16px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Dancing Script', cursive;
  line-height: 1.2;
}

.btn-field-edit {
  background: none;
  border: none;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.btn-field-edit:hover {
  color: #e5322d;
}

.field-count-pill {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Sticky Footer */
.sign-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
}
.sign-sidebar-footer .btn-process-action {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 10px;
  background: #e5322d;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.3);
  transition: all 0.2s;
}
.sign-sidebar-footer .btn-process-action:hover {
  background: #cf231e;
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   Global Ads Master Switch: Disabled State & Layout Adjustment
   ========================================================================== */
html.ads-disabled .ad-hero-side,
html.ads-disabled .ad-wrapper,
html.ads-disabled .tool-card--ad,
html.ads-disabled [data-ad-slot],
body.ads-disabled .ad-hero-side,
body.ads-disabled .ad-wrapper,
body.ads-disabled .tool-card--ad,
body.ads-disabled [data-ad-slot] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

html.ads-disabled .hero-outer-wrapper,
body.ads-disabled .hero-outer-wrapper {
  justify-content: center !important;
}

html.ads-disabled .hero__container,
body.ads-disabled .hero__container {
  max-width: 980px !important;
  width: 100% !important;
  margin: 0 auto !important;
}



/* ==========================================================================
   VIRAL UTILITIES SUITE: INSTAGRAM, HEIC, PHOTO ENHANCER, WEBP CONVERTER
   ========================================================================== */

/* --- Clean Visibility Control for Standalone Tool Workspaces --- */
.utility-workspace-view {
  display: none;
  width: 100%;
}

.utility-workspace-view.active,
.tool-workspace[data-current-tool="instagram_downloader"] #instagramDownloaderWorkspaceView,
.tool-workspace[data-current-tool="heic_to_jpg"] #heicToJpgWorkspaceView,
.tool-workspace[data-current-tool="photo_enhancer"] #photoEnhancerWorkspaceView,
.tool-workspace[data-current-tool="webp_converter"] #webpConverterWorkspaceView,
.tool-workspace[data-current-tool="pinterest_downloader"] #pinterestDownloaderWorkspaceView,
.tool-workspace[data-current-tool="facebook_downloader"] #facebookDownloaderWorkspaceView,
.tool-workspace[data-current-tool="image_to_text"] #imageToTextWorkspaceView,
.tool-workspace[data-current-tool="object_remover"] #objectRemoverWorkspaceView {
  display: block !important;
}

/* --- 1. Instagram Downloader Workspace --- */
.instagram-downloader-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}

.insta-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

/* --- 2. HEIC to JPG Converter Workspace --- */
.heic-converter-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}

.heic-tool-wrapper,
.enhancer-tool-wrapper,
.webp-tool-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.heic-main-card,
.enhancer-main-card,
.webp-main-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.heic-dropzone-box,
.enhancer-dropzone-box,
.webp-dropzone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 44px 24px;
  background: #f8fafc;
  transition: all 0.25s ease;
  cursor: pointer;
}

.heic-dropzone-box:hover,
.enhancer-dropzone-box:hover,
.webp-dropzone-box:hover,
.heic-dropzone-box.drag-active,
.enhancer-dropzone-box.drag-active,
.webp-dropzone-box.drag-active {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
}

.enhancer-dropzone-box:hover,
.enhancer-dropzone-box.drag-active {
  border-color: #8b5cf6;
  background: #faf5ff;
}

.webp-dropzone-box:hover,
.webp-dropzone-box.drag-active {
  border-color: #059669;
  background: #ecfdf5;
}

.heic-drop-icon,
.enhancer-drop-icon,
.webp-drop-icon {
  margin-bottom: 16px;
}

.heic-drop-title,
.enhancer-drop-title,
.webp-drop-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.heic-drop-subtitle,
.enhancer-drop-subtitle,
.webp-drop-subtitle {
  font-size: 15px;
  color: #64748b;
  max-width: 560px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.heic-privacy-badge {
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Settings Bar */
.heic-settings-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 24px;
  background: #f1f5f9;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.heic-setting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.heic-setting-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-right: 8px;
}

.heic-format-toggles {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
}

.btn-format-toggle,
.btn-webp-fmt {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-format-toggle.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-webp-fmt.active {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.heic-quality-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}

.heic-quality-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heic-quality-val {
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
}

.heic-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
}

.heic-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-heic-convert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-heic-convert:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-heic-convert:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Progress Box */
.heic-progress-box {
  margin-top: 24px;
  padding: 18px 22px;
  background: #eff6ff;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}

.heic-progress-info {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #dbeafe;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Results Grid */
.heic-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.heic-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.heic-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.heic-card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}

.heic-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.heic-card-name {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.heic-card-size {
  color: #64748b;
  font-size: 12px;
}

.btn-card-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-dl:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Batch Bar */
.heic-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 24px;
  background: #0f172a;
  border-radius: 14px;
}

.btn-batch-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-batch-dl:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-batch-clear {
  border: 1px solid #475569;
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-batch-clear:hover {
  background: #1e293b;
  color: #ffffff;
}

/* --- 3. Photo Enhancer / AI Upscaler Workspace --- */
.photo-enhancer-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
  transition: max-width 0.3s ease;
}

.enhancer-studio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.enhancer-preview-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enhancer-controls-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enhancer-split-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid #1e293b;
  padding: 14px 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.enhancer-split-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  line-height: 0;
}

.enhancer-orig-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.enhancer-orig-img[src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E"],
.enhancer-orig-img:not([src]),
.enhancer-orig-img[src=""] {
  opacity: 0 !important;
  visibility: hidden !important;
}

.enhancer-output-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.enhancer-processing-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 30;
  pointer-events: none;
}

.enhancer-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.enhancer-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enhancer-split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.enhancer-split-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(139, 92, 246, 0.35);
  z-index: 12;
  cursor: ew-resize;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.enhancer-split-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6), 0 0 0 4px rgba(139, 92, 246, 0.45);
}

.enhancer-split-thumb:active {
  transform: scale(0.95);
}

.enhancer-split-svg {
  display: block;
  stroke: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.enhancer-badge {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 8;
  backdrop-filter: blur(8px);
}

.enhancer-badge--before {
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.enhancer-badge--after {
  right: 14px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.enhancer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.enhancer-meta-pill {
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.enhancer-meta-pill--success {
  background: #faf5ff;
  color: #7c3aed;
  font-weight: 700;
  border: 1px solid #ddd6fe;
}

.enhancer-controls-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  align-items: center;
}

.enhancer-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enhancer-ctrl-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.enhancer-pills {
  display: inline-flex;
  gap: 6px;
}

.enhancer-pills .btn-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.enhancer-pills .btn-pill.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.enhancer-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  outline: none;
}

.enhancer-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.enhancer-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.btn-action-enhance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-enhance:hover {
  background: #e2e8f0;
}

.btn-download-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.btn-download-enhanced:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.btn-reset-enhancer {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
}

.btn-reset-enhancer:hover {
  color: #0f172a;
}

/* --- 4. WebP Converter Workspace --- */
.webp-converter-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}

/* --- Responsive Rules for Mobile Devices (<= 768px) --- */
@media (max-width: 768px) {
  .photo-enhancer-workspace-view,
  .heic-converter-workspace-view,
  .webp-converter-workspace-view,
  .instagram-downloader-workspace-view {
    padding: 10px 12px 36px 12px;
  }

  .heic-main-card,
  .enhancer-main-card,
  .webp-main-card {
    padding: 16px 12px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .photo-enhancer-studio-active .enhancer-main-card,
  .photo-enhancer-studio-active .enhancer-tool-wrapper,
  .photo-enhancer-studio-active .photo-enhancer-workspace-view {
    overflow: visible !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .heic-dropzone-box,
  .enhancer-dropzone-box,
  .webp-dropzone-box {
    padding: 28px 14px;
  }

  .heic-drop-title,
  .enhancer-drop-title,
  .webp-drop-title {
    font-size: 20px;
  }

  .heic-settings-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 14px 12px;
  }

  .heic-setting-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn-heic-convert {
    width: 100%;
    justify-content: center;
  }

  .heic-batch-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 12px;
  }

  .btn-batch-dl,
  .btn-batch-clear {
    width: 100%;
    justify-content: center;
  }

  /* Enhancer Mobile Visual Box */
  .enhancer-split-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 4px;
    border-radius: 14px;
  }

  .enhancer-split-wrapper {
    max-width: 100%;
    max-height: 440px;
    box-sizing: border-box;
  }

  .enhancer-orig-img {
    max-width: 100%;
    max-height: 440px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .enhancer-badge {
    font-size: 10px;
    padding: 4px 8px;
    top: 8px;
    border-radius: 12px;
  }
  .enhancer-badge--before { left: 8px; }
  .enhancer-badge--after { right: 8px; }

  /* Enhancer Mobile Metadata Pills (Compact horizontal row) */
  .enhancer-meta-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .enhancer-meta-pill {
    width: auto !important;
    flex: 0 1 auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }

  /* Enhancer Mobile Controls (No horizontal overflow!) */
  .enhancer-controls-box {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .enhancer-control-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .enhancer-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 12.5px;
    padding: 10px 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    background: #ffffff;
  }

  .enhancer-pills {
    display: flex;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }

  .enhancer-pills .btn-pill {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .enhancer-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .enhancer-ctrl-label {
    font-size: 13px;
  }

  .heic-quality-val {
    font-size: 13px;
    font-weight: 800;
  }

  .heic-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .enhancer-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
  }

  .btn-download-enhanced,
  .btn-action-enhance,
  .btn-reset-enhancer {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 13px 16px;
  }
}

@media (max-width: 480px) {
  .photo-enhancer-workspace-view,
  .heic-converter-workspace-view,
  .webp-converter-workspace-view,
  .instagram-downloader-workspace-view {
    padding: 6px 8px 30px 8px;
  }

  .heic-main-card,
  .enhancer-main-card,
  .webp-main-card {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .heic-results-grid {
    grid-template-columns: 1fr;
  }
  
  .enhancer-split-wrapper {
    max-height: 420px;
  }

  .enhancer-orig-img {
    max-height: 420px;
  }

  .enhancer-controls-box {
    padding: 12px 10px;
    gap: 12px;
  }
}


/* --- CapCut Filters & 1-Click AI Auto Adjust Styling --- */
.enhancer-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
}

.btn-auto-adjust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
  flex: 1;
}

.btn-auto-adjust:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-auto-adjust__icon {
  font-size: 18px;
  animation: pulseGlow 1.5s infinite;
}

.btn-auto-adjust__badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.btn-reset-adjust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-reset-adjust:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* CapCut Filter Section - Professional Sequenced Grid */
.enhancer-filter-section {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Adobe Photoshop AI Auto-Clean Face & Scene Card --- */
.photoshop-clean-card {
  background: linear-gradient(135deg, #0b1120 0%, #1e1b4b 100%) !important;
  border: 1.5px solid #4f46e5 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.22) !important;
  margin-bottom: 14px !important;
  position: relative !important;
  overflow: hidden !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.photoshop-clean-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #ec4899 100%);
}

.ps-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.ps-card-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ps-brand-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: #001e36 !important;
  border: 2px solid #31a8ff !important;
  color: #31a8ff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  letter-spacing: -0.5px !important;
  box-shadow: 0 2px 8px rgba(49, 168, 255, 0.4) !important;
  flex-shrink: 0 !important;
}

.ps-title {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.2px !important;
}

.ps-sub {
  display: block !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Switch Toggle */
.ps-toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.ps-toggle-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.ps-toggle-slider {
  position: absolute !important;
  cursor: pointer !important;
  inset: 0 !important;
  background-color: #334155 !important;
  transition: .25s !important;
  border-radius: 24px !important;
  border: 1px solid #475569 !important;
}

.ps-toggle-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 2px !important;
  bottom: 2px !important;
  background-color: white !important;
  transition: .25s !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.ps-toggle-switch input:checked + .ps-toggle-slider {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  border-color: #6366f1 !important;
}

.ps-toggle-switch input:checked + .ps-toggle-slider:before {
  transform: translateX(20px) !important;
}

.ps-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  transition: opacity 0.2s ease !important;
}

.photoshop-clean-card.disabled .ps-card-body {
  opacity: 0.45 !important;
  pointer-events: none !important;
}

.ps-status-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(99, 102, 241, 0.18) !important;
  border: 1px solid rgba(129, 140, 248, 0.35) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #c7d2fe !important;
}

.ps-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #34d399 !important;
  box-shadow: 0 0 8px #34d399 !important;
  flex-shrink: 0 !important;
  animation: psPulse 2s infinite !important;
}

@keyframes psPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ps-slider-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.ps-slider-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.ps-slider-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
}

.ps-slider-val {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
}

.ps-options-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ps-check-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.ps-check-label input[type="checkbox"] {
  accent-color: #6366f1 !important;
  width: 14px !important;
  height: 14px !important;
}

/* --- Filter Category Tabs (CapCut Trends vs Beauty & Glow vs Aesthetic Colors) --- */
.enhancer-cat-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 4px 2px 8px 2px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}

.enhancer-cat-tabs::-webkit-scrollbar {
  display: none !important;
}

.btn-cat-tab {
  flex: 0 0 auto !important;
  min-width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  white-space: nowrap !important;
}

.btn-cat-tab:hover {
  background: #faf5ff !important;
  border-color: #c4b5fd !important;
  color: #7c3aed !important;
  transform: translateY(-1px) !important;
}

.btn-cat-tab.active {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%) !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
  transform: translateY(-1px) !important;
}

.btn-cat-tab[data-cat="capcut"].active {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.btn-cat-tab[data-cat="beauty_glow"].active {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
  border-color: #ec4899 !important;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35) !important;
}

.btn-cat-tab[data-cat="aesthetic"].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%) !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
}

.cat-tab-icon {
  font-size: 14px !important;
}

.cat-tab-title {
  white-space: nowrap !important;
}

.cat-tab-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.07) !important;
  color: inherit !important;
  letter-spacing: 0.2px !important;
}

.btn-cat-tab.active .cat-tab-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

.filter-grid-capcut .btn-filter-chip.active {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

.filter-grid-beauty .btn-filter-chip.active {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
  border-color: #ec4899 !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
}

.filter-grid-aesthetic .btn-filter-chip.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%) !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
}

.enhancer-filter-carousel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

.btn-filter-chip {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  user-select: none !important;
}

.btn-filter-chip:hover {
  border-color: #8b5cf6 !important;
  background: #faf5ff !important;
  color: #6d28d9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.12) !important;
}

.btn-filter-chip.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
  transform: translateY(-1px) !important;
}

.btn-filter-chip .chip-emoji {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.btn-filter-chip:hover .chip-emoji {
  background: #ede9fe !important;
}

.btn-filter-chip.active .chip-emoji {
  background: rgba(255, 255, 255, 0.22) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) !important;
}

.btn-filter-chip .chip-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  text-align: left !important;
  letter-spacing: -0.1px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.btn-filter-chip.active .chip-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 768px) {
  .enhancer-quick-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .btn-auto-adjust {
    flex: 1 1 auto !important;
    width: auto !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .btn-reset-adjust {
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .btn-auto-adjust__badge {
    display: none !important;
  }

  .enhancer-filter-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .btn-filter-chip {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
  }

  .btn-filter-chip .chip-emoji {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .btn-filter-chip .chip-name {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   Photo Enhancer Studio Responsive Rules
   Desktop: Left Sticky Preview + Right Services/Controls Sidebar
   Mobile: Stacked Vertically for comfortable touch experience
   ========================================================================== */
#enhancerStudio:not(.active),
#enhancerStudio[style*="display: none"],
#enhancerStudio[style*="display:none"] {
  display: none !important;
}

#enhancerStudio.active {
  display: flex !important;
}

/* ==========================================================================
   PHOTO ENHANCER: PROFESSIONAL FULL-WIDTH STUDIO LAYOUT
   - Default website toolSidebar is completely hidden
   - Photo is prominently centered and sticky-pinned to the viewport
   - Full photo is always 100% visible from top to bottom
   - Services & adjustment controls are pinned to the right side
   ========================================================================== */

.tool-workspace[data-current-tool="photo_enhancer"] .tool-sidebar,
.tool-workspace[data-current-tool="photo_enhancer"] #toolSidebar,
.photo-enhancer-studio-active .tool-sidebar,
.photo-enhancer-studio-active #toolSidebar {
  display: none !important;
}

.tool-workspace[data-current-tool="photo_enhancer"] .tool-workspace__main,
.photo-enhancer-studio-active .tool-workspace__main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding: 10px 20px 60px 20px !important;
  overflow: visible !important;
}

.photo-enhancer-studio-active .tool-workspace__top-bar,
.photo-enhancer-studio-active .tool-header-info {
  display: none !important;
}

.photo-enhancer-workspace-view {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 8px 40px 8px !important;
  box-sizing: border-box !important;
}

html.photo-enhancer-studio-active,
body.photo-enhancer-studio-active {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.photo-enhancer-studio-active #toolWorkspace,
.photo-enhancer-studio-active .tool-workspace,
.photo-enhancer-studio-active .tool-workspace__main,
.photo-enhancer-studio-active .photo-enhancer-workspace-view,
.photo-enhancer-studio-active .enhancer-tool-wrapper,
.photo-enhancer-studio-active .enhancer-main-card {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 991px) {
  .photo-enhancer-studio-active .tool-workspace__main {
    padding: 0 4px 60px 4px !important;
  }

  .enhancer-tool-wrapper {
    gap: 10px !important;
  }

  .enhancer-main-card {
    padding: 10px 6px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  #enhancerStudio.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
  }

  /* -------------------------------------------------------------
     MOBILE: Sticky Photo Preview Pinned Below Header
     When user scrolls down through the services & filters, the photo
     stays firmly pinned in full clear view without moving or jumping!
     ------------------------------------------------------------- */
  .enhancer-preview-pane {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--header-height, 56px) !important;
    z-index: 95 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    background: var(--bg-page, #f7f7fa) !important;
    padding: 4px 2px 6px 2px !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.16) !important;
    border-bottom: 2px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 0 0 12px 12px !important;
    transition: all 0.2s ease !important;
  }

  .enhancer-split-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at center, #1e1b4b 0%, #090d16 100%) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.45) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: height 0.22s ease, min-height 0.22s ease, max-height 0.22s ease !important;
  }

  .enhancer-preview-pane.compact-mode .enhancer-split-container {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }

  .enhancer-preview-pane.large-mode .enhancer-split-container {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  .enhancer-split-wrapper {
    max-height: 100% !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .enhancer-orig-img {
    max-height: 100% !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .enhancer-output-canvas {
    max-height: 100% !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .enhancer-badge {
    top: 6px !important;
    padding: 3px 8px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    letter-spacing: 0.2px !important;
  }
  .enhancer-badge--before { left: 6px !important; }
  .enhancer-badge--after { right: 6px !important; }

  .enhancer-meta-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .enhancer-meta-pill {
    width: auto !important;
    flex: 0 1 auto !important;
    padding: 2px 8px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .enhancer-controls-pane {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 6px 0 60px 0 !important;
    box-sizing: border-box !important;
  }

  .enhancer-cat-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 2px 8px 2px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
  }

  .btn-cat-tab {
    flex: 0 0 auto !important;
    min-width: fit-content !important;
    padding: 8px 13px !important;
    font-size: 12px !important;
    gap: 6px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}

@media (min-width: 992px) {
  #enhancerStudio.active {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 36px !important;
    width: 100% !important;
  }

  /* -------------------------------------------------------------
     CENTER / MAIN: Photo Preview Pane (Always 100% Fully Visible)
     Sticky so when user scrolls down through the services,
     the photo stays pinned right beside them in full view!
     ------------------------------------------------------------- */
  .enhancer-preview-pane {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 470px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: sticky !important;
    top: calc(var(--header-height) + 14px) !important;
    z-index: 30 !important;
  }

  .enhancer-split-container {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - var(--header-height) - 100px) !important;
    max-height: calc(100vh - var(--header-height) - 100px) !important;
    min-height: 420px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at center, #1e1b4b 0%, #090d16 100%) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
  }

  .enhancer-split-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: calc(100vh - var(--header-height) - 135px) !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .enhancer-orig-img {
    display: block !important;
    max-height: calc(100vh - var(--header-height) - 135px) !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    user-select: none !important;
  }

  .enhancer-output-canvas {
    max-height: calc(100vh - var(--header-height) - 135px) !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .enhancer-meta-row {
    margin-top: 10px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  /* -------------------------------------------------------------
     RIGHT SIDE: Services & Adjustments Sidebar Panel
     ------------------------------------------------------------- */
  .enhancer-controls-pane {
    flex: 0 0 440px !important;
    width: 440px !important;
    min-width: 440px !important;
    max-width: 440px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 22px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .enhancer-controls-pane .enhancer-quick-bar {
    margin-top: 0;
  }

  .enhancer-controls-pane .enhancer-filter-section {
    margin-top: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px;
  }

  .enhancer-controls-pane .enhancer-filter-carousel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .enhancer-controls-pane .enhancer-controls-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .enhancer-controls-pane .enhancer-actions-bar {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .enhancer-controls-pane .btn-download-enhanced {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 12px;
  }

  .enhancer-controls-pane .btn-action-enhance {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .enhancer-controls-pane .btn-reset-enhancer {
    width: 100%;
    text-align: center;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   ALL-IN-ONE SOCIAL VIDEO SAVER SUITE SWITCHER
   ========================================================================== */
.social-suite-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 auto 20px auto;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.social-suite-tabs::-webkit-scrollbar {
  display: none;
}
.social-suite-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  padding: 0 6px 0 2px;
  white-space: nowrap;
}
.social-suite-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.social-suite-tab:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.social-suite-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.social-suite-tab--tiktok.active {
  color: #fe2c55;
}
.social-suite-tab--instagram.active {
  color: #e1306c;
}
.social-suite-tab--pinterest.active {
  color: #e60023;
}
.social-suite-tab--facebook.active {
  color: #1877f2;
}

/* ==========================================================================
   PINTEREST DOWNLOADER WORKSPACE
   ========================================================================== */
.pinterest-downloader-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}
.pin-badge {
  background: #fef2f2;
  color: #e60023;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-pin-submit {
  background: linear-gradient(135deg, #e60023, #bd081c) !important;
}
.btn-pin-submit:hover {
  background: linear-gradient(135deg, #bd081c, #960616) !important;
}

/* ==========================================================================
   FACEBOOK DOWNLOADER WORKSPACE
   ========================================================================== */
.facebook-downloader-workspace-view {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}
.fb-badge {
  background: #eff6ff;
  color: #1877f2;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-fb-submit {
  background: linear-gradient(135deg, #1877f2, #0c5dc7) !important;
}
.btn-fb-submit:hover {
  background: linear-gradient(135deg, #0c5dc7, #08499e) !important;
}

/* ==========================================================================
   IMAGE TO TEXT (AI OCR) WORKSPACE
   ========================================================================== */
.image-to-text-workspace-view {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}
.ocr-tool-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 30px;
  margin-bottom: 30px;
}
.ocr-header {
  text-align: center;
  margin-bottom: 24px;
}
.ocr-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px 0;
}
.ocr-header p {
  color: #64748b;
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
}
.ocr-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.ocr-lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ocr-lang-select label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.ocr-lang-dropdown {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}
.ocr-dropzone {
  border: 2px dashed #93c5fd;
  background: #f0f9ff;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ocr-dropzone:hover, .ocr-dropzone.drag-over {
  border-color: #3b82f6;
  background: #e0f2fe;
}
.ocr-dropzone-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.ocr-dropzone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.ocr-dropzone-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}
.ocr-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .ocr-result-grid {
    grid-template-columns: 1fr;
  }
}
.ocr-preview-pane {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 420px;
  overflow: hidden;
}
.ocr-preview-img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ocr-output-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ocr-textarea {
  width: 100%;
  height: 280px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #0f172a;
  resize: vertical;
  box-sizing: border-box;
}
.ocr-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.ocr-stats-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.ocr-stats-bar strong {
  color: #0f172a;
}
.ocr-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-ocr-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ocr-copy {
  background: #3b82f6;
  color: #fff;
}
.btn-ocr-copy:hover {
  background: #2563eb;
}
.btn-ocr-download {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.btn-ocr-download:hover {
  background: #e2e8f0;
}
.btn-ocr-reset {
  background: transparent;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}
.btn-ocr-reset:hover {
  background: #f8fafc;
  color: #ef4444;
}

/* ==========================================================================
   AI OCR PROGRESS ENGINE & PIPELINE INDICATOR
   ========================================================================== */
.ocr-progress-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  animation: ocrFadeIn 0.3s ease-out;
}

@keyframes ocrFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ocr-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ocr-progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ocr-pulse-brain-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}

.ocr-pulse-brain {
  font-size: 24px;
  display: inline-block;
  animation: brainPulse 1.4s ease-in-out infinite;
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5)); }
}

.ocr-progress-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.ocr-progress-sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ocr-progress-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ocr-live-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ocr-pct-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  letter-spacing: -0.5px;
  min-width: 52px;
  text-align: center;
}

.ocr-bar-container {
  width: 100%;
  height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ocr-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  position: relative;
  overflow: hidden;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.ocr-bar-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation: ocrShimmer 1.4s infinite linear;
}

@keyframes ocrShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.ocr-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ocr-step-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.ocr-step-chip.pending {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #f1f5f9;
}

.ocr-step-chip.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  animation: stepPulse 1.5s infinite alternate;
}

@keyframes stepPulse {
  0% { border-color: #93c5fd; }
  100% { border-color: #3b82f6; }
}

.ocr-step-chip.done {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

@media (max-width: 640px) {
  .ocr-progress-card {
    padding: 18px 16px;
  }
  .ocr-steps-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ocr-progress-header {
    flex-wrap: wrap;
  }
  .ocr-progress-metrics {
    margin-left: auto;
  }
}

/* ==========================================================================
   OBJECT & WATERMARK REMOVER WORKSPACE
   ========================================================================== */
.object-remover-workspace-view {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 16px 40px 16px;
  box-sizing: border-box;
}
.inpaint-canvas-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  user-select: none;
}
.inpaint-canvas-element {
  max-width: 100%;
  max-height: 520px;
  display: block;
  cursor: crosshair;
}
.inpaint-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.inpaint-brush-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inpaint-brush-slider {
  width: 140px;
  cursor: pointer;
}
.brush-preview-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.7);
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  display: inline-block;
  flex-shrink: 0;
}
.inpaint-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-inpaint-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-inpaint-tool:hover, .btn-inpaint-tool.active {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-inpaint-tool.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.btn-inpaint-run {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}
.btn-inpaint-run:hover {
  background: linear-gradient(135deg, #db2777, #7c3aed) !important;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}
.btn-inpaint-download {
  background: #10b981 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
}
.btn-inpaint-download:hover {
  background: #059669 !important;
}

/* ==========================================================================
   Dedicated Interactive PDF Editor Studio (Matches iLovePDF PDF Editor)
   ========================================================================== */
.pdf-edit-workspace-view {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  background: #f1f3f7;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.edit-studio-topbar {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  z-index: 20;
}

.edit-studio-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-page-nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.edit-studio-topbar__center {
  display: flex;
  align-items: center;
}

.edit-tools-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.btn-edit-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-edit-tool:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-edit-tool.active {
  background: #fee2e2;
  color: #e5322d;
  border-color: #fca5a5;
  box-shadow: 0 1px 3px rgba(229, 50, 45, 0.12);
}

.edit-studio-topbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-studio-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 1. Left Thumbnails Sidebar */
.edit-thumbnails-sidebar {
  width: 170px;
  min-width: 170px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 12px;
  gap: 12px;
}

.edit-thumbnails-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-thumbnail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}

.edit-thumbnail-item:hover {
  background: #f8fafc;
}

.edit-thumbnail-item.active {
  border-color: #e5322d;
  background: #fef2f2;
}

.edit-thumbnail-item canvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.edit-thumbnail-num {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* 2. Center Workspace Canvas */
.edit-viewer-main {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 30px 20px 80px 20px;
  background: #eaedf2;
  position: relative;
}

.edit-canvas-outer {
  display: inline-block;
  margin: auto;
}

.edit-canvas-wrapper {
  position: relative;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.14);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

#editMainPdfCanvas {
  display: block;
}

.edit-draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.edit-draw-canvas.drawing-active {
  pointer-events: auto;
  cursor: crosshair;
}

.edit-elements-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Placed Elements on Edit Overlay */
.placed-edit-element {
  position: absolute;
  pointer-events: auto;
  cursor: move;
  border: 1.5px dashed transparent;
  transition: border-color 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.placed-edit-element:hover {
  border-color: #93c5fd;
}

.placed-edit-element.selected {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb;
}

.placed-edit-element .btn-placed-del {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.placed-edit-element.selected .btn-placed-del,
.placed-edit-element:hover .btn-placed-del {
  display: flex;
}

.placed-edit-element .edit-resizer-handle {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border: 2px solid #ffffff;
  border-radius: 2px;
  display: none;
  cursor: nwse-resize;
  z-index: 20;
}

.placed-edit-element.selected .edit-resizer-handle {
  display: block;
}

/* Placed Element Content Types */
.edit-elem-text {
  padding: 4px 6px;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}

.edit-elem-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* 3. Right Sidebar */
.edit-options-sidebar {
  width: 320px;
  min-width: 320px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  overflow-y: auto;
  gap: 16px;
  box-sizing: border-box;
}

.edit-sidebar-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.edit-sidebar-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.edit-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.45;
}

.edit-inspector-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.inspector-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.inspector-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.inspector-input:focus {
  border-color: #2563eb;
}

.inspector-color-palette {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s;
}

.color-dot:hover,
.color-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #2563eb;
}

.edit-layers-summary {
  font-size: 12px;
  color: #64748b;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.edit-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
}

.btn-save-edit-pdf {
  width: 100%;
  padding: 16px 20px;
  background: #e5322d;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.35);
  transition: all 0.2s ease;
}

.btn-save-edit-pdf:hover {
  background: #cf231e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 50, 45, 0.45);
}

@media (max-width: 900px) {
  .edit-studio-body {
    flex-direction: column;
  }
  .edit-thumbnails-sidebar {
    display: none;
  }
  .edit-options-sidebar {
    width: 100%;
    min-width: 100%;
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
}

/* ==========================================================================
   INTERACTIVE DIRECT EXISTING PDF TEXT EDITOR (100% Free Pro Feature)
   ========================================================================== */
.btn-edit-tool--pro {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  position: relative;
}

.btn-edit-tool--pro:hover,
.btn-edit-tool--pro.active {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border-color: #d97706 !important;
  color: #78350f !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.pro-crown {
  font-size: 15px;
  line-height: 1;
}

.badge-pro-free {
  font-size: 0.65rem;
  background: #10b981;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

.edit-existing-text-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  z-index: 15;
}

.existing-text-hover-item {
  position: absolute;
  cursor: text;
  border-radius: 3px;
  transition: all 0.15s ease;
  pointer-events: auto;
  box-sizing: border-box;
}

.existing-text-hover-item:hover {
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.existing-text-badge {
  display: none;
  position: absolute;
  top: -19px;
  left: 0;
  background: #1e40af;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 25;
}

.existing-text-hover-item:hover .existing-text-badge {
  display: block;
}

.placed-edit-element--existing-text {
  background: #ffffff;
  border: 1px dashed #2563eb !important;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.placed-edit-element--existing-text.selected {
  border: 1.5px solid #e5322d !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(229, 50, 45, 0.2), 0 4px 12px rgba(0,0,0,0.12) !important;
}

.inline-edit-text-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
}

.edit-sidebar-vip-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edit-pro-unlocked-banner {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pro-banner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.edit-pro-unlocked-banner p {
  font-size: 0.80rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.inspector-vip-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ==========================================================================
   STABLE, CENTERED LAYOUT FOR STANDALONE UTILITIES & SOCIAL DOWNLOADERS
   (Prevents layout expansion or jumping on hard refresh vs SPA navigation)
   ========================================================================== */
.tiktok-downloader-workspace-view,
.instagram-downloader-workspace-view,
.pinterest-downloader-workspace-view,
.facebook-downloader-workspace-view {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 8px 12px 36px 12px !important;
  box-sizing: border-box !important;
}

.tiktok-tool-wrapper {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.tiktok-search-card {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.tiktok-features-grid {
  width: 100% !important;
  max-width: 860px !important;
  margin: 14px auto 0 auto !important;
  box-sizing: border-box !important;
}

.tool-workspace[data-current-tool="tiktok_downloader"] .tool-workspace__main,
.tool-workspace[data-current-tool="instagram_downloader"] .tool-workspace__main,
.tool-workspace[data-current-tool="pinterest_downloader"] .tool-workspace__main,
.tool-workspace[data-current-tool="facebook_downloader"] .tool-workspace__main,
.tool-workspace[data-current-tool="qr_generator"] .tool-workspace__main,
.tool-workspace[data-current-tool="word_counter"] .tool-workspace__main,
.tool-workspace[data-current-tool="case_converter"] .tool-workspace__main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 16px 40px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
  background: #fbfbfd !important;
}

.tool-workspace[data-current-tool="tiktok_downloader"] #toolSidebar,
.tool-workspace[data-current-tool="instagram_downloader"] #toolSidebar,
.tool-workspace[data-current-tool="pinterest_downloader"] #toolSidebar,
.tool-workspace[data-current-tool="facebook_downloader"] #toolSidebar,
.tool-workspace[data-current-tool="qr_generator"] #toolSidebar,
.tool-workspace[data-current-tool="word_counter"] #toolSidebar,
.tool-workspace[data-current-tool="case_converter"] #toolSidebar {
  display: none !important;
}


