/* ==========================================================================
   ToolHub - Modern Client-Side Tools WordPress Theme Stylesheet
   Design System, Light & Dark Theme Variables, Layouts & Components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbe6;
  --purple: #8b5cf6;
  --purple-light: #f3e8ff;
  --pink: #ec4899;
  --pink-light: #fdf2f8;
  --teal: #0d9488;
  --teal-light: #f0fdf4;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #151c2c;
  --bg-card-subtle: #1e293b;
  --bg-input: #1e293b;
  --border-color: #2e3a52;
  --border-focus: #60a5fa;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --primary-light: rgba(37, 99, 235, 0.15);
  --primary-border: #1e40af;

  --success-light: rgba(16, 185, 129, 0.15);
  --purple-light: rgba(139, 92, 246, 0.15);
  --pink-light: rgba(236, 72, 153, 0.15);
  --teal-light: rgba(13, 148, 136, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
}

/* Baseline Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 500;
  overflow: visible;
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
  position: relative;
  overflow: visible;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.logo-text-group {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.caret {
  font-size: 11px;
  transition: transform 0.2s ease;
}

/* Nav Dropdown Wrappers */
.nav-dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-item:hover > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  height: auto !important;
  max-height: 80vh !important;
  overflow: visible !important;
}
.nav-dropdown-item:hover .caret {
  transform: rotate(180deg);
}

/* Dropdown Sub-Menus */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.dropdown-menu.megamenu {
  width: 520px;
}

.dropdown-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  padding: 6px 10px 10px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.dropdown-link:hover {
  background: var(--bg-card-subtle);
}

.drop-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.drop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.drop-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.dropdown-footer-link {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
.dropdown-footer-link:hover {
  color: var(--primary-hover);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  width: 52px;
  height: 28px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-toggle-handle {
  width: 22px;
  height: 22px;
  background-color: var(--bg-card);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .theme-toggle-handle {
  transform: translateX(24px);
  background-color: #38bdf8;
}

.header-search {
  position: relative;
  width: 240px;
}
.header-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section (Homepage) */
.hero-section {
  padding: 56px 0 40px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-badge-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 16px;
}
.hero-title span {
  color: var(--primary);
}
.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

/* Feature Badges Cards */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.feature-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.feature-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-badge-icon.green { background: var(--success-light); color: var(--success); }
.feature-badge-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-badge-icon.blue { background: var(--primary-light); color: var(--primary); }

.feature-badge-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.feature-badge-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Large Search Bar */
.big-search-box {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}
.big-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--text-main);
}
.big-search-box button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.big-search-box button:hover {
  background: var(--primary-hover);
}

/* Laptop Device Mockup Graphic */
.hero-graphic-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  min-height: 320px;
}

.laptop-device-frame {
  width: 100%;
  max-width: 500px;
  position: relative;
  box-sizing: border-box;
}

/* Laptop Screen Lid */
.laptop-screen {
  background: #0f172a;
  border-radius: 14px 14px 4px 4px;
  border: 10px solid #1e293b;
  border-bottom: 12px solid #1e293b;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  height: 280px;
  box-sizing: border-box;
}

/* Webcam Dot */
.laptop-webcam {
  width: 6px;
  height: 6px;
  background: #334155;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Laptop Display Screen Content */
.laptop-display-content {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  font-family: var(--font-main);
  overflow: hidden;
}

/* App Sidebar inside Laptop Screen */
.laptop-app-sidebar {
  width: 25%;
  background: #2563eb;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laptop-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo-dot {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 4px;
}

.brand-bar {
  height: 6px;
  width: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}

.laptop-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}
.laptop-nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.laptop-nav-item .nav-bar {
  height: 5px;
  width: 40px;
  background: currentColor;
  border-radius: 3px;
}

/* App Main Area inside Laptop Screen */
.laptop-app-main {
  flex: 1;
  background: var(--bg-body);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laptop-main-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.laptop-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mini-tool-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-tool-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.mini-tool-lines .line-1 { height: 4px; width: 80%; background: var(--text-main); opacity: 0.6; border-radius: 2px; }
.mini-tool-lines .line-2 { height: 3px; width: 50%; background: var(--text-muted); opacity: 0.4; border-radius: 2px; }

.laptop-main-body {
  display: flex;
  gap: 8px;
  flex: 1;
}

.laptop-workspace-panel {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.laptop-workspace-panel.side {
  width: 35%;
  flex: none;
}

.panel-header-bar {
  height: 8px;
  width: 50%;
  background: var(--primary);
  border-radius: 4px;
  opacity: 0.8;
}

.panel-header-bar.short { width: 70%; background: var(--text-main); opacity: 0.5; }

.panel-content-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.p-line { height: 4px; background: var(--text-muted); opacity: 0.3; border-radius: 2px; }
.p-line.width-90 { width: 90%; }
.p-line.width-70 { width: 70%; }
.p-line.width-80 { width: 80%; }

.panel-box {
  flex: 1;
  background: var(--bg-card-subtle);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
}

/* Laptop Keyboard Base Stand */
.laptop-keyboard-base {
  width: 114%;
  height: 14px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 2px 2px 14px 14px;
  margin-left: -7%;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.laptop-notch {
  width: 60px;
  height: 4px;
  background: #0f172a;
  border-radius: 0 0 4px 4px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.floating-tool-badge {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Popular Categories Section */
.section-block {
  padding: 40px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.category-meta h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.category-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Popular Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.tool-card-content {
  flex: 1;
}
.tool-card-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}
.tool-card-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-arrow {
  color: var(--text-light);
  font-size: 16px;
  transition: var(--transition);
}
.tool-card:hover .tool-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Trust Bar / Footer Value Props (Matching UI Design) */
.trust-bar {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 32px 0;
  margin-top: 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.trust-icon.blue { background: rgba(37, 99, 235, 0.18); color: #60a5fa; }
.trust-icon.green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.trust-icon.purple { background: rgba(139, 92, 246, 0.18); color: #c084fc; }
.trust-icon.amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }

.trust-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Single Tool Page Layout (Image 2) */
.single-tool-header-wrap {
  padding: 24px 0 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumb-separator {
  color: var(--text-light);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Tool Main Header Card */
.tool-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.tool-title-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tool-big-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
}
.tool-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.tool-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
}

.btn-favorite {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-favorite:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-favorite.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

/* Main Interactive Tool Container */
.tool-workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.workspace-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.workspace-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.workspace-actions {
  display: flex;
  gap: 12px;
}
.btn-action-text {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-action-text:hover {
  background: var(--primary-light);
}

.tool-textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: var(--transition);
  margin-bottom: 16px;
}
.tool-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.tool-input-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Statistics Grid Boxes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-box-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.stat-box-data h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-box-data .stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

/* Security Guarantee Banner */
.security-banner {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* SEO Content Tabs Section */
.seo-tabs-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 32px;
}
.seo-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
}
.tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-card);
}
.seo-tabs-content {
  padding: 28px;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* How It Works Step Cards */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.step-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  text-align: center;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  position: absolute;
  top: -12px;
  left: 16px;
}
.step-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card-subtle);
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.faq-chevron {
  transition: transform 0.2s ease;
  color: var(--text-light);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-tool-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.client-side-badge {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}

.widget-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}
.widget-link-item:hover {
  border-color: var(--primary);
  background: var(--bg-card);
  color: var(--primary);
  transform: translateX(2px);
}
.widget-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.count-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-sidebar-full {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  transition: var(--transition);
}
.btn-sidebar-full:hover {
  background: var(--primary);
  color: white;
}

/* Footer (Matching UI Design) */
.site-footer {
  background: #0b1120;
  color: #f8fafc;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .site-branding {
  display: inline-flex;
}
.footer-brand .logo-title {
  color: #ffffff;
}
.footer-brand .logo-tagline {
  color: #94a3b8;
}
.brand-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 16px 0 20px;
  line-height: 1.5;
  max-width: 320px;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-view-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 14px;
  transition: var(--transition);
}
.footer-view-more:hover {
  color: #60a5fa;
  transform: translateX(3px);
}

/* Newsletter Card */
.newsletter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-left h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.newsletter-left p {
  font-size: 13px;
  color: #94a3b8;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.newsletter-form input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #ffffff;
  width: 300px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.newsletter-form button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.newsletter-form button:hover {
  background: #1d4ed8;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-legal-links a {
  color: #94a3b8;
  transition: var(--transition);
}
.footer-legal-links a:hover {
  color: #ffffff;
}
.footer-legal-links span {
  color: rgba(255, 255, 255, 0.2);
}
.footer-credit {
  color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 24px; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 28px; }
  .hero-badge-group { justify-content: center; }
  .hero-features-grid { grid-template-columns: 1fr; }
  .hero-graphic-wrap { margin-top: 20px; width: 100%; min-height: 260px; }
  .laptop-device-frame { max-width: 380px; }
  .laptop-screen { height: 210px; border-width: 6px; }
  .floating-tool-badge { width: 40px; height: 40px; font-size: 15px; }
  
  .header-search { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }

  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .laptop-device-frame { max-width: 300px; }
  .laptop-screen { height: 170px; border-width: 4px; }
  .big-search-box { flex-direction: column; gap: 8px; padding: 10px; }
  .big-search-box button { width: 100%; justify-content: center; }
}

/* Live Search Autocomplete Popup */
.live-search-popup {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 300;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}
.search-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.search-popup-item:hover {
  background: var(--bg-card-subtle);
}
.search-popup-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.search-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.search-popup-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}
.search-popup-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Explicit Button Contrast & Visibility Fixes */
button, .btn-primary, .btn-action-text, .btn-sidebar-full, .tab-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

.btn-sidebar-full {
  width: 100%;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-sidebar-full:hover {
  background-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

.btn-action-text {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.btn-action-text:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.tab-btn {
  background-color: transparent;
  color: var(--text-muted) !important;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
}
