/**
 * DoseHub — Design System v0.2 (SaaS Premium)
 * Inspirado em Stripe Docs, GitBook e Linear.
 */

:root {
  /* Colors - Modern SaaS Palette */
  --color-brand: #2563eb;
  --color-brand-hover: #1d4ed8;
  --color-brand-light: #eff6ff;
  --color-brand-muted: #dbeafe;
  
  --color-text-primary: #111827;    /* Gray 900 */
  --color-text-secondary: #4b5563;  /* Gray 600 */
  --color-text-muted: #9ca3af;      /* Gray 400 */
  
  --color-bg-main: #ffffff;
  --color-bg-subtle: #f9fafb;       /* Gray 50 */
  --color-bg-sidebar: #fcfcfd;      /* Custom subtle */
  
  --color-border: #e5e7eb;          /* Gray 200 */
  --color-border-muted: #f3f4f6;    /* Gray 100 */
  
  /* Status Colors */
  --color-info: #3b82f6;
  --color-info-bg: #eff6ff;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing & Layout */
  --sidebar-width: 280px;
  --navbar-height: 64px;
  --max-content: 800px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-spotlight: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

:root {
  --color-cta: #16a34a;
  --color-cta-hover: #15803d;
  --color-cta-light: #ecfdf3;
}

.btn,
.btn-primary,
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn {
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary,
.btn-nav-cta,
.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
  border: none;
}

.btn-whatsapp {
  padding: 0.8rem 1.2rem;
  gap: 0.6rem;
  min-height: 44px;
  letter-spacing: 0.01em;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1eb94e;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

.btn-primary:hover,
.btn-nav-cta:hover,
.btn-primary:focus,
.btn-nav-cta:focus {
  background: #1eb94e;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
}

.btn-sm {
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1rem 1.4rem;
  font-size: 1rem;
}

.btn-cta-white {
  background: white;
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.16);
}

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

.btn-cta-outline:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

/* ── LAYOUT GLOBAL (SaaS Style) ── */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Permanente */
.app-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.sidebar-header {
  height: var(--navbar-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-muted);
}

.sidebar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--color-brand);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-logo:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
}

.sidebar-logo::before {
  content: "DoseHub";
}

.sidebar-logo img {
  display: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-brand);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0.75rem;
}

.nav-group {
  margin-bottom: 0.5rem;
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-group-header:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
}

.nav-group-header svg.chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.nav-group.open .nav-group-header svg.chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-group-items {
  display: none;
  padding-left: 0.5rem;
  margin-top: 2px;
}

.nav-group.open .nav-group-items {
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1px;
  position: relative;
}

.nav-item:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}

.nav-item.active {
  color: var(--color-brand);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: var(--color-brand);
  border-radius: 0 4px 4px 0;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.nav-item.active svg {
  opacity: 1;
  color: var(--color-brand);
}

/* Main Content Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevent flex overflow */
}

.app-navbar {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.875rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger:hover {
  border-color: var(--color-text-muted);
}

.search-shortcut {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ── SPOTLIGHT MODAL ── */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.spotlight-overlay.active {
  display: flex;
}

.spotlight-modal {
  width: 100%;
  max-width: 640px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-spotlight);
  overflow: hidden;
  animation: slideDown 200ms ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.spotlight-input-wrapper {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.125rem;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.spotlight-item:hover, .spotlight-item.selected {
  background: var(--color-bg-subtle);
}

.spotlight-item-icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
}

.spotlight-item.selected .spotlight-item-icon {
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.spotlight-item-info {
  flex: 1;
}

.spotlight-item-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.spotlight-item-category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.spotlight-footer {
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── DASHBOARD HOME ── */
.dashboard-hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.dashboard-hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.dashboard-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-hub {
  margin-bottom: 2.5rem;
  text-align: left;
}

.section-header-hub h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.dashboard-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.dashboard-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
  background: var(--color-brand);
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.card-desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Guias em Destaque */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.featured-card {
  background: white;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-card:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
}

.featured-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

/* ── CATEGORIAS / GUIAS ── */
.category-page-header {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border-muted);
}

.category-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}

.category-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.category-page-desc {
  max-width: 720px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.section {
  padding: 3rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.category-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.category-card,
.guide-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: white;
  transition: all var(--transition-base);
}

.category-card:hover,
.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.category-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.category-card-title,
.guide-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.category-card-description,
.guide-card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.guide-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card-level {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.level-basic {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.level-intermediate {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.level-advanced {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.guide-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-btn {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

#guideCount {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.guide-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.guide-header {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--color-text-secondary);
}

.breadcrumb-item.current {
  color: var(--color-text-primary);
  font-weight: 600;
}

.category-page-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-brand-light);
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.prose h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 3rem; margin-bottom: 1.25rem; }
.prose p { margin-bottom: 1.5rem; color: var(--color-text-secondary); font-size: 1.0625rem; }

/* ── COMPONENTES SAAS ── */

/* Callouts */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}

.callout-info { background: var(--color-info-bg); color: #1e40af; border: 1px solid #bfdbfe; }
.callout-warning { background: var(--color-warning-bg); color: #92400e; border: 1px solid #fde68a; }
.callout-danger { background: var(--color-danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.callout-dose { background: var(--color-brand-light); color: var(--color-brand-hover); border: 1px solid var(--color-brand-muted); }

/* Checklist */
.checklist {
  list-style: none;
  margin: 2rem 0;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 150ms;
}

.checklist-item:hover { background: #fff; }

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-item.checked .checkbox {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.checklist-item.checked .checkbox::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.checklist-item.checked span {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* Timeline */
.timeline {
  margin: 3rem 0;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-muted);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  transform: translateX(-50%);
  top: 6px;
}

/* Next Steps */
.next-steps {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.next-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.next-card:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.comparison-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comparison-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.comparison-body {
  display: grid;
  gap: 0.75rem;
}

.comparison-side {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
}

.comparison-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-side p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── GERADOR DE PÁGINAS ── */
.generator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.generator-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.generator-card label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.generator-card input,
.generator-card textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-subtle);
}

.generator-card textarea {
  resize: vertical;
  min-height: 140px;
}

.generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.generator-code {
  margin-top: 1rem;
  padding: 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ── MOBILE MENU (hamburger + drawer) ── */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-right: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-main);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--color-bg-subtle);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 190;
}

.sidebar-backdrop.active {
  display: block;
}

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(85vw, 300px);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-navbar {
    padding: 0 1rem;
  }
  .generator-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .dashboard-hero h1 { font-size: 2rem; }
  .next-steps-grid { grid-template-columns: 1fr; }
}
