/* =====================================================
   MODOCHEAT — DESIGN SYSTEM
   ===================================================== */

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --bg-3: #141428;
  --surface: #1a1a2e;
  --surface-2: #1e1e35;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);

  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --teal: #14b8a6;
  --cyan: #06b6d4;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(0, 0, 0, 0.07);
  --border-2: rgba(0, 0, 0, 0.12);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 60px);
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 4px 8px;
}

.logo-accent {
  color: var(--accent-2);
}

/* Main Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}



.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.05);
}

.nav-link[href*="#"]:hover::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-theme:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
}

.btn-menu.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-menu.open span:nth-child(2) {
  opacity: 0;
}

.btn-menu.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.18);
  top: -100px;
  left: -100px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.14);
  bottom: -50px;
  right: -100px;
  animation-delay: -3s;
}

@keyframes glow-pulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.15) translate(30px, 20px);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fade-up 0.6s 0.1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--pink) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.6s 0.2s ease both;
}

/* =====================================================
   SEARCH
   ===================================================== */
.search-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0 auto 48px;
  animation: fade-up 0.6s 0.3s ease both;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  height: 58px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 50;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

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

.search-result-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.search-result-label {
  font-size: 14px;
  font-weight: 500;
}

.search-result-cat {
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
}

/* =====================================================
   HERO STATS
   ===================================================== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fade-up 0.6s 0.4s ease both;
}

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

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-2);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-2);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-2);
}

/* =====================================================
   TOOLS GRID
   ===================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

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

/* =====================================================
   TOOL CARD
   ===================================================== */
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--card-r, 99), var(--card-g, 102), var(--card-b, 241), 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.tool-card:active {
  transform: translateY(0);
}

.tool-card-featured {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.tool-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color) 12%, transparent);
  color: var(--color);
  flex-shrink: 0;
  transition: all var(--transition);
  border: 1px solid color-mix(in srgb, var(--color) 20%, transparent);
}

.tool-card-featured .tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.tool-card:hover .tool-card-icon {
  background: color-mix(in srgb, var(--color) 20%, transparent);
  transform: scale(1.1);
}

.tool-card-body {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

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

.tool-card-featured .tool-desc {
  font-size: 13px;
}

.tool-card-arrow {
  color: var(--text-3);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
  flex-shrink: 0;
}

.tool-card:hover .tool-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  gap: 60px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 280px;
  line-height: 1.6;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

.footer-badges {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(99, 102, 241, 0.2);
  letter-spacing: 0.3px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fade-up 0.5s ease both;
}

/* Intersection observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for tool cards */
.tools-grid .tool-card:nth-child(1) {
  --delay: 0ms;
}

.tools-grid .tool-card:nth-child(2) {
  --delay: 50ms;
}

.tools-grid .tool-card:nth-child(3) {
  --delay: 100ms;
}

.tools-grid .tool-card:nth-child(4) {
  --delay: 150ms;
}

.tools-grid .tool-card:nth-child(5) {
  --delay: 200ms;
}

.tools-grid .tool-card:nth-child(6) {
  --delay: 250ms;
}

.tools-grid .tool-card:nth-child(7) {
  --delay: 300ms;
}

.tools-grid .tool-card:nth-child(8) {
  --delay: 350ms;
}

/* =====================================================
   TOOL PAGE SHARED STYLES
   ===================================================== */
.tool-page {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--bg);
}

.tool-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-3);
}

.tool-breadcrumb a {
  color: var(--text-3);
  transition: color var(--transition);
}

.tool-breadcrumb a:hover {
  color: var(--accent-2);
}

.tool-breadcrumb-sep {
  color: var(--border-2);
}

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

.tool-page-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--color) 12%, transparent);
  color: var(--color);
  border: 1px solid color-mix(in srgb, var(--color) 20%, transparent);
}

.tool-page-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.tool-page-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Tool Box (main content area) */
.tool-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.tool-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 14px;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

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

/* Checkbox / Toggle */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-item:hover {
  border-color: var(--border-2);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border-2);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle input:checked+.toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

/* Result Box */
.result-box {
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  min-height: 56px;
  display: flex;
  align-items: center;
  word-break: break-all;
  position: relative;
  transition: all var(--transition);
}

.result-box.has-result {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.04);
}

.result-box.valid {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
  color: var(--green);
}

.result-box.invalid {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
  color: var(--red);
}

.result-copy-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text-3);
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-copy-btn:hover {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border-2);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

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

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tags / Options */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.option-tag {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.option-tag:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.option-tag.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
  color: var(--accent-2);
}

/* Password strength */
.strength-meter {
  margin-top: 12px;
}

.strength-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: all var(--transition-slow);
}

.strength-label {
  font-size: 12px;
  font-weight: 500;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .btn-menu {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    font-size: 16px;
  }

  .dropdown-content {
    position: static;
    transform: none;
    display: block;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    opacity: 1;
    margin-top: 8px;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-content a {
    font-size: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {

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

  .stat-num {
    font-size: 22px;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .tool-page-header {
    flex-direction: column;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .search-kbd {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 4px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--surface-2);
}

/* =====================================================
   SELECTION
   ===================================================== */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text);
}

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

.toast {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in 0.3s ease;
  max-width: 320px;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =====================================================
   BACK BUTTON
   ===================================================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-3);
  transition: color var(--transition);
  padding: 4px 0;
}

.back-btn:hover {
  color: var(--accent-2);
}

/* =====================================================
   CARDS GRID (resultado em lista)
   ===================================================== */
.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  transition: all var(--transition);
}

.result-list-item:hover {
  border-color: var(--border-2);
  background: var(--surface);
}

.copy-item-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.copy-item-btn:hover {
  color: var(--accent-2);
}

/* info box */
.info-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 24px;
}

.info-box strong {
  color: var(--text);
}

/* =====================================================
   MONETIZAÇÃO — Carbon Ads
   ===================================================== */
#carbonads {
  display: flex;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font);
  margin: 0 auto 32px;
  transition: border-color var(--transition);
}

#carbonads:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

#carbonads a {
  color: var(--text);
  text-decoration: none;
}

.carbon-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  position: relative;
}

.carbon-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.carbon-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  flex: 1;
}

.carbon-text strong {
  color: var(--text);
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.carbon-poweredby {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Wrapper do Carbon na tool-page */
.ad-carbon-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

/* =====================================================
   MONETIZAÇÃO — Botão Flutuante de Apoio
   ===================================================== */
.support-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff5f5f 0%, #ff914d 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 95, 95, 0.4);
  transition: all var(--transition);
  text-decoration: none;
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
}

.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 95, 95, 0.5);
  max-width: 180px;
}

.support-fab-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.support-fab-text {
  font-size: 13px;
  overflow: hidden;
}

.support-fab.collapsed .support-fab-text {
  display: none;
}

.support-fab.collapsed {
  padding: 12px;
  max-width: 46px;
}

/* =====================================================
   MONETIZAÇÃO — Seção Sponsors (Index)
   ===================================================== */
.sponsors-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sponsors-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.sponsor-logo:hover {
  border-color: var(--border-2);
  color: var(--text-2);
  transform: translateY(-1px);
}

.sponsor-logo-icon {
  font-size: 18px;
}

.sponsors-become {
  font-size: 13px;
  color: var(--text-3);
}

.sponsors-become a {
  color: var(--accent-2);
  font-weight: 600;
  transition: color var(--transition);
}

.sponsors-become a:hover {
  color: var(--accent);
}

/* =====================================================
   MONETIZAÇÃO — Banner entre seções
   ===================================================== */
.promo-banner {
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.08) 0%,
      rgba(139, 92, 246, 0.08) 50%,
      rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.promo-banner-content {
  flex: 1;
}

.promo-banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.promo-banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.promo-banner-desc {
  font-size: 13px;
  color: var(--text-2);
}

.promo-disclosure {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Tool page ad spot (after tool box) */
.tool-ad-slot {
  margin: 24px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.tool-ad-slot:hover {
  border-color: var(--border-2);
}

.tool-ad-slot-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-3);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.tool-ad-slot-content {
  flex: 1;
}

.tool-ad-slot-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tool-ad-slot-desc {
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .support-fab {
    bottom: 20px;
    right: 20px;
  }

  .online-box {
    bottom: 20px;
    left: 20px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .promo-banner {
    padding: 20px;
  }

  .sponsors-grid {
    gap: 16px;
  }
}

/* =====================================================
   BOX USUÁRIOS ONLINE
   ===================================================== */
.online-box {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  border: 1px solid var(--border-2);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
  cursor: default;
  pointer-events: auto;
}

[data-theme="light"] .online-box {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.online-box:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.online-dot-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.online-dot-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: online-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes online-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.online-count {
  font-family: var(--mono);
  color: var(--accent-2);
  font-weight: 700;
}

/* =====================================================
   DASHBOARD DE ECONOMIA (SAVINGS)
   ===================================================== */
.savings-dash {
  position: fixed;
  bottom: 28px;
  right: 84px;
  /* Oposto ao Online Box */
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.savings-dash-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.savings-dash-toggle:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.savings-dash-icon {
  font-size: 16px;
  animation: float 2s ease-in-out infinite;
}

.savings-dash-content {
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.savings-dash.open .savings-dash-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.savings-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.savings-dash-header h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.dash-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  cursor: pointer;
}

.savings-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  background: var(--bg-2);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.stat-icon {
  font-size: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-2);
  font-family: var(--mono);
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
}

.dash-footer {
  font-size: 11px;
  text-align: center;
  color: var(--text-3);
  margin-top: 10px;
}

/* Active Favorite Button */
#favBtn.active {
  background: rgba(234, 179, 8, 0.15);
  border-color: #eab308;
  color: #eab308;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 991px) {
  .savings-dash {
    display: none;
  }
}

/* =====================================================
   MOBILE STICKY TAGS NAV
   ===================================================== */
.mobile-tags-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(10, 10, 15, 0.85);
  /* Correspondendo ao header */
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: transform 0.3s ease;
}

[data-theme="light"] .mobile-tags-nav {
  background: rgba(248, 250, 252, 0.88);
}

.mobile-tags-inner {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-tags-inner::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-pill:active {
  transform: scale(0.95);
}

.tag-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

@media (max-width: 991px) {
  .mobile-tags-nav {
    display: block;
  }

  /* Ajusta o padding para compensar a barra de tags fixa */
  .hero {
    padding-top: calc(var(--header-h) + 56px);
  }
}

/* Esconde tags ao dar scroll pra baixo se quiser, mas por enquanto mantemos fixo */