/* ============================================================
   ToolKit Pro — style.css
   Design system moderno, responsivo, com dark mode
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Brand colors */
  --primary:        #6366f1;
  --primary-dark:   #4f46e5;
  --primary-light:  #818cf8;
  --secondary:      #8b5cf6;
  --accent:         #06b6d4;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  /* Light theme */
  --bg:             #f8fafc;
  --bg-card:        #ffffff;
  --bg-elevated:    #f1f5f9;
  --bg-header:      rgba(255,255,255,0.92);
  --text:           #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --input-bg:       #ffffff;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
  --shadow-primary: 0 4px 16px rgba(99,102,241,.30);

  /* Radii */
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Typography */
  --font:      system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', Consolas, monospace;

  /* Transitions */
  --t:    all 0.18s ease;
  --t-md: all 0.28s ease;
  --t-lg: all 0.38s ease;

  /* Layout */
  --header-h: 64px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:           #0f172a;
  --bg-card:      #1e293b;
  --bg-elevated:  #263348;
  --bg-header:    rgba(15,23,42,0.94);
  --text:         #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted:   #94a3b8;
  --text-light:   #475569;
  --border:       #334155;
  --border-light: #1e293b;
  --input-bg:     #0f172a;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.3),  0 1px 3px rgba(0,0,0,.2);
  --shadow:     0 2px 8px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.2);
  --shadow-md:  0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg:  0 10px 24px rgba(0,0,0,.35), 0 4px 8px rgba(0,0,0,.2);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.4), 0 8px 16px rgba(0,0,0,.2);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; }
button { font-family: var(--font); }
img, svg { display: block; }

.hidden { display: none !important; }

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

/* ============================================================
   3. HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--t);
}
.logo:hover { opacity: 0.85; }

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.logo-accent { color: var(--primary); }

/* Desktop Nav */
.nav-desktop {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: var(--t);
}
.nav-link:hover { color: var(--primary); background: rgba(99,102,241,.08); }

/* Icon buttons */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
  line-height: 1;
}
.btn-icon:hover { background: var(--bg-elevated); color: var(--primary); }

/* Theme toggle icons */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* Mobile menu */
.header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.btn-menu { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; }
.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--t-md);
}

/* Mobile Nav panel */
.nav-mobile {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem 1rem;
  animation: slideDown 0.2s ease;
}
.nav-mobile.open { display: block; }
.nav-link-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--t);
}
.nav-link-mobile:hover { background: var(--bg-elevated); color: var(--primary); }
.nav-m-icon { font-size: 1.1rem; }

/* ============================================================
   4. SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  animation: fadeIn 0.15s ease;
}
.search-overlay.open { display: flex; }

.search-modal {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 580px;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-modal-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  font-family: var(--font);
}
.search-modal-input::placeholder { color: var(--text-light); }

.search-modal-results { max-height: 380px; overflow-y: auto; padding: 0.5rem; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--t);
}
.search-result-item:hover { background: var(--bg-elevated); }

.sri-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.sri-name { font-size: 0.9rem; font-weight: 600; color: var(--text); display: block; }
.sri-desc { font-size: 0.78rem; color: var(--text-muted); }

.search-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 45%, #0891b2 100%);
}

/* Animated background shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: white;
  animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -80px; animation-delay: 0s; }
.shape-2 { width: 280px; height: 280px; bottom: -60px; left: -60px; animation-delay: 3s; }
.shape-3 { width: 180px; height: 180px; top: 40%; left: 55%; animation-delay: 1.5s; }

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 680px;
  margin: 0 auto;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.5s ease;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.5s ease 0.2s both;
}

/* Hero search bar */
.hero-search-wrap {
  position: relative;
  z-index: 10;
  animation: fadeInUp 0.5s ease 0.3s both;
  margin-bottom: 1.5rem;
}

.hero-search-box {
  position: relative;
  z-index: 100;
  max-width: 540px;
  margin: 0 auto;
}
.hs-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.hero-search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  border: none;
  border-radius: var(--r-xl);
  font-size: 1rem;
  font-family: var(--font);
  background: rgba(255,255,255,.96);
  color: #0f172a;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  outline: none;
  transition: var(--t-md);
}
.hero-search-box input:focus {
  box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.35);
}

/* Hero suggestions dropdown */
.hero-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--r);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  overflow: hidden;
  display: none;
}
.hero-suggestions.open { display: block; }
.hs-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #0f172a;
  font-size: 0.9rem;
  transition: var(--t);
}
.hs-item:hover { background: #f1f5f9; }
.hs-item-icon { font-size: 1.2rem; }
.hs-item-name { font-weight: 600; }
.hs-item-cat { font-size: 0.75rem; color: #64748b; margin-left: auto; }

/* Hero tags */
.hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  animation: fadeInUp 0.5s ease 0.4s both;
}
.hero-tag {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
}
.hero-tag:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.4);
}

/* ============================================================
   6. AD PLACEHOLDERS
   ============================================================ */
.adsense-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ad-top         { height: 90px;  margin: 1.5rem 0; }
.ad-mid         { height: 120px; margin: 0; }
.ad-tool-bottom { height: 90px;  margin-top: 1.5rem; }
.ad-footer      { height: 90px;  margin-bottom: 2.5rem; }
.ad-sidebar     { height: 250px; margin-bottom: 1.5rem; }

/* ============================================================
   7. SECTION LAYOUTS
   ============================================================ */
.section { padding: 3rem 0; }

.section-intent   { background: var(--bg); }
.section-popular  { background: var(--bg-card); }
.section-all      { background: var(--bg); }
.section-recommended { background: var(--bg-card); }
.section-seo      { background: var(--bg); border-top: 1px solid var(--border); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.title-icon { display: inline; }
.section-subtitle { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   8. INTENT CARDS
   ============================================================ */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.intent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  transition: var(--t-md);
  box-shadow: var(--shadow-sm);
}
.intent-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1), var(--shadow-md);
  transform: translateY(-2px);
}
.intent-icon {
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.1));
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.intent-label { font-size: 0.88rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 0.15rem; }
.intent-sub   { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   9. TOOL CARDS (HOME)
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.tc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  cursor: pointer;
  transition: var(--t-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.tc::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--t);
}
.tc:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08), var(--shadow-md);
  transform: translateY(-3px);
}
.tc:hover::after { opacity: 1; }

.tc-icon { font-size: 1.75rem; margin-bottom: 0.875rem; }
.tc-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-full);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}
.tc-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.tc-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; flex: 1; margin-bottom: 0.875rem; }

.tc-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.cat-financas   { background: rgba(16,185,129,.1);  color: #059669; }
.cat-conversores{ background: rgba(6,182,212,.1);   color: #0891b2; }
.cat-saude      { background: rgba(245,158,11,.1);  color: #d97706; }
.cat-utilidades { background: rgba(99,102,241,.1);  color: #6366f1; }

/* ============================================================
   10. CATEGORY TABS
   ============================================================ */
.cat-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cat-tab {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

/* ============================================================
   11. RECOMMENDED GRID
   ============================================================ */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
}
.rec-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t-md);
  box-shadow: var(--shadow-sm);
}
.rec-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.rec-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.rec-name { font-size: 0.875rem; font-weight: 600; color: var(--text); display: block; }
.rec-desc { font-size: 0.78rem; color: var(--text-muted); }
.rec-arrow { margin-left: auto; color: var(--text-light); flex-shrink: 0; }

/* ============================================================
   12. SEO BLOCK
   ============================================================ */
.seo-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.seo-block h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}
.seo-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================================
   13. TOOL VIEW
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  padding-bottom: 3rem;
  align-items: start;
}

/* Tool card */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.25rem;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.th-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12));
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.th-name { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 0.35rem; }
.th-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.th-cat  { margin-top: 0.5rem; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

label.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--t);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-input::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

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

/* Range slider */
.range-wrap { position: relative; }
.range-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.range-val { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--primary);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(99,102,241,.4);
}

/* Checkboxes */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.875rem; color: var(--text-secondary); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-md);
  box-shadow: var(--shadow-primary);
  font-family: var(--font);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
}
.btn-secondary:hover { background: var(--border); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.45rem 0.875rem;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
}
.btn-copy:hover { background: var(--primary); color: white; }
.btn-copy.copied { background: var(--success); border-color: var(--success); color: white; }

.tool-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
}

/* ============================================================
   14. RESULT BOXES
   ============================================================ */
.result-box {
  background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(139,92,246,.05));
  border: 1.5px solid rgba(99,102,241,.2);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-top: 1.75rem;
  animation: fadeInUp 0.3s ease;
}
.result-box.success {
  background: linear-gradient(135deg, rgba(16,185,129,.05), rgba(5,150,105,.05));
  border-color: rgba(16,185,129,.2);
}

.result-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; }
.result-value { font-size: 2.25rem; font-weight: 900; color: var(--primary); line-height: 1.1; margin-bottom: 0.35rem; }
.result-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-top: 1rem;
}
.result-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.result-item-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.result-item-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* Info banner */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(6,182,212,.07);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.info-icon { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   15. TOOL-SPECIFIC COMPONENTS
   ============================================================ */

/* Password */
.password-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  margin: 1.5rem 0 0.875rem;
}
.password-text { flex: 1; font-family: var(--font-mono); font-size: 1rem; color: var(--text); word-break: break-all; }

.strength-wrap { margin-top: 0.75rem; }
.strength-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; }
.strength-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 3px; transition: width 0.35s ease, background 0.35s ease; }
.s-weak      .strength-fill { width: 25%; background: #ef4444; }
.s-medium    .strength-fill { width: 50%; background: #f59e0b; }
.s-strong    .strength-fill { width: 75%; background: #10b981; }
.s-very-strong .strength-fill { width: 100%; background: #06b6d4; }
.strength-text { font-size: 0.78rem; font-weight: 600; margin-top: 0.3rem; }
.s-weak .strength-text      { color: #ef4444; }
.s-medium .strength-text    { color: #f59e0b; }
.s-strong .strength-text    { color: #10b981; }
.s-very-strong .strength-text { color: #06b6d4; }

/* Word counter stats */
.word-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.wstat { text-align: center; padding: 1rem 0.5rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-sm); }
.wstat-val { font-size: 1.75rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; margin-bottom: 0.25rem; }
.wstat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* IMC */
.imc-result-card {
  border-radius: var(--r);
  padding: 1.5rem;
  margin-top: 1.75rem;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}
.imc-value { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 0.25rem; }
.imc-class { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.imc-scale { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 0.5rem; }
.imc-seg { flex: 1; }
.imc-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); }
.imc-pointer-wrap { position: relative; height: 18px; margin-bottom: 0.25rem; }
.imc-pointer {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--text);
  transition: left 0.4s ease;
}

/* Age calculator */
.age-display { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; animation: fadeInUp 0.3s ease; }
.age-unit { text-align: center; padding: 1.25rem 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); }
.age-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); display: block; line-height: 1; margin-bottom: 0.25rem; }
.age-lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Salary breakdown */
.salary-table { margin-top: 1.75rem; animation: fadeInUp 0.3s ease; }
.salary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; }
.salary-row:last-child { border-bottom: none; }
.salary-row-label { color: var(--text-muted); }
.salary-row-val { font-weight: 600; }
.salary-row.deduct .salary-row-val { color: var(--danger); }
.salary-row.total-row { padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--primary); border-bottom: none; }
.salary-row.total-row .salary-row-label { color: var(--text); font-weight: 700; font-size: 1rem; }
.salary-row.total-row .salary-row-val { color: var(--primary); font-size: 1.25rem; font-weight: 900; }

/* Currency rates */
.rates-note { font-size: 0.75rem; color: var(--text-light); margin-top: 0.75rem; font-style: italic; }
.rates-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.rate-pill { font-size: 0.72rem; padding: 0.25rem 0.6rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); }

/* Measure categories */
.measure-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.measure-tab {
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.measure-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Financing table */
.fin-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.82rem; }
.fin-table th { background: var(--bg-elevated); padding: 0.6rem 0.75rem; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.fin-table tr:last-child td { border-bottom: none; }
.fin-table-wrap { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-sm); margin-top: 1rem; }

/* Compound table */
.compound-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.compound-table th { background: var(--bg-elevated); padding: 0.6rem 0.75rem; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.compound-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-light); }
.compound-table td:last-child { color: var(--primary); font-weight: 600; }

/* ============================================================
   16. RELATED TOOLS (SIDEBAR)
   ============================================================ */
.related-panel h3 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--t);
  border: 1px solid transparent;
  margin-bottom: 0.375rem;
}
.related-item:hover { background: var(--bg-elevated); border-color: var(--border); }
.related-item-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.related-item-name { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; }
.related-item-cat  { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; max-width: 220px; line-height: 1.65; }
.footer-col h4 { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: var(--t); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; font-size: 0.78rem; color: var(--text-light); }

/* ============================================================
   18. ANIMATIONS
   ============================================================ */
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInDown{ from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes float     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:.4} }

.animate-in { animation: fadeInUp 0.3s ease; }

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .btn-menu    { display: flex; }

  .intent-grid  { grid-template-columns: 1fr 1fr; }
  .tools-grid   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .grid-featured{ grid-template-columns: 1fr 1fr; }
  .rec-grid     { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .form-row-3   { grid-template-columns: 1fr; }
  .word-stats   { grid-template-columns: repeat(2, 1fr); }
  .result-grid  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }

  .hero         { padding: 3.5rem 0 3rem; }
  .hero-title   { letter-spacing: -0.01em; }
  .section      { padding: 2rem 0; }

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

@media (max-width: 520px) {
  .intent-grid   { grid-template-columns: 1fr; }
  .grid-featured { grid-template-columns: 1fr; }
  .age-display   { grid-template-columns: 1fr 1fr 1fr; }
  .age-num       { font-size: 1.75rem; }
  .footer-grid   { grid-template-columns: 1fr; }
  .word-stats    { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .tool-card     { padding: 1.25rem; }
  .result-value  { font-size: 1.75rem; }
  .hero-subtitle { display: none; }
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   TRABALHISTA — abas inline
   ============================================================ */
#trab-tabs { margin-bottom: 1.5rem; }
#trab-conteudo { animation: fadeInUp 0.2s ease; }

/* ============================================================
   TRANSPOSITOR DE ACORDES
   ============================================================ */
#ac-res .result-box > div[style*="grid"] {
  gap: 1.5rem;
}

/* Destaque para acordes no resultado */
#ac-res [style*="font-mono"] {
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

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

/* ============================================================
   PÁGINAS ESTÁTICAS (privacidade, termos, sobre, contato)
   ============================================================ */
.static-page {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - var(--header-h) - 200px);
}

.static-content {
  max-width: 760px;
  margin: 0 auto;
}

.static-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.static-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.static-breadcrumb a:hover { text-decoration: underline; }

.static-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.static-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.static-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.static-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 1.25rem 0 0.5rem;
}

.static-content p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.static-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.static-content ul li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.static-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.static-content a:hover { text-decoration: underline; }

/* About — tools grid */
.about-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.about-tools-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.about-tools-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }

.about-tools-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.625rem;
}

.about-tools-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-tools-card ul li { font-size: 0.82rem; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.contact-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.contact-email-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}
.contact-email-link:hover { text-decoration: underline; }

.contact-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 520px) {
  .about-tools-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Filhos com delay escalonado */
.reveal-child { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-child.visible { opacity: 1; transform: translateY(0); }

/* Cards animam individualmente */
.tc.reveal, .rec-card.reveal, .intent-card.reveal {
  transition-duration: 0.45s;
}
.tc.reveal:nth-child(1),.rec-card.reveal:nth-child(1),.intent-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.tc.reveal:nth-child(2),.rec-card.reveal:nth-child(2),.intent-card.reveal:nth-child(2) { transition-delay: 0.10s; }
.tc.reveal:nth-child(3),.rec-card.reveal:nth-child(3),.intent-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.tc.reveal:nth-child(4),.rec-card.reveal:nth-child(4),.intent-card.reveal:nth-child(4) { transition-delay: 0.20s; }
.tc.reveal:nth-child(5),.rec-card.reveal:nth-child(5)                                  { transition-delay: 0.25s; }
.tc.reveal:nth-child(6),.rec-card.reveal:nth-child(6)                                  { transition-delay: 0.30s; }
.tc.reveal:nth-child(n+7)                                                               { transition-delay: 0.35s; }

/* ============================================================
   SEARCH ANIMATIONS
   ============================================================ */
.search-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  right: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-spinner.active { display: block; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Pulse no hero search ao focar */
.hero-search-box.focused input {
  box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.4) !important;
}

/* Results aparecem com slide */
.hero-suggestions.open { animation: slideDown 0.18s ease; }
.search-modal-results .search-result-item { animation: fadeInUp 0.2s ease both; }
.search-modal-results .search-result-item:nth-child(1) { animation-delay: 0.03s; }
.search-modal-results .search-result-item:nth-child(2) { animation-delay: 0.06s; }
.search-modal-results .search-result-item:nth-child(3) { animation-delay: 0.09s; }
.search-modal-results .search-result-item:nth-child(4) { animation-delay: 0.12s; }
.search-modal-results .search-result-item:nth-child(n+5) { animation-delay: 0.15s; }

/* Highlight no input ao pesquisar */
.search-modal-input.searching {
  animation: searchPulse 1s ease infinite;
}
@keyframes searchPulse {
  0%,100% { border-color: var(--border); }
  50% { border-color: var(--primary); }
}

/* ============================================================
   HEADER AUTH CTA
   ============================================================ */
.btn-auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-md);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  white-space: nowrap;
  font-family: var(--font);
}
.btn-auth-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,.5); }
@media (max-width: 640px) { .auth-cta-text { display: none; } }

/* ============================================================
   USER PILL (logado)
   ============================================================ */
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  position: relative;
  transition: var(--t);
  background: var(--bg-card);
  animation: fadeInDown 0.3s ease;
}
.user-pill:hover { border-color: var(--primary); }

.user-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  z-index: 150;
  overflow: hidden;
  animation: slideDown 0.15s ease;
}
.user-pill:hover .user-dropdown,
.user-pill.open .user-dropdown { display: block; }

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.ud-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.user-dropdown-header strong { display: block; font-size: 0.875rem; color: var(--text); }
.user-dropdown-header span  { display: block; font-size: 0.75rem; color: var(--text-muted); }

.user-dropdown-menu { padding: 0.5rem; }
.ud-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--t);
}
.ud-item:hover { background: var(--bg-elevated); color: var(--primary); }
.ud-logout:hover { color: var(--danger) !important; }

.mobile-nav-divider { height: 1px; background: var(--border); margin: 0.4rem 0.75rem; }
.nav-m-auth { color: var(--primary) !important; font-weight: 700; }

/* ============================================================
   CTA ACCOUNT SECTION
   ============================================================ */
.section-cta-account { padding: 1.5rem 0; }

.cta-account-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.08));
  border: 1.5px solid rgba(99,102,241,.2);
  border-radius: var(--r-xl);
  padding: 2rem;
}
.cta-account-icon { font-size: 2.5rem; flex-shrink: 0; }
.cta-account-body { flex: 1; }
.cta-account-body h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-account-body p  { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.875rem; line-height: 1.65; }
.cta-benefits { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.cta-benefits li { font-size: 0.82rem; color: var(--text-muted); }

.cta-account-action { display: flex; flex-direction: column; gap: 0.625rem; flex-shrink: 0; min-width: 175px; align-items: center; }

.btn-cta-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-md);
  box-shadow: var(--shadow-primary);
  width: 100%;
  font-family: var(--font);
}
.btn-cta-big:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.45); }

.btn-cta-ghost {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  width: 100%;
  font-family: var(--font);
}
.btn-cta-ghost:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
  .cta-account-card { flex-direction: column; }
  .cta-account-action { width: 100%; flex-direction: row; }
}

/* ============================================================
   MINHA PÁGINA
   ============================================================ */
.section-mypage { background: var(--bg-card); border-bottom: 1px solid var(--border); }

.mypage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--r);
  border: 1px dashed var(--border);
}
.mypage-hint { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }

.btn-sm-outline {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 0.875rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
}
.btn-sm-outline:hover { background: var(--primary); color: white; }

/* Drag grid */
.my-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  min-height: 120px;
}

/* Draggable card */
.tc-draggable {
  position: relative;
  cursor: grab;
  user-select: none;
}
.tc-draggable:active { cursor: grabbing; }
.tc-draggable .drag-handle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  cursor: grab;
  opacity: 0;
  transition: var(--t);
}
.tc-draggable:hover .drag-handle { opacity: 1; }
.tc-draggable.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  box-shadow: none;
}
.tc-draggable.drag-over {
  border: 2px dashed var(--primary) !important;
  background: rgba(99,102,241,.05) !important;
}

/* Remove button */
.tc-remove {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 22px;
  height: 22px;
  background: var(--danger);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--t);
}
.tc-draggable:hover .tc-remove { opacity: 1; }

/* Suggestions panel */
.my-suggestions { margin-top: 2rem; }
.my-suggestions h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.suggestion-list { display: flex; flex-direction: column; gap: 0.75rem; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.suggestion-item-icon { font-size: 1.25rem; flex-shrink: 0; }
.suggestion-item-body { flex: 1; }
.suggestion-item-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.suggestion-item-desc { font-size: 0.78rem; color: var(--text-muted); }
.suggestion-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pending  { background: rgba(245,158,11,.1); color: #d97706; }
.status-reviewed { background: rgba(16,185,129,.1); color: #059669; }

/* Add tool grid (modal) */
.add-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 1rem;
  max-height: 360px;
  overflow-y: auto;
}
.add-tool-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--t);
  font-size: 0.82rem;
}
.add-tool-item:hover { border-color: var(--primary); background: rgba(99,102,241,.04); }
.add-tool-item.already-added { border-color: var(--success); background: rgba(16,185,129,.05); cursor: default; }
.add-tool-item .ati-icon { font-size: 1.2rem; }
.add-tool-item .ati-name { font-weight: 600; color: var(--text); }
.add-tool-item .ati-check { margin-left: auto; color: var(--success); display: none; }
.add-tool-item.already-added .ati-check { display: block; }

/* ============================================================
   MODAIS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  position: relative;
  animation: slideDown 0.22s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-auth  { max-width: 420px; padding: 2rem; }
.modal-sugg  { max-width: 480px; padding: 2rem; }
.modal-addtool { max-width: 520px; padding: 1.75rem; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--t);
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* Auth modal */
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 1rem;
}
.auth-header h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.auth-header p  { font-size: 0.82rem; color: var(--text-muted); }

.auth-tabs { display: flex; gap: 0.375rem; margin-bottom: 1.5rem; background: var(--bg-elevated); border-radius: var(--r-sm); padding: 0.3rem; }
.auth-tab {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  color: var(--text-muted);
  font-family: var(--font);
}
.auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-form { display: flex; flex-direction: column; gap: 0.125rem; }

.input-pw-wrap { position: relative; }
.input-pw-wrap .form-input { padding-right: 2.5rem; }
.btn-toggle-pw {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}

.auth-benefits { display: flex; flex-direction: column; gap: 0.35rem; background: var(--bg-elevated); border-radius: var(--r-sm); padding: 0.75rem; margin: 0.75rem 0; }
.ab-item { font-size: 0.8rem; color: var(--text-muted); }

.auth-error {
  font-size: 0.8rem;
  color: var(--danger);
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.875rem;
  display: none;
}
.auth-error.visible { display: block; }

.btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* Google Sign-In */
.auth-google-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--t-md);
  font-family: var(--font);
  box-shadow: var(--shadow-sm);
}
.btn-google-signin:hover {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66,133,244,.15), var(--shadow);
  background: var(--bg-elevated);
}
.btn-google-signin:active { transform: translateY(1px); }

/* Suggestion modal */
.modal-sugg h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.35rem; }
.modal-sugg > p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 500;
  box-shadow: var(--shadow-xl);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-theme="dark"] .toast { background: #f1f5f9; color: #0f172a; }

