/* =============== CSS VARIABLES =============== */
:root {
  /* Light theme colors */
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #6366f1;
  --secondary: #06d6a0;
  --secondary-dark: #05c48f;
  --accent: #ef4444;
  
  /* Background colors */
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-light: #f1f5f9;
  --surface-dark: #e2e8f0;
  
  /* Text colors */
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Border colors */
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --border-dark: #94a3b8;
  
  /* Status colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --error-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* Card & UI elements */
  --card-bg: #ffffff;
  --hover-bg: #f8fafc;
  --active-bg: #f1f5f9;
  
  /* Shadows (lighter for light theme) */
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px 0 var(--shadow-color);
  --shadow: 0 1px 3px 0 var(--shadow-color), 0 1px 2px -1px var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
  
  /* Border radius */
  --radius-sm: 8px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* =============== BASE STYLES =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

section {
  padding: 80px 0;
}

/* =============== TYPOGRAPHY =============== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* =============== BUTTONS =============== */
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.secondary:hover {
  background: var(--surface-dark);
  border-color: var(--primary);
  color: var(--primary);
}

/* =============== HEADER =============== */
header {
  background-color: var(--background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

/* .logo {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
} */

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

.site-logo {
  height: 44px;   /* adjust size */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* =============== NEW HERO SECTION STYLES =============== */

/* Hero Container */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  position: relative;
}

.eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Feature Badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-size: 0.85rem;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -5px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--card-bg);
  border-radius: 9999px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.badge:hover {
  background: var(--hover-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Professional Dashboard */
.professional-dashboard {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  transform: scale(1);
  transition: var(--transition);
}

.dashboard-card:hover {
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.15);
}

.dashboard-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-inverse);
}

.dashboard-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.premium-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  backdrop-filter: blur(10px);
}

.dashboard-content {
  padding: 24px;
  background: var(--surface);
}

/* Remove underline + inherit color for hero grid links */
#heroToolGrid a.tool-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* keep your tool card styling */
  border-radius: 12px;
}

/* Optional hover styling */
#heroToolGrid a.tool-item:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* =============== TOOL CAROUSEL STYLES =============== */
.progress-indicator {
  margin-bottom: 20px;
  position: relative;
  height: 4px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.progress-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.progress-dot:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.tool-carousel {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 16px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.carousel-slide.slide-out {
  opacity: 0;
  transform: translateX(-20px);
}

/* Dashboard tool grid */
.dashboard-content .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;

  /* NEW: gives us subtle 3D feel */
  perspective: 900px;
}

.dashboard-content .tool-item {
  background: var(--card-bg);             /* same color as before */
  border: 1px solid var(--border);        /* same border color */
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 96px;

  /* animation / motion */
  transform: scale(0.9);
  opacity: 0;
  animation: zoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-style: preserve-3d;
  backface-visibility: hidden;

  /* transitions */
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    filter 0.3s ease;
}

/* soft inner glow on hover */
.dashboard-content .tool-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%,
    rgba(148, 163, 184, 0.25),
    transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* shine sweep */
.dashboard-content .tool-item::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
}

/* hover state – 3D tilt + depth */
.dashboard-content .tool-item:hover {
  transform: translateY(-6px) scale(0.98) rotateX(7deg) rotateY(-4deg);
  border-color: var(--primary);
  box-shadow:
    0 16px 35px rgba(15, 23, 42, 0.23),
    0 4px 10px rgba(15, 23, 42, 0.15);
  filter: brightness(1.02);
}

.dashboard-content .tool-item:hover::before {
  opacity: 1;
}

/* trigger shine animation only while hovering */
.dashboard-content .tool-item:hover::after {
  opacity: 1;
  animation: heroShine 0.6s ease-out forwards;
}

@keyframes heroShine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(260%);
    opacity: 0;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger the tool-item animations */
.carousel-slide.active .tool-item:nth-child(1) { animation-delay: 0.1s; }
.carousel-slide.active .tool-item:nth-child(2) { animation-delay: 0.2s; }
.carousel-slide.active .tool-item:nth-child(3) { animation-delay: 0.3s; }
.carousel-slide.active .tool-item:nth-child(4) { animation-delay: 0.4s; }
.carousel-slide.active .tool-item:nth-child(5) { animation-delay: 0.5s; }
.carousel-slide.active .tool-item:nth-child(6) { animation-delay: 0.6s; }

.dashboard-content .tool-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);  /* neutral, keeps palette */
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.3s ease;
}

.dashboard-content .tool-item:hover .tool-icon {
  transform: translateY(-3px) scale(1.18);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
  background: rgba(148, 163, 184, 0.18);
}

.dashboard-content .tool-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  max-width: 100%;
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
  letter-spacing: -0.01em;
}

.status-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
}

.status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Status bar slide counter */
.slide-counter {
  font-weight: 600;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-size: 0.85rem;
}

/* Pause on hover */
.tool-carousel:hover .progress-bar {
  animation-play-state: paused;
}

/* =============== TOOLS SECTION =============== */
.tools-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  margin: -40px 20px 0;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* =============== UPDATED CATEGORY TABS STYLES =============== */
.category-tabs-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.category-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  /* background: var(--surface-light); */
  /* border: 1px solid var(--border); */
  border-radius: 30px;
  /* box-shadow: var(--shadow-md); */
  /* gap: 1px; */
  /* max-width: 100%; */
  /* width: auto; */
  padding: 4px;
  position: relative;
  overflow: hidden;
}

/* Add subtle dividers between tabs */
.category-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.category-tab {
  padding: 16px 30px;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 26px;
  position: relative;
  white-space: nowrap;
  flex: 1;
  /* min-width: 90px; */
  text-align: center;
  gap: 8px;
  margin: 0 1px;
}

/* Add subtle right border for separation (except last tab) */
.category-tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  opacity: 0.6;
}

.category-tab > * {
  margin: 0 2px;
}

.category-tab i {
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab.active {
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
  flex: 1;
  cursor: initial;
  background: linear-gradient(90deg, rgb(240, 40, 253) 0%, rgb(254, 117, 85) 100%);
  box-shadow: 0 4px 8px 0 rgba(243, 56, 219, 0.3);
  z-index: 1;
  margin: 0 2px;
}

/* Remove divider when tab is active */
.category-tab.active::after {
  display: none;
}

.category-tab.active:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.category-tab.active i {
  transform: scale(1.1);
}

.category-tab:hover:not(.active) {
  background: var(--hover-bg);
  color: var(--primary);
  z-index: 1;
}

/* Add more space on hover */
.category-tab:hover:not(.active)::after {
  opacity: 0;
}

/* Alternative: Add shadow separation between inactive tabs */
.category-tab:not(.active) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 970px) {
  .category-tabs {
    width: 100%;
    max-width: 100%;
  }

  .category-tab {
    width: 100%;
    min-width: 100%;
    margin: 2px 0;
    border-radius: var(--radius);
  }
  
  .category-tab:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
  }
  
  .category-tab {
    width: 100%;
    min-width: 100%;
    margin: 2px 0;
    border-radius: var(--radius);
  }
  
  .category-tab.active {
    border-radius: var(--radius);
    margin: 2px 0;
  }
  
  .category-tab:not(:last-child)::after {
    display: none;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--card-bg);
  cursor: pointer;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 1px solid #F1F5F9;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 8px 0 rgba(243, 56, 219, 0.3);
  border-color: linear-gradient(90deg, rgb(240, 40, 253) 0%, rgb(254, 117, 85) 100%);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card .tool-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
  color: var(--primary);
}

.tool-card .tool-icon i {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.tool-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

a {
  text-decoration: none;
}

/* =============== TOOL INTERFACE =============== */
.tool-interface {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border);
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}

.tool-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.tool-header h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.tool-header p {
  color: var(--text-light);
}

.tool-body {
  margin-bottom: 24px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.status {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 500;
}

.status.success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.status.error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid var(--error);
}

/* =============== FEATURES SECTION =============== */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
}

/* =============== STATS SECTION =============== */
/* =============== STATS SECTION =============== */
.stats-section {
  background: linear-gradient(135deg, 
    rgba(249, 250, 251, 0.98) 0%, 
    rgba(243, 244, 246, 0.98) 100%);
  border-radius: var(--radius-2xl);
  margin: 0 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.6);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 32px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  animation: gradientFloat 15s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes gradientFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(2%, 2%) rotate(180deg);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.02),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.3) 0%, 
    rgba(139, 92, 246, 0.3) 100%);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0;
    filter: blur(8px);
  }
  50% {
    opacity: 0.2;
    filter: blur(12px);
  }
}

.stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 
    0 20px 60px rgba(99, 102, 241, 0.1),
    0 8px 32px rgba(139, 92, 246, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

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

.stat-card:hover::after {
  opacity: 0.3;
}

.stat-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  /* width: 88px; */
  /* height: 88px; */
}

/* REMOVED: Gradient text styling */
.stat-icon {
  font-size: 2.25rem;
  /* REMOVED: background: linear-gradient(135deg, rgb(99, 102, 241) 0%, rgb(139, 92, 246) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
  color: var(--primary); /* Added: Use original primary color */
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.08) 0%, 
    rgba(139, 92, 246, 0.08) 100%);
  border-radius: 24px;
  transform: rotate(45deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(55deg) scale(1.05);
  }
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(360deg);
  color: var(--primary-dark); /* Added: Darker color on hover */
}

.stat-card:hover .stat-icon-wrapper::before {
  transform: rotate(135deg) scale(1.1);
  animation-play-state: paused;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1;
  background: linear-gradient(135deg, 
    rgb(99, 102, 241) 0%, 
    rgb(139, 92, 246) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  position: relative;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 100%;
}

/* Counting animation */
.stat-number {
  animation: countReveal 1.2s ease-out;
}

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

.stat-card:hover .stat-number {
  animation: numberPulse 2s infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.stat-label {
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 200px;
  margin: 0 auto;
  position: relative;
  padding-top: 16px;
  opacity: 0.9;
  text-align: center;
}

.stat-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(99, 102, 241, 0.5) 50%, 
    transparent 100%);
  border-radius: 3px;
  transition: all 0.6s ease;
}

.stat-card:hover .stat-label::before {
  width: 100px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(139, 92, 246, 0.6) 50%, 
    transparent 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    gap: 32px;
  }
  
  .stat-card {
    padding: 40px 24px;
  }
  
  .stat-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .stat-icon {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .stats-section {
    margin: 0 16px;
    border-radius: var(--radius-xl);
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
  }
  
  .stat-card {
    padding: 36px 20px;
    border-radius: var(--radius-xl);
  }
  
  .stat-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  .stat-icon-wrapper {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
  }
  
  .stat-icon {
    font-size: 1.875rem;
  }
  
  .stat-number {
    font-size: 2.25rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .stat-card {
    padding: 40px 24px;
  }
}

/* =============== FAQ SECTION =============== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-light);
  display: none;
}

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

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

/* =============== FOOTER =============== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--text);
}

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}

/* =============== UTILITY CLASSES =============== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* =============== MODAL STYLES =============== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

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

.modal-header h3 {
  margin: 0;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--error);
}

.modal-body {
  padding: 20px;
  flex: 1;
  overflow: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* =============== IMAGE TOOL CSS CLASSES =============== */

/* Image Compress Tool */
.img-compress-preview-container,
.img-resize-preview-container,
.img-crop-preview-container,
.img-convert-preview-container,
.img-watermark-preview-container,
.img-bg-preview-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.img-compress-preview,
.img-resize-preview,
.img-crop-preview,
.img-convert-preview,
.img-watermark-preview,
.img-bg-preview {
  flex: 1;
  min-width: 280px;
  max-width: 100%;
  text-align: center;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.img-compress-preview img,
.img-resize-preview img,
.img-crop-preview img,
.img-convert-preview img,
.img-watermark-preview img,
.img-bg-preview img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface-light);
}

.img-compress-preview h4,
.img-resize-preview h4,
.img-crop-preview h4,
.img-convert-preview h4,
.img-watermark-preview h4,
.img-bg-preview h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 16px;
}

.img-compress-preview div {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* Image Crop Tool */
.img-crop-canvas-container,
.img-bg-canvas-container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
  margin-top: 16px;
  background: var(--surface);
}

.img-crop-canvas-container canvas,
.img-bg-canvas-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--surface-light);
}

.img-crop-overlay {
  position: absolute;
  border: 2px dashed var(--primary);
  background: rgba(79, 70, 229, 0.1);
  pointer-events: none;
}

/* Editor Containers */
.image-editor-container {
  max-width: 100%;
}

.upload-section {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.editor-controls {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.control-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: end;
}

.control-row:last-child {
  margin-bottom: 0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.control-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.control-group input[type="range"] {
  width: 100%;
}

.canvas-container {
  text-align: center;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.text-input-container {
  background: var(--info-light);
  padding: 16px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--info);
}

/* Collage Layouts */
.collage-layouts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.collage-layouts button {
  padding: 8px 12px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.collage-layouts button:hover {
  border-color: var(--primary);
}

.collage-layouts button.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.collage-thumb {
  transition: var(--transition);
}

.collage-thumb:hover {
  transform: scale(1.05);
}

/* Barcode Container */
.barcode-container {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.barcode-container canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--card-bg);
}

/* =============== WHATSAPP CHAT GENERATOR =============== */
.chat-generator-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.control-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.chat-messages-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.message-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.message-item.sent-message {
  border-left: 4px solid #25d366;
}

.message-item.received-message {
  border-left: 4px solid #0084ff;
}

.message-item:hover {
  background: var(--hover-bg);
  transform: translateX(4px);
}

.message-preview {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.message-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-actions {
  display: flex;
  gap: 8px;
}

.btn-edit, .btn-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: var(--text-light);
}

.btn-edit:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.chat-preview-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.whatsapp-preview {
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* WhatsApp UI Styles */
.wa-container {
  width: 100%;
  height: 600px;
  background-color: #111b21;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

.wa-header {
  background-color: #202c33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.wa-contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wa-back-arrow {
  color: #aebac1;
  font-size: 18px;
}

.wa-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #6a7175;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd4d6;
  font-size: 18px;
  position: relative;
}

.wa-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #53bdeb;
  border: 2px solid #202c33;
  border-radius: 50%;
}

.wa-contact-details h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #e9edef;
}

.wa-contact-details p {
  font-size: 13px;
  color: #8696a0;
}

.wa-header-icons {
  display: flex;
  gap: 24px;
  color: #aebac1;
  font-size: 18px;
}

.wa-chat-area {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23142129' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
}

.wa-message {
  max-width: 65%;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 7.5px;
  position: relative;
  font-size: 14.2px;
  line-height: 19px;
  word-wrap: break-word;
  color: #e9edef;
}

.wa-received {
  background-color: #202c33;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-sent {
  background-color: #005c4b;
  align-self: flex-end;
  margin-left: auto;
  border-top-right-radius: 0;
}

.wa-message-time {
  font-size: 11px;
  color: #8696a0;
  text-align: right;
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.wa-sent .wa-message-time {
  color: #a6b6b6;
}

.wa-input-area {
  background-color: #202c33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-input-container {
  flex: 1;
  background-color: #2a3942;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
}

.wa-message-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e9edef;
  font-size: 15px;
  padding: 0 8px;
}

.wa-message-input::placeholder {
  color: #8696a0;
}

.wa-input-icons {
  display: flex;
  gap: 15px;
  color: #8696a0;
  font-size: 20px;
}

.wa-send-button {
  background-color: #005c4b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9edef;
}

.wa-double-tick {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
  margin-left: 2px;
}

.wa-double-tick i {
  position: absolute;
  font-size: 12px;
  color: #53bdeb;
}

.wa-double-tick i:first-child {
  left: 0;
}

.wa-double-tick i:last-child {
  left: 6px;
}

/* Scrollbar Styles */
.wa-chat-area::-webkit-scrollbar {
  width: 6px;
}

.wa-chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.wa-chat-area::-webkit-scrollbar-thumb {
  background: #374248;
  border-radius: 3px;
}

.wa-chat-area::-webkit-scrollbar-thumb:hover {
  background: #455a64;
}

.messages-list::-webkit-scrollbar {
  width: 6px;
}

.messages-list::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: var(--radius);
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius);
}

.messages-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* =============== SIGNATURE CANVAS =============== */
#sigCanvas {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: crosshair;
  background: var(--card-bg);
  display: block;
  margin: 0 auto;
  touch-action: none;
}

/* =============== RESPONSIVE STYLES =============== */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .dashboard-card {
    max-width: 450px;
    margin: 0 auto;
    transform: scale(1);
  }
  
  .dashboard-content .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .control-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .control-group {
    flex: none;
  }
  
  .img-compress-preview-container,
  .img-resize-preview-container,
  .img-crop-preview-container,
  .img-convert-preview-container,
  .img-watermark-preview-container,
  .img-bg-preview-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .img-compress-preview,
  .img-resize-preview,
  .img-crop-preview,
  .img-convert-preview,
  .img-watermark-preview,
  .img-bg-preview {
    min-width: 100%;
    max-width: 100%;
  }
  
  .img-compress-preview img,
  .img-resize-preview img,
  .img-crop-preview img,
  .img-convert-preview img,
  .img-watermark-preview img,
  .img-bg-preview img {
    max-height: 250px;
  }
  
  .dashboard-content .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .dashboard-content .tool-item {
    padding: 14px 6px;
  }
  
  .dashboard-content .tool-icon {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }
  
  .dashboard-content .tool-name {
    font-size: 0.75rem;
  }
  
  .slide-counter {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .category-tabs {
    flex-direction: column;
  }
  
  .category-tab {
    text-align: center;
    justify-content: center;
  }
  
  .img-compress-preview img,
  .img-resize-preview img,
  .img-crop-preview img,
  .img-convert-preview img,
  .img-watermark-preview img,
  .img-bg-preview img {
    max-height: 200px;
  }
  
  .img-compress-preview,
  .img-resize-preview,
  .img-crop-preview,
  .img-convert-preview,
  .img-watermark-preview,
  .img-bg-preview {
    padding: 12px;
  }
  
  .modal {
    width: 95%;
    margin: 10px;
  }
  
  .hero-container {
    gap: 30px;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-card {
    transform: scale(0.95);
  }
  
  .dashboard-content .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .dashboard-content .tool-item {
    padding: 12px 4px;
  }
  
  .dashboard-content .tool-icon {
    font-size: 1.125rem;
    margin-bottom: 4px;
  }
  
  .dashboard-content .tool-name {
    font-size: 0.7rem;
  }
}

@keyframes zoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Used when hiding old tools */
.hero-tool-exit {
  animation: zoomOut 0.35s ease forwards;
}

/* Simple Collage Maker Styles */
.simple-collage-maker {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layout-selection {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.layout-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.layout-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--primary-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.layout-btn.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-color);
}

.photo-upload {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.photo-upload input[type="file"] {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    cursor: pointer;
}

.photo-count {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.collage-preview {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.collage-preview h4 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

#collage_preview {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pswrd_show_details {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  text-align: center;
  letter-spacing: 1.5px;
  word-break: break-all;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.pswrd_show_details:empty:before {
  content: 'Your password will appear here...';
  color: var(--text-muted);
  font-weight: 500;
  font-size: 16px;
  font-family: var(--font-sans);
  letter-spacing: normal;
}

.pswrd_show_details:not(:empty) {
  border-color: var(--primary-light);
  background: var(--surface-highlight);
}

/* Add a subtle gradient border on top when password is generated */
.pswrd_show_details:not(:empty):after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.7;
}

/* Dark mode adjustments */
[data-theme="dark"] .pswrd_show_details {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .pswrd_show_details:not(:empty) {
  border-color: var(--primary);
  background: var(--surface-dark-highlight);
}

/* Responsive */
@media (max-width: 768px) {
  .pswrd_show_details {
    font-size: 18px;
    padding: 14px 16px;
    min-height: 55px;
  }
  
  .pswrd_show_details:empty:before {
    font-size: 15px;
  }
}

/* =============== TOOLS SECTION + TOOL PANEL =============== */

.tools-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  margin: -40px 20px 0;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.tools-section .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.tools-section .section-title h2 {
  margin-bottom: 8px;
}

.tools-section .section-title p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* -------- Card that wraps search + tabs -------- */

.tools-section .tools-panel {
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.75rem 1.75rem;
  margin-bottom: 2rem;
}

.tools-section .tools-panel-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tools-section .tools-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tools-section .tools-panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* thin line between search and tabs */
.tools-section .tools-panel-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.5),
    transparent
  );
  margin: 1.1rem 0 0.9rem;
}

/* -------- Search bar inside card -------- */

.tools-section .category-top {
  display: flex;
  justify-content: center;
}

.tools-section .search-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface-light);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.tools-section .search-container:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.tools-section .search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25), var(--shadow-lg);
}

.tools-section .search-icon {
  position: absolute;
  left: 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.tools-section .search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.55rem 0.25rem 0.55rem 2.45rem;
  border-radius: inherit;
}

.tools-section .search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

/* -------- Tabs row inside card -------- */

.tools-section .category-tabs-wrapper {
  margin-top: 0.35rem;
  overflow-x: auto;
}

.tools-section .category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.tools-section .category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--surface-light);
  color: var(--text-light);
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.tools-section .category-tab i {
  font-size: 0.9rem;
}

/* keep your original gradient for selected tab */
.tools-section .category-tab.active {
  background: linear-gradient(
    90deg,
    rgb(240, 40, 253) 0%,
    rgb(254, 117, 85) 100%
  );
  border-color: transparent;
  color: var(--text-inverse);
  box-shadow: 0 4px 8px 0 rgba(243, 56, 219, 0.3);
  transform: translateY(-1px);
}

.tools-section .category-tab:hover:not(.active) {
  background: var(--hover-bg);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* -------- Tools grid -------- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* -------- Responsive tweaks -------- */

@media (max-width: 768px) {
  .tools-section {
    margin: -20px 16px 0;
    border-radius: var(--radius-lg);
  }

  .tools-section .tools-panel {
    padding: 1.15rem 1.1rem 1.3rem;
    border-radius: var(--radius-xl);
  }

  .tools-section .search-container {
    max-width: 100%;
  }

  .tools-section .category-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .tools-section .section-title {
    margin-bottom: 24px;
  }

  .tools-section .tools-panel-header {
    margin-bottom: 1rem;
  }

  .tools-section .tools-panel-title {
    font-size: 1.1rem;
  }

  .tools-section .category-tabs {
    justify-content: flex-start;
  }

  .tools-section .category-tab {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}
