/* ============================================
   NUMÍSTICA E.R. — Folha de Estilos Principal
   Tema: Verde Musgo + Dourado
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ---- Variáveis ---- */
:root {
  --musgo:        #3D5A3E;
  --musgo-dark:   #2A3E2B;
  --musgo-mid:    #5A7A5B;
  --musgo-light:  #EBF0E6;
  --musgo-pale:   #F3F7F0;
  --gold:         #C5973A;
  --gold-light:   #F5EDD4;
  --gold-dark:    #8B6820;
  --cream:        #FDFAF4;
  --dark:         #1E2B1F;
  --mid:          #4A5C4B;
  --light:        #8A9E8B;
  --white:        #FFFFFF;
  --shadow:       0 2px 16px rgba(42,62,43,0.10);
  --shadow-lg:    0 8px 40px rgba(42,62,43,0.15);
  --radius:       10px;
  --radius-lg:    16px;
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Lora', serif;
  --transition:   0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--dark); line-height: 1.7; }
a { color: var(--musgo); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ---- Container ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   TOP NAV
   ============================================ */
.topnav {
  background: var(--musgo-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.topnav-brand {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--gold); letter-spacing: .12em;
}
.topnav-right { display: flex; align-items: center; gap: .6rem; }
.topnav-user { font-family: var(--font-head); font-size: .8rem; color: #aac4aa; margin-right: .4rem; }
.btn-nav {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  color: var(--musgo-light); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 6px;
  padding: .3rem .8rem; transition: all var(--transition);
}
.btn-nav:hover { background: rgba(255,255,255,.18); color: var(--white); }
.btn-nav-out { color: #f5a5a5; border-color: rgba(245,165,165,.3); }
.btn-nav-out:hover { background: rgba(245,80,80,.15); color: #fff; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; background: var(--gold); color: var(--dark);
  border: none; border-radius: var(--radius); padding: .7rem 1.8rem;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; background: var(--musgo); color: var(--white);
  border: none; border-radius: var(--radius); padding: .7rem 1.8rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-secondary:hover { background: var(--musgo-dark); }
.btn-outline {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; background: transparent; color: var(--musgo);
  border: 2px solid var(--musgo); border-radius: var(--radius); padding: .65rem 1.6rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { background: var(--musgo); color: var(--white); }
.btn-full { width: 100%; }

/* ============================================
   FORMS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  color: var(--mid); text-transform: uppercase; letter-spacing: .06em;
}
.form-group input, .form-group select {
  font-family: var(--font-body); font-size: .95rem; color: var(--dark);
  background: var(--white); border: 1.5px solid #d0ddd0;
  border-radius: var(--radius); padding: .7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--musgo);
  box-shadow: 0 0 0 3px rgba(61,90,62,.12);
}
.alert { border-radius: var(--radius); padding: .85rem 1.2rem; margin-bottom: 1rem; font-family: var(--font-head); font-size: .9rem; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }
.alert-ok    { background: #eaf5ec; color: #1a7a30; border: 1px solid #b7dfc0; }

/* ============================================
   INDEX / LOGIN PAGE
   ============================================ */
.page-login { background: var(--cream); }

.hero {
  position: relative; min-height: 480px;
  background: linear-gradient(135deg, var(--musgo-dark) 0%, var(--musgo) 60%, #5a8a5b 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(26,42,27,.35); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 3rem 1.5rem; }
.brand-badge {
  display: inline-block; font-family: var(--font-head); font-size: .75rem;
  font-weight: 700; letter-spacing: .18em; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 4px;
  padding: .3rem .9rem; margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-sub { font-family: var(--font-body); font-style: italic; font-size: 1.1rem; color: #b8d4b9; margin-bottom: 2rem; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.stat { font-family: var(--font-head); font-size: .85rem; color: #c8dfc8; }
.stat span { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* Login section */
.login-section { display: flex; justify-content: center; padding: 3rem 1.5rem; }
.login-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; overflow: hidden;
}
.login-card-header {
  background: linear-gradient(135deg, var(--musgo-dark), var(--musgo));
  padding: 2rem; text-align: center; color: var(--white);
}
.coin-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.login-card-header h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .3rem; }
.login-card-header p { font-size: .9rem; color: #b8d4b9; }
.login-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.login-footer-note {
  padding: 1rem 2rem 1.5rem; text-align: center;
  font-family: var(--font-head); font-size: .78rem; color: var(--light);
}

/* Sobre section */
.sobre-section { padding: 4rem 1.5rem; background: var(--musgo-pale); }
.section-heading {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--musgo-dark); text-align: center; margin-bottom: 2.5rem;
}
.section-heading::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--gold); margin: .6rem auto 0;
}
.modulos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.mod-card {
  background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  border-left: 4px solid var(--gold); box-shadow: var(--shadow);
}
.mod-num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
  color: var(--gold); line-height: 1; min-width: 40px;
}
.mod-info h3 { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--musgo-dark); margin-bottom: .3rem; }
.mod-info p { font-size: .85rem; color: var(--mid); line-height: 1.5; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-hero {
  background: linear-gradient(135deg, var(--musgo-dark), var(--musgo));
  color: var(--white); padding: 2.5rem 0;
}
.dashboard-hero h1 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: .3rem; }
.dashboard-hero p { color: #b8d4b9; font-size: 1rem; }
.dashboard-body { padding: 2.5rem 1.5rem; }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--white); border-radius: var(--radius); padding: 1.2rem;
  text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--gold);
}
.stat-val { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--musgo); line-height: 1; }
.stat-lbl { font-family: var(--font-head); font-size: .75rem; color: var(--light); text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; display: block; }

.progress-global { margin-bottom: 2rem; }
.progress-track { height: 8px; background: #dde8dd; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--musgo), var(--gold)); border-radius: 99px; transition: width .6s ease; }

.section-heading-sm {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--musgo-dark); margin: 2rem 0 1rem;
  border-left: 4px solid var(--gold); padding-left: .8rem;
}
.module-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }

.mod-card-dash {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow);
  border: 1.5px solid #e0eae0; transition: transform var(--transition), box-shadow var(--transition);
}
.mod-card-dash:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mod-card-dash.mod-status-completo { border-color: var(--gold); }
.mod-card-top { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1rem; }
.mod-num-badge {
  min-width: 40px; height: 40px; border-radius: 10px;
  background: var(--musgo-dark); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.mod-card-title h3 { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--musgo-dark); }
.mod-card-title span { font-size: .78rem; color: var(--light); }
.mod-badge-done {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.mod-progress-bar { height: 6px; background: #e0eae0; border-radius: 99px; overflow: hidden; margin-bottom: .4rem; }
.mod-progress-fill { height: 100%; background: linear-gradient(90deg, var(--musgo), var(--gold)); border-radius: 99px; }
.mod-progress-label { font-family: var(--font-head); font-size: .75rem; color: var(--light); margin-bottom: 1rem; }
.mod-card-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.btn-mod-start {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  background: var(--musgo); color: var(--white);
  border-radius: 8px; padding: .45rem 1rem;
  transition: background var(--transition);
}
.btn-mod-start:hover { background: var(--musgo-dark); color: var(--white); }
.btn-mod-quiz {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  background: var(--gold); color: var(--dark);
  border-radius: 8px; padding: .45rem 1rem;
}
.btn-mod-quiz:hover { background: var(--gold-dark); color: var(--white); }
.nota-badge {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  border-radius: 8px; padding: .35rem .8rem;
}
.nota-ok   { background: #eaf5ec; color: #1a7a30; }
.nota-baixa{ background: #fdecea; color: #c0392b; }

/* Notes table */
.table-wrap { overflow-x: auto; }
.notas-table, .admin-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-head); font-size: .85rem;
}
.notas-table th, .admin-table th {
  background: var(--musgo-dark); color: var(--gold);
  padding: .7rem 1rem; text-align: left; font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.notas-table td, .admin-table td {
  padding: .7rem 1rem; border-bottom: 1px solid #e8f0e8; color: var(--dark);
}
.notas-table tr:hover td, .admin-table tr:hover td { background: var(--musgo-pale); }
.nota-cell { font-weight: 700; font-size: 1.05rem; }

/* ============================================
   CURSO LAYOUT
   ============================================ */
.curso-layout { display: flex; min-height: calc(100vh - 56px); }

/* Sidebar */
.curso-sidebar {
  width: 300px; min-width: 300px; background: var(--musgo-dark);
  overflow-y: auto; position: sticky; top: 56px;
  height: calc(100vh - 56px);
}
.sidebar-header {
  padding: 1rem 1.2rem; background: rgba(0,0,0,.2);
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  color: var(--gold); letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-close { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 1rem; display: none; }
.sidebar-module {}
.sidebar-mod-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.2rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.sidebar-mod-header:hover { background: rgba(255,255,255,.06); }
.sidebar-module.active .sidebar-mod-header { background: rgba(197,151,58,.12); }
.sidebar-mod-num {
  min-width: 28px; height: 28px; border-radius: 6px;
  background: var(--gold); color: var(--dark);
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-mod-title { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--white); flex: 1; }
.sidebar-mod-chevron { color: var(--gold); font-size: .7rem; }
.sidebar-aulas { padding: .3rem 0; background: rgba(0,0,0,.15); }
.sidebar-aula {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .5rem 1.2rem .5rem 1.6rem;
  font-family: var(--font-head); font-size: .75rem; color: #a8c4a8;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-aula:hover { background: rgba(255,255,255,.06); color: var(--white); }
.sidebar-aula.current { background: rgba(197,151,58,.18); color: var(--gold); border-left-color: var(--gold); }
.sidebar-aula.done { color: #78a878; }
.sidebar-aula.done .aula-check { color: var(--gold); }
.aula-check { font-size: .7rem; margin-top: .15rem; min-width: 14px; }
.aula-label { line-height: 1.4; }
.sidebar-quiz-link {
  display: block; padding: .5rem 1.2rem .5rem 1.6rem;
  font-family: var(--font-head); font-size: .75rem; color: var(--gold);
  border-top: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.sidebar-quiz-link:hover { background: rgba(197,151,58,.15); }
.sidebar-quiz-pending { color: #aaaaaa; }

/* Main area */
.curso-main { flex: 1; padding: 2rem 2.5rem; max-width: 860px; }
.breadcrumb {
  font-family: var(--font-head); font-size: .78rem; color: var(--light);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem;
}
.breadcrumb a { color: var(--musgo-mid); }
.breadcrumb a:hover { color: var(--gold); }

.aula-header { margin-bottom: 2rem; }
.aula-mod-tag {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  color: var(--musgo-mid); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .5rem;
}
.aula-main-title {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
  color: var(--musgo-dark); line-height: 1.2; margin-bottom: 1rem;
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.aula-num-tag {
  font-size: .8rem; font-weight: 700; background: var(--gold);
  color: var(--dark); border-radius: 6px; padding: .2rem .6rem;
  white-space: nowrap;
}
.aula-mod-progress { height: 5px; background: #dde8dd; border-radius: 99px; overflow: hidden; margin-bottom: .3rem; }
.aula-mod-progress-fill { height: 100%; background: var(--gold); border-radius: 99px; }
.aula-mod-progress-label { font-family: var(--font-head); font-size: .75rem; color: var(--light); }

/* Content */
.aula-content { font-family: var(--font-body); font-size: 1rem; line-height: 1.8; color: var(--dark); }
.aula-section { margin: 1.8rem 0 .8rem; padding-bottom: .6rem; border-bottom: 1.5px solid var(--gold-light); }
.sec-num { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
.sec-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--musgo-dark); }
.subsec-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--musgo); margin: 1.2rem 0 .4rem; }
.p-body { margin-bottom: .9rem; text-indent: 1.2rem; }
.p-activity { margin-bottom: .5rem; font-size: .95rem; }
.ul-content { margin: .5rem 0 1rem 1rem; }
.ul-content li { margin-bottom: .35rem; padding-left: .3rem; }
.ul-content li::marker { color: var(--gold); }
.ul-activity {
  background: var(--musgo-light); border-left: 3px solid var(--musgo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .8rem 1rem .8rem 1.5rem; margin: .6rem 0 1rem;
}
.ul-activity li { margin-bottom: .3rem; font-size: .92rem; list-style: none; }
.ul-activity li::before { content: '▸ '; color: var(--gold); }
.aula-quote {
  background: var(--gold-light); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem; margin: 1.2rem 0;
  font-size: 1.05rem; color: var(--musgo-dark); text-align: center;
}

/* Aula navigation */
.aula-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1.5px solid var(--musgo-light);
}
.btn-aula-nav {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  border-radius: var(--radius); padding: .65rem 1.4rem;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-prev { background: var(--musgo-light); color: var(--musgo-dark); }
.btn-prev:hover { background: var(--musgo); color: var(--white); }
.btn-next { background: var(--musgo); color: var(--white); }
.btn-next:hover { background: var(--musgo-dark); color: var(--white); }
.btn-quiz-cta { background: var(--gold); color: var(--dark); }
.btn-quiz-cta:hover { background: var(--gold-dark); color: var(--white); }
.aula-nav-center { flex: 1; text-align: center; }
.aula-counter { font-family: var(--font-head); font-size: .8rem; color: var(--light); }

/* Quiz CTA box */
.quiz-cta-box {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--gold-light); border: 2px solid var(--gold);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem;
}
.quiz-cta-icon { font-size: 2.5rem; }
.quiz-cta-box h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--musgo-dark); }
.quiz-cta-box p { font-size: .88rem; color: var(--mid); }
.quiz-cta-box .btn-primary { margin-left: auto; white-space: nowrap; }

/* Mobile sidebar toggle */
.sidebar-toggle-btn {
  display: none; position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--musgo-dark); color: var(--gold);
  border: 2px solid var(--gold); font-size: 1.4rem;
  box-shadow: var(--shadow-lg); cursor: pointer; transition: all var(--transition);
}
.sidebar-toggle-btn:hover { background: var(--gold); color: var(--dark); }

/* ============================================
   QUIZ
   ============================================ */
.quiz-container { max-width: 760px; padding: 2rem 1.5rem; }
.quiz-header { text-align: center; margin-bottom: 2.5rem; }
.quiz-mod-badge {
  display: inline-block; font-family: var(--font-head); font-size: .75rem;
  font-weight: 700; letter-spacing: .12em; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 4px; padding: .3rem .9rem; margin-bottom: .8rem;
}
.quiz-header h1 { font-family: var(--font-head); font-size: 1.7rem; color: var(--musgo-dark); margin-bottom: .3rem; }
.quiz-header p { color: var(--light); font-size: .9rem; }
.nota-anterior {
  display: inline-block; margin-top: .7rem;
  background: var(--musgo-light); border-radius: 8px;
  padding: .4rem 1rem; font-family: var(--font-head); font-size: .8rem; color: var(--mid);
}

.quiz-pergunta {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid #e0eae0; padding: 1.5rem; margin-bottom: 1.2rem;
  transition: border-color var(--transition);
}
.quiz-pergunta.answered { border-color: var(--musgo); }
.pergunta-header { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1rem; }
.pergunta-num {
  min-width: 32px; height: 32px; border-radius: 50%;
  background: var(--musgo-dark); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.pergunta-texto { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--dark); flex: 1; }
.opcoes-list { display: flex; flex-direction: column; gap: .5rem; }
.opcao-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem; border-radius: var(--radius);
  border: 1.5px solid #e0eae0; cursor: pointer;
  transition: all var(--transition);
}
.opcao-item:hover { border-color: var(--musgo); background: var(--musgo-pale); }
.opcao-item.selected { border-color: var(--musgo); background: var(--musgo-light); }
.opcao-item input[type=radio] { display: none; }
.opcao-letter {
  min-width: 28px; height: 28px; border-radius: 50%;
  background: var(--musgo-light); color: var(--musgo-dark);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.opcao-item.selected .opcao-letter { background: var(--musgo); color: var(--white); }
.opcao-text { font-family: var(--font-head); font-size: .88rem; color: var(--dark); }

.quiz-progress-bar { height: 6px; background: #dde8dd; border-radius: 99px; overflow: hidden; margin: 1.5rem 0 .4rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--musgo), var(--gold)); transition: width .3s; }
.quiz-progress-label { font-family: var(--font-head); font-size: .8rem; color: var(--light); text-align: center; margin-bottom: 1.5rem; }
.quiz-submit-area { text-align: center; padding-top: 1rem; }
.btn-quiz-submit { font-size: 1rem; padding: .9rem 2.5rem; }

/* Resultado */
.quiz-resultado { max-width: 760px; }
.resultado-score {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; margin-bottom: 2rem; border: 2px solid var(--musgo-light);
  box-shadow: var(--shadow);
}
.resultado-score.aprovado { border-color: #b7dfc0; background: #eaf5ec; }
.resultado-score.reprovado { border-color: #f5c6c2; background: #fdecea; }
.score-circle {
  text-align: center; background: var(--musgo-dark); border-radius: 50%;
  width: 90px; height: 90px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-width: 90px;
}
.score-nota { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.score-label { font-family: var(--font-head); font-size: .7rem; color: #aac4aa; }
.score-info h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--musgo-dark); margin-bottom: .3rem; }
.score-info p { font-size: .9rem; color: var(--mid); }
.score-pct { font-weight: 600; }

.gabarito-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--musgo-dark); margin-bottom: 1rem; }
.gabarito-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.gabarito-item {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem; border: 1.5px solid #e0eae0;
}
.gab-certo { border-color: #b7dfc0; background: #f0faf3; }
.gab-errado { border-color: #f5c6c2; background: #fef8f7; }
.gab-num {
  min-width: 30px; height: 30px; border-radius: 50%;
  background: var(--musgo-dark); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.gab-content { flex: 1; }
.gab-q { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: .3rem; }
.gab-sua { font-size: .82rem; color: #c0392b; margin-bottom: .2rem; }
.gab-certa { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: #1a7a30; }
.gab-icon { font-size: 1.2rem; }
.resultado-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid #e0eae0; }

/* ============================================
   ADMIN
   ============================================ */
.admin-body { padding: 2rem 1.5rem; }
.admin-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--musgo-dark); margin-bottom: 1.5rem; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.admin-card h2 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--musgo-dark); margin-bottom: 1.2rem; border-left: 4px solid var(--gold); padding-left: .7rem; }
.admin-form .form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; margin-bottom: 1rem; }
.td-mod { text-align: center; }
.nota-sm { font-family: var(--font-head); font-size: .82rem; font-weight: 700; border-radius: 6px; padding: .2rem .5rem; }
.prog-sm { font-family: var(--font-head); font-size: .75rem; color: var(--light); }
.nd { color: #ccc; }
.td-actions { white-space: nowrap; }
.btn-sm { font-family: var(--font-head); font-size: .75rem; border: none; border-radius: 5px; padding: .3rem .5rem; cursor: pointer; transition: all var(--transition); }
.btn-toggle { background: #e8f0e8; color: var(--musgo-dark); }
.btn-toggle:hover { background: var(--musgo); color: var(--white); }
.btn-reset { background: var(--gold-light); color: var(--gold-dark); }
.btn-reset:hover { background: var(--gold); color: var(--dark); }
.btn-del { background: #fdecea; color: #c0392b; }
.btn-del:hover { background: #c0392b; color: var(--white); }
.btn-ok { background: var(--musgo); color: var(--white); }
.badge-perfil { font-family: var(--font-head); font-size: .72rem; font-weight: 700; border-radius: 5px; padding: .2rem .5rem; }
.badge-admin { background: var(--gold-light); color: var(--gold-dark); }
.badge-aluno { background: var(--musgo-light); color: var(--musgo-dark); }
.badge-on { background: #eaf5ec; color: #1a7a30; font-family: var(--font-head); font-size: .75rem; padding: .2rem .5rem; border-radius: 5px; }
.badge-off { background: #fdecea; color: #c0392b; font-family: var(--font-head); font-size: .75rem; padding: .2rem .5rem; border-radius: 5px; }
.row-inactive td { opacity: .55; }
.td-nota { text-align: center; }
.badge-status { font-family: var(--font-head); font-size: .75rem; font-weight: 600; border-radius: 5px; padding: .25rem .6rem; }
.aprovado   { background: #eaf5ec; color: #1a7a30; }
.em-andamento { background: var(--musgo-light); color: var(--musgo-dark); }
.reprovado  { background: #fdecea; color: #c0392b; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--musgo-dark); color: #7a9a7a;
  text-align: center; padding: 1.2rem;
  font-family: var(--font-head); font-size: .78rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .curso-sidebar { display: none; position: fixed; left: 0; top: 0; height: 100vh; z-index: 300; }
  .curso-sidebar.open { display: flex; flex-direction: column; }
  .sidebar-close { display: block; }
  .sidebar-toggle-btn { display: flex; align-items: center; justify-content: center; }
  .curso-main { padding: 1.5rem 1.2rem; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .aula-main-title { font-size: 1.35rem; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: .7rem; }
  .stat-sep { display: none; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .resultado-score { flex-direction: column; text-align: center; }
  .quiz-cta-box { flex-direction: column; text-align: center; }
  .quiz-cta-box .btn-primary { margin-left: 0; width: 100%; }
  .aula-nav { flex-wrap: wrap; }
  .btn-aula-nav { flex: 1; text-align: center; }
  .admin-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN V2 — Layout com sidebar
   ============================================ */
.admin-wrap { display: flex; min-height: calc(100vh - 56px); }

.admin-sidebar {
  width: 220px; min-width: 220px;
  background: var(--musgo-dark);
  padding: 1.5rem 0;
}
.admin-sidebar-title {
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  color: var(--gold); letter-spacing: .15em; text-transform: uppercase;
  padding: 0 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .5rem;
}
.admin-nav-item {
  display: block; padding: .7rem 1.2rem;
  font-family: var(--font-head); font-size: .85rem; color: #a8c4a8;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.admin-nav-item:hover { background: rgba(255,255,255,.07); color: var(--white); }
.admin-nav-item.active { background: rgba(197,151,58,.15); color: var(--gold); border-left-color: var(--gold); }

.admin-main { flex: 1; padding: 2rem 2.5rem; }

/* Cadastro form */
.cadastro-form { display: flex; flex-direction: column; gap: 0; }
.form-section {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--musgo-light);
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--musgo-dark); margin-bottom: 1rem;
  padding-left: .7rem; border-left: 3px solid var(--gold);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.form-col-2 { grid-column: span 2; }
.form-group textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--dark);
  background: var(--white); border: 1.5px solid #d0ddd0;
  border-radius: var(--radius); padding: .7rem 1rem; width: 100%;
  resize: vertical; transition: border-color var(--transition);
}
.form-group textarea:focus { outline: none; border-color: var(--musgo); box-shadow: 0 0 0 3px rgba(61,90,62,.12); }
.form-group small { color: var(--light); font-size: .75rem; }
.form-actions { display: flex; gap: 1rem; padding-top: .5rem; }

/* Toolbar */
.admin-card-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.search-input {
  flex: 1; font-family: var(--font-head); font-size: .88rem;
  border: 1.5px solid #d0ddd0; border-radius: var(--radius);
  padding: .6rem 1rem; background: var(--white);
}
.search-input:focus { outline: none; border-color: var(--musgo); }
.btn-sm-action {
  font-size: .82rem; padding: .55rem 1.1rem; white-space: nowrap;
}

/* Table extras */
.td-id    { color: var(--light); font-size: .78rem; }
.td-email { font-size: .82rem; color: var(--mid); }
.td-sub   { font-size: .75rem; color: var(--light); display: block; }
.td-uf    { font-size: .72rem; background: var(--musgo-light); color: var(--musgo-dark); border-radius: 4px; padding: 1px 4px; margin-left: 3px; }
.td-ocupacao { font-size: .82rem; color: var(--mid); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-bar  { height: 5px; background: #e0eae0; border-radius: 99px; overflow: hidden; width: 80px; margin-bottom: 2px; }
.mini-fill { height: 100%; background: linear-gradient(90deg, var(--musgo), var(--gold)); border-radius: 99px; }

.btn-edit { background: #e8f0ff; color: #2255cc; }
.btn-edit:hover { background: #2255cc; color: white; }
.btn-obs  { background: var(--gold-light); color: var(--gold-dark); cursor: help; }

.table-count { font-family: var(--font-head); font-size: .78rem; color: var(--light); margin-top: .8rem; text-align: right; }

@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; min-width: unset; display: flex; flex-wrap: wrap; padding: .5rem; gap: .3rem; }
  .admin-sidebar-title { display: none; }
  .admin-nav-item { border-left: none; border-bottom: 2px solid transparent; padding: .5rem .8rem; font-size: .8rem; }
  .admin-nav-item.active { border-bottom-color: var(--gold); }
  .admin-main { padding: 1.2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-col-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-col-2 { grid-column: span 1; }
}

/* ============================================
   ADMIN DASHBOARD EXTRAS
   ============================================ */
.dash-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.dash-stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.4rem;
  text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--gold);
}
.dsc-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.dsc-val  { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--musgo-dark); line-height: 1; }
.dsc-lbl  { font-family: var(--font-head); font-size: .72rem; color: var(--light); text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; }

.dash-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.dash-chart-card h3 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--musgo-dark); margin-bottom: 1rem; }

/* Certificate button on dashboard */
.btn-cert {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  background: var(--gold-light); color: var(--gold-dark);
  border: 1.5px solid var(--gold); border-radius: 8px; padding: .45rem 1rem;
  transition: all var(--transition);
}
.btn-cert:hover { background: var(--gold); color: var(--dark); }

@media (max-width: 900px) {
  .dash-stats   { grid-template-columns: repeat(2,1fr); }
  .dash-charts  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================
   CONTEÚDO DAS AULAS — Formatação Rica
   ============================================ */
.aula-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark);
}

/* Seção numerada */
.aula-content .aula-section {
  margin: 2rem 0 .8rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold-light);
}
.aula-content .sec-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .2rem;
}
.aula-content .sec-title {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--musgo-dark);
  margin: 0;
  border: none;
  padding: 0;
}
.aula-content h3.sec-title {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* Subtítulos */
.aula-content .subsec-title {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 600;
  color: var(--musgo);
  margin: 1.2rem 0 .4rem;
  padding-left: .7rem;
  border-left: 3px solid var(--musgo-light);
}

/* Parágrafos */
.aula-content .p-body {
  margin-bottom: .95rem;
  text-indent: 1.1rem;
}
.aula-content .p-activity {
  margin-bottom: .5rem;
  font-size: .93rem;
  color: var(--mid);
}

/* Lista normal */
.aula-content .ul-content {
  list-style: none;
  margin: .5rem 0 1.2rem;
  padding: 0;
}
.aula-content .ul-content li {
  position: relative;
  padding: .32rem .5rem .32rem 1.4rem;
  margin-bottom: .2rem;
  font-size: .97rem;
  color: var(--mid);
  border-bottom: 1px solid rgba(61,90,62,.07);
}
.aula-content .ul-content li:last-child { border-bottom: none; }
.aula-content .ul-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .78rem;
  top: .44rem;
}

/* Lista de atividade */
.aula-content .ul-activity {
  list-style: none;
  background: var(--musgo-light);
  border-left: 3px solid var(--musgo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.2rem .9rem 1.5rem;
  margin: .7rem 0 1.2rem;
}
.aula-content .ul-activity li {
  padding: .3rem 0;
  font-size: .93rem;
  color: var(--musgo-dark);
  border-bottom: 1px solid rgba(61,90,62,.1);
}
.aula-content .ul-activity li:last-child { border-bottom: none; }
.aula-content .ul-activity li::before {
  content: '✓ ';
  color: var(--musgo);
  font-weight: 700;
}

/* Citação em destaque */
.aula-content .aula-quote {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.6rem;
  margin: 1.4rem 0;
  font-size: 1.04rem;
  color: var(--musgo-dark);
  font-style: italic;
  text-align: center;
  line-height: 1.7;
}

/* ============================================
   MINHA COLEÇÃO
   ============================================ */

/* Hero */
.colecao-hero {
  background: linear-gradient(135deg, var(--musgo-dark) 0%, var(--musgo) 60%, #6a9a5b 100%);
  padding: 2.5rem 0;
}
.colecao-hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.colecao-hero-label {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: .4rem;
}
.colecao-hero-text h1 {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: .4rem;
}
.colecao-hero-text p { color: #b8d4b9; font-size: .93rem; margin-bottom: .8rem; }
.btn-edit-perfil {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  padding: .35rem .9rem; cursor: pointer; transition: all var(--transition);
}
.btn-edit-perfil:hover { background: rgba(255,255,255,.22); }
.colecao-hero-stats { display: flex; gap: 1.8rem; }
.ch-stat { text-align: center; }
.ch-val {
  display: block; font-family: var(--font-head); font-size: 1.8rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.ch-lbl { font-family: var(--font-head); font-size: .68rem; color: #a8c4a8; text-transform: uppercase; letter-spacing: .07em; }

/* Perfil form */
.perfil-form-wrap { background: rgba(61,90,62,.06); border-bottom: 2px solid var(--musgo-light); padding: 1.2rem 0; }
.perfil-form { display: flex; flex-direction: column; gap: .8rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Tabs */
.col-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.col-tab {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  background: #fff; color: var(--mid);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.col-tab:hover { border-color: var(--musgo); color: var(--musgo-dark); }
.col-tab.active { background: var(--musgo-dark); color: var(--gold); border-color: var(--musgo-dark); }
.col-tab-badge {
  font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.2); color: inherit;
  border-radius: 99px; padding: .1rem .5rem; min-width: 22px; text-align: center;
}
.col-tab.active .col-tab-badge { background: rgba(197,151,58,.3); }

/* Form card */
.col-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.col-card-title {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--musgo-dark); display: flex; align-items: center; justify-content: space-between;
  padding-left: .7rem; border-left: 4px solid var(--gold);
}
.col-form-toggle {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  background: var(--musgo-light); color: var(--musgo-dark);
  border: none; border-radius: 6px; padding: .3rem .8rem; cursor: pointer;
}

/* Form blocks */
.form-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--musgo-light); }
.form-block:last-of-type { border-bottom: none; margin-bottom: 0; }
.form-block-title {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  color: var(--musgo-dark); margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .07em;
}
.form-grid-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }

/* Toolbar */
.col-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.col-filters { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; flex: 1; }
.col-search { flex: 1; min-width: 180px; font-family: var(--font-head); font-size: .85rem; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .55rem .9rem; }
.col-search:focus { outline: none; border-color: var(--musgo); }
.col-filter-select { font-family: var(--font-head); font-size: .82rem; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .5rem .7rem; background: #fff; }
.col-filter-ano { width: 90px; font-family: var(--font-head); font-size: .82rem; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .5rem .7rem; }
.col-count { font-family: var(--font-head); font-size: .78rem; color: var(--light); white-space: nowrap; }

/* Empty state */
.col-empty { text-align: center; padding: 4rem 2rem; color: var(--light); }
.col-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.col-empty h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--mid); margin-bottom: .4rem; }
.col-empty p { font-size: .88rem; }

/* Item grid */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.col-item-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.col-item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.col-item-img {
  height: 140px; background: var(--musgo-light);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.col-item-img img { width: 100%; height: 100%; object-fit: cover; }
.col-item-placeholder { font-size: 3.5rem; opacity: .4; }
.col-badge-com {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-head); font-size: .65rem; font-weight: 700;
  background: var(--gold); color: var(--dark); border-radius: 4px; padding: .2rem .5rem;
}
.col-badge-cons {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  background: var(--musgo-dark); color: var(--gold); border-radius: 4px; padding: .2rem .5rem;
}

.col-item-body { padding: 1rem 1.1rem; }
.col-item-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .5rem; }
.col-item-pais { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--musgo-dark); }
.col-item-sub { font-size: .75rem; color: var(--light); }
.col-item-valor-facial {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  background: var(--musgo-light); color: var(--musgo-dark);
  border-radius: 6px; padding: .2rem .6rem; white-space: nowrap;
}
.col-item-serie { font-size: .76rem; color: var(--musgo); margin-bottom: .5rem; }
.col-item-medidas {
  display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem;
}
.col-item-medidas span {
  font-family: var(--font-head); font-size: .72rem; color: var(--mid);
  background: var(--musgo-light); border-radius: 4px; padding: .15rem .45rem;
}
.col-item-valores { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.col-val-est { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--gold-dark); }
.col-val-pago { font-family: var(--font-head); font-size: .78rem; color: var(--light); }
.col-item-footer { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.col-qtd { font-family: var(--font-head); font-size: .75rem; font-weight: 600; color: var(--musgo); }
.col-data { font-family: var(--font-head); font-size: .72rem; color: var(--light); }
.col-item-obs { font-size: .76rem; color: var(--light); border-top: 1px solid var(--musgo-light); padding-top: .4rem; margin-bottom: .5rem; }
.col-item-actions { display: flex; gap: .5rem; padding-top: .4rem; border-top: 1px solid var(--musgo-light); }
.col-btn-edit, .col-btn-del {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  border-radius: 6px; padding: .32rem .7rem; cursor: pointer; transition: all var(--transition); border: none;
}
.col-btn-edit { background: var(--musgo-light); color: var(--musgo-dark); }
.col-btn-edit:hover { background: var(--musgo); color: #fff; }
.col-btn-del { background: #fdecea; color: var(--red); }
.col-btn-del:hover { background: var(--red); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .form-grid-col { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .colecao-hero-stats { gap: 1rem; }
}
@media (max-width: 600px) {
  .form-grid-col { grid-template-columns: 1fr; }
  .colecao-hero-inner { flex-direction: column; }
  .colecao-hero-stats { width: 100%; justify-content: space-around; }
  .col-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DASHBOARD — HOME CARDS
   ============================================ */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.home-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
  color: var(--dark);
}
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--musgo);
  color: var(--dark);
}
.home-card-gold { border-color: var(--gold-lt); }
.home-card-gold:hover { border-color: var(--gold); }
.home-card-locked {
  opacity: .75;
  cursor: default;
  pointer-events: none;
  filter: grayscale(30%);
}
.home-card-locked:hover { transform: none; box-shadow: var(--shadow); }
.home-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--musgo-lt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card-gold .home-card-icon { background: var(--gold-lt); }
.home-card-content { flex: 1; }
.home-card-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--musgo-dk);
  margin-bottom: .4rem;
}
.home-card-content p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.home-card-progress { margin-bottom: .6rem; }
.home-card-progress-bar {
  height: 5px;
  background: var(--musgo-lt);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .3rem;
}
.home-card-progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--musgo), var(--gold));
  border-radius: 99px;
}
.home-card-progress span {
  font-family: var(--font-head);
  font-size: .72rem;
  color: var(--light);
}
.home-card-cta {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--musgo);
}
.home-card-gold .home-card-cta { color: var(--gold-dk); }
.home-card-blocked {
  font-family: var(--font-head);
  font-size: .8rem;
  color: var(--red);
  background: #fdecea;
  border-radius: 6px;
  padding: .5rem .8rem;
  line-height: 1.5;
}

/* ============================================
   CURSOS PAGE
   ============================================ */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.curso-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.curso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.curso-card-bloqueado { opacity: .8; }
.curso-card-em-breve { opacity: .65; }
.curso-card-header {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.curso-icon { font-size: 3.5rem; }
.curso-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  background: rgba(0,0,0,.45);
  color: #fff;
  border-radius: 5px;
  padding: .25rem .6rem;
}
.curso-card-body { padding: 1.4rem 1.6rem; }
.curso-nivel {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  color: var(--musgo);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.curso-titulo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--musgo-dk);
  margin-bottom: .2rem;
}
.curso-subtitulo {
  font-family: var(--font-body);
  font-size: .88rem;
  font-style: italic;
  color: var(--musgo);
  margin-bottom: .7rem;
}
.curso-descricao {
  font-size: .85rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.curso-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--musgo-lt);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: .2rem;
}
.curso-meta-item { text-align: center; flex: 1; }
.curso-meta-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--musgo-dk);
  line-height: 1;
}
.curso-meta-lbl {
  font-family: var(--font-head);
  font-size: .65rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.curso-meta-sep { width: 1px; height: 30px; background: var(--border); }
.curso-indisponivel {
  margin-top: 1.2rem;
  background: #fdecea;
  border-radius: var(--radius);
  padding: .8rem 1rem;
  text-align: center;
}
.curso-indisponivel span {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: .2rem;
}
.curso-indisponivel p {
  font-family: var(--font-head);
  font-size: .75rem;
  color: #888;
}

/* ============================================
   COLEÇÃO — VIEW TOGGLE + LIST MODE
   ============================================ */
.colecao-hero-centered {
  background: linear-gradient(135deg, var(--musgo-dk) 0%, var(--musgo) 60%, #6a9a5b 100%);
  padding: 2.2rem 0;
  text-align: center;
}
.colecao-hero-centered .colecao-hero-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.colecao-hero-centered h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.colecao-hero-centered p { color: #b8d4b9; font-size: .9rem; margin-bottom: .8rem; }

.col-view-toggle {
  display: flex;
  gap: .3rem;
  margin-left: .5rem;
}
.col-view-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: all var(--ease);
}
.col-view-btn:hover { border-color: var(--musgo); color: var(--musgo); }
.col-view-btn.active { background: var(--musgo-dk); color: var(--gold); border-color: var(--musgo-dk); }

/* List view */
.col-list { display: flex; flex-direction: column; gap: .5rem; }
.col-list-row {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.col-list-row:hover { border-color: var(--musgo); box-shadow: var(--shadow-sm); }
.col-list-row.expanded { border-color: var(--gold); }

.col-list-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.2rem;
}
.col-list-icon { font-size: 1.4rem; flex-shrink: 0; }
.col-list-main { flex: 1.5; min-width: 0; }
.col-list-pais {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--musgo-dk);
  display: block;
}
.col-list-ano {
  font-family: var(--font-head);
  font-size: .75rem;
  color: var(--light);
}
.col-list-mid { flex: 1; display: flex; align-items: center; gap: .3rem; }
.col-list-val {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-dk);
  flex: 1;
  text-align: right;
}
.col-list-qtd {
  font-family: var(--font-head);
  font-size: .75rem;
  color: var(--light);
  white-space: nowrap;
  margin-left: .5rem;
}
.col-list-chevron {
  font-size: .85rem;
  color: var(--gold);
  margin-left: .5rem;
  flex-shrink: 0;
  transition: transform var(--ease);
}

/* Expandable detail */
.col-list-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.col-list-detail-inner {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.5rem 1.2rem;
  border-top: 1px solid var(--musgo-lt);
  background: var(--musgo-pale);
  flex-wrap: wrap;
}
.col-list-foto {
  flex-shrink: 0;
}
.col-list-foto img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}
.col-list-info {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .8rem;
  align-content: start;
}
.col-list-info-row {
  display: flex;
  flex-direction: column;
}
.col-list-info-row span {
  font-family: var(--font-head);
  font-size: .66rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.col-list-info-row strong {
  font-family: var(--font-head);
  font-size: .84rem;
  color: var(--dark);
}
.col-list-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  justify-content: flex-start;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .home-cards { grid-template-columns: 1fr; }
  .cursos-grid { grid-template-columns: 1fr; }
  .col-list-info { grid-template-columns: 1fr; }
  .col-list-mid { display: none; }
}
@media (max-width: 600px) {
  .col-list-val { display: none; }
}

/* ============================================
   HOME CARDS V2 — Dashboard principal
   ============================================ */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.home-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-card-locked { opacity: .7; pointer-events: none; }
.home-card-locked:hover { transform: none; box-shadow: var(--shadow); }

.home-card-top {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hc-green { background: linear-gradient(135deg, var(--musgo-dk) 0%, var(--musgo) 100%); }
.hc-gold  { background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%); }
.home-card-big-icon { font-size: 4rem; line-height: 1; }
.home-card-lock-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 5px;
  padding: .25rem .6rem;
}
.home-card-body { padding: 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.home-card-title {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  color: var(--musgo-dk);
  margin-bottom: .5rem;
}
.home-card-desc {
  font-size: .9rem; color: var(--mid);
  line-height: 1.6; margin-bottom: 1.2rem;
  flex: 1;
}
.home-card-bar-wrap { margin-bottom: 1rem; }
.home-card-bar {
  height: 6px; background: var(--musgo-lt);
  border-radius: 99px; overflow: hidden; margin-bottom: .35rem;
}
.home-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--musgo), var(--gold));
  border-radius: 99px;
}
.home-card-bar-wrap span {
  font-family: var(--font-head); font-size: .74rem; color: var(--light);
}
.home-card-stats-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--gold-lt);
  border-radius: var(--radius); padding: .7rem 1rem;
  margin-bottom: 1rem;
}
.home-card-stat-item { text-align: center; }
.hcs-num {
  display: block;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--gold-dk); line-height: 1;
}
.hcs-lbl {
  font-family: var(--font-head); font-size: .68rem; color: var(--light);
  text-transform: uppercase; letter-spacing: .06em;
}
.home-card-stat-sep { width: 1px; height: 30px; background: var(--border); }
.home-card-btn {
  display: inline-block;
  font-family: var(--font-head); font-size: .88rem; font-weight: 700;
  border-radius: var(--radius); padding: .7rem 1.4rem;
  text-align: center; transition: all var(--ease);
}
.hc-btn-green { background: var(--musgo); color: #fff; }
.home-card:hover .hc-btn-green { background: var(--musgo-dk); }
.hc-btn-gold  { background: var(--gold); color: var(--dark); }
.home-card:hover .hc-btn-gold  { background: var(--gold-dk); color: #fff; }
.home-card-unavail {
  font-family: var(--font-head); font-size: .8rem;
  color: var(--red); background: #fdecea;
  border-radius: 6px; padding: .6rem .9rem;
  line-height: 1.5;
}

/* ============================================
   COLEÇÃO HERO V2 — Centralizado
   ============================================ */
.colecao-hero-v2 {
  background: linear-gradient(135deg, var(--musgo-dk) 0%, var(--musgo) 60%, #6a9a5b 100%);
  padding: 2.5rem 0;
  text-align: center;
}
.colecao-hero-v2-inner { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.ch2-label {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: .6rem;
}
.ch2-nome {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: .5rem;
}
.ch2-desc { color: #b8d4b9; font-size: .9rem; margin-bottom: .9rem; }

/* ============================================
   COLEÇÃO — TABELA (LIST VIEW)
   ============================================ */
.col-table-wrap { overflow-x: auto; }
.col-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-head); font-size: .82rem;
  white-space: nowrap;
}
.col-table th {
  background: var(--musgo-dk); color: var(--gold);
  padding: .7rem 1rem; text-align: left;
  font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.col-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--musgo-lt);
  vertical-align: middle;
  color: var(--dark);
}
.col-table tr:hover td { background: var(--musgo-pale); }
.col-table-medidas { display: flex; gap: .4rem; flex-wrap: wrap; }
.col-table-medidas span {
  background: var(--musgo-lt); color: var(--musgo-dk);
  border-radius: 4px; padding: .15rem .4rem; font-size: .72rem;
}
.col-table-foto-btn {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  background: var(--gold-lt); color: var(--gold-dk);
  border-radius: 5px; padding: .25rem .55rem;
  transition: all var(--ease);
}
.col-table-foto-btn:hover { background: var(--gold); color: var(--dark); }
.col-table-actions { display: flex; gap: .3rem; align-items: center; }

@media (max-width: 768px) {
  .home-cards { grid-template-columns: 1fr; }
}

/* ============================================
   FIXES — Dashboard cards + Coleção
   ============================================ */

/* Sub-label "Moedas & Cédulas" no card */
.home-card-sub-label {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold-dk);
  background: var(--gold-lt);
  border-radius: 8px;
  padding: .5rem 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Fix botão sumindo no hover — garantir visibilidade */
.home-card:hover .home-card-btn { opacity: 1 !important; visibility: visible !important; }
.home-card-btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: block;
  margin-top: auto;
}
.hc-btn-green { background: var(--musgo) !important; color: #fff !important; }
.hc-btn-gold  { background: var(--gold)  !important; color: var(--dark) !important; }
.home-card:hover .hc-btn-green { background: var(--musgo-dk) !important; }
.home-card:hover .hc-btn-gold  { background: var(--gold-dk)  !important; color: #fff !important; }

/* Hero da coleção — garantir fundo escuro */
.colecao-hero-v2 {
  padding: 2.5rem 0;
  text-align: center;
}
.ch2-label {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: .6rem;
}
.ch2-nome {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: .5rem;
}
.ch2-desc { color: #b8d4b9; font-size: .9rem; margin-bottom: .9rem; }

/* ============================================
   FIXES — Tabs coleção + medidas + espaçamento
   ============================================ */

/* Centralizar tabs Moedas/Cédulas */
.col-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin: 2rem 0 2rem !important;
}
.col-tab {
  min-width: 160px;
  justify-content: center;
}

/* Medidas sem caracteres estranhos */
.col-item-medidas span {
  font-size: .73rem;
  background: var(--musgo-lt);
  color: var(--musgo-dk);
  border-radius: 5px;
  padding: .2rem .5rem;
  font-family: var(--font-head);
}

/* Espaçamento entre seções da coleção */
.col-card { margin-bottom: 2rem !important; }
.col-toolbar { margin-bottom: 1.5rem !important; }
.page-body { padding-top: 2rem !important; }

/* Valor pago no card */
.col-val-pago {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--musgo-dk);
}

/* Bandeira no nome do país */
.col-item-pais { display: flex; align-items: center; gap: .3rem; }

/* ============================================
   DASHBOARD DA COLEÇÃO
   ============================================ */
.dash-col-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dcs-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.dcs-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.dcs-val {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  color: var(--musgo-dk); line-height: 1;
  margin-bottom: .25rem;
}
.dcs-lbl {
  font-family: var(--font-head);
  font-size: .68rem; color: var(--light);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Destaques */
.dash-col-destaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.destaque-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.destaque-card img {
  width: 100%; height: 130px;
  object-fit: cover;
}
.destaque-placeholder {
  height: 130px;
  background: var(--musgo-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.destaque-info { padding: .9rem 1rem; }
.destaque-lbl {
  font-family: var(--font-head);
  font-size: .68rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .3rem;
}
.destaque-nome {
  font-family: var(--font-head);
  font-size: .92rem; font-weight: 700;
  color: var(--musgo-dk); margin-bottom: .2rem;
}
.destaque-sub {
  font-family: var(--font-head);
  font-size: .78rem; color: var(--light);
}

/* Charts */
.dash-col-charts-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.dash-col-chart-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.dash-col-chart-card h3 {
  font-family: var(--font-head);
  font-size: .88rem; font-weight: 700;
  color: var(--musgo-dk); margin-bottom: 1rem;
}
.dash-col-chart-wide {
  grid-column: span 2;
}
.chart-wrap-sm { height: 160px; display: flex; align-items: center; justify-content: center; }
.chart-wrap-sm canvas { max-height: 160px !important; }
.chart-legend-row {
  display: flex; gap: 1rem; margin-top: .7rem;
  font-family: var(--font-head); font-size: .75rem; color: var(--mid);
  justify-content: center; flex-wrap: wrap;
}
.chart-legend-row i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px; margin-right: .3rem;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .dash-col-stats { grid-template-columns: repeat(3, 1fr); }
  .dash-col-destaques { grid-template-columns: repeat(2, 1fr); }
  .dash-col-charts-2 { grid-template-columns: 1fr 1fr; }
  .dash-col-chart-wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .dash-col-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-col-destaques { grid-template-columns: 1fr; }
  .dash-col-charts-2 { grid-template-columns: 1fr; }
  .dash-col-chart-wide { grid-column: span 1; }
}

/* ============================================
   DASHBOARD COLEÇÃO — CSS LIMPO
   ============================================ */
.dcs-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .8rem;
  margin-bottom: 2rem;
}
.dcs-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.1rem .8rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.dcs-icon { font-size: 1.4rem; margin-bottom: .35rem; }
.dcs-val { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--musgo-dk); line-height: 1; margin-bottom: .2rem; }
.dcs-lbl { font-family: var(--font-head); font-size: .62rem; color: var(--light); text-transform: uppercase; letter-spacing: .06em; }

.dash-section-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--musgo-dk); margin: 2rem 0 1rem;
  padding-left: .7rem; border-left: 4px solid var(--gold);
}

/* Destaques */
.dcs-destaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dcs-destaque {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dcs-dest-foto { height: 120px; overflow: hidden; }
.dcs-dest-foto img { width: 100%; height: 100%; object-fit: cover; }
.dcs-dest-empty { background: var(--musgo-lt); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.dcs-dest-tag { font-family: var(--font-head); font-size: .64rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; padding: .7rem .9rem .2rem; }
.dcs-dest-pais { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--musgo-dk); padding: 0 .9rem .2rem; }
.dcs-dest-sub { font-family: var(--font-head); font-size: .76rem; color: var(--light); padding: 0 .9rem .8rem; }

/* Charts */
.dcs-charts-row { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.dcs-3col { grid-template-columns: repeat(3, 1fr); }
.dcs-2col { grid-template-columns: repeat(2, 1fr); }
.dcs-chart-card { background: #fff; border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.dcs-chart-title { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--musgo-dk); margin-bottom: 1rem; }

/* Donut */
.dcs-donut-wrap { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.dcs-donut-wrap canvas { max-height: 160px !important; max-width: 160px !important; }
.dcs-donut-center { position: absolute; text-align: center; pointer-events: none; }
.dcs-donut-center span { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--musgo-dk); line-height: 1; }
.dcs-donut-center small { font-family: var(--font-head); font-size: .65rem; color: var(--light); text-transform: uppercase; }
.dcs-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; }
.dcs-legend span { font-family: var(--font-head); font-size: .72rem; color: var(--mid); display: flex; align-items: center; gap: .3rem; }
.dcs-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

@media (max-width: 1100px) {
  .dcs-grid { grid-template-columns: repeat(4,1fr); }
  .dcs-destaques { grid-template-columns: repeat(2,1fr); }
  .dcs-3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .dcs-grid { grid-template-columns: repeat(2,1fr); }
  .dcs-destaques { grid-template-columns: 1fr; }
  .dcs-3col, .dcs-2col { grid-template-columns: 1fr; }
}

/* ============================================
   DASHBOARD DA COLEÇÃO V2
   ============================================ */
.dsh-stats {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.dsh-stat {
  background:#fff; border-radius:var(--radius-lg); padding:1.2rem 1rem;
  text-align:center; border:1.5px solid var(--border); box-shadow:var(--shadow-sm);
  border-top:3px solid var(--gold);
}
.dsh-stat-icon{font-size:1.4rem;margin-bottom:.4rem}
.dsh-stat-val{font-family:var(--font-head);font-size:1.2rem;font-weight:700;color:var(--musgo-dk);line-height:1;margin-bottom:.2rem}
.dsh-stat-lbl{font-family:var(--font-head);font-size:.66rem;color:var(--light);text-transform:uppercase;letter-spacing:.06em}

.dsh-destaques{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem}
.dsh-destaque{background:#fff;border-radius:var(--radius-lg);border:1.5px solid var(--border);box-shadow:var(--shadow-sm);padding:1rem 1.1rem}
.dsh-dest-lbl{font-family:var(--font-head);font-size:.68rem;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.6rem}
.dsh-dest-body{display:flex;align-items:center;gap:.8rem}
.dsh-dest-img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:2px solid var(--border);flex-shrink:0}
.dsh-dest-placeholder{width:56px;height:56px;background:var(--musgo-lt);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;flex-shrink:0}
.dsh-dest-pais{font-family:var(--font-head);font-size:.88rem;font-weight:700;color:var(--musgo-dk)}
.dsh-dest-sub{font-family:var(--font-head);font-size:.76rem;color:var(--light);margin-top:.15rem}

.dsh-row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.2rem;margin-bottom:1.5rem}
.dsh-row2{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.5rem}
.dsh-card{background:#fff;border-radius:var(--radius-lg);padding:1.4rem 1.6rem;border:1.5px solid var(--border);box-shadow:var(--shadow-sm)}
.dsh-card-h{font-family:var(--font-head);font-size:.88rem;font-weight:700;color:var(--musgo-dk);margin-bottom:1rem}
.dsh-donut{height:180px;display:flex;align-items:center;justify-content:center}
.dsh-donut canvas{max-height:180px!important;max-width:180px!important}
.dsh-legend{display:flex;gap:1rem;margin-top:.7rem;justify-content:center;flex-wrap:wrap;font-family:var(--font-head);font-size:.74rem;color:var(--mid)}
.dsh-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:.3rem;vertical-align:middle}

/* Form header hint */
.col-form-toggle-hint{font-family:var(--font-head);font-size:.78rem;color:var(--light);font-weight:400}

@media(max-width:1100px){.dsh-stats{grid-template-columns:repeat(3,1fr)}.dsh-destaques{grid-template-columns:repeat(2,1fr)}.dsh-row3{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.dsh-stats{grid-template-columns:repeat(2,1fr)}.dsh-destaques{grid-template-columns:1fr}.dsh-row3,.dsh-row2{grid-template-columns:1fr}}

/* ============================================
   MÓDULO CERTIFICADO — Sidebar + Página
   ============================================ */
.cert-module-page {
  max-width: 680px;
  margin: 0 auto;
}
.cert-module-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold-lt);
}
.cert-module-icon { font-size: 3.5rem; margin-bottom: .8rem; }
.cert-module-header h1 {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700;
  color: var(--musgo-dk); margin-bottom: .5rem;
}
.cert-module-header p { font-size: .92rem; color: var(--mid); }

.cert-requisitos {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2rem;
}
.cert-req-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cert-req-item.req-ok { border-color: #b7dfc0; background: #f0faf3; }
.cert-req-item.req-pendente { border-color: var(--border); background: #fafafa; }
.req-icon { font-size: 1.5rem; flex-shrink: 0; }
.req-info { flex: 1; }
.req-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 700;
  color: var(--musgo-dk); margin-bottom: .2rem;
}
.req-info span {
  font-family: var(--font-head);
  font-size: .78rem; color: var(--light);
}

.cert-aprovado {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, var(--gold-lt), #fff9ee);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  flex-wrap: wrap;
}
.cert-ap-icon { font-size: 2.5rem; flex-shrink: 0; }
.cert-aprovado h2 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--musgo-dk); margin-bottom: .3rem;
}
.cert-aprovado p { font-size: .88rem; color: var(--mid); }
.cert-aprovado .btn-primary { margin-left: auto; white-space: nowrap; }

.cert-pendente-box {
  text-align: center;
  background: var(--musgo-pale);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  border: 1.5px solid var(--musgo-lt);
}
.cert-pendente-box p {
  font-family: var(--font-head);
  font-size: .9rem; color: var(--mid);
  margin-bottom: 1rem;
}

/* Export PDF button */
.col-export-btn {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  background: var(--musgo-dk); color: var(--gold);
  border-radius: 8px; padding: .45rem .9rem;
  text-decoration: none; transition: all var(--ease);
  white-space: nowrap; display: flex; align-items: center; gap: .3rem;
}
.col-export-btn:hover { background: var(--gold); color: var(--dark); }

/* ============================================
   RESPONSIVIDADE MOBILE — Global
   ============================================ */

/* Topnav mobile */
@media (max-width: 768px) {
  .topnav { padding: .6rem 1rem; flex-wrap: wrap; gap: .4rem; }
  .topnav-brand { font-size: .8rem; }
  .topnav-right { gap: .3rem; flex-wrap: wrap; }
  .topnav-user { display: none; }
  .btn-nav { font-size: .72rem; padding: .3rem .6rem; }

  /* Dashboard hero */
  .dashboard-hero { padding: 1.5rem 1rem; }
  .dashboard-hero h1 { font-size: 1.5rem; }
  .dashboard-hero p { font-size: .85rem; }

  /* Home cards */
  .home-cards { grid-template-columns: 1fr; gap: 1rem; }
  .home-card-top { height: 120px; }
  .home-card-big-icon { font-size: 3rem; }
  .home-card-body { padding: 1.2rem 1.4rem; }
  .home-card-title { font-size: 1.2rem; }

  /* Container */
  .container { padding: 0 1rem; }
  .dashboard-body { padding: 1.2rem 1rem 3rem; }

  /* Coleção hero */
  .ch2-nome { font-size: 1.6rem; }
  .colecao-hero-v2 { padding: 1.5rem 1rem; }

  /* Tabs */
  .col-tabs { gap: .4rem; padding: 0 1rem; justify-content: center; }
  .col-tab { font-size: .78rem; padding: .5rem .8rem; min-width: auto; }

  /* Toolbar coleção */
  .col-toolbar { flex-wrap: wrap; gap: .6rem; padding: .8rem 1rem; }
  .col-search { width: 100%; }
  .col-filter-select { font-size: .78rem; }
  .col-count { font-size: .75rem; }

  /* Grid da coleção */
  .col-grid { grid-template-columns: 1fr 1fr; gap: .8rem; padding: .8rem 1rem; }

  /* Cards da coleção */
  .col-item-card { font-size: .82rem; }
  .col-item-img { height: 140px; }

  /* Formulário de cadastro */
  .form-grid-col { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .col-card { margin: 0 .5rem; }
  .col-card-title { font-size: .9rem; padding: .8rem 1rem; }

  /* Admin */
  .admin-card { margin: .5rem; padding: 1rem; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }

  /* Tabela admin — scroll horizontal */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 700px; font-size: .75rem; }
  .admin-table th, .admin-table td { padding: .5rem .6rem; }

  /* Tabela coleção — scroll */
  .col-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .col-table { min-width: 600px; }

  /* Curso */
  .curso-layout { flex-direction: column; }
  .curso-sidebar { width: 100%; position: static; height: auto; max-height: 300px; overflow-y: auto; }
  .curso-main { padding: 1rem; }
  .aula-header h1 { font-size: 1.2rem; }
  .aula-nav { flex-wrap: wrap; gap: .5rem; }
  .btn-aula-nav { font-size: .78rem; padding: .5rem .9rem; }

  /* Certificado */
  .cert-module-page { padding: 0 .5rem; }
  .cert-aprovado { flex-direction: column; text-align: center; }
  .cert-aprovado .btn-primary { margin: 0 auto; }

  /* Dashboard coleção */
  .dcs-grid { grid-template-columns: repeat(2,1fr); }
  .dcs-destaques { grid-template-columns: repeat(2,1fr); }
  .dcs-3col, .dcs-2col { grid-template-columns: 1fr; }

  /* Export */
  .export-filter-grid { grid-template-columns: 1fr 1fr; }

  /* Cursos page */
  .cursos-grid { grid-template-columns: 1fr; }

  /* Login page */
  .login-page { grid-template-columns: 1fr; }
  .login-left { min-height: 220px; padding: 1.5rem; }
  .ll-features { display: none; }
  .ll-title { font-size: 1.3rem; }
  .login-right { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .col-grid { grid-template-columns: 1fr; }
  .home-card-top { height: 100px; }
  .dcs-grid { grid-template-columns: repeat(2,1fr); }
  .dcs-destaques { grid-template-columns: 1fr; }
  .export-filter-grid { grid-template-columns: 1fr; }
  .col-tabs { flex-direction: row; overflow-x: auto; padding-bottom: .3rem; }
  .col-tab { white-space: nowrap; }
  .cert-requisitos .cert-req-item { flex-direction: column; text-align: center; }
}

/* Hint foto */
.foto-hint {
  font-family: var(--font-head);
  font-size: .72rem; color: var(--light);
  margin-top: .3rem;
}

/* Scroll suave em mobile */
* { -webkit-overflow-scrolling: touch; }
html { scroll-behavior: smooth; }

/* Inputs maiores em mobile para facilitar toque */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px !important; /* Evita zoom automático no iOS */
  }
  .btn-primary, .btn-outline { padding: .75rem 1.2rem; font-size: .88rem !important; }
}

/* ============================================
   CONTEÚDO DAS AULAS — Tipografia e Layout
   ============================================ */
.aula-content {
  max-width: 780px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2a2a2a;
  padding-bottom: 2rem;
}

/* Seção numerada */
.aula-section {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 2.2rem 0 .8rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold-lt);
}
.sec-num {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--musgo-dk);
  border-radius: 5px;
  padding: .25rem .65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--musgo-dk);
  line-height: 1.3;
  margin: 0;
}

/* Subtítulo h4 */
.aula-content .subsec-title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--musgo);
  margin: 1.5rem 0 .5rem;
}

/* Parágrafo */
.aula-content .aula-p {
  margin: 0 0 1.1rem;
  color: #2a2a2a;
}

/* Lista */
.aula-ul {
  margin: .5rem 0 1.2rem 1.2rem;
  padding: 0;
}
.aula-ul li {
  margin-bottom: .45rem;
  padding-left: .3rem;
  color: #2a2a2a;
  line-height: 1.7;
}
.aula-ul li::marker {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Blockquote / citação em destaque */
.aula-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--gold-lt);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--musgo-dk);
  line-height: 1.7;
}

/* Strong e em dentro do conteúdo */
.aula-content strong { color: var(--musgo-dk); font-weight: 700; }
.aula-content em { color: var(--musgo); }

/* Responsivo */
@media (max-width: 768px) {
  .aula-content { font-size: .95rem; }
  .sec-title { font-size: 1rem; }
}



/* ============================================
   PROTEÇÃO DE CONTEÚDO DAS AULAS
   ============================================ */
.aula-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.aula-content img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

/* ============================================
   MARCA D'ÁGUA — NOME DO ALUNO
   ============================================ */
.aula-content {
  position: relative;
}
.aula-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  border-radius: inherit;
}
.aula-watermark canvas {
  width: 100%;
  height: 100%;
  opacity: .07;
}

/* Monegiani — Logo no hero */
.hero-logo {
  width: 320px;
  max-width: 85vw;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(0) invert(1);  /* torna branco para fundos escuros */
}
