/* ==========================================================================
   MeLovePDF Application - Pixel-Perfect Modern Design System
   Matches https://www.ilovepdf.com/ Exact Colors, Icons, Typography & Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Graphik:wght@400;500;600;700&display=swap');

: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: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, 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: 1620px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.header__brand img {
  height: 32px;
  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;
  overflow-x: auto;
  scrollbar-width: none;
}

.header__nav-wrapper::-webkit-scrollbar {
  display: none;
}

.header__nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  white-space: nowrap;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
}

.nav__link:hover,
.nav__item:hover > .nav__link {
  color: var(--primary-red);
  background: var(--bg-gray-light);
}

.nav__link.active {
  color: var(--primary-red);
}

.nav__link svg.icon-arrow {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
  fill: currentColor;
}

.nav__item:hover > .nav__link svg.icon-arrow {
  transform: rotate(180deg);
}

.nav__separator {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 6px;
  flex-shrink: 0;
}

.nav__link--img {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav__link--img:hover,
.nav__item:hover > .nav__link--img {
  color: #2563eb !important;
  background: #eff6ff !important;
}

/* 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 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Convert PDF Dropdown (2 Columns) */
.dropdown-menu--convert {
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* All PDF Tools Mega Menu (6 Columns) */
.dropdown-menu--all-tools {
  width: 1120px;
  left: -120px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* 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;
}

.dropdown__category-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.dropdown__link:hover {
  background: var(--bg-gray-light);
  color: var(--primary-red);
}

.dropdown__link .mini-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown__link .mini-icon svg {
  width: 16px;
  height: 16px;
}

/* 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: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-outer-wrapper {
  max-width: 1580px;
  width: 98%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 20px;
}

.ad-hero-side {
  width: 300px;
  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: 0.68rem;
  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: 250px;
  }
}

@media (max-width: 1080px) {
  .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: 860px;
  margin: 0 auto;
  flex-grow: 1;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.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: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.15rem;
  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: 18px;
  flex-wrap: wrap;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  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;
}

/* Subdomain Switcher Bar */
.ecosystem-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.ecosystem-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ecosystem-tab:hover,
.ecosystem-tab.active {
  color: var(--primary-red);
  border-color: var(--primary-red-border);
  background: var(--primary-red-light);
  transform: translateY(-1px);
}

.ecosystem-tab svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Category Filter Tabs
   ========================================================================== */

.filter-section {
  max-width: 1580px;
  width: 98%;
  margin: 0 auto 24px auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.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;
}

.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: 26px 24px;
  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: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.08);
}

.tool-card__icon svg {
  width: 48px;
  height: 48px;
}

.tool-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.tool-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  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.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tool-card__badge--new {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.tool-card__badge--popular {
  background: #fef3c7;
  color: #d97706;
  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: #dc2626;
  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.72rem;
  color: #64748b;
}

.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: #64748b;
  letter-spacing: 0.2px;
}

.footer__copyright strong {
  color: #94a3b8;
}

/* 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);
}

.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)
   ========================================================================== */

.tool-workspace {
  display: none;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  position: relative;
  background: #fbfbfd;
}

.tool-workspace.active {
  display: flex;
}

.tool-workspace__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow-y: auto;
  position: relative;
}

.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%;
}

.files-workspace-view.active {
  display: block;
}

.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;
}

.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: 340px;
  background: var(--bg-white);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.02);
}

.tool-sidebar__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-sidebar__content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.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: var(--primary-red);
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(229, 50, 45, 0.35);
  margin-top: 24px;
}

.btn-process-action:hover:not(:disabled) {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 50, 45, 0.45);
}

.btn-process-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   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: 860px;
  margin: 0 auto;
  padding: 10px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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 {
  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;
}

/* ==========================================================================
   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-workspace {
    flex-direction: column;
  }
  .tool-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@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%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  clear: both;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  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.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #64748b;
}

.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: #0284c7;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
  transition: var(--transition);
}

.ad-native-cta:hover {
  background: #0369a1;
}

/* 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.72rem;
  color: #94a3b8;
}

/* ==========================================================================
   Tool On-Page SEO Guide & Content Section
   ========================================================================== */

.tool-seo-guide {
  width: 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;
  }
}

