/* =============================
   ClienteFácil – Estilos Globais
   ============================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }

/* ── SCREENS ── */
.screen { min-height: 100vh; }

/* ═══════════════════════════════════
   LANDING PAGE
═══════════════════════════════════ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex; align-items: center; gap: 2rem;
}
.landing-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: #fff;
  font-size: 1.1rem;
}
.landing-logo strong { color: #60a5fa; }
.landing-nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.landing-nav-links a {
  color: #94a3b8; text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.landing-nav-links a:hover { color: #fff; }
.landing-nav-btns { display: flex; gap: .75rem; }
.btn-hamburger { background: none; border: none; color: #94a3b8; font-size: 1.3rem; cursor: pointer; margin-left: auto; }

/* HERO */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.hero-shape.s1 { width: 500px; height: 500px; background: #3b82f6; top: -100px; right: -100px; }
.hero-shape.s2 { width: 400px; height: 400px; background: #06b6d4; bottom: -100px; left: -100px; }
.hero-shape.s3 { width: 300px; height: 300px; background: #8b5cf6; top: 50%; left: 40%; }
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: .35rem 1rem;
  color: #93c5fd; font-size: .82rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title { font-size: 3.2rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: #94a3b8; line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-hero {
  padding: .85rem 2rem; font-size: 1rem; font-weight: 700; border-radius: 12px;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-hero-sec {
  padding: .85rem 2rem; font-size: 1rem; font-weight: 700; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: all .2s;
}
.btn-hero-sec:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }

.hero-social-proof { display: flex; align-items: center; gap: .75rem; color: #94a3b8; font-size: .88rem; }
.proof-avatars { display: flex; }
.proof-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem;
  border: 2px solid #0f172a; margin-left: -8px;
}
.proof-av:first-child { margin-left: 0; }

/* Hero Mockup */
.hero-mockup { padding: 1rem 0; }
.mockup-window {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.mockup-bar { background: #0f172a; padding: .6rem 1rem; display: flex; gap: .4rem; align-items: center; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #22c55e; }
.mockup-content { display: flex; min-height: 280px; }
.mockup-sidebar { background: #0f172a; width: 50px; padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.mock-nav-item { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: #64748b; font-size: .85rem; }
.mock-nav-item.active { background: rgba(37,99,235,.3); color: #60a5fa; }
.mockup-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.mock-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.mock-stat { border-radius: 8px; padding: .6rem; text-align: center; }
.mock-stat.blue { background: rgba(37,99,235,.2); }
.mock-stat.green { background: rgba(22,163,74,.2); }
.mock-stat.yellow { background: rgba(217,119,6,.2); }
.mock-stat.red { background: rgba(220,38,38,.2); }
.mock-stat-val { font-size: .85rem; font-weight: 800; color: #fff; }
.mock-stat-lbl { font-size: .6rem; color: #64748b; }
.mock-card { background: rgba(255,255,255,.04); border-radius: 10px; padding: .75rem; }
.mock-card-title { font-size: .7rem; font-weight: 700; color: #94a3b8; margin-bottom: .5rem; }
.mock-item { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .72rem; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,.04); }
.mock-item:last-child { border-bottom: none; }
.mock-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.green { background: #22c55e; }
.mock-dot.blue { background: #60a5fa; }
.mock-dot.yellow { background: #f59e0b; }

/* TRUST SECTION */
.landing-trust { background: #fff; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.trust-label { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.trust-profissoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.trust-profissoes span {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: .4rem 1rem;
  font-size: .82rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: .4rem;
}
.trust-profissoes span i { color: var(--primary); }

/* SECTION SHARED */
.section-badge {
  display: inline-block;
  background: rgba(37,99,235,.1); color: var(--primary);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em;
}
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin: .75rem 0 .75rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* FEATURES */
.landing-features { background: var(--bg); padding: 6rem 0; }
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 1.25rem;
}
.feature-icon.bg-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.feature-icon.bg-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.feature-icon.bg-yellow { background: linear-gradient(135deg, #d97706, #f59e0b); }
.feature-icon.bg-purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.feature-icon.bg-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.feature-icon.bg-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.feature-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: .6rem; }
.feature-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); padding: .3rem 0; }
.feature-list li i { color: var(--success); font-size: .75rem; }

/* HOW IT WORKS */
.landing-how { background: #fff; padding: 6rem 0; }
.how-card {
  background: var(--bg); border-radius: 16px; padding: 2rem 1.5rem;
  text-align: center; position: relative; border: 1px solid var(--border);
  transition: transform .2s;
}
.how-card:hover { transform: translateY(-4px); }
.how-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.how-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; margin-top: .5rem; }
.how-card h5 { font-weight: 800; margin-bottom: .5rem; }
.how-card p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* TESTIMONIALS */
.landing-testimonials { background: var(--bg); padding: 6rem 0; }
.testimonial-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  height: 100%; position: relative;
  transition: transform .2s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(37,99,235,.15); }
.test-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  border-radius: 50px; padding: .2rem .8rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.test-stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.testimonial-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.test-author { display: flex; align-items: center; gap: .75rem; }
.test-av {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; flex-shrink: 0;
}
.test-author strong { display: block; font-size: .9rem; }
.test-author small { color: var(--text-muted); font-size: .78rem; }

/* PLANOS LANDING */
.landing-planos { background: #fff; padding: 6rem 0; }
.plano-card {
  background: var(--bg); border-radius: 20px; padding: 2rem;
  border: 2px solid var(--border); text-align: center;
  position: relative; height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.plano-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.plano-card.pro { background: linear-gradient(135deg, #1e40af, #2563eb); border-color: #3b82f6; color: #fff; }
.plano-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; border-radius: 50px; padding: .25rem .9rem;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; white-space: nowrap;
}
.plano-nome { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.plano-preco { margin-bottom: .75rem; }
.preco-val { font-size: 2.5rem; font-weight: 900; }
.preco-periodo { font-size: .9rem; opacity: .7; }
.plano-desc { font-size: .85rem; opacity: .7; margin-bottom: 1.5rem; }
.plano-features { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.plano-features li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .88rem; border-bottom: 1px solid rgba(0,0,0,.05); }
.plano-card.pro .plano-features li { border-color: rgba(255,255,255,.1); }
.plano-features li:last-child { border-bottom: none; }
.plano-features li.ok i { color: #22c55e; }
.plano-features li.no { opacity: .5; }
.plano-features li.no i { color: #ef4444; }
.btn-plano { width: 100%; padding: .85rem; font-weight: 700; border-radius: 12px; cursor: pointer; }
.plano-preco-tabs { margin-bottom: .75rem; }
.preco-tab-btns { display: flex; gap: .5rem; justify-content: center; margin-bottom: .75rem; }
.preco-tab {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8); border-radius: 8px; padding: .3rem .8rem;
  font-size: .78rem; cursor: pointer; transition: all .2s;
}
.preco-tab.active { background: #fff; color: var(--primary); border-color: #fff; font-weight: 700; }
.preco-economia { font-size: .65rem; background: #22c55e; color: #fff; padding: .1rem .3rem; border-radius: 4px; }
.preco-economia-destaque { font-size: .8rem; color: #86efac; font-weight: 600; margin-top: .25rem; }

/* CTA FINAL */
.landing-cta-final {
  background: linear-gradient(135deg, #1e40af, #2563eb, #0891b2);
  padding: 5rem 0; color: #fff;
}
.landing-cta-final h2 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.landing-cta-final p { font-size: 1rem; opacity: .85; margin-bottom: .5rem; }
.btn-white { background: #fff; color: var(--primary); border: none; font-weight: 700; padding: .85rem 2.5rem; border-radius: 12px; transition: all .2s; }
.btn-white:hover { background: #f0f9ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--primary); }

/* FOOTER LANDING */
.landing-footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; }
.footer-title { font-size: .85rem; font-weight: 700; color: #e2e8f0; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #64748b; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: #94a3b8; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }
.footer-bottom { text-align: center; }

/* ═══════════════════════════════════
   PÁGINAS SIMPLES (Sobre, Contato, etc)
═══════════════════════════════════ */
.simple-page-nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: .875rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.back-link {
  color: var(--primary); text-decoration: none; font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; transition: opacity .2s;
}
.back-link:hover { opacity: .75; color: var(--primary); }
.simple-page-content { padding: 3rem 1.5rem; }
.simple-footer { text-align: center; color: var(--text-muted); font-size: .82rem; padding: 2rem; background: #f8fafc; border-top: 1px solid var(--border); }
.content-article h4 { font-size: 1.05rem; font-weight: 800; margin-top: 1.5rem; margin-bottom: .6rem; }
.content-article p { font-size: .92rem; color: var(--text-muted); line-height: 1.8; }
.contact-info-card { background: var(--bg); border-radius: 12px; padding: 1.5rem; text-align: center; border: 1px solid var(--border); }
.about-icon-big {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
}
.about-item { display: flex; align-items: flex-start; gap: 1rem; background: var(--bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--border); }
.about-item i { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }

/* Plano Assinatura Card */
.plano-assin-card { background: #fff !important; border: 2px solid var(--border); }
.plano-assin-card.pro { background: linear-gradient(135deg, #1e40af, #2563eb) !important; border-color: #3b82f6 !important; }
.plano-badge-top {
  display: inline-block; background: rgba(37,99,235,.1); color: var(--primary);
  border-radius: 50px; padding: .2rem .7rem; font-size: .75rem; font-weight: 700;
  margin-bottom: .5rem;
}
.plano-card.pro .plano-badge-top { background: rgba(255,255,255,.2); color: #fff; }

/* ── LOGIN ── */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  padding: 1rem;
}
.login-box {
  background: #fff; border-radius: 20px;
  padding: 2.5rem 2rem; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.logo-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; margin-bottom: .75rem;
}
.login-logo h1 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin: 0; }
.login-logo h1 span { color: var(--primary); }
.login-logo p { color: var(--text-muted); margin: .25rem 0 0; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ── LAYOUT APP ── */
#screen-app { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
#sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 1000; transition: transform .3s ease;
}
.sidebar-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-icon-sm {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; color: #fff;
}
.logo-text { font-size: 1.15rem; font-weight: 800; color: #fff; }
.logo-text span { color: #60a5fa; }
.btn-sidebar-close { background: none; border: none; color: #94a3b8; font-size: 1.2rem; margin-left: auto; padding: 0; cursor: pointer; }
.sidebar-menu { list-style: none; padding: .5rem 0; margin: 0; flex: 1; overflow-y: auto; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; color: #94a3b8;
  text-decoration: none; font-size: .9rem; transition: all .2s;
}
.sidebar-menu li a i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar-menu li a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-menu li a.active { color: #fff; background: rgba(37,99,235,.4); border-right: 3px solid var(--primary); }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 1rem; list-style: none; }
.sidebar-plano {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center;
}
.plano-badge {
  display: inline-block;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: .25rem .75rem;
  font-size: .75rem; font-weight: 600; color: #94a3b8; margin-bottom: .25rem;
}
.sidebar-plano small { color: #64748b; font-size: .7rem; display: block; }

/* TOPBAR AVATAR */
.topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; overflow: hidden; margin-right: .4rem;
  flex-shrink: 0;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Profile Photo */
.profile-photo-wrap { padding: 1.25rem 0; }
.profile-photo-preview {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.5rem; margin: 0 auto .75rem;
  overflow: hidden; cursor: pointer; border: 3px solid var(--border);
  transition: border-color .2s;
}
.profile-photo-preview:hover { border-color: var(--primary); }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Overlay mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 999;
}

/* ── MAIN CONTENT ── */
#main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ── TOPBAR ── */
#topbar {
  height: var(--topbar-h); background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-topbar { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: .25rem .5rem; border-radius: 6px; }
.btn-topbar:hover { background: var(--bg); }
.topbar-title { font-weight: 700; font-size: 1rem; color: var(--text); flex: 1; }
.topbar-user { display: flex; align-items: center; color: var(--text-muted); font-size: .85rem; }

/* ── PAGES ── */
#pages-container { flex: 1; padding: 1.5rem; }
.page { display: none; }
.page.active { display: block; }
.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 .25rem; }
.page-header p { margin: 0; font-size: .875rem; }

/* ── CARDS ── */
.card-metric {
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow);
}
.metric-icon { font-size: 1.75rem; opacity: .85; }
.metric-val { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.metric-label { font-size: .75rem; opacity: .85; margin-top: .2rem; }
.card-metric-sm {
  border-radius: var(--radius); padding: .875rem 1rem;
  font-size: .875rem; font-weight: 500; box-shadow: var(--shadow);
}
.card-cf {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.card-cf + .card-cf { margin-top: 1rem; }
.card-cf-header { font-weight: 700; font-size: .95rem; margin-bottom: 1rem; color: var(--text); }

/* ── CLIENTE CARD ── */
.cliente-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1rem 1.25rem; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; cursor: pointer; position: relative;
}
.cliente-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.cliente-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.cliente-nome { font-weight: 700; font-size: .95rem; }
.cliente-tel { color: var(--text-muted); font-size: .8rem; }
.cliente-acoes { display: flex; gap: .5rem; }

/* ── AGENDAMENTO / FIN / ORC ITEMS ── */
.ag-item {
  background: var(--card-bg); border-radius: 10px; padding: 1rem;
  border: 1px solid var(--border); margin-bottom: .75rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.ag-hora {
  background: var(--primary); color: #fff; border-radius: 8px;
  padding: .4rem .6rem; text-align: center; min-width: 58px; flex-shrink: 0;
}
.ag-hora .hora { font-size: .9rem; font-weight: 700; }
.ag-hora .dia { font-size: .65rem; opacity: .85; }
.ag-info { flex: 1; }
.ag-servico { font-weight: 700; font-size: .9rem; }
.ag-cliente { color: var(--text-muted); font-size: .8rem; }
.ag-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; flex-wrap: wrap; gap: .5rem; }
.pag-item {
  background: var(--card-bg); border-radius: 10px; padding: 1rem;
  border: 1px solid var(--border); margin-bottom: .75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.pag-info { flex: 1; }
.pag-desc { font-weight: 700; font-size: .9rem; }
.pag-cliente { color: var(--text-muted); font-size: .8rem; }
.pag-valor { font-size: 1.1rem; font-weight: 800; }
.pag-acoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.orc-item {
  background: var(--card-bg); border-radius: 10px; padding: 1rem 1.25rem;
  border: 1px solid var(--border); margin-bottom: .75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; transition: transform .15s;
}
.orc-item:hover { transform: translateY(-1px); }
.orc-num { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.orc-titulo { font-weight: 700; font-size: .95rem; }
.orc-cliente { color: var(--text-muted); font-size: .8rem; }
.orc-total { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.orc-acoes { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── BADGES ── */
.badge-status {
  display: inline-block; padding: .2rem .6rem; border-radius: 20px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.badge-agendado { background: #dbeafe; color: #1d4ed8; }
.badge-concluido { background: #dcfce7; color: #15803d; }
.badge-cancelado { background: #fee2e2; color: #dc2626; }
.badge-pendente { background: #fef3c7; color: #d97706; }
.badge-pago { background: #dcfce7; color: #15803d; }
.badge-rascunho { background: #f1f5f9; color: #64748b; }
.badge-enviado { background: #fef3c7; color: #d97706; }
.badge-aprovado { background: #dcfce7; color: #15803d; }
.badge-reprovado { background: #fee2e2; color: #dc2626; }

.btn-whatsapp {
  background: #25d366; color: #fff; border: none; border-radius: 8px;
  padding: .35rem .75rem; font-size: .8rem; cursor: pointer; transition: background .2s;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

.dash-ag-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; border-bottom: 1px solid var(--border);
}
.dash-ag-item:last-child { border-bottom: none; }
.dash-ag-hora { background: var(--primary); color: #fff; border-radius: 6px; padding: .25rem .5rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.dash-ag-info { flex: 1; }
.dash-ag-nome { font-weight: 600; font-size: .85rem; }
.dash-ag-serv { font-size: .75rem; color: var(--text-muted); }

/* ADMIN */
.admin-tab-content { }
.admin-tab-content.d-none { display: none !important; }
#admin-tabs .nav-link { color: var(--text-muted); font-size: .88rem; font-weight: 600; padding: .6rem 1rem; }
#admin-tabs .nav-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.admin-msg-card {
  background: var(--bg); border-radius: 12px; padding: 1rem 1.25rem;
  border: 1px solid var(--border); margin-bottom: .75rem;
  cursor: pointer; transition: box-shadow .15s;
}
.admin-msg-card:hover { box-shadow: var(--shadow); }
.admin-msg-card.nao-lida { border-left: 3px solid var(--primary); background: #eff6ff; }

/* ── TOAST ── */
.toast { min-width: 280px; }
.toast.bg-success { background: #16a34a !important; }
.toast.bg-danger { background: #dc2626 !important; }

/* ── MODAL ── */
.modal-content { border-radius: var(--radius); border: none; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header { border-radius: var(--radius) var(--radius) 0 0; }

/* ── FORM ── */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--text); margin-bottom: .35rem; }

/* ── ITENS ORÇAMENTO ── */
#tabela-itens td { vertical-align: middle; }
#tabela-itens input { padding: .25rem .5rem; font-size: .85rem; }
.btn-rm-item { background: none; border: none; color: #dc2626; cursor: pointer; padding: .25rem; }
.btn-rm-item:hover { color: #991b1b; }

/* ── IMPRESSÃO PDF ── */
@media print {
  body * { visibility: hidden; }
  #pdf-preview, #pdf-preview * { visibility: visible; }
  #pdf-preview { position: absolute; left: 0; top: 0; width: 100%; }
}
.pdf-doc { font-family: 'Segoe UI', sans-serif; max-width: 800px; margin: 0 auto; color: #1e293b; }
.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 3px solid var(--primary); margin-bottom: 1.5rem; }
.pdf-empresa h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0 0 .25rem; }
.pdf-meta { text-align: right; }
.pdf-meta .numero { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.pdf-secao { margin-bottom: 1.5rem; }
.pdf-secao h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .4rem; }
.pdf-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pdf-table th { background: var(--primary); color: #fff; padding: .6rem .75rem; text-align: left; font-size: .8rem; }
.pdf-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.pdf-table tr:nth-child(even) td { background: #f8fafc; }
.pdf-total-box { background: #f8fafc; border-radius: 8px; padding: 1rem; text-align: right; margin-top: 1rem; }
.pdf-total-row { display: flex; justify-content: flex-end; gap: 2rem; margin-bottom: .25rem; }
.pdf-total-final { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  #main-content { margin-left: 0; }
  .landing-nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
  #pages-container { padding: 1rem; }
  .card-metric .metric-val { font-size: 1.2rem; }
  .page-header h2 { font-size: 1.2rem; }
  .ag-item { flex-direction: column; }
  .pag-item { flex-direction: column; align-items: flex-start; }
  .orc-item { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .landing-planos .col-md-5 { min-width: 100%; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Animações */
.page { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
