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

:root {
  /* Colors - Redesigned Locked Palette */
  --bg-primary: #050816;
  --bg-secondary: #04070D;
  --bg-accent: #03060C;
  --bg-card: rgba(3, 6, 12, 0.45);
  --bg-card-hover: rgba(0, 229, 255, 0.05);
  --border-glass: rgba(0, 229, 255, 0.15);
  --border-glass-hover: rgba(0, 229, 255, 0.35);
  
  --neon-blue: #00BFFF;
  --cyan: #00E5FF;
  --neon-blue-glow: rgba(0, 191, 255, 0.35);
  --cyan-glow: rgba(0, 229, 255, 0.45);
  --accent-gradient: linear-gradient(135deg, var(--neon-blue), var(--cyan));
  --text-gradient: linear-gradient(135deg, #ffffff 30%, #a5c0d6 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #9fb3c8;
  --text-muted: #5e758e;
  
  --success: #00e676;
  --error: #ff1744;
  --warning: #ffea00;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1400px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Typography */
  --font-family: 'Outfit', 'Poppins', 'Inter', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, #03060C 0%, #04070D 50%, #050816 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Holographic Grid Overlay */
  background-size: 80px 80px;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Glow overlays representing premium SaaS gradients */
  background: 
    radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 198, 255, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 245, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Background Effects */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.08) 0%, rgba(0, 245, 255, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 198, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--neon-blue);
  border-right-color: var(--cyan);
  animation: spin 1s infinite linear;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.loader-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* Reusable Header Navbar */
.header-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(3, 6, 12, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.header-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  background: linear-gradient(115deg, transparent 40%, rgba(102, 247, 255, 0.03) 48%, rgba(102, 247, 255, 0.08) 50%, rgba(102, 247, 255, 0.03) 52%, transparent 60%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: -1;
}

.header-navbar:hover::before {
  transform: translateX(100%);
}

.header-navbar.scrolled {
  background: rgba(3, 6, 12, 0.8);
  border-bottom-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  height: 70px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo {
  height: 60px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.header-navbar.scrolled .header-logo {
  height: 48px !important;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

/* Navigation Menus */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.nav-link:hover svg {
  transform: rotate(5deg) scale(1.1);
}

/* Dropdown Menu & Mega Menu */
.mega-dropdown-wrapper {
  position: static;
}

.mega-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(7, 17, 31, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-top: none;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.mega-dropdown-wrapper:hover .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col-title svg {
  width: 14px;
  height: 14px;
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-list-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-list-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 198, 255, 0.05);
  transform: translateX(3px);
}

/* Nav Actions (Search & Mobile Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-search {
  position: relative;
  width: 220px;
  transition: var(--transition-smooth);
}

.navbar-search-input {
  width: 100%;
  background: rgba(3, 6, 12, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-search-input:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(3, 6, 12, 0.6);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 0 10px rgba(0, 229, 255, 0.15);
}

.navbar-search-input:focus {
  border-color: #00E5FF;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 0 15px rgba(0, 229, 255, 0.45);
  width: 280px;
  background: rgba(3, 6, 12, 0.8);
}

.navbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn svg,
.hamburger-btn i {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.hamburger-btn * {
  pointer-events: none;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(3, 6, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 229, 255, 0.2);
  z-index: 9999;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: var(--transition-smooth);
}

.mobile-sidebar.open {
  right: 0;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 229, 255, 0.05);
}

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

.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.sidebar-close-btn svg {
  width: 24px;
  height: 24px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding-bottom: 30px;
}

.sidebar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.sidebar-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 198, 255, 0.05);
}

.sidebar-submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-submenu-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 8px;
  transition: var(--transition-smooth);
}

.sidebar-submenu-link:hover {
  color: var(--cyan);
}

/* Glassmorphism Cards & Layout grids */
.card-glass {
  background: rgba(3, 6, 12, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 28px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.03);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(0, 229, 255, 0.06) 48%, rgba(0, 229, 255, 0.15) 50%, rgba(0, 229, 255, 0.06) 52%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.8s ease;
}

.card-glass:hover::before {
  transform: translateX(125%);
}

.card-glass:hover {
  background: rgba(3, 6, 12, 0.55);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 0 15px rgba(0, 229, 255, 0.08);
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: rgba(0, 229, 255, 0.08);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 0 12px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(0, 229, 255, 0.15);
  border-color: #00E5FF;
  color: #FFFFFF;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.45);
}

.btn-secondary {
  background: rgba(3, 6, 12, 0.4);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(3, 6, 12, 0.6);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.02);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* Global Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 80vh;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.2);
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.badge-item svg {
  color: var(--cyan);
  width: 18px;
  height: 18px;
}

/* 3D Graphics Rotating Zone */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 450px;
}

.glow-circle {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12) 0%, rgba(0, 198, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: float 6s infinite ease-in-out;
}

.graphics-container {
  width: 320px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3D 24s infinite linear;
}

.floating-3d-card {
  position: absolute;
  width: 130px;
  height: 160px;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
  transform-origin: center center;
}

.floating-3d-card svg {
  width: 48px;
  height: 48px;
}

.card-pdf {
  transform: rotateY(0deg) translateZ(140px);
  border-color: rgba(255, 23, 68, 0.3);
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.15);
}

.card-pdf svg {
  color: #ff1744;
}

.card-image {
  transform: rotateY(120deg) translateZ(140px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.15);
}

.card-image svg {
  color: #00e676;
}

.card-converter {
  transform: rotateY(240deg) translateZ(140px);
  border-color: rgba(0, 198, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.2);
}

.card-converter svg {
  color: var(--neon-blue);
}

.floating-3d-card span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tool Directory & Section Panels */
.section-panel {
  padding: 30px 0 50px 0;
  position: relative;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-left: none;
  padding-left: 0;
  box-shadow: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--neon-blue) 40%, transparent 100%);
  box-shadow: 0 1px 6px rgba(0, 229, 255, 0.2);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.section-title i,
.section-title [data-lucide] {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
  color: #00E5FF !important;
  -webkit-text-fill-color: initial;
  background: none;
  animation: pulse-icon 3s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9)); }
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Category Filter Navigation */
.category-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-btn {
  background: rgba(3, 6, 12, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: var(--font-family);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

@keyframes filter-pulse {
  0% { box-shadow: 0 0 12px rgba(0, 229, 255, 0.25); }
  50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.55), 0 0 0 4px rgba(0, 229, 255, 0.1); }
  100% { box-shadow: 0 0 12px rgba(0, 229, 255, 0.25); }
}

.filter-btn:hover {
  background: rgba(3, 6, 12, 0.7);
  border-color: #00E5FF;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  animation: filter-pulse 2s infinite ease-in-out;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(3, 6, 12, 0.8), rgba(0, 229, 255, 0.15));
  border-color: #00E5FF;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
}

.tools-grid .card-glass.tool-card {
  padding: 14px;
}

@media (min-width: 1200px) {
  .tools-grid .card-glass.tool-card {
    padding: 12px 10px;
  }
}

.tool-card-top {
  margin-bottom: 12px;
}

.tool-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background: rgba(3, 6, 12, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00E5FF;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.tool-icon-wrapper svg {
  stroke-width: 1.5;
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.4));
}

.tool-icon-wrapper svg,
.tool-icon-wrapper i {
  width: 20px !important;
  height: 20px !important;
}

.tool-card:hover .tool-icon-wrapper {
  background: rgba(0, 229, 255, 0.05);
  border-color: #00E5FF;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  transform: scale(1.05) translateZ(15px);
}

.tool-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
  line-height: 1.3;
}

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

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

.tool-card-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--neon-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-card-action {
  color: var(--cyan);
}

.tool-card-action svg,
.tool-card-action i {
  width: 14px !important;
  height: 14px !important;
  transform: translateX(-4px);
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-card-action svg,
.tool-card:hover .tool-card-action i {
  transform: translateX(0);
}

/* Tool Interface/Workspace Layout */
.tool-layout-wrapper {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}

.breadcrumb-container {
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.breadcrumb-separator {
  display: flex;
  align-items: center;
}

.breadcrumb-separator svg {
  width: 12px;
  height: 12px;
}

.tool-main-hero {
  margin-bottom: 40px;
}

.tool-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

.tool-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 800px;
}

/* Tool Panel Workspace Grid */
.tool-workspace {
  margin-bottom: 60px;
  z-index: 5;
}

/* Standard Double Pane (Text Processor Layout) */
.pane-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .pane-grid-2 {
    grid-template-columns: 1fr;
  }
}

.pane-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-actions-row {
  display: flex;
  gap: 10px;
}

.pane-btn-action {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pane-btn-action:hover {
  background: rgba(0, 198, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--text-primary);
}

.pane-textarea {
  width: 100%;
  height: 380px;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', monospace;
  font-size: 0.92rem;
  padding: 16px;
  resize: none;
  line-height: 1.5;
  transition: var(--transition-smooth);
}

.pane-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Control Hub panel in center or tops */
.controls-card {
  padding: 20px;
  background: rgba(13, 27, 42, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Form Elements inside calculators & tools */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Ranges */
.slider-group {
  width: 100%;
  margin-top: 10px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(13, 27, 42, 0.8);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-blue-glow);
  transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Drag and Drop Box */
.upload-zone {
  border: 2px dashed rgba(0, 198, 255, 0.25);
  border-radius: var(--border-radius-md);
  padding: 50px 30px;
  text-align: center;
  background: rgba(13, 27, 42, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 250px;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.upload-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 198, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 198, 255, 0.1);
}

.upload-zone:hover .upload-icon {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--neon-blue-glow);
  transform: translateY(-5px);
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.file-input-hidden {
  display: none;
}

/* File list panel showing uploaded documents */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.file-item {
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.file-item-icon {
  color: var(--cyan);
  flex-shrink: 0;
}

.file-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.file-item-actions {
  display: flex;
  gap: 6px;
}

.file-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.file-item-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.file-item-btn.btn-remove:hover {
  color: var(--error);
  background: rgba(255, 23, 68, 0.1);
}

/* Custom Accordion FAQ Layout */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(0, 245, 255, 0.25);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.faq-question svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--cyan);
}

.faq-item.active .faq-question {
  color: var(--cyan);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* SEO Content Typography styling */
.seo-content-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
  margin-top: 40px;
}

.seo-rich-text {
  max-width: 900px;
}

.seo-rich-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}

.seo-rich-text h2:first-of-type {
  margin-top: 0;
}

.seo-rich-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 0.98rem;
}

.seo-rich-text ul, .seo-rich-text ol {
  margin-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.seo-rich-text li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.seo-rich-text li strong {
  color: var(--text-primary);
}

/* CTA Sidebar & Banners */
.cta-banner {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(7, 17, 31, 0.95) 100%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-md);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 198, 255, 0.15);
}

.cta-banner-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px auto;
}

/* Reusable Footer */
.footer-wrapper {
  background: rgba(3, 6, 12, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 229, 255, 0.10);
  padding: 80px 0 30px 0;
  position: relative;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.35);
}

.footer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.4) 30%, rgba(0, 191, 255, 0.4) 70%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(3, 6, 12, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  border-color: #00E5FF;
}

.social-link.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 0 12px rgba(24, 119, 242, 0.4); }
.social-link.tw:hover { background: #1DA1F2; border-color: #1DA1F2; box-shadow: 0 0 12px rgba(29, 161, 242, 0.4); }
.social-link.ig:hover { background: #E1306C; border-color: #E1306C; box-shadow: 0 0 12px rgba(225, 48, 108, 0.4); }
.social-link.li:hover { background: #0077B5; border-color: #0077B5; box-shadow: 0 0 12px rgba(0, 119, 181, 0.4); }

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-link:hover {
  color: #00E5FF;
  transform: translateX(3px);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background: rgba(3, 6, 12, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.newsletter-btn {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00E5FF;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.newsletter-btn:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00FFFF;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.newsletter-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* Scroll-to-top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid var(--border-glass-hover);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-3px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--neon-blue);
  border-right: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 12px 20px;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

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

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
  flex: 1;
}

/* Amortization schedule table */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
  margin-top: 20px;
  max-height: 400px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(13, 27, 42, 0.8);
  color: var(--cyan);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass-hover);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes rotate3D {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Screen size adjustments */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: calc(var(--header-height) + 30px);
    gap: 30px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .navbar-search {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Live Search Dropdown */
.navbar-search {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: rgba(7, 17, 31, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.search-result-item:hover,
.search-result-item.highlighted {
  background: rgba(0, 198, 255, 0.08);
  color: var(--text-primary);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 198, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.search-result-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-result-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.search-dropdown-header {
  padding: 8px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-blue);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
}

/* ══════════════════════════════════════════════
   COMPACT HERO (CMS Upgrade - max 140px height)
══════════════════════════════════════════════ */
.hero-compact {
  min-height: auto;
  box-sizing: border-box;
  padding-top: calc(var(--header-height) + 6px);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, rgba(0, 198, 255, 0.02) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.hero-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.hero-compact-visual {
  flex: 0 0 450px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 992px) {
  .hero-compact-visual {
    flex: 0 0 350px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .hero-compact-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 450px;
    height: 180px;
    align-self: center;
  }
}

.hero-compact-left {
  flex: 1;
  min-width: 0;
}

.hero-compact .hero-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  margin-bottom: 2px;
  border-radius: 10px;
  background: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 198, 255, 0.15);
  color: var(--neon-blue);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-compact-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

.hero-compact-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  white-space: pre-line;
}

.hero-compact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.hero-compact-right .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  height: 36px;
  display: inline-flex;
  align-items: center;
}

.hero-compact-badges {
  display: flex;
  gap: 12px;
}

.hero-compact-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-compact-badges span i {
  width: 12px;
  height: 12px;
  color: var(--cyan);
}

/* ══════════════════════════════════════════════
   TOOL PAGE STYLES
══════════════════════════════════════════════ */
.tool-page-wrapper {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.tool-page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tool-page-header-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tool-page-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-page-icon i {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}

.tool-page-title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
}

.tool-page-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.tool-workspace-area {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.seo-content-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
  font-family: 'Outfit', sans-serif;
}

.seo-content-block p,
.seo-content-block li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.seo-content-block ul,
.seo-content-block ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — COMPACT HERO
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-compact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-compact-title {
    font-size: 1.3rem;
    white-space: normal;
  }
  .hero-compact-right {
    align-items: flex-start;
  }
  .tool-page-header-left {
    flex-direction: column;
  }
  .tool-workspace-area {
    padding: 20px;
  }
}

/* Tool Page 3-Column Layout for Ads & Center Content */
.tool-page-layout {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 30px;
  width: 100%;
}

.tool-main-content {
  flex: 1;
  max-width: 900px;
  min-width: 0;
}

.tool-ad-sidebar {
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.ad-container-skyscraper {
  width: 160px;
  height: 600px;
  background: rgba(13, 27, 42, 0.4);
  border: 1px dashed rgba(0, 198, 255, 0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-placeholder-text {
  position: absolute;
  top: 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

.ad-container-skyscraper::after {
  content: "Google AdSlot";
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1300px) {
  .tool-ad-sidebar {
    display: none;
  }
}
