/* ==========================================================================
   CSS Stylesheet: ICP da Cache (Cache Web)
   Design System: Minimalista, Executivo, Paleta Cobre & Sand
   ========================================================================== */

:root {
  /* Cores da Identidade Cache Web / Cobre & Sand */
  --cache-copper: #C5A880;
  --cache-copper-hover: #B3946D;
  --cache-copper-dark: #96764E;
  --cache-copper-light: #F7F3EE;
  --cache-copper-border: #E5DACB;
  
  --cache-navy: #121824;
  --cache-orange: #FF5722;
  
  --avance-sand-bg: #F9F8F6;
  --avance-surface: #FFFFFF;
  
  --text-main: #1A1816;
  --text-muted: #6B665E;
  --text-light: #9C968C;
  
  --border-color: #EAE6DF;
  --border-hover: #D4C9BC;
  --border-focus: #C5A880;
  
  --success: #2E7D32;
  --success-light: #F1F8F1;
  --success-border: #C8E6C9;
  
  --danger: #C62828;
  --danger-light: #FDF2F2;
  --danger-border: #FFCDD2;
  
  --warning: #B78103;
  --warning-light: #FEF9EE;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 4px rgba(26, 24, 22, 0.03), 0 1px 2px rgba(26, 24, 22, 0.02);
  --shadow-card: 0 4px 12px rgba(26, 24, 22, 0.04), 0 1px 3px rgba(26, 24, 22, 0.02);
  --shadow-lg: 0 12px 24px -4px rgba(26, 24, 22, 0.08), 0 4px 8px -2px rgba(26, 24, 22, 0.03);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Landing page 2026 — visual inspirado na referência AVANCE */
html { scroll-behavior: smooth; }
.landing-nav { align-items: center; gap: 28px; }
.landing-nav > a { color: var(--text-muted); font: 600 .78rem var(--font-heading); text-decoration: none; }
.landing-nav > a:hover { color: var(--text-main); }
.app-main { max-width: none; padding: 0; }
#home-auth-view { overflow: hidden; }
#home-auth-view .home-grid { max-width: 1160px; margin: 0 auto; padding: 72px 24px 88px; min-height: 690px; align-items: center; gap: 70px; position: relative; }
#home-auth-view .home-grid::before { content:""; position:absolute; width:540px; height:540px; right:-180px; top:-150px; border-radius:50%; background:radial-gradient(circle,rgba(197,168,128,.22),transparent 68%); pointer-events:none; }
.home-hero-info { position: relative; z-index: 1; }
.hero-badge,.eyebrow,.small-label { display:inline-flex; color:var(--cache-copper-dark); font:800 .69rem var(--font-heading); letter-spacing:.13em; }
.hero-badge { background:#f4eee5; border:1px solid var(--cache-copper-border); border-radius:999px; padding:7px 12px; margin-bottom:22px; }
.hero-title { max-width:680px; font-size:clamp(2.45rem,4.4vw,4.45rem); line-height:1.02; letter-spacing:-.055em; color:#27231e; }
.hero-title span { color:var(--cache-copper-dark); }
.hero-desc { max-width:650px; font-size:1.06rem; line-height:1.75; margin-top:25px; color:#716b62; }
.hero-features-list { margin-top:34px; gap:18px; }
.feature-item { border:0; background:transparent; padding:0; align-items:flex-start; }
.feat-number { width:25px; height:25px; min-width:25px; background:#f1e9dd; color:var(--cache-copper-dark); border:1px solid var(--cache-copper-border); font-size:.72rem; }
.feature-item strong { font-size:.88rem; color:#332f29; }
.feature-item p { color:#8b847a; font-size:.76rem; margin-top:3px; line-height:1.55; }
.home-auth-card { position:relative; z-index:2; padding:0; overflow:hidden; border:1px solid #e9e3db; border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 28px 70px rgba(49,42,34,.13); }
.auth-tabs { padding:7px; margin:0; background:#f5f2ed; border-bottom:1px solid #ece6de; }
.auth-tab-btn { border-radius:8px; padding:12px; }
.auth-tab-pane { padding:30px 32px 34px; }
.auth-pane-header h3 { font-size:1.45rem; letter-spacing:-.03em; }
.input-text { min-height:46px; border-radius:7px; background:#fcfbf9; }

.landing-section { max-width:1160px; margin:0 auto; padding:110px 24px; }
.section-heading { max-width:760px; margin:0 auto 52px; text-align:center; }
.section-heading.left { margin-left:0; text-align:left; }
.section-heading h2,.landing-cta h2 { font:800 clamp(2rem,3.7vw,3.1rem)/1.12 var(--font-heading); letter-spacing:-.045em; color:#302b25; margin:12px 0 15px; }
.section-heading p { color:#8a8279; max-width:650px; margin:0 auto; }
.section-heading.left p { margin-left:0; }
.markets-section { max-width:none; background:#f4f2ef; padding-left:max(24px,calc((100% - 1112px)/2)); padding-right:max(24px,calc((100% - 1112px)/2)); }
.market-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.market-card { background:#fff; border:1px solid #e9e5df; border-radius:12px; padding:31px 28px 34px; min-height:260px; box-shadow:0 2px 8px rgba(45,40,34,.025); transition:.25s ease; }
.market-card:hover { transform:translateY(-5px); box-shadow:0 16px 35px rgba(45,40,34,.08); }
.market-card.featured { background:#d7b37c; border-color:#d7b37c; }
.market-code { display:inline-flex; min-width:58px; height:44px; align-items:center; justify-content:center; padding:0 12px; border-radius:8px; background:#f4eee4; color:#906f43; font:800 .9rem var(--font-heading); }
.market-card.featured .market-code { background:rgba(255,255,255,.65); color:#5e4526; }
.market-card h3,.deliverable-card h3,.steps-grid h3 { font:700 1.05rem var(--font-heading); margin:22px 0 10px; color:#342f29; }
.market-card p,.steps-grid p { color:#7e776e; font-size:.84rem; line-height:1.7; }
.market-card.featured p { color:#5f513f; }
.deliverables-layout { display:grid; grid-template-columns:1fr 1.32fr 1fr; align-items:center; gap:20px; }
.deliverable-card { border:1px solid #e9e5df; border-radius:12px; padding:28px; background:#fff; }
.deliverable-card ul { list-style:none; display:grid; gap:12px; margin-top:20px; }
.deliverable-card li { position:relative; padding-left:23px; color:#746d64; font-size:.8rem; line-height:1.45; }
.deliverable-card li::before { content:"✓"; position:absolute; left:0; color:#a9804b; font-weight:800; }
.result-mockup { border-radius:14px; background:#fff; border:1px solid #ded8d0; box-shadow:0 26px 60px rgba(47,41,34,.17); overflow:hidden; transform:perspective(900px) rotateY(-2deg); }
.mock-browser { height:30px; background:#f0ede8; display:flex; gap:5px; align-items:center; padding:0 12px; }
.mock-browser i { width:7px; height:7px; border-radius:50%; background:#d4cec5; }
.mock-inner { display:grid; grid-template-columns:31% 69%; min-height:330px; }
.mock-inner aside { background:#24201c; padding:24px 15px; display:flex; flex-direction:column; gap:15px; }
.mock-inner aside img { width:46px; height:46px; object-fit:contain; margin-bottom:8px; }
.mock-inner aside span { color:#a9a096; font-size:.58rem; padding:8px; border-radius:5px; }
.mock-inner aside span:first-of-type { color:#fff; background:#3b352e; }
.mock-content { padding:30px 24px; }
.mock-content h3 { font:800 1.1rem var(--font-heading); margin:8px 0 20px; }
.mock-score { background:#f5f0e8; border-radius:8px; padding:18px; display:flex; align-items:end; justify-content:space-between; }
.mock-score strong { font:800 2rem var(--font-heading); color:#9a7444; }
.mock-score span { font-size:.58rem; color:#81796f; }
.mock-lines { display:grid; gap:8px; margin:20px 0; }.mock-lines i { height:6px; background:#e7e2dc; border-radius:4px; }.mock-lines i:nth-child(2){width:80%}.mock-lines i:nth-child(3){width:58%}
.mock-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }.mock-cards b{height:42px;border-radius:6px;background:#f1eee9;border:1px solid #e4dfd8}
.steps-section { text-align:center; }
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:0 0 45px; text-align:left; }
.steps-grid article { position:relative; padding:0 24px 5px; border-left:1px solid #ddd6cc; }
.steps-grid article:first-child { border-left:0; padding-left:0; }
.steps-grid article > span { font:800 2.45rem var(--font-heading); color:#d5b47e; letter-spacing:-.05em; }
.btn-large { padding:15px 25px; font-size:.84rem; }
.landing-cta { max-width:none; padding:100px 24px; text-align:center; background:#29251f; color:#fff; }
.landing-cta h2 { color:#fff; max-width:880px; margin:14px auto 18px; }
.landing-cta p { color:#aaa299; margin-bottom:30px; }.landing-cta small{display:block;color:#8f877e;margin-top:14px}
.faq-section { max-width:950px; }
.faq-list { border-top:1px solid #ded8d0; }
.faq-list details { border-bottom:1px solid #ded8d0; padding:0 5px; }
.faq-list summary { list-style:none; cursor:pointer; padding:22px 38px 22px 0; font:700 .95rem var(--font-heading); color:#3e3933; position:relative; }
.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary::after{content:"+";position:absolute;right:5px;font-size:1.4rem;color:#a6804e}.faq-list details[open] summary::after{content:"−"}
.faq-list details p { color:#7c756c; font-size:.86rem; line-height:1.75; padding:0 45px 24px 0; }
.app-footer { background:#f4f2ef; border-top:0; }

@media (max-width: 920px) {
  .landing-nav > a { display:none; }
  #home-auth-view .home-grid { grid-template-columns:1fr; padding-top:50px; gap:45px; }
  .home-auth-card { max-width:560px; width:100%; }
  .market-grid,.deliverables-layout { grid-template-columns:1fr; }
  .result-mockup { max-width:560px; width:100%; margin:10px auto; transform:none; }
  .steps-grid { grid-template-columns:1fr 1fr; gap:32px 0; }
}
@media (max-width: 600px) {
  .app-header { position:relative; }.brand-logo-text{font-size:.9rem}.brand-subtext-badge{display:none}
  #home-auth-view .home-grid,.landing-section { padding-left:18px; padding-right:18px; }
  .hero-title { font-size:2.4rem; }.hero-desc{font-size:.95rem}.auth-tab-pane{padding:25px 20px}
  .section-heading h2,.landing-cta h2{font-size:2rem}.market-grid,.steps-grid{grid-template-columns:1fr}.steps-grid article{border-left:0;border-top:1px solid #ddd6cc;padding:22px 0 0}.steps-grid article:first-child{border-top:0}
  .landing-section{padding-top:78px;padding-bottom:78px}.mock-inner{min-height:280px}.mock-content{padding:22px 16px}
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--avance-sand-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.app-header {
  background-color: var(--avance-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-subtext-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cache-copper-dark);
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.header-auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botões com Alto Contraste (Texto Preto no Cobre) */
.btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--cache-copper);
  border-color: var(--cache-copper);
  color: #111111 !important;
}

.btn-primary:hover {
  background-color: var(--cache-copper-hover);
  border-color: var(--cache-copper-hover);
  color: #000000 !important;
}

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

.btn-secondary:hover {
  background-color: var(--cache-copper-light);
  border-color: var(--cache-copper-border);
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #b71c1c;
}

.btn-header-tab {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  color: var(--text-main);
  cursor: pointer;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-admin {
  background: var(--cache-navy);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.btn-logout {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-border);
}

.svg-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.app-main {
  flex: 1;
  padding: 40px 24px 60px;
}

.card {
  background: var(--avance-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-bottom: 24px;
}

/* Home / Landing Grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.home-hero-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cache-copper-dark);
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.55;
  font-weight: 600;
}

.hero-desc-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -6px;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--cache-copper);
  color: #111111 !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Home Auth Card */
.home-auth-card {
  padding: 32px;
  border: 1px solid var(--border-color);
  background: var(--avance-surface);
}

.auth-tabs {
  display: flex;
  background: var(--avance-sand-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--avance-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
}

.auth-pane-header {
  margin-bottom: 20px;
}

.auth-pane-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-pane-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-actions-row {
  margin: 8px 0 18px;
}

.link-small {
  font-size: 0.8125rem;
  color: var(--cache-copper-dark);
  text-decoration: none;
  font-weight: 600;
}

.link-small:hover {
  text-decoration: underline;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 3px;
}

.btn-block {
  width: 100%;
}

/* Campos de Senha com Olho para Visualizar */
.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-input-wrapper .input-text {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: var(--text-main);
}

/* Medidor de Força da Senha */
.password-strength-box {
  margin-top: 10px;
  background: var(--avance-sand-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 12px;
}

.strength-bar-bg {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--danger);
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.strength-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-item {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.rule-item::before {
  content: "•";
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

.rule-item.valid {
  color: var(--success);
  font-weight: 600;
}

.rule-item.valid::before {
  content: "✓";
}

/* Feedback Status Card */
.status-feedback-card {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  padding: 48px 36px;
}

.feedback-icon-box {
  width: 56px;
  height: 56px;
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  color: var(--cache-copper-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.status-feedback-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feedback-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Dashboard & Abas */
.admin-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
}

.admin-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
}

.admin-tab-btn:hover {
  color: var(--text-main);
}

.admin-tab-btn.active {
  color: var(--text-main);
  border-bottom-color: var(--cache-copper-dark);
  background-color: var(--avance-surface);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

.tab-badge {
  background: var(--cache-copper);
  color: #111111;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.dash-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease forwards;
}

.dash-tab-pane.active {
  display: block;
}

.dashboard-header-card {
  background: var(--avance-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-welcome-card {
  border-left: 4px solid var(--cache-copper);
}

.dash-welcome h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dash-welcome p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--avance-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  color: var(--cache-copper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.section-subheading {
  margin-bottom: 16px;
}

.section-subheading h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.project-card {
  background: var(--avance-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--cache-copper);
  box-shadow: var(--shadow-card);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.project-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.badge-segment {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cache-copper-light);
  color: var(--cache-copper-dark);
  border: 1px solid var(--cache-copper-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.project-card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.btn-open-project {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: var(--cache-copper-light);
  color: var(--cache-copper-dark);
  border: 1px solid var(--cache-copper-border);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-open-project:hover {
  background: var(--cache-copper);
  border-color: var(--cache-copper);
  color: #111111 !important;
}

.btn-delete-project {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-project:hover {
  background: var(--danger-light);
  border-color: var(--danger-border);
  color: var(--danger);
}

.empty-state-card {
  background: var(--avance-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
  margin-top: 10px;
}

.empty-icon-box {
  width: 48px;
  height: 48px;
  background: var(--cache-copper-light);
  color: var(--cache-copper-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.empty-state-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 440px;
  margin: 0 auto;
}

/* Tabela Admin */
.admin-users-card {
  padding: 16px;
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--avance-sand-bg);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: var(--cache-copper-light);
}

.badge-status-active {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-pending {
  background: #FFF8E1;
  color: #B78103;
  border: 1px solid #FFE082;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-suspended {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-role-admin {
  background: var(--cache-navy);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-table-action {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #fff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-action.btn-verify-user {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-light);
}

.btn-table-action.btn-pause {
  color: var(--warning);
  border-color: #FFE082;
  background: #FFF8E1;
}

.btn-table-action.btn-reactivate {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-light);
}

.btn-table-action.btn-del-user {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-light);
}

/* Wizard */
.stepper-wrapper {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

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

.step-counter {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cache-copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--cache-copper);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.step-bullet {
  background: var(--avance-sand-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-bullet.active {
  background: var(--cache-copper);
  border-color: var(--cache-copper);
  color: #111111 !important;
  font-weight: 800;
}

.step-bullet.completed {
  background: var(--cache-copper-light);
  border-color: var(--cache-copper-border);
  color: var(--cache-copper-dark);
}

.wizard-step {
  display: none;
  animation: fadeIn 0.2s ease forwards;
}

.wizard-step.active {
  display: block;
}

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

.step-intro {
  margin-bottom: 24px;
}

.step-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-row-2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row-2 {
    flex-direction: row;
  }
  .form-group.half-width {
    flex: 1;
  }
}

label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

.optional {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: normal;
}

.tip-box {
  background-color: var(--cache-copper-light);
  border-left: 3px solid var(--cache-copper);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.input-text, .input-textarea, .input-select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-main);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  outline: none;
  transition: all 0.2s ease;
}

.input-text:focus, .input-textarea:focus, .input-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--cache-copper-light);
}

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px var(--danger-light) !important;
}

.input-textarea {
  resize: vertical;
  min-height: 80px;
}

.selection-grid-3, .selection-grid-2 {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .selection-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .selection-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-inner {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 16px;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.radio-card:hover .card-inner {
  border-color: var(--border-hover);
  background-color: var(--avance-sand-bg);
}

.radio-card input[type="radio"]:checked + .card-inner {
  border-color: var(--cache-copper);
  background-color: var(--cache-copper-light);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

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

/* Loading */
.loading-card {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--cache-copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}

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

.loading-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.loading-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   RESULTADOS / RELATÓRIO ESTRATÉGICO B2B, B2C E AMBOS
   ========================================================================== */
.results-actions-bar {
  background: var(--avance-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.actions-left h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.actions-left p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.btn-action {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  background-color: var(--avance-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action:hover {
  background-color: var(--cache-copper-light);
  border-color: var(--cache-copper-border);
}

.btn-action.btn-highlight {
  background-color: var(--cache-copper);
  border-color: var(--cache-copper);
  color: #111111 !important;
  font-weight: 700;
}

.btn-action.btn-highlight:hover {
  background-color: var(--cache-copper-hover);
  color: #000000 !important;
}

.btn-action.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.market-lead-banner {
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.market-lead-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.market-lead-banner p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--cache-copper-light);
  color: var(--cache-copper-dark);
  border: 1px solid var(--cache-copper-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Grid de ICP B2B */
.icp-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .icp-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-block {
  background-color: var(--avance-sand-bg);
  border-radius: var(--radius-xs);
  padding: 18px;
  border: 1px solid var(--border-color);
}

.spec-block h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spec-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.anti-icp-card {
  background: #FFFDFD;
  border: 1px solid #FFCDD2;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-xs);
  padding: 18px;
  margin-top: 16px;
}

.anti-icp-card h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.anti-icp-card p {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.45;
}

/* Personas Cards (B2C) */
.personas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .personas-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }
}

.persona-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.persona-card:hover {
  border-color: var(--cache-copper);
  box-shadow: var(--shadow-card);
}

.persona-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.persona-initials-avatar {
  width: 44px;
  height: 44px;
  background: var(--cache-copper);
  color: #111111;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.persona-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.persona-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cache-copper-dark);
  margin-top: 2px;
}

.persona-quote {
  background-color: var(--avance-sand-bg);
  border-left: 3px solid var(--cache-copper);
  padding: 10px 14px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-main);
}

.persona-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
}

.detail-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-item p {
  color: var(--text-main);
  line-height: 1.45;
}

.social-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.social-badge {
  background: var(--cache-copper-light);
  color: var(--cache-copper-dark);
  border: 1px solid var(--cache-copper-border);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.persona-sales-tip {
  background: var(--cache-copper-light);
  border: 1px solid var(--cache-copper-border);
  border-radius: var(--radius-xs);
  padding: 14px;
  margin-top: auto;
}

.persona-sales-tip strong {
  display: block;
  color: var(--cache-copper-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.persona-sales-tip p {
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.45;
}

.sales-tips-card {
  border-left: 4px solid var(--cache-copper-dark);
}

.sales-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.sales-tips-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.5;
}

.sales-tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--cache-copper);
  border-radius: 50%;
}

/* Modais */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 24, 22, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease forwards;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.modal-dialog-sm {
  max-width: 400px;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  background: var(--avance-sand-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-main);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1500;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-footer {
  background: var(--avance-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Print */
@media print {
  body {
    background-color: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .no-print, .app-header, .wizard-footer, .results-actions-bar, .app-footer, .stepper-wrapper, .modal-backdrop {
    display: none !important;
  }

  .app-main {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .card, .persona-card, .spec-block {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    margin-bottom: 16px !important;
    padding: 14px !important;
  }

  .personas-grid, .icp-spec-grid {
    display: block !important;
  }

  .persona-card {
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }

  .results-wrapper {
    display: block !important;
  }
}
