/* ============================================================
   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; }

/* ── Bug report nav link ── */
.nav-bug-link {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  border: 1px solid transparent;
  border-radius: var(--r-full) !important;
  transition: var(--t) !important;
  white-space: nowrap;
}
.nav-bug-link:hover {
  color: var(--danger) !important;
  background: rgba(239,68,68,.07) !important;
  border-color: rgba(239,68,68,.2) !important;
}
.nav-m-bug {
  color: var(--text-muted) !important;
}
.nav-m-bug:hover {
  color: var(--danger) !important;
  background: rgba(239,68,68,.06) !important;
}

/* ── Bug report link (dentro da tool view) ── */
.tool-bug-link {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0 0;
}
.tool-bug-link button {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  padding: 0.25rem 0;
  transition: var(--t);
}
.tool-bug-link button:hover { color: var(--danger); }

/* ============================================================
   CALCULADORA DE ORÇAMENTO E PREÇO DE VENDA
   ============================================================ */
.orc-mode-tabs {
  display: flex;
  gap: 0.375rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  padding: 0.3rem;
  margin-bottom: 1.75rem;
}
.orc-mode-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  color: var(--text-muted);
  font-family: var(--font);
  text-align: center;
}
.orc-mode-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.orc-section {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 0.875rem;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.orc-section.active { border-color: rgba(99,102,241,.35); }
.orc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--bg-elevated);
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.orc-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.orc-section-icon { font-size: 1.1rem; }
.orc-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.orc-toggle-label-text { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.orc-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.orc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.orc-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: 0.25s;
}
.orc-switch-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
}
.orc-switch input:checked + .orc-switch-slider { background: var(--primary); }
.orc-switch input:checked + .orc-switch-slider::before { transform: translateX(18px); }
.orc-section-body {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.2s ease;
}
.orc-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 0.625rem;
  align-items: end;
  margin-bottom: 0.625rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
}
.orc-item-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.3rem; display: block; }
.orc-item-subtotal {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  min-width: 85px;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.orc-remove-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--t);
  flex-shrink: 0;
  font-size: 0.75rem;
  font-family: var(--font);
}
.orc-remove-btn:hover { background: rgba(239,68,68,.1); border-color: var(--danger); color: var(--danger); }
.orc-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1.5px dashed var(--primary);
  color: var(--primary);
  padding: 0.45rem 0.875rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
  margin-top: 0.5rem;
}
.orc-add-btn:hover { background: rgba(99,102,241,.07); }
.orc-section-subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.orc-section-subtotal strong { font-size: 0.95rem; color: var(--text); font-weight: 700; }
/* Result */
.orc-result { margin-top: 1.75rem; animation: fadeInUp 0.3s ease; }
.orc-result-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--r-lg);
  padding: 1.75rem;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}
.orc-result-hero-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.8; margin-bottom: 0.375rem; }
.orc-result-hero-price { font-size: 2.75rem; font-weight: 900; line-height: 1; margin-bottom: 0.25rem; }
.orc-result-hero-sub { font-size: 0.875rem; opacity: 0.82; margin-bottom: 0; }
.orc-result-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.orc-result-hero-item { background: rgba(255,255,255,.15); border-radius: var(--r-sm); padding: 0.75rem; }
.orc-result-hero-item-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; margin-bottom: 0.25rem; }
.orc-result-hero-item-value { font-size: 1rem; font-weight: 800; }
.orc-breakdown {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 0.875rem;
}
.orc-breakdown-title {
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.orc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}
.orc-breakdown-row:last-child { border-bottom: none; }
.orc-breakdown-row-label { color: var(--text-muted); flex: 1; }
.orc-breakdown-row-value { font-weight: 600; color: var(--text); flex-shrink: 0; }
.orc-breakdown-row.orc-subtotal-row { background: var(--bg-elevated); }
.orc-breakdown-row.orc-subtotal-row .orc-breakdown-row-label { color: var(--text-secondary); font-weight: 700; }
.orc-breakdown-row.orc-subtotal-row .orc-breakdown-row-value { color: var(--primary); font-weight: 700; }
.orc-breakdown-row.orc-total-row {
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.06));
  border-top: 2px solid var(--primary);
  padding: 0.875rem 1.25rem;
}
.orc-breakdown-row.orc-total-row .orc-breakdown-row-label { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.orc-breakdown-row.orc-total-row .orc-breakdown-row-value { font-size: 1.05rem; font-weight: 900; color: var(--primary); }
.orc-breakdown-row.orc-profit-row .orc-breakdown-row-value { color: var(--success); font-weight: 700; }
.orc-breakdown-row.orc-price-row {
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(5,150,105,.06));
  border-top: 2px solid var(--success);
  padding: 0.875rem 1.25rem;
}
.orc-breakdown-row.orc-price-row .orc-breakdown-row-label { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.orc-breakdown-row.orc-price-row .orc-breakdown-row-value { font-size: 1.2rem; font-weight: 900; color: var(--success); }
.orc-tips {
  background: rgba(6,182,212,.07);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.orc-tips p { margin-bottom: 0.2rem; }
.orc-tips p:last-child { margin-bottom: 0; }
/* Mão de obra block layout */
.orc-mo-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 0.875rem;
  margin-bottom: 0.625rem;
}
@media (max-width: 640px) {
  .orc-item-row { grid-template-columns: 1fr 1fr; }
  .orc-item-row > :first-child { grid-column: 1 / -1; }
  .orc-result-hero-grid { grid-template-columns: 1fr; }
  .orc-result-hero-price { font-size: 2rem; }
  .orc-mode-tab { font-size: 0.78rem; padding: 0.5rem 0.5rem; }
}

/* ============================================================
   SORTEADOR DE NÚMEROS
   ============================================================ */
.sor-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0 0.25rem;
}
.sor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
  animation: sorPop 0.25s ease both;
}
@keyframes sorPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.sor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  min-height: 0;
}
.sor-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
/* Toggle switch */
.sor-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}
.sor-toggle-wrap {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.sor-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.sor-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.2s;
  cursor: pointer;
}
.sor-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sor-checkbox:checked + .sor-toggle-slider { background: var(--primary); }
.sor-checkbox:checked + .sor-toggle-slider::before { transform: translateX(18px); }
/* History */
.sor-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.sor-hist-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}
.sor-hist-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.sor-hist-nums {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.sor-hist-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
}
/* Status de sessão */
.sor-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.sor-status-esgotado {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}
.sor-esgotado-box {
  border: 2px solid rgba(239,68,68,0.3) !important;
}
@media (max-width: 480px) {
  .sor-badge { min-width: 2.5rem; height: 2.5rem; font-size: 0.95rem; }
}

/* ============================================================
   CRONÔMETRO ONLINE
   ============================================================ */
.crono-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  padding: 0.3rem;
}
.crono-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: calc(var(--r-sm) - 2px);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.crono-tab:hover { color: var(--text); }
.crono-tab.crono-tab-active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.crono-display-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}
.crono-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  transition: color 0.3s;
}
.crono-display.crono-done { color: var(--danger); animation: cronoPulse 0.6s ease 3; }
@keyframes cronoPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.crono-ms {
  font-size: 0.45em;
  color: var(--text-muted);
  font-weight: 500;
  vertical-align: baseline;
}
.crono-progress-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem auto 0;
  max-width: 420px;
}
.crono-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 0.1s linear;
}
/* Timer inputs */
.crono-time-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.crono-time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.crono-time-input {
  width: 5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
}
.crono-time-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.crono-time-sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.5rem;
}
.crono-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.crono-preset {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.crono-preset:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
/* Action buttons */
.crono-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.crono-btn {
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
}
.crono-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.crono-btn:not(:disabled):active { transform: scale(0.96); }
.crono-btn-start {
  background: var(--success);
  color: #fff;
  min-width: 140px;
}
.crono-btn-start.crono-btn-pause { background: var(--warning); }
.crono-btn-reset {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.crono-btn-lap {
  background: var(--bg-elevated);
  color: var(--primary);
  border: 1px solid var(--primary);
}
/* Laps */
.crono-lap-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.crono-lap-n { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.crono-lap-split {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--text);
  justify-self: center;
}
.crono-lap-total {
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .crono-display { font-size: clamp(2.5rem, 18vw, 4rem); }
  .crono-time-input { width: 4rem; font-size: 1.2rem; }
  .crono-btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
  .crono-btn-start { min-width: 110px; }
}

/* ============================================================
   CARD PROMOCIONAL — TESTE FINANCEIRO
   ============================================================ */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.promo-overlay.promo-open {
  opacity: 1;
  pointer-events: all;
}
.promo-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #1a1035 100%);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 1.25rem 1.25rem 1rem 1rem;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 -4px 40px rgba(99,102,241,0.2), 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(40px);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.promo-overlay.promo-open .promo-card {
  transform: translateY(0);
}
.promo-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.promo-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.promo-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.6));
}
.promo-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818cf8;
  margin: 0 0 0.75rem;
}
.promo-title {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}
.promo-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 1.4rem;
}
.promo-cta {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
  transition: filter 0.15s, transform 0.1s;
  margin-bottom: 0.6rem;
}
.promo-cta:hover  { filter: brightness(1.1); }
.promo-cta:active { transform: scale(0.97); }
.promo-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}
.promo-skip:hover { color: rgba(255,255,255,0.6); }
.promo-surprise {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.1));
  border: 1.5px solid rgba(251,191,36,0.45);
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  animation: surprisePulse 2.4s ease-in-out infinite;
}
@keyframes surprisePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  50%       { box-shadow: 0 0 12px 3px rgba(251,191,36,0.25); }
}

@media (min-width: 540px) {
  .promo-overlay { align-items: center; }
  .promo-card {
    border-radius: 1.25rem;
    transform: translateY(0) scale(0.92);
  }
  .promo-overlay.promo-open .promo-card {
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   CARD DE CONFIRMAÇÃO — COMPARTILHAMENTO
   ============================================================ */
.tc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tc-overlay.tc-open {
  opacity: 1;
  pointer-events: all;
}
.tc-card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  transform: scale(0.88) translateY(16px);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.tc-overlay.tc-open .tc-card {
  transform: scale(1) translateY(0);
}
.tc-emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.tc-titulo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.25rem;
  line-height: 1.35;
}
.tc-msg {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  text-align: left;
}
.tc-resposta-btns {
  display: flex;
  gap: 0.75rem;
}
.tc-btn-sim,
.tc-btn-nao {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.tc-btn-sim:active,
.tc-btn-nao:active { transform: scale(0.96); }
.tc-btn-sim {
  background: var(--success);
  color: #fff;
}
.tc-btn-sim:hover { filter: brightness(1.08); }
.tc-btn-nao {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.tc-btn-nao:hover { border-color: var(--danger); color: var(--danger); }

/* Mensagem viral no resultado */
.teste-viral-msg {
  width: 100%;
  max-width: 460px;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border: 1.5px solid rgba(99,102,241,0.3);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}
.teste-viral-msg strong { color: var(--primary); }

/* ============================================================
   TESTE DE INTELIGÊNCIA FINANCEIRA
   ============================================================ */
.teste-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Progress */
.teste-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.teste-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.teste-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.teste-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

/* Body animation */
.teste-body { min-height: 260px; }
.teste-body.teste-enter {
  animation: testeSlideIn 0.28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes testeSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Question */
.teste-pergunta {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* Options */
.teste-opcoes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.teste-opcao {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.teste-opcao:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(99,102,241,0.06);
  color: var(--text);
}
.teste-opcao:active:not(:disabled) { transform: scale(0.98); }
.teste-opcao:disabled { opacity: 0.5; cursor: not-allowed; }
.teste-opcao-letra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
}
.teste-opcao-texto { line-height: 1.3; }

/* Resultado */
.teste-resultado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.teste-nivel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.4rem;
  border: 2px solid;
  border-radius: 99px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.teste-pontos {
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.teste-pontos span {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--text-muted);
}
.teste-msg {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

/* Percentual */
.teste-pct-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.teste-pct-texto {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.teste-pct-texto strong { color: var(--text); }
.teste-pct-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.teste-pct-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

/* Alerta */
.teste-alerta {
  width: 100%;
  max-width: 460px;
  padding: 0.7rem 1rem;
  border: 1px solid;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Compartilhamento */
.teste-share-area {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.teste-share-titulo {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.teste-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}
.teste-btn-wa:hover  { filter: brightness(1.08); }
.teste-btn-wa:active { transform: scale(0.97); }
.teste-btn-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.teste-btn-img,
.teste-btn-refazer {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.teste-btn-img:hover    { border-color: var(--primary); color: var(--primary); }
.teste-btn-refazer:hover { border-color: var(--text-muted); color: var(--text); }

@media (max-width: 480px) {
  .teste-opcao { padding: 0.75rem 0.75rem; font-size: 0.9rem; }
  .teste-btn-row { flex-direction: column; }
}

/* ============================================================
   FERRAMENTAS DE PDF — dropzone e lista de arquivos
   ============================================================ */
.pdf-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--t-md);
  background: var(--bg-elevated);
  margin-top: 0.75rem;
  user-select: none;
}
.pdf-drop-zone:hover { border-color: var(--primary); background: rgba(99,102,241,.05); }
.pdf-drop-zone.dragover { border-color: var(--primary); background: rgba(99,102,241,.1); transform: scale(1.01); }
.pdf-drop-zone.has-files { border-color: var(--success); background: rgba(16,185,129,.04); border-style: solid; }
.pdf-drop-icon { font-size: 2.25rem; margin-bottom: 0.5rem; line-height: 1; }
.pdf-drop-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.pdf-drop-sub { font-size: 0.8rem; color: var(--text-muted); }
.pdf-file-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.pdf-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  animation: fadeInUp 0.2s ease;
}
.pdf-fi-icon { font-size: 1.1rem; flex-shrink: 0; }
.pdf-fi-name { flex: 1; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pdf-fi-size { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   TESTE DE TEMPERAMENTO
   ============================================================ */
.temp-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
}
.temp-intro-icon { font-size: 3rem; line-height: 1; }
.temp-intro-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.temp-intro-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0;
}
.temp-tipos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  max-width: 460px;
  margin-top: 0.25rem;
}
.temp-tipo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text);
  text-align: left;
}
.temp-tipo strong { font-weight: 700; }
.temp-tipo-sub { font-size: 0.78rem; color: var(--text-muted); }

/* Resultado */
.temp-resultado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.temp-perfil-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r);
  width: 100%;
  max-width: 460px;
  text-align: left;
}
.temp-perfil-emoji { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.temp-perfil-apelido {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.temp-perfil-nome {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.temp-descricao {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0;
}
.temp-secondary-info {
  width: 100%;
  max-width: 460px;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-align: left;
}
.temp-secondary-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.temp-secondary-combo {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Gráfico de scores */
.temp-scores-wrap {
  width: 100%;
  max-width: 460px;
}
.temp-scores-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: left;
}
.temp-scores-chart { display: flex; flex-direction: column; gap: 0.55rem; }
.temp-score-row { display: flex; align-items: center; gap: 0.7rem; }
.temp-score-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 108px;
  text-align: left;
}
.temp-score-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.temp-score-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(.4,0,.2,1);
  min-width: 4px;
}
.temp-score-num {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 18px;
  text-align: right;
}

/* Grid de características */
.temp-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 460px;
  text-align: left;
}
.temp-traits-col {
  padding: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.temp-traits-header {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.temp-traits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.temp-traits-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.temp-traits-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.temp-share-area {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 500px) {
  .temp-tipos-grid { grid-template-columns: 1fr 1fr; }
  .temp-traits-grid { grid-template-columns: 1fr; }
  .temp-score-label { min-width: 82px; font-size: 0.75rem; }
  .temp-perfil-nome { font-size: 1.4rem; }
}

