/* 
   ToolsHub Main Stylesheet
   Theme: Vibrant Red & Sleek Dark Mode 
*/

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-rgb: 37, 99, 235;
  --secondary: #2D3748;
  --bg: #F7F8FC;
  --bg-card: #FFFFFF;
  --text: #1A202C;
  --text-muted: #718096;
  --border: #E2E8F0;
  --success: #38A169;
  --warning: #D69E2E;
  --danger: #E53E3E;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(229, 50, 45, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.75);
  --container-width: 1200px;
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 30px rgba(229, 50, 45, 0.3);
  --glass: rgba(30, 41, 59, 0.8);
}

/* 1. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-signup {
  background-color: #E5322D;
  color: #FFFFFF;
}

.btn-signup:hover {
  background-color: #C0201B;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 50, 45, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--border);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition);
}

.main-navbar .navbar-logo {
  color: #0F172A !important;
}

.main-navbar .navbar-logo .logo-icon {
  color: initial !important;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 30px;
}

.nav-links-menu a {
  color: #334155 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: 4px;
}

.nav-links-menu a:hover {
  color: var(--primary) !important;
  background-color: #F8FAFC;
}

.main-navbar .desktop-nav a {
  color: #334155 !important;
}

.main-navbar .desktop-nav a:hover {
  color: var(--primary) !important;
}

.main-navbar .desktop-nav a.btn-signup {
  color: #FFFFFF !important;
}

.main-navbar .desktop-nav a.btn-outline {
  color: #334155 !important;
  border-color: #CBD5E1 !important;
}

.main-navbar .desktop-nav a.btn-outline:hover {
  background-color: #F1F5F9 !important;
}

.main-navbar .theme-toggle-icon {
  color: #334155 !important;
}

.main-navbar .navbar-search-wrapper input {
  background-color: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #1E293B !important;
}

.main-navbar .navbar-search-wrapper input:focus {
  background-color: #FFFFFF !important;
  border-color: var(--primary) !important;
}

.main-navbar .user-menu-trigger {
  color: #334155 !important;
}

.main-navbar .sidebar-burger {
  color: #334155 !important;
}



.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A !important;
}

.navbar-logo .logo-icon {
  font-size: 1.6rem;
}

.navbar-logo .logo-text {
  color: #0F172A !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  font-weight: 800;
}

/* Navbar Search Box */
.navbar-search-wrapper {
  flex: 0 1 400px;
  position: relative;
  margin: 0 20px;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-container input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.15);
  background-color: var(--bg-card);
}

.search-input-container .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input-container button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Dropdown Search Results */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1010;
  display: none;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
  background-color: rgba(var(--primary-rgb), 0.08);
}

.search-dropdown-item .item-icon {
  font-size: 1.3rem;
}

.search-dropdown-item .item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.search-dropdown-item .item-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-dropdown-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
}

.theme-toggle:hover {
  background-color: var(--border);
}

/* User Menu Trigger & Dropdown */
.user-menu-dropdown {
  position: relative;
}

.user-menu-trigger {
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.user-menu-trigger:hover {
  background-color: var(--border);
}

.user-avatar {
  font-size: 1.1rem;
}

.dropdown-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.dropdown-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu-list a {
  display: flex;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-menu-list a:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
}

.dropdown-menu-list hr {
  border: none;
  border-top: 1px solid var(--border);
}

.dropdown-menu-list .logout-link {
  color: var(--danger);
}

.dropdown-menu-list .logout-link:hover {
  background-color: rgba(229, 62, 62, 0.05);
  color: var(--danger);
}

.user-menu-dropdown:hover .dropdown-menu-list {
  display: block;
}

/* Plan Badges */
.plan-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.plan-badge-free {
  background-color: var(--border);
  color: var(--text-muted);
}

.plan-badge-pro {
  background-color: var(--primary);
  color: #FFFFFF;
}

.plan-badge-business {
  background-color: var(--secondary);
  color: #FFFFFF;
}

[data-theme="dark"] .plan-badge-business {
  background-color: #38bdf8;
  color: #0f172a;
}

/* Mobile Nav Menu Burger */
.mobile-nav-triggers {
  display: none;
}

.sidebar-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition);
}

/* 3. SIDEBAR (Mobile Slide-in) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1099;
  display: none;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1100;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-active .mobile-sidebar {
  right: 0;
}

.sidebar-active .sidebar-overlay {
  display: block;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.sidebar-search-box {
  position: relative;
  margin-bottom: 20px;
}

.sidebar-search-box input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-category-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.sidebar-link {
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-link:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  padding-left: 16px;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 15px 0;
}

.sidebar-btn {
  width: 100%;
  margin-top: 5px;
}

/* 4. HERO SECTION */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
              #0B0F19;
  color: #FFFFFF;
  padding: 85px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #1E293B;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 40%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFFFFF;
}

.hero-section p {
  font-size: 1.2rem;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 32px;
}

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

.hero-search-wrapper input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  border-radius: 50px;
  border: none;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.hero-search-wrapper input:focus {
  outline: none;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
  transform: scale(1.01);
}

.hero-search-wrapper .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #64748B;
}

/* Category Filter Pills */
.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.filter-pill {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}


/* 5. STATS BAR */
.stats-bar-section {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 6. CATEGORY CARDS GRID */
.home-section-title {
  text-align: center;
  margin: 60px 0 35px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.category-card-icon {
  font-size: 2.2rem;
  width: 55px;
  height: 55px;
  border-radius: 50px;
  background-color: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.category-card-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.category-card-links {
  margin-top: 15px;
  flex: 1;
}

.category-card-links li {
  margin-bottom: 10px;
}

.category-card-links a {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.category-card-links a::before {
  content: '⚡';
  margin-right: 8px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.category-card-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.category-card-footer {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.category-card-footer a {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 7. TOOL CARDS GRID (Hover Lift) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.tool-card .tool-icon {
  font-size: 2.2rem;
  background-color: rgba(var(--primary-rgb), 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  background-color: var(--primary);
  color: #FFFFFF;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 8. UPGRADE BANNER */
.upgrade-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.upgrade-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.upgrade-banner p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.upgrade-banner .btn {
  position: relative;
  z-index: 2;
}

/* 9. FAQ ACCORDION */
.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto 60px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-q::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-q::after {
  transform: rotate(-180deg);
}

.faq-item.active .faq-q {
  border-bottom: 1px solid var(--border);
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-a {
  max-height: 500px;
  padding: 20px 24px;
  transition: max-height 0.3s cubic-bezier(0.85, 0.15, 0.83, 0.67), padding 0.3s ease;
}

/* 10. BREADCRUMBS */
.breadcrumb-nav {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

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

.breadcrumb-separator {
  margin: 0 10px;
  opacity: 0.5;
}

/* 11. TOOL DETAIL PAGE LAYOUT */
.tool-header {
  text-align: center;
  padding: 50px 0 30px;
  max-width: 700px;
  margin: 0 auto;
}

.tool-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tool-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.tool-interface {
  margin-bottom: 50px;
}

.how-to-use {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
}

.how-to-use h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.how-to-use ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  counter-reset: steps;
}

.how-to-use li {
  position: relative;
  padding-left: 54px;
}

.how-to-use li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-to-use li h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.how-to-use li p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-section {
  margin-bottom: 60px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 35px;
}

.related-tools {
  margin-bottom: 80px;
}

.related-tools h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

/* 12. FOOTER Styles */
.main-footer {
  background-color: #0B0F19;
  color: #94A3B8;
  padding: 70px 0 0;
  border-top: 1px solid #1E293B;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1.2fr);
  gap: 40px;
  padding-bottom: 50px;
}

.brand-col .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-decoration: none;
}

.brand-col .footer-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #64748B;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  background-color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.footer-social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-col h3 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-col ul a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--primary) !important;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid #1E293B;
  font-size: 14px;
  color: #64748B;
  background-color: #080C14;
}

/* 13. LIMIT MODAL STYLES */
.modal-backdrop-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-backdrop-overlay.modal-active {
  opacity: 1;
}

.modal-card-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-backdrop-overlay.modal-active .modal-card-wrapper {
  transform: scale(1);
}

.modal-header {
  padding: 24px 30px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.modal-electric-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  animation: pulse 1.5s infinite;
}

.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.modal-close-x-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 30px;
}

.modal-tagline {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
}

.modal-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-features-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
}

.modal-footer {
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FLASH BANNER */
.flash-alert-banner {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
  font-size: 0.92rem;
}

.alert-success {
  background-color: #DEF7EC;
  color: #03543F;
}

.alert-error {
  background-color: #FDE8E8;
  color: #9B1C1C;
}

.alert-warning {
  background-color: #FDF6B2;
  color: #723B13;
}

.alert-info {
  background-color: #E1EFFE;
  color: #1E429F;
}

.flash-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: currentColor;
  opacity: 0.7;
}

.flash-close-btn:hover {
  opacity: 1;
}

/* 14. KEYFRAME ANIMATIONS */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 15. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col {
    grid-column: span 1;
  }
  .footer-grid .brand-col {
    grid-column: span 2;
  }
}



/* 12. COLLAPSIBLE TOOLS EXPANSION */
.category-tools-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
}

.category-tools-collapse.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
  transition: max-height 0.8s ease-in-out, opacity 0.5s ease;
}

.tools-expand-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.btn-expand-tools {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-expand-tools:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}


@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .navbar-search-wrapper {
    display: none; /* Mobile search inside sidebar only */
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav-triggers {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .hero-section h1 { font-size: 2.2rem; }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .how-to-use ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .brand-col {
    grid-column: span 1;
  }

}
