/* ============ RESET / BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root, :root[data-theme="escuro"] {
  --primary: #10b981;
  --primary-dark: #059669;
  --accent: #06b6d4;
  --bg: #050810;
  --bg-surface: #0f172a;
  --bg-surface-2: #1e293b;
  --card: #0f172a;
  --card-glass: rgba(15, 23, 42, 0.6);
  --text: #e2e8f0;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.25);
  /* Gradientes/superfícies da app */
  --app-bg: radial-gradient(ellipse at top, #0f172a 0%, #050810 100%);
  --header-bg: rgba(15, 23, 42, 0.85);
  --card-elev1: #1e293b;
  --card-elev2: #0f172a;
  --border-card: #334155;
  --produto-img-bg: #f8fafc;
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-bg-focus: rgba(255, 255, 255, 0.06);
}

:root[data-theme="claro"] {
  --bg: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8fafc;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.75);
  --text: #1e293b;
  --text-strong: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.08);
  --app-bg: radial-gradient(ellipse at top, #f8fafc 0%, #e2e8f0 100%);
  --header-bg: rgba(255, 255, 255, 0.92);
  --card-elev1: #ffffff;
  --card-elev2: #f8fafc;
  --border-card: #e2e8f0;
  --produto-img-bg: #f8fafc;
  --input-bg: #f8fafc;
  --input-bg-focus: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--app-bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============ HEADER ============ */
header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-strong) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav { display: flex; gap: 20px; align-items: center; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav a:hover { color: var(--primary); }
.nav a.nav-ativo {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.user-info {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ CONTAINER ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}
.hero h1 { font-size: 32px; margin-bottom: 8px; }
.hero p { opacity: .95; font-size: 16px; }

/* ============ FILTROS ============ */
.filtros {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filtro-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--card-glass);
  color: var(--text);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.filtro-btn:hover { border-color: var(--primary); color: var(--primary); }
.filtro-btn.ativo {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
}

/* ============ GRID PRODUTOS ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.produto-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.produto-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}

.produto-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--produto-img-bg);
  overflow: hidden;
}
.produto-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
  transition: opacity .25s ease;
}
.produto-flip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: transform .15s, background .15s;
  z-index: 2;
}
.produto-flip:hover {
  background: white;
  transform: rotate(45deg) scale(1.08);
}
.produto-flip-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.7);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  pointer-events: none;
}

.produto-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.produto-categoria {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.produto-nome {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-strong);
}

.produto-descricao {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
}

.produto-preco {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

/* ============ BOTÕES ============ */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-primary:disabled {
  background: var(--bg-surface-2);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--card-glass);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: var(--bg-surface-2); border-color: var(--primary); }

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-block { width: 100%; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.ativo { display: flex; }
.lightbox-img {
  max-width: min(90vw, 720px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  transition: opacity .2s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lightbox-fechar {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,.15);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background .15s;
}
.lightbox-fechar:hover { background: rgba(255,255,255,.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.05); }
.lightbox-nav.esq { left: 24px; }
.lightbox-nav.dir { right: 24px; }

.lightbox-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 14px;
}
.lightbox-info strong { font-size: 18px; display: block; margin-bottom: 4px; }
.lightbox-info .badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 4px 12px;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 22px; }
  .lightbox-nav.esq { left: 8px; }
  .lightbox-nav.dir { right: 8px; }
}

/* ============ MODAL ============ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-bg.ativo { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal h2 { margin-bottom: 16px; color: var(--text-strong); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition: all .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form-group select option {
  background: var(--card);
  color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Botão de alternar tema claro/escuro */
.btn-tema {
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  padding: 0;
}
.btn-tema:hover {
  border-color: var(--primary);
  transform: rotate(20deg);
}

/* Input com botão olho (mostrar/ocultar senha) */
.input-wrap { position: relative; }
.input-wrap input.has-eye { padding-right: 50px; }
.input-wrap .toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.input-wrap .toggle-eye:hover { color: var(--text-strong); background: rgba(255,255,255,0.05); }

.auth-box {
  max-width: 420px;
  margin: 60px auto;
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.auth-box h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-strong) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}
.auth-box a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-box a:hover { color: var(--primary); }

/* ============ TOAST (notificações flutuantes) ============ */
#toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.toast-text { flex: 1; line-height: 1.4; }
.toast-sucesso { border-left: 4px solid var(--success); }
.toast-sucesso .toast-icon { background: var(--success); color: #fff; }
.toast-erro { border-left: 4px solid var(--danger); }
.toast-erro .toast-icon { background: var(--danger); color: #fff; }
.toast-info { border-left: 4px solid var(--accent); }
.toast-info .toast-icon { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  #toasts { top: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; }
}

/* ============ MENSAGENS ============ */
.msg {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.msg.ativo { display: block; }
.msg.erro {
  background: var(--danger-bg);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}
.msg.sucesso {
  background: var(--success-bg);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: block;
}

/* ============ TABELA (admin/pedidos) ============ */
.tabela {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border-collapse: collapse;
}
.tabela th, .tabela td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.tabela th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.tabela tr:last-child td { border-bottom: none; }
.tabela tr:hover td { background: rgba(255, 255, 255, 0.02); }

.acoes-row { display: flex; gap: 8px; }
.acoes-row .btn { padding: 6px 12px; font-size: 12px; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.tag-pendente { background: var(--warning-bg); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-confirmado, .tag-received, .tag-pago { background: var(--success-bg); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-cancelado, .tag-overdue { background: var(--danger-bg); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ============ SECTION TITLE ============ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 22px; color: var(--text-strong); }

/* ============ ÁREA DE MEMBROS (dashboard / curso) ============ */
.membro-body {
  background: var(--app-bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.membro-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.membro-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.membro-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  text-decoration: none;
  letter-spacing: -.5px;
}
.membro-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.membro-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.membro-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color .15s;
}
.membro-nav a:hover { color: var(--text-strong); }
.membro-nav a.ativo { color: var(--text-strong); }
.membro-nav a.ativo::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.membro-nav .btn-loja {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.membro-nav .btn-loja:hover { transform: translateY(-1px); color: white; }
.membro-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.membro-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.membro-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }

.membro-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.membro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(16,185,129,.22), transparent 50%);
}
.membro-hero h1 {
  font-size: 30px;
  margin-bottom: 8px;
  position: relative;
  color: white;
}
.membro-hero p {
  color: #cbd5e1;
  font-size: 16px;
  position: relative;
  max-width: 600px;
}

.membro-section-title {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}
.membro-section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ============ CARDS ESTILO HOTMART (módulos) ============ */
.modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.modulo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: block;
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.modulo-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25);
}
.modulo-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.modulo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}
.modulo-card-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: blur(8px);
}
.modulo-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px;
  z-index: 3;
}
.modulo-card-titulo {
  font-size: 22px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.modulo-card-divider {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 10px;
}
.modulo-card-sub {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.modulo-card-progresso {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(8px);
}

/* ============ TIMELINE DE AULAS (estilo Hotmart) ============ */
.timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-progresso-card {
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tm-progresso-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.tm-progresso-circle.cheio {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}
.tm-progresso-titulo {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.tm-progresso-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.tm-modulo {
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px;
}
.tm-modulo-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.tm-modulo-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}
.tm-modulo.tem-atual .tm-modulo-circle,
.tm-modulo.tem-vistas .tm-modulo-circle {
  border-color: var(--primary);
}
.tm-modulo-info { flex: 1; }
.tm-modulo-titulo {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.tm-modulo-sub {
  color: var(--text-muted);
  font-size: 12px;
}
.tm-modulo-chevron {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
  transition: transform 0.2s;
}
.tm-modulo.fechado .tm-modulo-chevron { transform: rotate(-90deg); }
.tm-modulo.fechado .tm-aulas { display: none; }

.tm-aulas {
  margin-top: 14px;
  margin-left: 13px;
  padding-left: 22px;
  border-left: 2px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tm-aula {
  display: block;
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.15s;
}
.tm-aula::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-elev1);
  border: 2px solid var(--border-card);
  transition: all 0.2s;
}
.tm-aula:hover { color: var(--text-strong); }
.tm-aula:hover::before { border-color: var(--text-muted); }
.tm-aula.visto { color: var(--text); }
.tm-aula.visto::before {
  background: var(--primary);
  border-color: var(--primary);
}
.tm-aula.atual { color: var(--primary); font-weight: 600; }
.tm-aula.atual::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

/* Header simples do EAD (estilo Hotmart limpo) */
.ead-home-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.ead-home-link:hover { color: var(--primary); }
.ead-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  transition: opacity 0.15s;
}
.ead-voltar:hover { opacity: 0.8; }
.ead-section-h {
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Grid antigo dos cursos — mantido pra compatibilidade */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.curso-card {
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.curso-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.curso-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--card-elev2) center/cover no-repeat;
  overflow: hidden;
}
.curso-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.85));
}
.curso-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  z-index: 2;
  transition: transform .2s;
}
.curso-card:hover .curso-play { transform: translate(-50%, -50%) scale(1.1); }
.curso-duracao {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.7);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}
.curso-info { padding: 18px; flex: 1; }
.curso-categoria {
  display: inline-block;
  background: rgba(16,185,129,.15);
  color: #10b981;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.curso-titulo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  line-height: 1.3;
}
.curso-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Página do curso */
.curso-pagina {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .curso-pagina { grid-template-columns: 1fr; }
}
.curso-video-wrap {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.curso-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.curso-meta {
  padding: 20px 4px;
  margin-top: 16px;
}
.curso-meta h1 {
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.curso-meta .sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.curso-meta p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.curso-sidebar {
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  align-self: start;
}
.curso-sidebar h3 { color: var(--text-strong); font-size: 15px; margin-bottom: 14px; }
.curso-sidebar-item {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
  background: var(--card-elev2);
  border: 1px solid var(--border-card);
  transition: border-color .15s, color .15s;
}
.curso-sidebar-item:hover { border-color: var(--primary); color: var(--text-strong); }
.curso-sidebar-item.atual { border-color: var(--primary); background: rgba(16,185,129,.1); color: var(--text-strong); }
.curso-sidebar-item.visto { opacity: .85; }
.modulo-bloco { margin-bottom: 10px; }
.modulo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--card-elev2);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 6px;
}
.modulo-header:hover { border-color: var(--primary); }
.modulo-titulo {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.modulo-contagem { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.modulo-chevron { transition: transform .2s; color: var(--text-muted); font-size: 10px; }
.modulo-bloco.fechado .modulo-chevron { transform: rotate(-90deg); }
.modulo-bloco.fechado .modulo-aulas { display: none; }
.modulo-aulas { padding-left: 0; }
.curso-sidebar-item .check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #475569;
  margin-right: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}
.curso-sidebar-item.visto .check { background: #10b981; border-color: #10b981; color: white; }

.progresso-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progresso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .3s ease;
}
.progresso-texto { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.materiais-list { margin-top: 28px; }
.materiais-titulo {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.material-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-elev1);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
  transition: all .2s;
}
.material-item { color: var(--text); }
.material-item:hover { border-color: var(--primary); color: var(--text-strong); }
.material-icone {
  width: 40px;
  height: 40px;
  background: rgba(16,185,129,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.material-nome { flex: 1; font-weight: 500; }
.material-baixar {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  background: rgba(16,185,129,.1);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.material-item:hover .material-baixar { background: var(--primary); color: white; }

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 18px;
}
.btn-voltar:hover { color: var(--text-strong); }

@media (max-width: 600px) {
  .membro-header-inner { flex-wrap: wrap; gap: 12px; }
  .membro-nav { width: 100%; overflow-x: auto; gap: 18px; }
  .membro-nav a.ativo::after { bottom: -8px; }
  .membro-hero { padding: 28px 20px; }
  .membro-hero h1 { font-size: 24px; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 24px; }
  .container { padding: 20px 16px; }
}
