/**
 * ToolsWallet Master Stylesheet
 * Premium, High-Performance, Accessible Design System
 * Domain: toolswallet.online
 */

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

:root {
  /* Colors - Light Theme (Ultra Clean White & Slate with Crisp Emerald & Mint) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f0fdf4;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand Accents - Vibrant Emerald & Mint Theme (Ref. Semas UI) */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --primary-border: rgba(16, 185, 129, 0.25);
  --primary-glow: rgba(16, 185, 129, 0.35);

  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  --accent-blue: #0284c7;
  --accent-violet: #8b5cf6;

  /* Borders & Shadows */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #10b981;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(16, 185, 129, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(16, 185, 129, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -5px rgba(16, 185, 129, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px -4px var(--primary-glow);

  /* Radius & Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-secondary: rgba(16, 185, 129, 0.08);
  --bg-glass: rgba(17, 24, 39, 0.92);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0b0f19;

  --border-subtle: #1e293b;
  --border-strong: #334155;
  --primary-light: rgba(16, 185, 129, 0.15);
  --primary-border: rgba(16, 185, 129, 0.35);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a:hover {
  color: var(--primary-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============================================================
   Sticky Navbar
   ============================================================== */
/* ==============================================================
   Sticky Floating Island Pill Navbar (Ref. Modern SaaS Minimalist UI)
   ============================================================== */
.navbar-sticky {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: 100%;
  padding: 0 1rem;
  transition: all var(--transition-normal);
}

.navbar-inner {
  max-width: 860px;
  margin: 0 auto;
  height: 56px;
  padding: 0.35rem 0.55rem 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar-inner {
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-mark-circle {
  transform: scale(1.08);
}

.brand-name-wrap {
  display: flex;
  align-items: baseline;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1;
}

.brand-title-tools {
  color: #0f172a;
}

[data-theme="dark"] .brand-title-tools {
  color: #f8fafc;
}

.brand-title-wallet {
  color: #10b981;
}

/* Central SaaS Navigation Links */
.nav-center-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-pill-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.nav-pill-link:hover {
  color: #0f172a;
  background: var(--bg-secondary);
}

[data-theme="dark"] .nav-pill-link:hover {
  color: #ffffff;
}

.nav-chevron {
  font-size: 0.62rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-pill-link:hover .nav-chevron {
  transform: translateY(1px);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-search-trigger-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-body);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.nav-search-trigger-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* High-Contrast Solid Black Pill Register Button */
.btn-saas-pill-register {
  background: #0f172a;
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.48rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  white-space: nowrap;
}

.btn-saas-pill-register:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .btn-saas-pill-register {
  background: #ffffff;
  color: #0f172a !important;
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-body);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-body);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-center-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-inner { height: 52px; padding: 0.35rem 0.5rem 0.35rem 0.75rem; }
}
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==============================================================
   Hero Section
   ============================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(251, 146, 60, 0.06) 40%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: none;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  color: #10b981;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Big Hero Search */
.hero-search-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(16, 185, 129, 0.04);
  transition: all var(--transition-normal);
}

.hero-search-box:focus-within {
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.18), 0 0 0 3px var(--primary-light);
}

.hero-search-box i.search-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-right: 0.75rem;
}

.hero-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.hero-search-box input:focus {
  outline: none;
}

.hero-search-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all var(--transition-fast);
}

.hero-search-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

[data-theme="dark"] .hero-search-btn {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] .hero-search-btn:hover {
  background: #f1f5f9;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

/* Quick Search Tags */
.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-tag-btn {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.28rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.quick-tag-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Search Dropdown Results Modal / Autocomplete */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.12);
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  text-align: left;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.search-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==============================================================
   Recently Used Tools Section
   ============================================================== */
.recently-used-section {
  display: none;
  /* revealed via JS if recent items exist */
  margin-bottom: 2.5rem;
}

.recently-used-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.recent-pill:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.12);
}

/* ==============================================================
   Section Headers
   ============================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title-wrap h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title-wrap h2 i {
  color: var(--primary);
  font-size: 1.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.section-action-link {
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==============================================================
   Category Grid
   ============================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.category-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--category-color, var(--primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.category-card:hover::before {
  opacity: 1;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--category-light, var(--primary-light));
  color: var(--category-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.category-badge-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.category-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.category-footer-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--category-color, var(--primary));
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==============================================================
   Tools Grid & Card
   ============================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.35rem;
}

.tool-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.tool-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-popular {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
}

.badge-trending {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: none;
}

.badge-new {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border: none;
}

.tool-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tool-card:hover .tool-title {
  color: var(--primary);
}

.tool-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
  font-weight: 700;
}

.tool-run-count {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Category Filter Tabs */
.category-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}

.filter-tab-btn {
  white-space: nowrap;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.filter-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ==============================================================
   Why Choose Us Feature Section
   ============================================================== */
.features-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: none;
  border-bottom: none;
  margin: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==============================================================
   FAQ Accordion Section
   ============================================================== */
.faq-section {
  max-width: 840px;
  margin: 0 auto 4rem;
}

.faq-item {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.faq-item.active {
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question i {
  color: var(--primary);
  transition: transform var(--transition-fast);
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==============================================================
   Breadcrumbs
   ============================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.5rem 0 1.25rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.separator {
  color: var(--border-strong);
}

.breadcrumbs span.current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==============================================================
   Tool Workspace Layout (tool.php)
   ============================================================== */
.tool-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tool-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tool-page-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 14px var(--primary-light);
  flex-shrink: 0;
}

.tool-page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tool-page-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.tool-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-action-btn {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.tool-action-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Tool Interactive Workspace Card */
.tool-workspace-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  background: var(--bg-body);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light), 0 2px 8px rgba(16, 185, 129, 0.08);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

textarea.font-mono,
input.font-mono {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Drag & Drop File Upload Area */
.file-dropzone {
  border: 2px dashed rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(16, 185, 129, 0.02);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.dropzone-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Action Buttons - Minimalist SaaS */
.btn-primary-gradient,
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all var(--transition-fast);
}

.btn-primary-gradient:hover,
.btn-primary:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

[data-theme="dark"] .btn-primary-gradient,
[data-theme="dark"] .btn-primary {
  background: #ffffff;
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary-gradient:hover,
[data-theme="dark"] .btn-primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-secondary {
  background: var(--bg-body);
  border: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* Tool Result Box */
.tool-result-box {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
  display: none;
}

.tool-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Information / Guide Box */
.guide-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.guide-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
}

.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-card h3 i {
  color: var(--primary);
}

.guide-card ol,
.guide-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.guide-card li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.features-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.features-list li i {
  color: #10b981;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==============================================================
   Toast Notification System
   ============================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: none;
  color: var(--text-primary);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success i {
  color: #10b981;
}

.toast-error i {
  color: #ef4444;
}

.toast-info i {
  color: var(--primary);
}

/* ==============================================================
   Footer
   ============================================================== */
.footer-master {
  background: var(--bg-surface);
  border-top: none;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.02);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0 1.25rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================
   Responsive Queries
   ============================================================== */
@media (max-width: 992px) {
  .guide-content-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-search-bar {
    display: none;
    /* Accessible via mobile search button or hero */
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    padding: 3rem 0 2rem;
  }

  .hero-search-box {
    padding: 0.4rem 0.5rem 0.4rem 1rem;
  }

  .hero-search-btn span {
    display: none;
  }

  .hero-search-btn {
    padding: 0.65rem 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==============================================================
   Downloader Interactive Workspaces (Instagram & YouTube)
   ============================================================== */
.dl-format-row {
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dl-format-row:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tab {
  transition: all var(--transition-fast);
}

.btn-tab:hover {
  background: var(--bg-surface-elevated) !important;
  color: var(--primary) !important;
}

.btn-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
}

.instagram-downloader-workspace .form-control:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.youtube-downloader-workspace .form-control:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ==============================================================
   Removal of Sponsored Ads & Banners
   ============================================================== */
.ad-slot-wrapper,
.ad-disclaimer,
.ad-container-box,
.ad-placeholder-inner {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==============================================================
   ToolsWallet Modern Inner Tool Workspace Components
   ============================================================== */
.tool-workspace-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
}

/* Dual Editor / Code Grid */
.editor-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 868px) {
  .editor-dual-grid {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  display: flex;
  flex-direction: column;
}

.editor-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.editor-pane-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.editor-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
}

/* Code Minifier Stats Bar */
.minifier-stats-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-chip strong {
  color: var(--text-primary);
}

.stat-chip-success {
  color: #10b981 !important;
  font-weight: 700;
}

/* Color Picker Workspace */
.color-picker-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .color-picker-stage {
    grid-template-columns: 1fr;
  }
}

.color-preview-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s ease;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.color-preview-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.color-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.color-channel-item label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.color-channel-input-wrap {
  position: relative;
  display: flex;
}

.color-copy-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.color-copy-btn:hover {
  color: var(--primary);
}

.color-presets-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.color-preset-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-preset-dot:hover {
  transform: scale(1.18);
}

/* Aspect Ratio UI */
.ratio-presets-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ratio-chip {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ratio-chip:hover,
.ratio-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.ratio-chip.active {
  background: var(--primary);
  color: #fff;
}

.aspect-preview-wrapper {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-bottom: 1.5rem;
}

.aspect-box {
  background: rgba(16, 185, 129, 0.12);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 280px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Google SERP Card Preview */
.serp-card-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-family: Arial, sans-serif;
  max-width: 650px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.serp-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: #202124;
}

[data-theme="dark"] .serp-url-row {
  color: #bdc1c6;
}

.serp-favicon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.serp-title {
  color: #1a0dab;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

.serp-title:hover {
  text-decoration: underline;
}

[data-theme="dark"] .serp-title {
  color: #8ab4f8;
}

.serp-snippet {
  color: #4d5156;
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-theme="dark"] .serp-snippet {
  color: #bdc1c6;
}

/* Social Media Post Preview Card */
.social-card-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.social-card-image {
  width: 100%;
  height: 240px;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-card-body {
  padding: 1rem 1.25rem;
}

.social-card-domain {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.social-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.social-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Unit Converter UI */
.converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 680px) {
  .converter-row {
    grid-template-columns: 1fr;
  }
}

.swap-btn-wrap {
  display: flex;
  justify-content: center;
}

.converter-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.converter-swap-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(180deg);
}

/* Calculator Summary Box */
.calc-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.calc-summary-card {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
}

.calc-summary-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.calc-summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Text Diff Viewer */
.diff-viewer {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow: hidden;
}

.diff-line {
  padding: 0.35rem 0.75rem;
  display: flex;
  gap: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line-del {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-left: 3px solid #ef4444;
}

.diff-line-ins {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-left: 3px solid #10b981;
}

.diff-line-eq {
  background: var(--bg-body);
  color: var(--text-secondary);
}

/* Palette Extractor Swatches */
.palette-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.palette-swatch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.palette-swatch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.palette-swatch-color {
  height: 100px;
  width: 100%;
}

.palette-swatch-info {
  padding: 0.75rem;
  text-align: center;
}

.palette-swatch-hex {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.palette-swatch-rgb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* PDF Tools Interactive Workspace */
.pdf-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.pdf-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.pdf-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-file-icon {
  font-size: 1.4rem;
  color: #ef4444;
}

.pdf-file-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pdf-file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}



/* ==============================================================
   ToolsWallet Modern Skeleton Loading Engine
   ============================================================== */
@keyframes tw-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.tw-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary, #f1f5f9) 25%, var(--border-subtle, #e2e8f0) 37%, var(--bg-secondary, #f1f5f9) 63%);
  background-size: 400% 100%;
  animation: tw-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm, 6px);
  display: block;
}

[data-theme="dark"] .tw-skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
  background-size: 400% 100%;
}

.tw-skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 0.6rem;
  border-radius: 4px;
}

.tw-skeleton-text.short {
  width: 60%;
}

.tw-skeleton-text.medium {
  width: 80%;
}

.tw-skeleton-title {
  height: 24px;
  width: 45%;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.tw-skeleton-circle {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.tw-skeleton-card {
  height: 140px;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 1rem;
}

.tw-skeleton-loader {
  display: none;
  padding: 1.75rem;
  border-radius: var(--radius-xl, 16px);
  background: var(--bg-surface, #ffffff);
  border: 1px dashed var(--border-subtle, #e2e8f0);
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.06);
  animation: fadeIn 0.25s ease-in-out;
}

.tw-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ==============================================================
   Tool Step Flow (Visual 4-Step Process Bar)
   ============================================================== */
.tool-step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 868px) {
  .tool-step-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tool-step-flow {
    grid-template-columns: 1fr;
  }
}

.step-flow-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.step-flow-item:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.step-flow-item.active {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.step-flow-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.step-flow-item.active .step-flow-number {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.step-flow-item.completed .step-flow-number {
  background: #059669;
  color: #ffffff;
}

.step-flow-text {
  display: flex;
  flex-direction: column;
}

.step-flow-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.step-flow-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================================================
   Tool Trust & Privacy Strip
   ============================================================== */
.tool-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--primary);
  font-size: 1.15rem;
}

/* ==============================================================
   Inner Tool Output Action Toolbar
   ============================================================== */
.tool-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.tool-action-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pill-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-pill-action.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Brand Logo Image Class */
.brand-logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
}



/* ==============================================================
   ToolsWallet Modern Skeleton Loading Engine
   ToolsWallet Modern Inner Tool Workspace & SEO Preview Suite
   ============================================================== */
@keyframes tw-shimmer {
  0% {
    background-position: -200% 0;

    /* Responsive Inner Tool Grid */
    .inner-tool-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 2rem;
      align-items: start;
    }

    @media (max-width: 992px) {
      .inner-tool-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      100% {
        background-position: 200% 0;
      }
    }

    .tw-skeleton {
      background: linear-gradient(90deg, var(--bg-secondary, #f1f5f9) 25%, var(--border-subtle, #e2e8f0) 37%, var(--bg-secondary, #f1f5f9) 63%);
      background-size: 400% 100%;
      animation: tw-shimmer 1.4s ease-in-out infinite;
      border-radius: var(--radius-sm, 6px);
      display: block;

      /* Preset Template Fast-Fill Chips */
      .preset-chips-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
      }

      [data-theme="dark"] .tw-skeleton {
        background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
        background-size: 400% 100%;

        .preset-chip-label {
          font-size: 0.8rem;
          font-weight: 700;
          color: var(--text-muted);
          text-transform: uppercase;
          letter-spacing: 0.04em;
          margin-right: 0.25rem;
        }

        .tw-skeleton-text {
          height: 14px;
          width: 100%;
          margin-bottom: 0.6rem;
          border-radius: 4px;

          .preset-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.85rem;
            border-radius: var(--radius-full);
            font-size: 0.8rem;
            font-weight: 600;
            background: var(--bg-body);
            color: var(--text-secondary);
            border: none;
            cursor: pointer;
            transition: all var(--transition-fast);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
          }

          .tw-skeleton-text.short {
            width: 60%;

            .preset-chip:hover {
              background: var(--primary-light);
              color: var(--primary);
              transform: translateY(-1px);
            }

            .tw-skeleton-text.medium {
              width: 80%;

              .preset-chip.active {
                background: var(--primary);
                color: #ffffff;
                box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
              }

              .tw-skeleton-title {
                height: 24px;
                width: 45%;
                margin-bottom: 1rem;
                border-radius: 6px;

                /* Character Count & Progress Gauges */
                .char-meter-header {
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  margin-bottom: 0.35rem;
                }

                .tw-skeleton-circle {
                  border-radius: 50%;
                  width: 48px;
                  height: 48px;
                  flex-shrink: 0;

                  .char-counter-pill {
                    display: inline-flex;
                    align-items: center;
                    gap: 0.3rem;
                    font-size: 0.75rem;
                    font-weight: 700;
                    padding: 0.2rem 0.55rem;
                    border-radius: var(--radius-full);
                    background: var(--bg-body);
                    color: var(--text-muted);
                    transition: all var(--transition-fast);
                  }

                  .tw-skeleton-card {
                    height: 140px;
                    border-radius: var(--radius-lg, 12px);
                    margin-bottom: 1rem;

                    .char-counter-pill.pill-ok {
                      background: rgba(16, 185, 129, 0.12);
                      color: #059669;
                    }

                    .tw-skeleton-loader {
                      display: none;
                      padding: 1.75rem;
                      border-radius: var(--radius-xl, 16px);
                      background: var(--bg-surface, #ffffff);
                      border: 1px dashed var(--border-subtle, #e2e8f0);
                      margin: 1.5rem 0;
                      box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.06);
                      animation: fadeIn 0.25s ease-in-out;

                      .char-counter-pill.pill-warn {
                        background: rgba(245, 158, 11, 0.12);
                        color: #d97706;
                      }

                      .tw-skeleton-grid {
                        display: grid;
                        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                        gap: 1.25rem;
                        margin-bottom: 1.25rem;

                        .char-counter-pill.pill-danger {
                          background: rgba(239, 68, 68, 0.12);
                          color: #dc2626;
                        }

                        /* ==============================================================
   Tool Step Flow (Visual 4-Step Process Bar)
   ============================================================== */
                        .tool-step-flow {
                          display: grid;
                          grid-template-columns: repeat(4, 1fr);
                          gap: 1rem;
                          margin-bottom: 2rem;

                          .char-progress-track {
                            width: 100%;
                            height: 4px;
                            background: var(--bg-secondary);
                            border-radius: 99px;
                            overflow: hidden;
                            margin-top: 0.35rem;
                            margin-bottom: 0.85rem;
                          }

                          @media (max-width: 868px) {
                            .tool-step-flow {
                              grid-template-columns: repeat(2, 1fr);
                            }

                            .char-progress-bar {
                              height: 100%;
                              width: 0%;
                              border-radius: 99px;
                              background: var(--primary);
                              transition: width 0.2s ease, background 0.2s ease;
                            }

                            @media (max-width: 480px) {
                              .tool-step-flow {
                                grid-template-columns: 1fr;
                              }

                              .char-progress-bar.bg-warn {
                                background: #f59e0b;
                              }

                              .step-flow-item {
                                .char-progress-bar.bg-danger {
                                  background: #ef4444;
                                }

                                /* Tab Navigation Switcher */
                                .preview-tabs {
                                  display: flex;
                                  align-items: center;
                                  gap: 0.85rem;
                                  padding: 0.85rem 1.15rem;
                                  background: var(--bg-surface);
                                  gap: 0.5rem;
                                  background: var(--bg-body);
                                  padding: 0.35rem;
                                  border-radius: var(--radius-lg);
                                  margin-bottom: 1.25rem;
                                }

                                .preview-tab-btn {
                                  flex: 1;
                                  display: inline-flex;
                                  align-items: center;
                                  justify-content: center;
                                  gap: 0.45rem;
                                  padding: 0.55rem 0.9rem;
                                  border-radius: var(--radius-md);
                                  font-size: 0.84rem;
                                  font-weight: 700;
                                  background: transparent;
                                  color: var(--text-secondary);
                                  border: none;
                                  border-radius: var(--radius-lg);
                                  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                                  cursor: pointer;
                                  transition: all var(--transition-fast);
                                }

                                .step-flow-item:hover {
                                  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.1);
                                  transform: translateY(-1px);

                                  .preview-tab-btn:hover {
                                    color: var(--text-primary);
                                  }

                                  .step-flow-item.active {
                                    background: var(--primary-light);
                                    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);

                                    .preview-tab-btn.active {
                                      background: var(--bg-surface);
                                      color: var(--primary);
                                      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
                                    }

                                    .step-flow-number {

                                      /* Device View Toggle (Desktop vs Mobile) */
                                      .device-toggle-bar {
                                        display: flex;
                                        align-items: center;
                                        justify-content: space-between;
                                        margin-bottom: 1rem;
                                      }

                                      .device-toggle-group {
                                        display: inline-flex;
                                        gap: 0.25rem;
                                        background: var(--bg-body);
                                        padding: 0.25rem;
                                        border-radius: var(--radius-md);
                                      }

                                      .btn-device {
                                        display: inline-flex;
                                        align-items: center;
                                        justify-content: center;
                                        width: 32px;
                                        height: 32px;
                                        border-radius: 50%;
                                        background: var(--bg-secondary);
                                        border-radius: var(--radius-sm);
                                        background: transparent;
                                        border: none;
                                        color: var(--text-muted);
                                        font-weight: 800;
                                        font-size: 0.85rem;
                                        cursor: pointer;
                                        transition: all var(--transition-fast);
                                      }

                                      .btn-device:hover {
                                        color: var(--text-primary);
                                      }

                                      .btn-device.active {
                                        background: var(--bg-surface);
                                        color: var(--primary);
                                        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
                                      }

                                      /* Authentic Google SERP Simulator Card */
                                      .serp-simulator-wrap {
                                        position: relative;
                                        transition: all var(--transition-fast);
                                      }

                                      .serp-card {
                                        background: var(--bg-surface);
                                        border-radius: var(--radius-lg);
                                        padding: 1.5rem;
                                        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
                                        transition: all var(--transition-fast);
                                        border: none;
                                      }

                                      [data-theme="dark"] .serp-card {
                                        background: #202124;
                                      }

                                      .serp-card.mobile-view {
                                        max-width: 380px;
                                        margin: 0 auto;
                                        border-radius: 20px;
                                        box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.1);
                                        padding: 1.25rem;
                                      }

                                      .serp-header-meta {
                                        display: flex;
                                        align-items: center;
                                        gap: 0.65rem;
                                        margin-bottom: 0.45rem;
                                      }

                                      .serp-site-favicon {
                                        width: 26px;
                                        height: 26px;
                                        border-radius: 50%;
                                        background: #f1f3f4;
                                        display: flex;
                                        align-items: center;
                                        justify-content: center;
                                        font-size: 0.75rem;
                                        color: var(--primary);
                                        flex-shrink: 0;
                                        transition: all var(--transition-fast);
                                        overflow: hidden;
                                      }

                                      .step-flow-item.active .step-flow-number {
                                        background: var(--primary);
                                        color: #ffffff;
                                        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);

                                        .serp-site-favicon img {
                                          width: 100%;
                                          height: 100%;
                                          object-fit: cover;
                                        }

                                        .step-flow-item.completed .step-flow-number {
                                          background: #059669;
                                          color: #ffffff;

                                          .serp-domain-info {
                                            display: flex;
                                            flex-direction: column;
                                            line-height: 1.2;
                                          }

                                          .step-flow-text {
                                            .serp-brand-name {
                                              font-size: 0.82rem;
                                              font-weight: 600;
                                              color: #202124;
                                            }

                                            [data-theme="dark"] .serp-brand-name {
                                              color: #bdc1c6;
                                            }

                                            .serp-breadcrumb-url {
                                              font-size: 0.75rem;
                                              color: #4d5156;
                                              white-space: nowrap;
                                              overflow: hidden;
                                              text-overflow: ellipsis;
                                              max-width: 340px;
                                            }

                                            [data-theme="dark"] .serp-breadcrumb-url {
                                              color: #9aa0a6;
                                            }

                                            .serp-title-link {
                                              font-size: 1.2rem;
                                              line-height: 1.35;
                                              font-weight: 500;
                                              color: #1a0dab;
                                              cursor: pointer;
                                              margin-bottom: 0.4rem;
                                              word-wrap: break-word;
                                              transition: color var(--transition-fast);
                                            }

                                            [data-theme="dark"] .serp-title-link {
                                              color: #8ab4f8;
                                            }

                                            .serp-title-link:hover {
                                              text-decoration: underline;
                                            }

                                            .serp-snippet-desc {
                                              font-size: 0.88rem;
                                              line-height: 1.5;
                                              color: #4d5156;
                                              word-wrap: break-word;
                                            }

                                            [data-theme="dark"] .serp-snippet-desc {
                                              color: #bdc1c6;
                                            }

                                            /* Social OpenGraph Mockup Card */
                                            .social-preview-wrap {
                                              border-radius: var(--radius-lg);
                                              overflow: hidden;
                                              background: var(--bg-surface);
                                              box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
                                              border: none;
                                            }

                                            .social-preview-image {
                                              width: 100%;
                                              height: 200px;
                                              background: #0f172a;
                                              display: flex;
                                              flex-direction: column;
                                              align-items: center;
                                              justify-content: center;
                                              color: #ffffff;
                                              position: relative;
                                              overflow: hidden;
                                            }

                                            .step-flow-title {
                                              font-size: 0.84rem;
                                              font-weight: 700;
                                              color: var(--text-primary);
                                              line-height: 1.25;

                                              .social-preview-image img {
                                                width: 100%;
                                                height: 100%;
                                                object-fit: cover;
                                              }

                                              .step-flow-subtitle {
                                                .social-preview-content {
                                                  padding: 1.25rem 1.5rem;
                                                  background: var(--bg-surface);
                                                }

                                                .social-preview-domain {
                                                  font-size: 0.72rem;
                                                  font-weight: 700;
                                                  text-transform: uppercase;
                                                  color: var(--text-muted);
                                                  margin-top: 2px;
                                                  letter-spacing: 0.05em;
                                                  margin-bottom: 0.35rem;
                                                }

                                                /* ==============================================================
   Tool Trust & Privacy Strip
   ============================================================== */
                                                .tool-trust-strip {
                                                  .social-preview-title {
                                                    font-size: 1.05rem;
                                                    font-weight: 700;
                                                    color: var(--text-primary);
                                                    line-height: 1.35;
                                                    margin-bottom: 0.35rem;
                                                  }

                                                  .social-preview-desc {
                                                    font-size: 0.84rem;
                                                    color: var(--text-secondary);
                                                    line-height: 1.45;
                                                  }

                                                  /* SEO Health Score & Audit Checklist */
                                                  .seo-audit-card {
                                                    background: var(--bg-surface);
                                                    border-radius: var(--radius-lg);
                                                    padding: 1.25rem 1.5rem;
                                                    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
                                                    margin-top: 1.5rem;
                                                  }

                                                  .seo-audit-header {
                                                    display: flex;
                                                    align-items: center;
                                                    justify-content: space-around;
                                                    flex-wrap: wrap;
                                                    gap: 1.5rem;
                                                    padding: 1.35rem 1.75rem;
                                                    margin-top: 2rem;
                                                    margin-bottom: 2.5rem;
                                                    background: var(--bg-surface);
                                                    border: none;
                                                    border-radius: var(--radius-xl);
                                                    box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.04);
                                                    justify-content: space-between;
                                                    margin-bottom: 1rem;
                                                  }

                                                  .trust-item {
                                                    .seo-score-badge {
                                                      display: inline-flex;
                                                      align-items: center;
                                                      gap: 0.4rem;
                                                      padding: 0.35rem 0.85rem;
                                                      border-radius: var(--radius-full);
                                                      font-size: 0.82rem;
                                                      font-weight: 800;
                                                      background: rgba(16, 185, 129, 0.12);
                                                      color: #059669;
                                                    }

                                                    .seo-checklist {
                                                      display: grid;
                                                      grid-template-columns: 1fr;
                                                      gap: 0.65rem;
                                                    }

                                                    .seo-check-item {
                                                      display: flex;
                                                      align-items: center;
                                                      gap: 0.65rem;
                                                      font-size: 0.85rem;
                                                      font-weight: 600;
                                                      font-size: 0.82rem;
                                                      color: var(--text-secondary);
                                                    }

                                                    .trust-item i {
                                                      color: var(--primary);
                                                      font-size: 1.15rem;

                                                      .seo-check-item i {
                                                        font-size: 0.95rem;
                                                        flex-shrink: 0;
                                                      }

                                                      /* ==============================================================
   Inner Tool Output Action Toolbar
   ============================================================== */
                                                      .tool-action-toolbar {
                                                        .seo-check-item.passed i {
                                                          color: #10b981;
                                                        }

                                                        .seo-check-item.warning i {
                                                          color: #f59e0b;
                                                        }

                                                        .seo-check-item.failed i {
                                                          color: #ef4444;
                                                        }

                                                        /* Syntax Highlighting Code Box */
                                                        .meta-code-container {
                                                          position: relative;
                                                          margin-top: 1.5rem;
                                                          border-radius: var(--radius-lg);
                                                          overflow: hidden;
                                                          box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
                                                          background: #0f172a;
                                                        }

                                                        .meta-code-header {
                                                          display: flex;
                                                          align-items: center;
                                                          justify-content: space-between;
                                                          flex-wrap: wrap;
                                                          gap: 0.75rem;
                                                          padding-top: 1.25rem;
                                                          margin-top: 1.25rem;
                                                          border-top: 1px solid var(--border-subtle);
                                                          padding: 0.75rem 1.25rem;
                                                          background: #1e293b;
                                                          color: #94a3b8;
                                                          font-size: 0.8rem;
                                                          font-weight: 600;
                                                        }

                                                        .tool-action-group {
                                                          .meta-code-actions {
                                                            display: flex;
                                                            align-items: center;
                                                            gap: 0.6rem;
                                                            flex-wrap: wrap;
                                                            gap: 0.5rem;
                                                          }

                                                          .btn-pill-action {
                                                            .btn-code-copy {
                                                              display: inline-flex;
                                                              align-items: center;
                                                              gap: 0.45rem;
                                                              padding: 0.45rem 0.9rem;
                                                              border-radius: var(--radius-full);
                                                              font-size: 0.82rem;
                                                              gap: 0.4rem;
                                                              padding: 0.3rem 0.75rem;
                                                              border-radius: var(--radius-md);
                                                              font-size: 0.75rem;
                                                              font-weight: 700;
                                                              background: var(--bg-body);
                                                              border: 1px solid var(--border-subtle);
                                                              color: var(--text-secondary);
                                                              background: #334155;
                                                              color: #f8fafc;
                                                              border: none;
                                                              cursor: pointer;
                                                              transition: all var(--transition-fast);
                                                            }

                                                            .btn-pill-action:hover {
                                                              background: var(--primary-light);
                                                              border-color: var(--primary);
                                                              color: var(--primary);
                                                            }

                                                            .btn-pill-action.active {
                                                              .btn-code-copy:hover {
                                                                background: var(--primary);
                                                                border-color: var(--primary);
                                                                color: #fff;
                                                                color: #ffffff;
                                                              }

                                                              /* Brand Logo Image Class */
                                                              .brand-logo-img {
                                                                display: block;
                                                                height: 38px;
                                                                width: auto;
                                                                max-width: 190px;
                                                                object-fit: contain;
                                                                transition: opacity var(--transition-fast);

                                                                .meta-code-body {
                                                                  padding: 1.25rem;
                                                                  margin: 0;
                                                                  font-family: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, monospace;
                                                                  font-size: 0.82rem;
                                                                  line-height: 1.6;
                                                                  color: #e2e8f0;
                                                                  white-space: pre-wrap;
                                                                  word-break: break-all;
                                                                  max-height: 340px;
                                                                  overflow-y: auto;
                                                                }

                                                                [data-theme="dark"] .brand-logo-img {
                                                                  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
                                                                }

                                                                .code-tag {
                                                                  color: #38bdf8;
                                                                }

                                                                .code-attr {
                                                                  color: #a78bfa;
                                                                }

                                                                .code-val {
                                                                  color: #34d399;
                                                                }

                                                                .code-comment {
                                                                  color: #64748b;
                                                                  font-style: italic;
                                                                }

                                                                /* ==============================================================
   ToolsWallet Modern Typing Speed Test & WPM Engine Suite
   ============================================================== */
                                                                .typing-test-wrapper {
                                                                  position: relative;
                                                                  width: 100%;
                                                                }

                                                                .typing-toolbar {
                                                                  display: flex;
                                                                  align-items: center;
                                                                  justify-content: space-between;
                                                                  flex-wrap: wrap;
                                                                  gap: 1rem;
                                                                  padding: 0.85rem 1.25rem;
                                                                  background: var(--bg-body);
                                                                  border-radius: var(--radius-lg);
                                                                  margin-bottom: 1.5rem;
                                                                  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
                                                                }

                                                                .typing-toolbar-group {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.35rem;
                                                                  background: var(--bg-surface);
                                                                  padding: 0.25rem;
                                                                  border-radius: var(--radius-md);
                                                                  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
                                                                }

                                                                .typing-pill-btn {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.35rem;
                                                                  padding: 0.4rem 0.8rem;
                                                                  border-radius: var(--radius-sm);
                                                                  font-size: 0.82rem;
                                                                  font-weight: 700;
                                                                  color: var(--text-muted);
                                                                  background: transparent;
                                                                  border: none;
                                                                  cursor: pointer;
                                                                  transition: all var(--transition-fast);
                                                                }

                                                                .typing-pill-btn:hover {
                                                                  color: var(--text-primary);
                                                                }

                                                                .typing-pill-btn.active {
                                                                  background: var(--primary);
                                                                  color: #ffffff;
                                                                  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
                                                                }

                                                                .typing-sound-btn {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.45rem;
                                                                  padding: 0.4rem 0.85rem;
                                                                  border-radius: var(--radius-md);
                                                                  font-size: 0.82rem;
                                                                  font-weight: 700;
                                                                  background: var(--bg-surface);
                                                                  color: var(--text-secondary);
                                                                  border: none;
                                                                  cursor: pointer;
                                                                  transition: all var(--transition-fast);
                                                                  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
                                                                }

                                                                .typing-sound-btn:hover {
                                                                  color: var(--primary);
                                                                }

                                                                .typing-sound-btn.sound-on {
                                                                  color: var(--primary);
                                                                  background: var(--primary-light);
                                                                }

                                                                /* Live Real-Time Typing HUD */
                                                                .typing-live-hud {
                                                                  display: grid;
                                                                  grid-template-columns: repeat(4, 1fr);
                                                                  gap: 1rem;
                                                                  margin-bottom: 1.5rem;
                                                                }

                                                                @media (max-width: 680px) {
                                                                  .typing-live-hud {
                                                                    grid-template-columns: repeat(2, 1fr);
                                                                  }
                                                                }

                                                                .typing-hud-card {
                                                                  display: flex;
                                                                  flex-direction: column;
                                                                  align-items: center;
                                                                  justify-content: center;
                                                                  padding: 1rem 0.75rem;
                                                                  background: var(--bg-body);
                                                                  border-radius: var(--radius-lg);
                                                                  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                                                                  text-align: center;
                                                                  transition: all var(--transition-fast);
                                                                }

                                                                .typing-hud-label {
                                                                  font-size: 0.75rem;
                                                                  font-weight: 700;
                                                                  color: var(--text-muted);
                                                                  text-transform: uppercase;
                                                                  letter-spacing: 0.05em;
                                                                  margin-bottom: 0.25rem;
                                                                }

                                                                .typing-hud-value {
                                                                  font-size: 1.85rem;
                                                                  font-weight: 900;
                                                                  line-height: 1.1;
                                                                  color: var(--text-primary);
                                                                  font-variant-numeric: tabular-nums;
                                                                }

                                                                .typing-hud-card.hud-timer .typing-hud-value {
                                                                  color: #f59e0b;
                                                                }

                                                                .typing-hud-card.hud-wpm .typing-hud-value {
                                                                  color: var(--primary);
                                                                }

                                                                .typing-hud-card.hud-acc .typing-hud-value {
                                                                  color: #3b82f6;
                                                                }

                                                                .typing-hud-card.hud-cpm .typing-hud-value {
                                                                  color: #8b5cf6;
                                                                }

                                                                /* Typing Display Paper / Arena */
                                                                .typing-arena-wrap {
                                                                  position: relative;
                                                                  background: var(--bg-surface);
                                                                  border-radius: var(--radius-xl);
                                                                  padding: 2.25rem 2rem;
                                                                  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
                                                                  margin-bottom: 1.5rem;
                                                                  cursor: text;
                                                                  outline: none;
                                                                  overflow: hidden;
                                                                  user-select: none;
                                                                  min-height: 200px;
                                                                }

                                                                .typing-words-container {
                                                                  font-family: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, monospace;
                                                                  font-size: 1.45rem;
                                                                  line-height: 2;
                                                                  letter-spacing: 0.02em;
                                                                  color: #94a3b8;
                                                                  display: flex;
                                                                  flex-wrap: wrap;
                                                                  align-content: flex-start;
                                                                  height: 140px;
                                                                  overflow: hidden;
                                                                  position: relative;
                                                                  transition: transform 0.2s ease;
                                                                }

                                                                [data-theme="dark"] .typing-words-container {
                                                                  color: #64748b;
                                                                }

                                                                .typing-word {
                                                                  display: inline-flex;
                                                                  margin-right: 0.65rem;
                                                                  margin-bottom: 0.25rem;
                                                                  border-radius: 4px;
                                                                  transition: background 0.15s ease;
                                                                }

                                                                .typing-word.active-word {
                                                                  background: rgba(16, 185, 129, 0.06);
                                                                }

                                                                .typing-word.has-error {
                                                                  border-bottom: 2px wavy #ef4444;
                                                                }

                                                                .typing-char {
                                                                  position: relative;
                                                                  transition: color 0.05s ease, background 0.05s ease;
                                                                }

                                                                .typing-char.correct {
                                                                  color: #10b981;
                                                                }

                                                                .typing-char.incorrect {
                                                                  color: #ef4444;
                                                                  background: rgba(239, 68, 68, 0.18);
                                                                  border-radius: 2px;
                                                                }

                                                                .typing-char.extra-char {
                                                                  color: #dc2626;
                                                                  opacity: 0.7;
                                                                }

                                                                /* Smooth Blinking Cursor */
                                                                @keyframes typingCursorBlink {

                                                                  0%,
                                                                  100% {
                                                                    opacity: 1;
                                                                  }

                                                                  50% {
                                                                    opacity: 0;
                                                                  }
                                                                }

                                                                .typing-cursor {
                                                                  position: absolute;
                                                                  width: 2.5px;
                                                                  height: 1.45rem;
                                                                  background: var(--primary);
                                                                  border-radius: 2px;
                                                                  pointer-events: none;
                                                                  transition: left 0.08s ease, top 0.08s ease;
                                                                  animation: typingCursorBlink 1s infinite;
                                                                  z-index: 5;
                                                                }

                                                                /* Hidden Keystroke Catcher */
                                                                .typing-input-hidden {
                                                                  position: absolute;
                                                                  top: -9999px;
                                                                  left: -9999px;
                                                                  opacity: 0;
                                                                  width: 1px;
                                                                  height: 1px;
                                                                  pointer-events: none;
                                                                }

                                                                /* Click-to-Focus Overlay */
                                                                .typing-blur-overlay {
                                                                  position: absolute;
                                                                  top: 0;
                                                                  left: 0;
                                                                  right: 0;
                                                                  bottom: 0;
                                                                  background: rgba(15, 23, 42, 0.45);
                                                                  backdrop-filter: blur(3px);
                                                                  display: flex;
                                                                  flex-direction: column;
                                                                  align-items: center;
                                                                  justify-content: center;
                                                                  color: #ffffff;
                                                                  font-weight: 700;
                                                                  font-size: 1.1rem;
                                                                  border-radius: var(--radius-xl);
                                                                  cursor: pointer;
                                                                  z-index: 20;
                                                                  opacity: 0;
                                                                  pointer-events: none;
                                                                  transition: opacity 0.2s ease;
                                                                }

                                                                .typing-blur-overlay.visible {
                                                                  opacity: 1;
                                                                  pointer-events: auto;
                                                                }

                                                                .typing-blur-pill {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.6rem;
                                                                  padding: 0.75rem 1.5rem;
                                                                  background: var(--bg-surface);
                                                                  color: var(--text-primary);
                                                                  border-radius: var(--radius-full);
                                                                  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
                                                                  font-size: 0.95rem;
                                                                }

                                                                /* Quick Restart Button */
                                                                .typing-restart-wrap {
                                                                  display: flex;
                                                                  align-items: center;
                                                                  justify-content: center;
                                                                  margin-top: 1.25rem;
                                                                }

                                                                .btn-typing-restart {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.5rem;
                                                                  padding: 0.65rem 1.5rem;
                                                                  border-radius: var(--radius-full);
                                                                  font-size: 0.92rem;
                                                                  font-weight: 700;
                                                                  background: var(--bg-body);
                                                                  color: var(--text-secondary);
                                                                  border: none;
                                                                  cursor: pointer;
                                                                  transition: all var(--transition-fast);
                                                                  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
                                                                }

                                                                .btn-typing-restart:hover {
                                                                  background: var(--primary);
                                                                  color: #ffffff;
                                                                  transform: translateY(-1px);
                                                                  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
                                                                }

                                                                /* Post-Test Result Scorecard */
                                                                .typing-results-card {
                                                                  display: none;
                                                                  background: var(--bg-surface);
                                                                  border-radius: var(--radius-xl);
                                                                  padding: 2.5rem 2rem;
                                                                  box-shadow: 0 10px 35px -5px rgba(15, 23, 42, 0.08);
                                                                  margin-bottom: 2rem;
                                                                  animation: fadeIn 0.3s ease-out;
                                                                }

                                                                .typing-results-grid {
                                                                  display: grid;
                                                                  grid-template-columns: 1.1fr 1fr;
                                                                  gap: 2rem;
                                                                  align-items: center;
                                                                }

                                                                @media (max-width: 868px) {
                                                                  .typing-results-grid {
                                                                    grid-template-columns: 1fr;
                                                                  }
                                                                }

                                                                .typing-hero-score {
                                                                  display: flex;
                                                                  flex-direction: column;
                                                                  align-items: center;
                                                                  text-align: center;
                                                                  padding: 1.5rem;
                                                                  background: var(--bg-body);
                                                                  border-radius: var(--radius-xl);
                                                                }

                                                                .typing-wpm-hero-number {
                                                                  font-size: 4.5rem;
                                                                  font-weight: 900;
                                                                  line-height: 1;
                                                                  background: #0f172a;
                                                                  -webkit-background-clip: text;
                                                                  -webkit-text-fill-color: transparent;
                                                                  margin-bottom: 0.25rem;
                                                                }

                                                                .typing-wpm-hero-label {
                                                                  font-size: 0.95rem;
                                                                  font-weight: 800;
                                                                  text-transform: uppercase;
                                                                  letter-spacing: 0.1em;
                                                                  color: var(--text-muted);
                                                                  margin-bottom: 0.75rem;
                                                                }

                                                                .typing-tier-badge {
                                                                  display: inline-flex;
                                                                  align-items: center;
                                                                  gap: 0.5rem;
                                                                  padding: 0.45rem 1.1rem;
                                                                  border-radius: var(--radius-full);
                                                                  font-size: 0.88rem;
                                                                  font-weight: 800;
                                                                  background: rgba(16, 185, 129, 0.12);
                                                                  color: #059669;
                                                                }

                                                                .typing-tier-badge.badge-lightning {
                                                                  background: #f59e0b;
                                                                  color: #ffffff;
                                                                }

                                                                .typing-stats-detail-grid {
                                                                  display: grid;
                                                                  grid-template-columns: repeat(2, 1fr);
                                                                  gap: 1rem;
                                                                }

                                                                .typing-stat-box {
                                                                  padding: 1rem;
                                                                  background: var(--bg-body);
                                                                  border-radius: var(--radius-lg);
                                                                  display: flex;
                                                                  flex-direction: column;
                                                                }

                                                                .typing-stat-box-label {
                                                                  font-size: 0.75rem;
                                                                  font-weight: 700;
                                                                  color: var(--text-muted);
                                                                  margin-bottom: 0.2rem;
                                                                }

                                                                .typing-stat-box-val {
                                                                  font-size: 1.35rem;
                                                                  font-weight: 800;
                                                                  color: var(--text-primary);
                                                                }

                                                                /* WPM Progression SVG Line Graph */
                                                                .typing-chart-container {
                                                                  margin-top: 1.75rem;
                                                                  padding: 1.25rem 1.5rem;
                                                                  background: var(--bg-body);
                                                                  border-radius: var(--radius-lg);
                                                                }

                                                                .typing-chart-header {
                                                                  display: flex;
                                                                  align-items: center;
                                                                  justify-content: space-between;
                                                                  margin-bottom: 0.75rem;
                                                                }

                                                                .typing-chart-title {
                                                                  font-size: 0.85rem;
                                                                  font-weight: 700;
                                                                  color: var(--text-primary);
                                                                }

                                                                .typing-chart-svg {
                                                                  width: 100%;
                                                                  height: 120px;
                                                                  overflow: visible;
                                                                }

                                                                /* Certificate Generator Modal & Actions */
                                                                .typing-actions-bar {
                                                                  display: flex;
                                                                  align-items: center;
                                                                  justify-content: center;
                                                                  gap: 0.85rem;
                                                                  flex-wrap: wrap;
                                                                  margin-top: 1.75rem;
                                                                }

                                                                .typing-cert-canvas-wrap {
                                                                  display: none;
                                                                }

/* ============================================================
   Interactive Visual Touch-Typing Keyboard
   ============================================================ */
.virtual-keyboard-wrap {
    margin-top: 1.5rem;
    padding: 1.25rem 1rem;
    background: var(--bg-body);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    user-select: none;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.vk-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.vk-key {
    height: 42px;
    min-width: 38px;
    padding: 0 0.5rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
    transition: all 0.12s ease;
    position: relative;
}

.vk-key.tactile-bump::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 8px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
}

.vk-key.active-target {
    background: #10B981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.vk-key.key-pressed {
    background: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2) !important;
}

[data-theme="dark"] .vk-key.key-pressed {
    background: #ffffff !important;
    color: #0f172a !important;
}

.vk-key.vk-backspace { min-width: 64px; }
.vk-key.vk-tab { min-width: 52px; }
.vk-key.vk-caps { min-width: 60px; }
.vk-key.vk-enter { min-width: 68px; }
.vk-key.vk-shift { min-width: 82px; }
.vk-key.vk-space { min-width: 250px; }
.vk-key.vk-ctrl, .vk-key.vk-alt { min-width: 44px; }

@media (max-width: 768px) {
    .virtual-keyboard-wrap {
        display: none !important;
    }
}
