/* ============================================================
   Método Digital Pro — Folha de estilos global
   Landing · Auth · Checkout · Dashboard · Admin
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --warning-bg: #fffbeb;
  --dark: #0f172a;
  --darker: #020617;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --grad: linear-gradient(135deg, var(--primary), var(--secondary));
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn:focus-visible { outline: 3px solid rgba(99, 102, 241, 0.35); outline-offset: 2px; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4); }

.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost { background: var(--surface-2); color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: #e2e8f0; color: var(--text); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { opacity: 0.92; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-secondary); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-wrap .form-input { padding-left: 40px; }
.input-wrap .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; display: flex; }

/* ---------- Badges & alertas ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-info { background: var(--info-bg); color: #1d4ed8; }
.badge-neutral { background: var(--surface-2); color: var(--muted); }
.badge-pink { background: #fdf2f8; color: #be185d; }
.badge-indigo { background: #eef2ff; color: #4338ca; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--info-bg); color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }

/* ============================================================
   LANDING
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand__name { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.brand__name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand__name .brand__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--primary-light);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.5;
}
.sidebar--dark .brand__name .brand__tag { background: rgba(99, 102, 241, 0.22); color: #a5b4fc; -webkit-text-fill-color: #a5b4fc; }
.site-nav { display: flex; align-items: center; gap: 10px; }

.hero {
  padding: 150px 0 90px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__title { font-size: 46px; font-weight: 800; line-height: 1.13; letter-spacing: -1.2px; margin-bottom: 18px; }
.hero__title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__desc { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 26px; }
.hero-features { display: grid; gap: 10px; margin-bottom: 30px; }
.hero-features li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--text-secondary); }
.hero-features .feat-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.price-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -16px; right: 28px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.price-original { font-size: 22px; color: var(--muted); text-decoration: line-through; margin-bottom: 4px; }
.price-current { font-size: 56px; font-weight: 800; color: var(--success); line-height: 1; margin-bottom: 8px; }
.price-current small { font-size: 24px; font-weight: 700; }
.price-note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.price-features { display: grid; gap: 11px; margin-bottom: 26px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.price-features .feat-ico { color: var(--success); flex-shrink: 0; }

.section { padding: 84px 0; }
.section--gray { background: var(--light); }
.section--dark { background: var(--dark); color: #fff; }
.section-title { font-size: 34px; font-weight: 800; text-align: center; letter-spacing: -0.7px; margin-bottom: 14px; }
.section-subtitle { font-size: 17px; color: var(--muted); text-align: center; max-width: 680px; margin: 0 auto 54px; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.22s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.benefit-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.benefit-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.modules-list { display: grid; gap: 16px; }
.module-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.18s ease;
}
.module-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.module-number {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.module-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.module-body p { font-size: 14px; color: var(--muted); }

.updates-banner {
  background: var(--grad);
  padding: 70px 24px;
  text-align: center;
  color: #fff;
}
.updates-banner .banner-ico {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.updates-banner h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.updates-banner p { font-size: 17px; opacity: 0.95; max-width: 760px; margin: 0 auto; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.testimonial-text { font-size: 14.5px; line-height: 1.7; color: var(--text); margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-author h5 { font-size: 14px; font-weight: 700; }
.testimonial-author p { font-size: 12px; color: var(--muted); }

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}
.faq-question .faq-icon { color: var(--muted); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.cta-section { background: linear-gradient(135deg, var(--dark), var(--darker)); padding: 84px 24px; text-align: center; color: #fff; }
.cta-section h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 17px; opacity: 0.85; margin-bottom: 30px; }

.site-footer { background: var(--darker); color: #fff; padding: 40px 24px; text-align: center; }
.site-footer__links { display: flex; justify-content: center; gap: 26px; margin-bottom: 18px; flex-wrap: wrap; }
.site-footer__links a { color: #94a3b8; font-size: 14px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { color: #64748b; font-size: 13px; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.auth-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.auth-header p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
}
.checkout-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.checkout-header { text-align: center; margin-bottom: 26px; }
.checkout-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.checkout-header p { font-size: 14px; color: var(--muted); }
.checkout-amount { text-align: center; margin-bottom: 26px; }
.checkout-amount .amount-label { font-size: 13px; color: var(--muted); }
.checkout-amount .amount-value { font-size: 40px; font-weight: 800; color: var(--success); }
.pix-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}
.pix-qr img { width: 100%; height: 100%; object-fit: contain; }
.copy-row { display: flex; gap: 10px; margin-bottom: 12px; }
.copy-input {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-2);
  font-family: ui-monospace, monospace;
  word-break: break-all;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.checkout-status { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SHELL (Dashboard / Admin)
   ============================================================ */
.shell { display: flex; min-height: 100vh; background: var(--light); }

.sidebar {
  width: 262px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.sidebar--dark { background: var(--darker); border-color: #1e293b; }
.sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar--dark .sidebar__brand { border-color: #1e293b; }
.sidebar__brand .brand__name { font-size: 16px; }
.sidebar--dark .sidebar__brand .brand__name { color: #fff; }
.sidebar__brand .brand__sub { font-size: 11px; color: var(--muted); }

.sidebar__group { margin-bottom: 18px; }
.sidebar__title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding: 0 10px; margin-bottom: 7px; }
.sidebar--dark .sidebar__title { color: #64748b; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar--dark .nav-item { color: #94a3b8; }
.sidebar--dark .nav-item:hover { background: #1e293b; color: #fff; }
.sidebar--dark .nav-item.active { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.nav-item .nav-ico { display: flex; }
.nav-item .nav-badge { margin-left: auto; }

.sidebar__user { margin-top: auto; padding: 12px; background: var(--surface-2); border-radius: 12px; display: flex; align-items: center; gap: 11px; }
.sidebar--dark .sidebar__user { background: #1e293b; }
.sidebar__user .avatar { width: 40px; height: 40px; font-size: 13px; }
.sidebar__user .user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar--dark .sidebar__user .user-name { color: #fff; }
.sidebar__user .user-plan { font-size: 11px; color: var(--success); font-weight: 600; }

.main { flex: 1; margin-left: 262px; padding: 28px 34px; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-title { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; }
.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle { display: none; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

/* Cards / painéis */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 22px; overflow: hidden; }
.panel__header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel__title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel__body { padding: 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-card__value { font-size: 26px; font-weight: 800; letter-spacing: -0.7px; }
.stat-card__label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ic-indigo { background: #eef2ff; color: #4f46e5; }
.ic-green { background: var(--success-bg); color: #059669; }
.ic-amber { background: var(--warning-bg); color: #d97706; }
.ic-pink { background: #fdf2f8; color: #db2777; }
.ic-blue { background: var(--info-bg); color: #2563eb; }
.ic-red { background: var(--danger-bg); color: #dc2626; }

/* Progresso */
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width 0.4s ease; }

/* Grids de cursos */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.course-card__cover {
  height: 120px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-card__body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card__title { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.course-card__desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.course-card__meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); margin-top: auto; }

/* Feed */
.feed { display: grid; gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.post-card__meta .post-author { font-size: 13px; font-weight: 600; }
.post-card__meta .post-time { font-size: 12px; color: var(--muted); }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.post-card__text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.post-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #0f172a;
}
.post-thumb iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.post-thumb img { width: 100%; }
.post-type-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pt-video { background: #fee2e2; color: #dc2626; }
.pt-pdf { background: #dbeafe; color: #2563eb; }
.pt-audio { background: #f3e8ff; color: #9333ea; }
.pt-image { background: #d1fae5; color: #059669; }
.pt-text { background: #fef3c7; color: #b45309; }
.pt-ebook { background: #ede9fe; color: #7c3aed; }

/* Lições */
.lesson-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.lesson-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 20px; }
.lesson-nav__header { padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.lesson-nav__item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-secondary); transition: background 0.15s; }
.lesson-nav__item:last-child { border-bottom: none; }
.lesson-nav__item:hover { background: var(--surface-2); }
.lesson-nav__item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lesson-nav__item .check { margin-left: auto; color: var(--success); flex-shrink: 0; }
.lesson-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.lesson-content h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.4px; }
.lesson-content .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.lesson-prose { font-size: 15.5px; line-height: 1.85; color: var(--text-secondary); white-space: pre-line; }
.lesson-video { border-radius: 12px; overflow: hidden; margin-bottom: 22px; background: #000; }
.lesson-video iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }

/* Biblioteca */
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.library-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all 0.15s; }
.library-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.library-item__icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.library-item__name { font-size: 13px; font-weight: 600; word-break: break-all; margin-bottom: 4px; }
.library-item__size { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafafa; }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-user .avatar { width: 34px; height: 34px; font-size: 12px; }
.cell-user .u-name { font-weight: 600; font-size: 13px; }
.cell-user .u-mail { font-size: 11px; color: var(--muted); }
.cell-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--surface-2);
  color: var(--text-secondary);
}
.icon-btn:hover { background: var(--primary); color: #fff; }
.icon-btn.danger:hover { background: var(--danger); color: #fff; }
.icon-btn.success:hover { background: var(--success); color: #fff; }

/* Modal (admin) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }

/* Seletor de idioma flutuante */
.page-lang { position: fixed; top: 16px; right: 16px; z-index: 60; }

/* Assistente virtual */
.assistant-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  z-index: 300;
}
.assistant-panel {
  position: fixed;
  bottom: 90px; right: 22px;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
}
.assistant-panel.open { display: flex; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--grad); color: #fff; }
.assistant-avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; }
.assistant-title { font-weight: 700; font-size: 14px; }
.assistant-sub { font-size: 12px; opacity: 0.85; }
.assistant-close { background: rgba(255, 255, 255, 0.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.assistant-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--light); }
.assistant-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.assistant-msg--bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.assistant-msg--user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.assistant-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.assistant-input input { flex: 1; border: 2px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none; font-family: inherit; }
.assistant-input input:focus { border-color: var(--primary); }
.assistant-send { width: 42px; height: 42px; border-radius: 10px; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assistant-send:hover { background: var(--primary-dark); }

/* Overlay de carregamento (gerador de ebooks) */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.78);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  color: #fff;
}
.loading-overlay.open { display: flex; }
.loading-spinner {
  width: 54px; height: 54px;
  border: 5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 15px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Linhas dinâmicas (módulos de curso / receitas) */
.sub-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
  background: var(--card);
}
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Seletor de idioma */
.lang-switcher { display: inline-flex; align-items: center; gap: 3px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang-option { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-secondary); transition: all 0.15s ease; line-height: 1.4; }
.lang-option:hover { color: var(--text); }
.lang-option.active { background: var(--primary); color: #fff; }
.sidebar--dark .lang-switcher { background: #1e293b; }
.sidebar--dark .lang-option { color: #94a3b8; }
.sidebar--dark .lang-option.active { background: var(--primary); color: #fff; }

/* Aviso de pagamento pendente */
.pay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.pay-banner p { font-size: 14px; font-weight: 500; }

/* Utilitários */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty .empty-ico { display: flex; justify-content: center; margin-bottom: 12px; color: #cbd5e1; }

/* Paginação */
.pagination { display: flex; gap: 6px; justify-content: center; list-style: none; margin-top: 20px; flex-wrap: wrap; padding: 0; }
.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  background: #fff;
  font-weight: 500;
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: 0.5; }

/* Formulários desdobráveis (admin) */
.form-toggle { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; }
.form-toggle summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.form-toggle summary::-webkit-details-marker { display: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .benefits-grid, .testimonials-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__title { font-size: 38px; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 130px 0 70px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 20px; }
  .menu-toggle { display: flex; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-nav { position: static; }
}
@media (max-width: 640px) {
  .benefits-grid, .testimonials-grid, .course-grid, .library-grid, .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 28px; }
  .section-title { font-size: 25px; }
  .price-current { font-size: 42px; }
  .container { padding: 0 16px; }
  .site-header__inner { height: auto; min-height: 60px; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .brand__name { font-size: 15px; }
  .brand__mark { width: 34px; height: 34px; }
  .auth-card, .checkout-card { padding: 26px 20px; }
  .pix-qr { width: 180px; height: 180px; }
  .price-card { padding: 28px 20px; }
  .hero-badge { font-size: 12px; }
  .module-item { padding: 16px 18px; }
  .panel__header { padding: 14px 16px; }
  .panel__body { padding: 16px; }
  .main { padding: 16px; }
  .topbar { gap: 10px; }
  .topbar__actions { width: 100%; justify-content: flex-end; }
  .lesson-content { padding: 20px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .pay-banner { align-items: flex-start; }
}
