/* ================================================================
   SmartToolKitPro — Premium Design System
   iLovePDF-quality UI with Indigo palette
   ================================================================ */

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

/* ===== LIGHT THEME ===== */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
  --secondary: #6366F1;
  --accent: #06B6D4;
  --accent-light: #ECFEFF;

  --bg: #F9FAFB;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F3F4F6;
  --bg-input: #F9FAFB;
  --bg-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);

  --text: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 10px 25px -5px rgba(79,70,229,0.15), 0 4px 10px -4px rgba(79,70,229,0.08);

  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --header-bg: rgba(255,255,255,0.8);
  --header-border: rgba(229,231,235,0.8);

  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;

  --footer-bg: #111827;
  --footer-text: #9CA3AF;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --primary: #818CF8;
  --primary-hover: #6366F1;
  --primary-light: rgba(99,102,241,0.15);
  --primary-50: rgba(99,102,241,0.08);
  --primary-100: rgba(99,102,241,0.12);
  --primary-200: rgba(99,102,241,0.2);
  --secondary: #A5B4FC;

  --bg: #0F172A;
  --bg-white: #1E293B;
  --bg-card: #1E293B;
  --bg-elevated: #1E293B;
  --bg-subtle: #1E293B;
  --bg-input: #0F172A;
  --bg-hero: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E293B 100%);

  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  --border: #334155;
  --border-light: #1E293B;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.4);

  --header-bg: rgba(15,23,42,0.85);
  --header-border: rgba(51,65,85,0.6);

  --success-light: rgba(16,185,129,0.1);
  --warning-light: rgba(245,158,11,0.1);
  --danger-light: rgba(239,68,68,0.1);

  --footer-bg: #020617;
  --footer-text: #64748B;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-slow), color var(--transition);
}
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.3; color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }
button,input,textarea,select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: none; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  transition: all var(--transition-slow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg { width: 28px; height: 28px; }
.logo span { color: var(--text); font-weight: 600; }

/* Navigation */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-slow);
}
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--primary-light); border-color: var(--primary-200); transform: scale(1.05); }

/* Mobile Menu */
.mobile-toggle { display: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition-slow); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ===== HERO ===== */
.hero {
  background: var(--bg-hero);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero .hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 32px;
  font-weight: 400;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto 24px;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.95);
  color: #111827;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 2px solid transparent;
  transition: all var(--transition);
}
[data-theme="dark"] .hero-search input { background: rgba(30,41,59,0.9); color: #F1F5F9; }
.hero-search input:focus { border-color: rgba(255,255,255,0.4); box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.hero-search input::placeholder { color: #9CA3AF; }
.hero-search .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #9CA3AF; pointer-events: none;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stat {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-item .stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat-item .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.925rem; cursor: pointer;
  transition: all var(--transition); border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3), 0 1px 2px rgba(79,70,229,0.2);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.4); color: #fff; }
.btn-secondary {
  background: var(--bg-white); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-subtle); transform: translateY(-1px); }
.btn-white { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(4px); }
.btn-white:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== CATEGORY FILTERS ===== */
.category-section { padding: 48px 0 0; }
.category-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; padding: 0 24px;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: var(--radius-full);
  background: var(--bg-white); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer;
  font-weight: 500; font-size: 0.875rem;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary-200); color: var(--primary); background: var(--primary-light); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(79,70,229,0.3); }

/* ===== TOOLS GRID ===== */
.tools-section { padding: 48px 0 80px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ===== TOOL CARD ===== */
.tool-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  transition: all var(--transition-slow);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-200);
}
.tool-card .card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: var(--primary-light);
  transition: all var(--transition);
}
.tool-card:hover .card-icon { background: var(--primary); color: #fff; transform: scale(1.05); }
.tool-card .card-category {
  display: inline-block;
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px; color: var(--primary);
  background: var(--primary-50);
}
.tool-card h3 { font-size: 0.975rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.tool-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; flex-grow: 1; }
.tool-card .card-arrow {
  display: flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 0.82rem; font-weight: 600;
  color: var(--primary); opacity: 0;
  transition: all var(--transition-slow);
  transform: translateX(-4px);
}
.tool-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-card { text-align: center; padding: 32px 20px; }
.feature-card .feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: all var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; transform: scale(1.08); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-section h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.5px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 28px; }

/* ===== AD SLOTS ===== */
.ad-slot {
  background: var(--bg-subtle); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  text-align: center; color: var(--text-tertiary);
  font-size: 0.78rem; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== TOOL PAGE ===== */
.tool-page { flex: 1; }
.tool-page-header {
  background: var(--bg-hero);
  padding: 56px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tool-page-header h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; position: relative; z-index: 1; }
.tool-page-header p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-tertiary); }

/* Tool Content Layout */
.tool-content-wrapper {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 32px; max-width: 1200px; margin: -36px auto 0; padding: 0 24px 60px;
  position: relative; z-index: 1;
}
.tool-main { min-width: 0; }
.tool-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Tool Box */
.tool-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
  transition: box-shadow var(--transition);
}
.tool-box h2 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.875rem; color: var(--text); }
.form-control {
  width: 100%; padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); transition: all var(--transition); font-size: 0.925rem;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; font-family: 'Inter', sans-serif; }
select.form-control { cursor: pointer; appearance: auto; }

/* Result Area */
.result-area {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  min-height: 60px; font-size: 0.925rem; word-break: break-word;
}
.result-area pre {
  white-space: pre-wrap; font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem; background: var(--bg-input); padding: 16px;
  border-radius: var(--radius-xs); overflow-x: auto;
}

/* Stat Cards */
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.stat-card .stat-number { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.5px; }
.stat-card .stat-label { font-size: 0.72rem; color: var(--text-secondary); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ===== SEO CONTENT ===== */
.seo-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px; line-height: 1.8;
}
.seo-content h2 { font-size: 1.3rem; margin: 36px 0 14px; letter-spacing: -0.3px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.seo-content p { margin-bottom: 14px; color: var(--text-secondary); }
.seo-content ul, .seo-content ol { margin: 12px 0 18px 20px; color: var(--text-secondary); }
.seo-content li { list-style: disc; margin-bottom: 8px; padding-left: 4px; }
.seo-content ol li { list-style: decimal; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question {
  width: 100%; padding: 16px 20px;
  background: var(--bg-subtle); cursor: pointer;
  font-weight: 600; font-size: 0.925rem; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--transition); color: var(--text);
}
.faq-question:hover { background: var(--primary-light); }
.faq-question .faq-icon { transition: transform var(--transition-slow); font-size: 0.8rem; color: var(--text-tertiary); }
.faq-question.active .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height var(--transition-slow), padding var(--transition-slow); color: var(--text-secondary); line-height: 1.7; }
.faq-answer.open { padding: 16px 20px; max-height: 500px; }

/* ===== RELATED TOOLS ===== */
.related-tools {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.related-tools h2 { font-size: 1.1rem; margin-bottom: 16px; }
.related-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-tool-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-subtle);
  border-radius: var(--radius-xs); color: var(--text);
  font-size: 0.875rem; font-weight: 500; transition: all var(--transition);
  border: 1px solid transparent;
}
.related-tool-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-200); transform: translateX(2px); }

/* Social Share */
.social-share { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: all var(--transition); border: none;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy-link { background: var(--text-secondary); }

/* Sidebar */
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ===== STATIC PAGES ===== */
.static-page { flex: 1; padding: 48px 24px 80px; }
.static-page .page-content {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 48px 44px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.static-page h1 { font-size: 2rem; margin-bottom: 24px; letter-spacing: -0.5px; }
.static-page h2 { font-size: 1.25rem; margin: 32px 0 12px; letter-spacing: -0.3px; }
.static-page p { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.8; }
.static-page ul { margin: 10px 0 18px 20px; }
.static-page li { list-style: disc; margin-bottom: 8px; color: var(--text-secondary); }

/* Contact Form */
.contact-form { margin-top: 24px; }
.contact-success {
  display: none; margin-top: 20px; padding: 16px 20px;
  background: var(--success-light); color: var(--success);
  border: 1px solid var(--success); border-radius: var(--radius-sm); font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  padding: 56px 24px 24px;
  margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  font-size: 1.25rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.footer-brand p { color: var(--footer-text); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #E5E7EB; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--footer-text); padding: 5px 0; font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 28px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: var(--footer-text);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.4s ease forwards; opacity: 0; }
.animate-in:nth-child(1) { animation-delay: 0.03s; }
.animate-in:nth-child(2) { animation-delay: 0.06s; }
.animate-in:nth-child(3) { animation-delay: 0.09s; }
.animate-in:nth-child(4) { animation-delay: 0.12s; }
.animate-in:nth-child(5) { animation-delay: 0.15s; }
.animate-in:nth-child(6) { animation-delay: 0.18s; }
.animate-in:nth-child(7) { animation-delay: 0.21s; }
.animate-in:nth-child(8) { animation-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tool-content-wrapper { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card); padding: 20px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    gap: 12px;
  }
  .mobile-toggle { display: flex; }
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stat { gap: 24px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-box { padding: 20px; }
  .seo-content { padding: 24px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { flex-direction: column; gap: 16px; }
  .static-page .page-content { padding: 28px 20px; }
  .related-tools-grid { grid-template-columns: 1fr; }
}
