:root {
  --navy: #0d2f4f;
  --navy-dark: #081f36;
  --blue: #006eb7;
  --orange: #f26b23;
  --orange-dark: #d6551a;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #647184;
  --green: #2bab66;
  --red: #e35353;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 47, 79, 0.12);
  --font: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, .section-title, .progress-stat .num {
  font-family: var(--font-heading);
}

a { color: inherit; }

/* Padrão zigzag inspirado no motivo gráfico da marca ZSCAN */
.zigzag-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(244,118,46,0.18) 25%, transparent 25%),
    linear-gradient(225deg, rgba(244,118,46,0.18) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.06) 25%, transparent 25%);
  background-position: 0 0, 20px 0, 0 0, 20px 0;
  background-size: 40px 40px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(244,118,46,0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: rgba(13,47,79,0.06); }
.btn-ghost { background: transparent; color: var(--blue); padding: 8px 14px; }
.btn-block { width: 100%; }

/* ===== Auth (login/registro) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 4px;
}
.auth-subtitle { color: var(--muted); margin-bottom: 24px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d8dfe8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }

.form-error {
  background: #fdecec;
  color: var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ── Language switcher ── */
.lang-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== App shell (logado) ===== */
.app-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}
.app-header .container { display: flex; align-items: center; justify-content: space-between; }
.app-header .brand-logo { height: 26px; margin: 0; }
.header-right { display: flex; align-items: center; gap: 18px; }
.points-pill {
  background: rgba(244,118,46,0.18);
  color: #ffd9bd;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
}
.header-link { color: #cfe0f0; font-size: 14px; text-decoration: none; cursor: pointer; }
.header-link:hover { color: #fff; }

/* ===== Hero / saudação ===== */
.hero {
  color: #fff;
  padding: 40px 0 56px;
}
.hero h1 { font-size: 28px; margin: 0 0 6px; }
.hero p { margin: 0; color: #d6e3ee; font-size: 15px; }

.progress-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-top: -30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.progress-ring-wrap { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.progress-stat { flex: 1; min-width: 140px; }
.progress-stat-badges { min-width: 200px; }
.progress-stat .num { font-size: 22px; font-weight: 800; color: var(--navy); }
.progress-stat .label { font-size: 12px; color: var(--muted); }
.progress-bar-track { background: #e7ecf2; border-radius: 999px; height: 10px; width: 100%; overflow: hidden; }
.progress-bar-fill { background: linear-gradient(90deg, var(--orange), var(--blue)); height: 100%; border-radius: 999px; transition: width 0.4s ease; }

/* ===== Seções / categorias de módulos ===== */
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.module-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 2px solid transparent;
  position: relative;
}
.module-card:hover { transform: translateY(-3px); }
.module-card.locked { cursor: not-allowed; opacity: 0.6; }
.module-card .title { font-weight: 700; font-size: 15px; margin: 10px 0 6px; color: var(--text); }
.module-card .pts { font-size: 12px; color: var(--muted); }
.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.status-badge.concluido { background: #e3f7ec; color: var(--green); }
.status-badge.em_andamento { background: #fff2e0; color: var(--orange-dark); }
.status-badge.nao_iniciado { background: #eef1f5; color: var(--muted); }

/* ===== Ícones de linha (substituem os emojis) ===== */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 47, 79, 0.06);
  color: var(--orange);
  flex-shrink: 0;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge-sm { width: 22px; height: 22px; border-radius: 7px; background: transparent; color: var(--navy); vertical-align: -5px; }
.icon-badge-sm svg { width: 18px; height: 18px; }
.icon-badge-lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-badge-lg svg { width: 32px; height: 32px; }
.module-page-header .icon-badge-lg { background: rgba(255, 255, 255, 0.14); color: #fff; }
.certificate-icon { background: rgba(242, 107, 35, 0.12); color: var(--orange); margin: 0 auto 6px; }

/* ===== Badges (medalhas) ===== */
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-chip {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Página de módulo ===== */
.module-page-header {
  color: #fff;
  padding: 30px 0 50px;
}
.module-page-header h1 { margin: 6px 0 0; font-size: 26px; }
.module-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-top: -30px;
  margin-bottom: 40px;
}
.story-section { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #eef1f5; }
.story-section:last-child { border-bottom: none; }
.story-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.story-section h3 { color: var(--navy); margin: 0; font-size: 17px; }
.story-section p { margin: 0; line-height: 1.65; color: #38424f; font-size: 15px; }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 110, 183, 0.1);
  color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.play-btn svg { width: 16px; height: 16px; }
.play-btn:hover { background: rgba(0, 110, 183, 0.18); }
.play-btn.playing { background: var(--orange); color: #fff; }

/* ===== Barra de narração (configurar voz/velocidade + ouvir tudo) ===== */
.narration-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}
.btn-narration { padding: 10px 18px; font-size: 14px; }
.btn-narration .narration-icon { display: inline-flex; width: 16px; height: 16px; }
.btn-narration .narration-icon svg { width: 16px; height: 16px; }
.btn-narration.playing { background: var(--orange); color: #fff; border-color: var(--orange); }
.icon-only-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid #d8dfe8;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-only-btn svg { width: 18px; height: 18px; }
.icon-only-btn:hover, .icon-only-btn.active { border-color: var(--blue); color: var(--blue); }

.tts-settings-panel {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: -10px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.tts-settings-panel.hidden { display: none; }
.tts-field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; }
.tts-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.tts-field select {
  padding: 9px 12px;
  border: 1.5px solid #d8dfe8;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.tts-field input[type="range"] { width: 100%; accent-color: var(--orange); margin-top: 4px; }
.tts-hint { font-size: 12px; color: var(--muted); margin: 0; flex-basis: 100%; }
.tts-lang-warning {
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0;
  flex-basis: 100%;
  line-height: 1.5;
}

.quiz-box { background: #f7f9fb; border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.quiz-question { margin-bottom: 22px; }
.quiz-question p.q-text { font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid #e1e7ee;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.quiz-option:hover { border-color: var(--blue); }
.quiz-option.selected { border-color: var(--orange); background: #fff3ea; }
.quiz-option.correct { border-color: var(--green); background: #e7f8ee; }
.quiz-option.incorrect { border-color: var(--red); background: #fdecec; }
.quiz-explain { font-size: 13px; color: var(--muted); margin-top: 6px; }

.result-banner {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 18px;
  font-weight: 700;
  display: none;
}
.result-banner.show { display: block; }
.result-banner.pass { background: #e3f7ec; color: var(--green); }
.result-banner.fail { background: #fdecec; color: var(--red); }

/* ===== Certificado ===== */
.certificate-overlay {
  position: fixed; inset: 0; background: rgba(8,31,54,0.7);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.certificate-overlay.show { display: flex; }
.certificate {
  background: #fff; border-radius: 18px; padding: 50px 40px; max-width: 520px; text-align: center;
  border: 6px solid var(--orange); position: relative;
}
.certificate h2 { color: var(--navy); margin: 14px 0 6px; }
.certificate .name { font-size: 24px; font-weight: 800; color: var(--orange); margin: 10px 0; }

/* ===== Admin ===== */
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; font-size: 14px; }
.admin-table th { background: var(--navy); color: #fff; font-weight: 700; }
.admin-table tr:nth-child(even) { background: #f7f9fb; }
.admin-table tr.feedback-row-low { background: #fdf4ec; }

/* Estrelas no painel do admin (texto ★☆) */
.star-rating { color: #d0d8e4; letter-spacing: 3px; font-size: 17px; }
.star-rating .filled { color: #f5a623; }

/* Estrelas do modal de avaliação (SVG via star-btn) */
.star-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px; font-size: 0; line-height: 0;
  color: #d0d8e4; transition: color 0.15s, transform 0.1s;
}
.star-btn svg { width: 32px; height: 32px; stroke: currentColor; fill: none; transition: fill 0.15s, stroke 0.15s; }
.star-btn.selected svg, .star-btn:hover svg { stroke: #f5a623; fill: #f5a623; }
.star-btn:hover ~ .star-btn svg { stroke: #d0d8e4; fill: none; }
.star-row { display: flex; gap: 6px; justify-content: center; margin: 12px 0 4px; }

/* Estrelas hover: ilumina da esquerda até o hover, apaga os de depois */
.star-row:hover .star-btn svg { stroke: #f5a623; fill: #f5a623; }
.star-row:hover .star-btn:hover ~ .star-btn svg { stroke: #d0d8e4; fill: none; }

.feedback-c

/* ===== Ranking Bar (Top 3 na barra superior) ===== */
.ranking-bar {
  background: linear-gradient(90deg, var(--navy) 0%, #1a3a6e 100%);
  border-bottom: 2px solid var(--orange);
  padding: 6px 0;
  font-size: 13px;
  color: #fff;
}
.ranking-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ranking-label {
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.ranking-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ranking-medal { font-size: 16px; }
.ranking-name { font-weight: 600; }
.ranking-pts {
  font-size: 11px;
  color: #b0bfd0;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1px 8px;
}
.ranking-sep { color: rgba(255,255,255,0.2); margin: 0 2px; }

/* ===== RH: Cards de resumo ===== */
.rh-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .rh-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
.rh-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: transform 0.15s;
}
.rh-card:hover { transform: translateY(-2px); }
.rh-card-accent { border-top: 3px solid var(--orange); }
.rh-card-icon { color: var(--orange); margin-bottom: 4px; }
.rh-card-value { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rh-card-label { font-size: 12px; color: var(--muted); }

/* ===== RH: filtro por área ===== */
.dept-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  background: var(--card);
  border: 1.5px solid #d8dfe8;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--navy);
  font-family: inherit;
}
.filter-chip:hover { border-color: var(--orange); }
.filter-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}

/* ===== RH: tabela melhorada ===== */
.rh-table .sortable { cursor: pointer; user-select: none; }
.rh-table .sortable:hover { background: #1a3a6e; }
.sort-arrow { color: rgba(255,255,255,0.4); margin-left: 4px; font-size: 11px; }
.sort-arrow.active { color: var(--orange); }
.dept-tag {
  display: inline-block;
  background: rgba(0,97,202,0.08);
  color: var(--blue);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}
.level-badge {
  display: inline-block;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.level-expert { background: #e3f7ec; color: #1a7a46; }
.level-mid { background: #fff3e0; color: #b45f00; }
.level-start { background: #e8f0fe; color: var(--blue); }
.level-none { background: #f0f0f0; color: #888; }
.pts-cell { font-size: 15px; }
.collab-name { margin-bottom: 2px; }
.admin-row:hover td { background: #f0f5ff; }
.btn-detail {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size:
/* ── Admin: abas ─────────────────────────────────────────────────────────── */
.admin-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.admin-tab {
  background: none; border: none; padding: 10px 22px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-radius: 8px 8px 0 0; transition: all .2s;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-tab:hover { color: var(--text); background: var(--bg); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--card); }

/* ── Admin: usuário desativado ───────────────────────────────────────────── */
.user-inactive td { opacity: 0.55; }
.badge-inactive {
  display: inline-block; background: #fee2e2; color: #b91c1c;
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px;
  margin-left: 6px; vertical-align: middle;
}
.btn-deactivate {
  background: #fff7ed; color: #c2410c; border: 1.5px solid #fdba74;
  border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-activate {
  background: #f0fdf4; color: #15803d; border: 1.5px solid #86efac;
  border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-deactivate:hover { background: #fee2e2; }
.btn-activate:hover { background: #dcfce7; }

/* ── Admin: tabela de conteúdo ──────────────────────────────────────────── */
.module-disabled td { opacity: 0.5; }
.btn-delete-module {
  background: #fee2e2; color: #b91c1c; border: 1.5px solid #fca5a5;
  border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-delete-module:hover { background: #fecaca; }

/* ══════════════════════════════════════════════════════════
   CELEBRAÇÃO DE CONCLUSÃO DO ONBOARDING
   ══════════════════════════════════════════════════════════ */

.celebration-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 31, 54, 0.82);
  backdrop-filter: blur(4px);
  /* sem overflow-y: auto aqui — fica no inner-scroll abaixo */
  padding: 0;
}
.celebration-overlay.show { display: flex; align-items: flex-start; justify-content: center; }

/* Scroll ocorre neste wrapper, não no overlay raiz */
.celebration-inner-scroll {
  overflow-y: auto;
  width: 100%;
  max-height: 100vh;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Confetti: canvas independente, fixed, acima do overlay mas abaixo do card */
.confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9001;
}

.celebration-card {
  position: relative;
  z-index: 9002;
  background: var(--card);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  animation: celebCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes celebCardIn {
  from { opacity: 0; transform: scale(0.88) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.celebration-header { text-align: center; margin-bottom: 22px; }
.celeb-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 10px;
  animation: bounce 0.8s ease 0.3s both;
}
@keyframes bounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.celeb-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 8px;
}
.celeb-title span { color: var(--orange); }
.celeb-subtitle { color: var(--muted); margin: 0 0 6px; font-size: 15px; }
.celeb-meta { color: var(--blue); font-weight: 600; font-size: 14px; margin: 0; }

/* Prize banner */
.prize-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff8f4, #fef4ee);
  border: 1.5px solid #fcd5b4;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.prize-emoji { font-size: 32px; flex-shrink: 0; }
.prize-text strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 3px; }
.prize-text p { color: var(--muted); font-size: 13px; margin: 0; }

/* Certificate preview */
.cert-preview-section { margin-bottom: 20px; }
.cert-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cert-preview-wrap {
  border: 1.5px solid #e7ecf2;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f9;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-preview-wrap canvas { display: block; max-width: 100%; }
.cert-loading { color: var(--muted); font-size: 14px; padding: 40px; }

/* Action buttons */
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.cert-action-btn { flex: 1; min-width: 150px; justify-content: center; }

/* Instagram tip */
.insta-tip {
  display: none;
  background: #e8f8ef;
  color: #1d7849;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

/* Close button */
.celeb-close-btn {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 10px;
}
.celeb-close-btn:hover { color: var(--navy); }

/* Admin — completions tab badge */
.completions-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
  .celebration-card { padding: 24px 16px 20px; border-radius: 14px; }
  .celeb-title { font-size: 20px; }
  .cert-actions { flex-direction: column; }
  .cert-action-btn { min-width: 100%; }
}

/* Admin — completion notice banner */
.completion-notice {
  background: linear-gradient(135deg, #e8f8ef, #d4f5e2);
  border: 1.5px solid #a8dfc0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #0d4a25;
}
