/* ============================================
   MyDocer — Premium SaaS Design System v2.0
   A futuristic dark-mode design system with
   glassmorphism, neon gradients & micro-animations
   ============================================ */

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

/* ============================================
   1. Design Tokens
   ============================================ */
:root {
  /* Core Palette */
  --bg-primary: #050816;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --primary: #9333ea;
  --primary-light: #a855f7;
  --primary-dark: #7e22ce;
  --secondary: #2563eb;
  --secondary-light: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-hover: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(37,99,235,0.08));

  /* Glass Tokens */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-bg-light: rgba(255, 255, 255, 0.025);
  --glass-border: 1px solid var(--border);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease);
  --transition: 350ms var(--ease);
  --transition-slow: 500ms var(--ease);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #050816;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle dot grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(147,51,234,0.55); }

::selection { background: rgba(147,51,234,0.3); color: white; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

a[href="social-media-downloader.html"],
#card-downloader,
.cmd-item[data-link="social-media-downloader.html"] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ============================================
   3. Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============================================
   4. Ambient Background
   ============================================ */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Some pages currently place the navbar inside the ambient wrapper.
   Keep that markup usable until the templates are consolidated. */
.ambient:has(.navbar) {
  z-index: 1000;
  overflow: visible;
}

.ambient .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: auto;
}

.ambient:has(.navbar) .orb {
  z-index: -1;
}

body:has(.ambient .navbar) {
  padding-top: 72px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -15%;
  left: -5%;
  opacity: 0.07;
  animation: drift 25s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -10%;
  right: -5%;
  opacity: 0.05;
  animation: drift 30s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  opacity: 0.03;
  animation: drift 20s ease-in-out infinite alternate;
  animation-delay: -7s;
}

/* ============================================
   5. Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition-fast);
  will-change: transform;
}

.navbar.navbar-hidden,
header.navbar-hidden {
  transform: translateY(-110%) !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 10;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(147, 51, 234, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  z-index: 10;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Compatibility styles for legacy headers */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 10;
  color: var(--text-primary);
}

.logo i {
  color: var(--primary-light);
  font-size: 24px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  z-index: 10;
  display: none;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Also support legacy nav links without specific class inside header */
.nav-links a:not(.nav-link) {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:not(.nav-link):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:not(.nav-link).active {
  color: var(--text-primary);
  background: rgba(147, 51, 234, 0.12);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links:not(#navLinks) {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links:not(#navLinks).active {
    display: flex;
    animation: slideDown 0.3s var(--ease);
  }
}


/* ============================================
   6. Hero Section
   ============================================ */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-cta {
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 30px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================
   7. Section Header
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.section-header-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
}

/* ============================================
   8. Tools Grid
   ============================================ */
.tools-section {
  padding: 40px 0 100px;
  position: relative;
  z-index: 1;
}

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

/* ============================================
   9. Tool Card
   ============================================ */
.tool-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-xl);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(147, 51, 234, 0.08);
}

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

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-light);
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-card-icon {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
}

.tool-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.tool-card-btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   10. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-gradient {
  background: var(--gradient-main);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
}

.btn-gradient span,
.btn-gradient i {
  position: relative;
  z-index: 1;
}

/* Standalone legacy compatibility classes */
.btn-primary,
.btn-outline:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
  background: var(--gradient-hover);
}

.btn-outline:not(.btn) {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:not(.btn):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}


.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.35);
}

.btn-gradient span,
.btn-gradient i {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* ============================================
   11. Glass Panel
   ============================================ */
.glass-panel {
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* ============================================
   12. Page Header (Tool Pages)
   ============================================ */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.breadcrumb .sep {
  opacity: 0.4;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   13. Forms & Inputs
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-color {
  width: 48px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 3px;
}

.form-range {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

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

.form-inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-inline .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================
   14. Tool Page Layout
   ============================================ */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.tool-layout-full {
  grid-template-columns: 1fr;
}

.tool-controls {
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.tool-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.tool-preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.tool-preview-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.tool-preview-placeholder p {
  font-size: 14px;
}

/* ============================================
   15. Tabs
   ============================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab-btn.active {
  background: var(--gradient-main);
  color: white;
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.35s var(--ease);
}

/* ============================================
   16. Upload Zone
   ============================================ */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(147, 51, 234, 0.05);
}

.upload-zone-icon {
  font-size: 44px;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: var(--transition);
}

.upload-zone:hover .upload-zone-icon {
  color: var(--primary-light);
  transform: translateY(-4px);
}

.upload-zone-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.upload-zone-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ============================================
   17. Platform Cards (Downloader)
   ============================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--glass-bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.platform-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.platform-card:hover .platform-card-icon {
  transform: scale(1.1);
}

.platform-card-icon.youtube { background: rgba(255, 0, 0, 0.12); color: #ff0000; }
.platform-card-icon.instagram { background: rgba(225, 48, 108, 0.12); color: #e1306c; }
.platform-card-icon.facebook { background: rgba(24, 119, 242, 0.12); color: #1877f2; }
.platform-card-icon.pinterest { background: rgba(230, 0, 35, 0.12); color: #e60023; }
.platform-card-icon.tiktok { background: rgba(255, 0, 80, 0.12); color: #ff0050; }
.platform-card-icon.twitter { background: rgba(29, 161, 242, 0.12); color: #1da1f2; }

.platform-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.platform-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   18. Data Table
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.data-table input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: var(--transition-fast);
}

.data-table input:focus {
  border-color: var(--primary);
}

/* ============================================
   19. Badges & Pills
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-primary { background: rgba(147, 51, 234, 0.12); color: var(--primary-light); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.badge-danger { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }
.badge-info { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }

/* ============================================
   20. Result / Output Display
   ============================================ */
.result-display {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 15px;
  word-break: break-all;
  color: var(--accent-green);
  position: relative;
}

.result-display .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ============================================
   21. Progress Bar
   ============================================ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 0.5s var(--ease);
}

/* ============================================
   22. File Info Card
   ============================================ */
.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.file-info-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 20px;
  flex-shrink: 0;
}

.file-info-details {
  flex: 1;
  min-width: 0;
}

.file-info-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   23. Strength Meter (Password)
   ============================================ */
.strength-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-meter-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transition: var(--transition);
}

.strength-meter-bar.active { background: var(--accent-rose); }
.strength-meter[data-strength="2"] .strength-meter-bar.active { background: var(--accent-amber); }
.strength-meter[data-strength="3"] .strength-meter-bar.active { background: var(--accent-cyan); }
.strength-meter[data-strength="4"] .strength-meter-bar.active { background: var(--accent-green); }

/* ============================================
   24. Toast Notification
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s var(--ease);
  min-width: 280px;
}

.toast-success { border-left: 3px solid var(--accent-green); }
.toast-error { border-left: 3px solid var(--accent-rose); }
.toast-info { border-left: 3px solid var(--accent-cyan); }

/* ============================================
   25. Divider
   ============================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ============================================
   26. Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-main);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

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

/* ============================================
   27. Animations
   ============================================ */
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.05); }
  100% { transform: translate(-20px, 15px) scale(0.95); }
}

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

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.2); }
  50% { box-shadow: 0 0 40px rgba(147, 51, 234, 0.4); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animate-in utility */
.animate-in {
  animation: fadeInUp 0.6s var(--ease) both;
}

/* Stagger delays for grid children */
.stagger > *:nth-child(1) { animation-delay: 0.00s; }
.stagger > *:nth-child(2) { animation-delay: 0.04s; }
.stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.12s; }
.stagger > *:nth-child(5) { animation-delay: 0.16s; }
.stagger > *:nth-child(6) { animation-delay: 0.20s; }
.stagger > *:nth-child(7) { animation-delay: 0.24s; }
.stagger > *:nth-child(8) { animation-delay: 0.28s; }
.stagger > *:nth-child(9) { animation-delay: 0.32s; }
.stagger > *:nth-child(10) { animation-delay: 0.36s; }
.stagger > *:nth-child(11) { animation-delay: 0.40s; }
.stagger > *:nth-child(12) { animation-delay: 0.44s; }
.stagger > *:nth-child(13) { animation-delay: 0.48s; }
.stagger > *:nth-child(14) { animation-delay: 0.52s; }
.stagger > *:nth-child(15) { animation-delay: 0.56s; }
.stagger > *:nth-child(16) { animation-delay: 0.60s; }
.stagger > *:nth-child(17) { animation-delay: 0.64s; }
.stagger > *:nth-child(18) { animation-delay: 0.68s; }

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================
   28. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s var(--ease);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 48px 0 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    min-width: 100px;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .tool-card {
    padding: 22px;
  }

  .tool-card-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .tool-card-title {
    font-size: 15px;
  }

  .tool-card-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section-title {
    font-size: 20px;
  }

  .glass-panel,
  .tool-controls {
    padding: 24px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .tool-card {
    padding: 24px;
  }

  .glass-panel,
  .tool-controls {
    padding: 20px;
  }

  .hero {
    padding: 36px 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-value {
    font-size: 24px;
  }

  .page-header {
    padding: 32px 0 20px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 14px;
  }

  .upload-zone {
    padding: 32px 20px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ============================================
   29. Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.cmd {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

.cmd-box {
  width: 500px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.cmd-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: white;
  outline: none;
}

.cmd-list {
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.cmd-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #ccc;
  transition: 0.2s;
}

.cmd-item:hover {
  background: rgba(147,51,234,0.2);
  color: white;
}

/* FIX HORIZONTAL SCROLL ON MOBILE */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent pseudo elements from overflowing */
.hero::before {
  width: 100%;
  max-width: 900px;
}

/* Fix giant background orbs */
.ambient {
  overflow: hidden;
}

.orb {
  max-width: 100vw;
}

/* Prevent accidental overflow */
section,
div,
.container {
  max-width: 100%;
}

/* ============================================
   30. Premium Logo & Branding Styles
   ============================================ */
.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: none;
  transition: transform var(--transition-fast) var(--ease), filter var(--transition-fast) var(--ease);
  filter: drop-shadow(0 2px 8px rgba(147, 51, 234, 0.15));
}

.nav-logo:hover .logo-img,
.logo:hover .logo-img {
  transform: scale(1.04) translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.3));
}

.footer-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: none;
  transition: transform var(--transition-fast) var(--ease);
}

.footer-brand:hover .footer-logo-img {
  transform: scale(1.04);
}

/* Hide legacy elements when replaced by image logo */
.nav-logo-icon,
.footer-brand-icon {
  display: none !important;
}

/* ============================================
   31. Premium Hover & Visual Flare Effects
   ============================================ */
/* Glass reflection sweeping flare on tool cards */
.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 3;
  transition: none;
  opacity: 0;
}

.tool-card:hover::after {
  left: 180%;
  transition: all 1.2s var(--ease);
  opacity: 1;
}

/* Scale up and rotate card icons on hover */
.tool-card:hover .tool-card-icon {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
}

/* Metallic sweeping sheen for all buttons */
.btn-gradient,
.btn-primary,
.btn-outline,
.card-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::after,
.btn-primary::after,
.btn-outline::after,
.card-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 2;
  transition: none;
  opacity: 0;
}

.btn-gradient:hover::after,
.btn-primary:hover::after,
.btn-outline:hover::after,
.card-btn:hover::after {
  left: 180%;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

/* Glowing animation for active tab button */
.tab-btn.active {
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
  animation: pulse-glow 2s infinite alternate;
}

/* Floating animation for badge indicators */
.hero-badge {
  animation: badge-float 4s ease-in-out infinite alternate, fadeInUp 0.6s var(--ease) both;
}

@keyframes badge-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* ============================================
   32. Fine-Tuned Mobile Responsiveness & Polish
   ============================================ */
@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tool-card {
    padding: 20px !important;
  }

  .logo-img {
    height: 36px; /* Perfect balance on compact mobile screens */
  }

  .nav-inner {
    padding: 0 16px !important;
    height: 64px !important;
  }

  .navbar {
    height: 64px !important;
  }

  .nav-links {
    top: 64px !important;
  }

  /* Form spacing adjustments */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ============================================
   34. Responsive Alignment Fixes
   ============================================ */
@media (max-width: 900px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-inner,
  .nav-container {
    height: 64px;
  }

  .navbar,
  header {
    min-height: 64px;
  }

  body:has(.ambient .navbar) {
    padding-top: 64px;
  }

  .nav-links {
    top: 64px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .hero-stat {
    min-width: 0;
  }

  .tools-section {
    padding-bottom: 64px;
  }

}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-logo,
  .logo {
    min-width: 0;
    gap: 8px !important;
    font-size: 19px !important;
  }

  .logo-img {
    height: 34px;
  }

  .nav-toggle,
  .menu-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .nav-links {
    padding: 12px 16px 16px;
  }

  .nav-link,
  .nav-links a:not(.nav-link) {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-align: left;
  }

  .hero::before,
  .page-header::before {
    width: 100%;
    height: 260px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero p,
  .page-header p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-cta,
  .hero-cta .btn {
    width: 100%;
  }

  .tabs {
    gap: 8px;
    padding: 0 2px 8px !important;
    margin-bottom: 24px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .tab-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 14px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
    box-shadow: none !important;
    animation: none !important;
  }

  .tab-btn.active {
    border-color: rgba(168, 85, 247, 0.45) !important;
    background: rgba(147, 51, 234, 0.22);
    color: var(--text-primary);
  }

  .section-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .tools-grid,
  .platform-grid {
    grid-template-columns: 1fr !important;
  }

  .tool-card,
  .glass-panel,
  .tool-controls {
    border-radius: var(--radius-lg);
    padding: 18px !important;
  }

  .tool-card-desc {
    margin-bottom: 18px;
  }

  .btn,
  .btn-primary,
  .btn-outline:not(.btn) {
    width: 100%;
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
    white-space: normal;
    text-align: center;
  }

  .form-inline,
  .file-info {
    flex-direction: column;
    align-items: stretch;
  }

  .file-info {
    gap: 12px;
  }

  .file-info-icon {
    align-self: flex-start;
  }

  .upload-zone {
    padding: 28px 16px !important;
  }

  .upload-zone-icon {
    font-size: 36px;
  }

  .tool-preview {
    min-height: 260px;
    padding: 16px;
  }

  .tool-preview .glass-panel {
    min-height: 260px !important;
    padding: 12px !important;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cmd-box {
    width: calc(100vw - 32px);
  }

  .footer {
    padding: 32px 0;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .hero-stat-label {
    font-size: 11px;
    line-height: 1.25;
  }

  .nav-logo span,
  .logo span {
    font-size: 18px;
  }
}

/* ============================================
   33. Brand Alignment & Infinite Scrolling Overrides
   ============================================ */
/* Ensure absolute vertical centering of logo icon and brand text */
.nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  z-index: 10 !important;
  text-decoration: none !important;
}

.nav-logo span {
  display: flex !important;
  align-items: center !important;
}

.footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.footer-brand span {
  display: flex !important;
  align-items: center !important;
}

/* Professional Endless Testimonial Marquee Slider */
.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 12%, rgb(0,0,0) 88%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 12%, rgb(0,0,0) 88%, rgba(0,0,0,0) 100%);
  padding: 20px 0;
}

.marquee-content {
  display: flex;
  gap: 24px;
  animation: scroll-left 35s linear infinite;
  white-space: nowrap;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  white-space: normal;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.05);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 16px;
}

.testimonial-meta h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tool suite interactive animation tags */
.suite-category {
  display: none;
}

.suite-category.active {
  display: grid;
  animation: suite-slide-in 0.5s var(--ease) both;
}

@keyframes suite-slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Dashboard Search Bar
============================================ */

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.search-wrapper input {
  width: 100%;
  height: 64px;

  padding: 0 1.2rem 0 3.5rem;

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.04)
    );

  backdrop-filter: blur(18px);

  color: white;
  font-size: 1rem;
  font-weight: 500;

  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.search-wrapper input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-wrapper input:focus {
  outline: none;

  border-color: rgba(124, 92, 255, 0.55);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.06)
    );

  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.12),
    0 12px 40px rgba(124, 92, 255, 0.18);

  transform: translateY(-2px);
}

.search-wrapper i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);

  font-size: 1.25rem;
  color: rgba(255,255,255,0.55);

  pointer-events: none;
}

/* ============================================
   Dashboard Category Tabs
============================================ */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;

  margin: 1.5rem 0 2.5rem;
}

.tab-btn {
  position: relative;

  padding: 0.9rem 1.3rem;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.03)
    );

  color: rgba(255,255,255,0.72);

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  cursor: pointer;

  backdrop-filter: blur(14px);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */

.tab-btn:hover {
  transform: translateY(-2px);

  color: white;

  border-color: rgba(255,255,255,0.12);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.09),
      rgba(255,255,255,0.05)
    );
}

/* Active */

.tab-btn.active {
  color: white;

  border-color: rgba(124, 92, 255, 0.45);

  background:
    linear-gradient(
      180deg,
      rgba(124, 92, 255, 0.28),
      rgba(124, 92, 255, 0.16)
    );

  box-shadow:
    0 10px 30px rgba(124, 92, 255, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

