/* =============================================
   ToolsHub Pri - Premium CSS Design System
   ============================================= */

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

/* === CSS Variables - Design Tokens === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #f0f0ff;
  --text-secondary: #9999bb;
  --text-muted: #666680;
  --accent-primary: #7c6dfa;
  --accent-secondary: #5eead4;
  --accent-gradient: linear-gradient(135deg, #7c6dfa, #5eead4);
  --accent-warm: linear-gradient(135deg, #f093fb, #f5576c);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,109,250,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* === Light Theme === */
[data-theme="light"] {
  --bg-primary: #f8f8ff;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0,0,0,0.03);
  --bg-card-hover: rgba(0,0,0,0.06);
  --border-color: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.2);
  --text-primary: #0a0a1a;
  --text-secondary: #44445a;
  --text-muted: #88889a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(124,109,250,0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === Animated Background === */
.bg-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,109,250,0.12), transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(94,234,212,0.1), transparent);
  top: 50%; right: -150px;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,147,251,0.1), transparent);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === Container === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border-color);
}
[data-theme="light"] .header.scrolled {
  background: rgba(248,248,255,0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}
.logo-accent { color: var(--accent-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124,109,250,0.12);
  border: 1px solid rgba(124,109,250,0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a89cf8;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #7c6dfa;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* === Search Box === */
.search-wrapper {
  animation: fadeInUp 0.8s ease 0.3s both;
  margin-bottom: 48px;
}
.search-box {
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  gap: 12px;
  transition: all var(--transition);
  backdrop-filter: blur(20px);
}
.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(124,109,250,0.15), var(--shadow-glow);
}
.search-icon { color: var(--text-muted); font-size: 18px; flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: calc(var(--radius-xl) - 8px);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--font-primary);
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,109,250,0.4);
}

/* === Hero Stats === */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border-color);
}

/* === Scroll Indicator === */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 6px; height: 36px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--accent-primary);
  border-radius: 4px;
  animation: scroll-down 2s infinite;
}
@keyframes scroll-down {
  0% { top: 4px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ===========================
   SEARCH RESULTS
   =========================== */
.search-results-section {
  padding: 40px 0 0;
}
.search-results-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.search-results-title span { color: var(--accent-primary); }

/* ===========================
   TOOLS SECTIONS
   =========================== */
.main-content { padding: 0 0 100px; }

.tools-section {
  padding: 80px 0 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.section-badge {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.section-badge { background: rgba(124,109,250,0.15); color: #a89cf8; border: 1px solid rgba(124,109,250,0.2); }
.section-badge.dev { background: rgba(57,106,252,0.15); color: #7a9fff; border: 1px solid rgba(57,106,252,0.2); }
.section-badge.img { background: rgba(240,147,251,0.15); color: #f0b9ff; border: 1px solid rgba(240,147,251,0.2); }
.section-badge.seo { background: rgba(247,151,30,0.15); color: #ffc96e; border: 1px solid rgba(247,151,30,0.2); }

/* === Tools Grid === */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* === Tool Card === */
.tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  group: true;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.tool-card:hover::before { opacity: 0.04; }

.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-3deg); }

.tool-info { flex: 1; position: relative; z-index: 1; }
.tool-info h3 {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.tool-card:hover .tool-info h3 { color: white; }
.tool-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--transition);
}
.tool-card:hover .tool-info p { color: rgba(255,255,255,0.7); }

.tool-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(252,74,74,0.15);
  color: #ff8a8a;
  border: 1px solid rgba(252,74,74,0.2);
  z-index: 1;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  margin-top: 100px;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(124,109,250,0.1), rgba(94,234,212,0.1));
  border: 1px solid rgba(124,109,250,0.2);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(124,109,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: rocket-float 3s ease-in-out infinite;
}
@keyframes rocket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,109,250,0.4);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-primary); }

/* ===========================
   INDIVIDUAL TOOL PAGE STYLES
   =========================== */
.tool-page-wrapper {
  min-height: 100vh;
  padding-top: var(--nav-height);
}
.tool-page-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.tool-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.tool-page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  justify-content: center;
}
.breadcrumb a { color: var(--accent-primary); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { color: var(--text-muted); }

.tool-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}
.tool-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
}

/* Textarea & Input Styles */
.tool-textarea, .tool-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition);
  outline: none;
  line-height: 1.6;
}
.tool-textarea:focus, .tool-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.1);
}
.tool-textarea { min-height: 200px; }
.tool-input { padding: 14px 20px; }

/* Labels */
.tool-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.tool-group { margin-bottom: 24px; }

/* Buttons */
.tool-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tool-btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.tool-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,109,250,0.35);
}
.tool-btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.tool-btn-secondary:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.tool-btn-danger {
  background: rgba(255,74,74,0.1);
  color: #ff8a8a;
  border: 1.5px solid rgba(255,74,74,0.2);
}
.tool-btn-danger:hover { background: rgba(255,74,74,0.2); transform: translateY(-2px); }

.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Result Box */
.result-box {
  background: rgba(124,109,250,0.06);
  border: 1.5px solid rgba(124,109,250,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 28px;
}
.result-box-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-box pre {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

/* Stats/Info Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideInRight 0.4s ease, slideOutRight 0.4s ease 2.6s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}
.toast.success { border-color: #43e97b; color: #43e97b; }
.toast.error { border-color: #f5576c; color: #f5576c; }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* Animations */
@keyframes fadeInUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInDown {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; inset: var(--nav-height) 0 0; background: var(--bg-secondary); padding: 24px; flex-direction: column; gap: 8px; z-index: 999; border-top: 1px solid var(--border-color); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 20px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tool-card-main { padding: 24px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p, .footer-social { max-width: 100%; }
  .cta-section { padding: 48px 20px; }
}
