
        :root {
      /* PALETA OFICIAL DA MARCA ZELO */
      --primary: #1d4ed8;
      --primary-light: #2563eb;
      --primary-dark: #0f172a;
      --accent: #059669;
      --accent-light: #10b981;
      --zelo-blue: #1d4ed8;
      --zelo-cyan: #06b6d4;
      --zelo-cyan-dark: #0891b2;
      --zelo-green: #10b981;
      --zelo-gradient: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 50%, #10b981 100%);
      --zelo-gradient-h: linear-gradient(90deg, #1d4ed8 0%, #06b6d4 50%, #10b981 100%);
      --zelo-gradient-card: linear-gradient(135deg, #1e3a8a 0%, #0284c7 55%, #059669 100%);
      --zelo-gradient-subtle: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(16, 185, 129, 0.08) 100%);
      --danger: #dc2626;
      --warning: #f59e0b;
      --bg: #f8fafc;
      --card: #ffffff;
      --text: #0f172a;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --font-title: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      user-select: text;
      touch-action: manipulation;
    }

    html, body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background-color: #0b1329;
      display: flex;
      justify-content: center;
      align-items: center;
      font-family: var(--font-body);
    }

    .app-container {
      width: 100%;
      max-width: 430px;
      height: 100%;
      max-height: 100%;
      background: var(--bg);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    @media (min-width: 450px) {
      .app-container {
        height: 92vh;
        max-height: 900px;
        border-radius: 36px;
        border: 4px solid #1e293b;
      }
    }

    .view-screen {
      display: none;
      flex-direction: column;
      height: 100%;
      width: 100%;
      position: relative;
      overflow: hidden;
    }

    .view-screen.active {
      display: flex !important;
    }

    #view-auth {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    
    .nav-logo-img {
      width: 38px !important;
      height: 38px !important;
      max-width: 38px !important;
      max-height: 38px !important;
      border-radius: 10px !important;
      background: #ffffff !important;
      padding: 3px !important;
      box-sizing: border-box !important;
      object-fit: contain !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
      flex-shrink: 0 !important;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: 0.5px;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .nav-header {
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 18px;
      background: #ffffff;
      border-bottom: 1px solid var(--border);
      z-index: 50;
    }

    .dashboard-content {
      flex: 1;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .badge-shelf {
      display: flex !important;
      flex-direction: row !important;
      gap: 10px;
      overflow-x: auto !important;
      padding: 6px 2px 14px;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      flex-shrink: 0;
    }

    .badge-item {
      flex: 0 0 80px !important;
      background: #ffffff;
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 12px 6px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }

    .badge-icon {
      font-size: 28px;
      margin-bottom: 6px;
    }

    .badge-title {
      font-size: 10px;
      font-weight: 800;
      color: var(--primary-dark);
      line-height: 1.2;
    }

    .badge-item.unlocked {
      border-color: #10b981 !important;
      background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%) !important;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18) !important;
      transform: translateY(-2px);
    }
    .badge-item.unlocked .badge-icon {
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    }
    .badge-item {
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .badge-item:hover {
      transform: scale(1.04);
    }
    .badge-item.locked {
      opacity: 0.35;
      filter: grayscale(1);
    }

    /* TELA 1: LOGIN E CADASTRO */
    .auth-wrapper {
      padding: 24px 22px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 100%;
      padding-top: max(env(safe-area-inset-top), 40px);
    }

    .auth-hero {
      text-align: center;
      margin-bottom: 24px;
    }

    .auth-logo-img {
      width: 96px;
      height: 96px;
      border-radius: 24px;
      background: #ffffff;
      padding: 10px;
      box-sizing: border-box;
      object-fit: contain;
      margin: 0 auto 14px;
      box-shadow: 0 10px 25px -4px rgba(29, 78, 216, 0.25), 0 2px 8px rgba(0, 0, 0, 0.04);
      display: block;
    }

    .auth-tabs {
      display: flex;
      background: #e2e8f0;
      padding: 4px;
      border-radius: 14px;
      margin-bottom: 20px;
    }

    .auth-tab {
      flex: 1;
      padding: 12px;
      text-align: center;
      font-size: 13.5px;
      font-weight: 800;
      border-radius: 10px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .auth-tab.active {
      background: #ffffff;
      color: var(--primary);
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .form-group {
      margin-bottom: 15px;
      text-align: left;
    }

    .form-label {
      display: block;
      font-size: 11.5px;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }

    .form-input {
      width: 100%;
      padding: 15px 16px;
      border-radius: 15px;
      border: 2px solid var(--border);
      background: #ffffff;
      font-size: 16px;
      font-family: inherit;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
    }

    .form-input:focus {
      border-color: var(--primary-light);
    }

    .btn-submit {
      width: 100%;
      background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
      color: #ffffff;
      padding: 17px;
      border-radius: 15px;
      border: none;
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(29, 78, 216, 0.32);
      transition: all 0.2s;
      margin-top: 8px;
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    }

    .btn-submit:active {
      transform: scale(0.98);
      background: var(--primary-dark);
    }

    /* TELA 2: DASHBOARD */
    

    .user-greeting-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 55%, #059669 100%);
      color: #ffffff;
      border-radius: 22px;
      padding: 20px;
      box-shadow: 0 12px 28px -5px rgba(29, 78, 216, 0.35);
    }

    .user-name-title {
      font-family: var(--font-title);
      font-size: 21px;
      font-weight: 800;
      margin-bottom: 12px;
      letter-spacing: 0.3px;
    }

    .goal-container {
      background: rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 14px;
    }

    .goal-header {
      display: flex;
      justify-content: space-between;
      font-size: 12.5px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .goal-bar-bg {
      width: 100%;
      height: 10px;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 5px;
      overflow: hidden;
    }

    .goal-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #06b6d4 0%, #10b981 100%);
      border-radius: 5px;
      transition: width 0.4s ease;
    }

    .bonus-pill {
      font-size: 11.5px;
      color: #fef08a;
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
    }

    .section-title {
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 6px;
      margin-bottom: -4px;
    }

    .course-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.2s;
    }

    .course-card:active {
      transform: scale(0.99);
    }

    .course-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .course-icon {
      width: 48px;
      height: 48px;
      background: #f1f5f9;
      border-radius: 14px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
    }

    .course-status {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 5px 10px;
      border-radius: 10px;
    }

    .status-available { background: #dbeafe; color: #1d4ed8; }
    .status-completed { background: #dcfce7; color: #15803d; }

    .course-title {
      font-family: var(--font-title);
      font-size: 17px;
      font-weight: 800;
      color: var(--primary-dark);
      line-height: 1.3;
    }

    .course-desc {
      font-size: 13.5px;
      color: #475569;
      line-height: 1.45;
    }

    .course-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 4px;
      padding-top: 12px;
      border-top: 1px solid #f1f5f9;
    }

    .course-time {
      font-size: 12.5px;
      color: #64748b;
      font-weight: 800;
    }

    .btn-play-course {
      background: var(--primary);
      color: #ffffff;
      border: none;
      padding: 10px 18px;
      border-radius: 12px;
      font-family: var(--font-title);
      font-size: 13.5px;
      font-weight: 800;
      cursor: pointer;
    }

    /* SEÇÃO DE CURSOS CONCLUÍDOS */
    .completed-accordion {
      margin-top: 16px;
      border: 1px solid #cbd5e1;
      border-radius: 18px;
      background: #ffffff;
      overflow: hidden;
    }

    .completed-accordion-header {
      padding: 16px 18px;
      background: #f8fafc;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      color: #059669;
    }

    .completed-list {
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: #f1f5f9;
      border-top: 1px solid #e2e8f0;
    }

    .completed-card-mini {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .btn-review {
      background: #f0fdf4;
      border: 1.5px solid #86efac;
      color: #15803d;
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    /* =================================================================
       TELA 3: PLAYER COM PROGRESSO ABAIXO DO NOTCH
    ================================================================= */
    

    .progress-segment {
      flex: 1;
      height: 5px;
      background: #e2e8f0;
      border-radius: 3px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background: var(--primary);
      transition: width 0.3s ease;
    }

    .progress-segment.active .progress-fill {
      width: 100%;
    }

    

    .audio-btn {
      background: #f1f5f9;
      border: 1px solid var(--border);
      color: var(--primary);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
    }

    .audio-btn.speaking {
      background: #dbeafe;
      animation: pulse 1.2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    

    /* ===================================================================
       PLAYER FORMATO REELS / STORIES (NAVEGAÇÃO VERTICAL CONTÍNUA)
    =================================================================== */
    .card-screen {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding: 18px 20px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      display: flex;
      flex-direction: column;
      transform: translateY(100%);
      opacity: 0;
      visibility: hidden;
      transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.38s;
      contain: layout paint;
      will-change: transform, opacity;
      backface-visibility: hidden;
    }

    .card-screen.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }

    .card-screen.passed {
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      z-index: 1;
    }

    /* Animação elástica de resistência quando o card está bloqueado pedagogicamente */
    @keyframes reelsLockedBounce {
      0% { transform: translateY(0); }
      25% { transform: translateY(-22px); }
      50% { transform: translateY(6px); }
      75% { transform: translateY(-2px); }
      100% { transform: translateY(0); }
    }

    .card-screen.active.reels-locked-bounce {
      animation: reelsLockedBounce 0.45s ease-out !important;
    }

    /* Pílula flutuante de bloqueio pedagógico (Toast estilo Reels) */
    .reels-lock-pill {
      position: absolute;
      top: 16px;
      left: 50%;
      transform: translateX(-50%) translateY(-24px);
      background: rgba(15, 23, 42, 0.92);
      color: #ffffff;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 9px 18px;
      border-radius: 9999px;
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
      display: flex;
      align-items: center;
      gap: 8px;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
      z-index: 120;
      white-space: nowrap;
    }

    .reels-lock-pill.visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* Indicador sutil de avanço vertical no rodapé do card */
    .reels-swipe-hint {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: auto;
      padding: 16px 0 10px;
      color: #64748b;
      font-size: 11.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      user-select: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .reels-swipe-hint.locked {
      opacity: 0.35;
      filter: grayscale(0.8);
    }

    .reels-swipe-hint:hover {
      color: var(--primary, #1e3a8a);
    }

    .reels-hint-chevron {
      animation: reelsChevronBounce 1.5s infinite;
      color: var(--primary, #1e3a8a);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @keyframes reelsChevronBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }

    /* Controles Desktop Flutuantes para Navegação Vertical */
    .reels-desktop-controls {
      display: none;
    }

    @media (min-width: 800px) {
      .reels-desktop-controls {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        right: -58px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 55;
      }

      .reels-desktop-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #1e3a8a;
        transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
      }

      .reels-desktop-btn:hover {
        background: #eff6ff;
        border-color: #3b82f6;
        transform: scale(1.08);
        color: #1d4ed8;
        box-shadow: 0 6px 18px rgba(30, 58, 138, 0.15);
      }

      .reels-desktop-btn:active {
        transform: scale(0.96);
      }
    }

    
    .card-placeholder-banner {
      width: 100%;
      height: 140px;
      background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
      border: 2px dashed #93c5fd;
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
      text-align: center;
      padding: 10px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    }

    .card-hero-banner {
      width: 100%;
      height: auto;
      max-height: 200px;
      aspect-ratio: 16 / 9;
      border-radius: 18px;
      object-fit: cover;
      margin-bottom: 20px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.08);
      display: block;
      background: #f1f5f9;
      contain: layout paint;
    }

    /* OTIMIZAÇÕES DE FLUIDEZ A 60 FPS (ISOLAMENTO DE RENDERIZAÇÃO E GPU) */

    .topic-pane,
    .quick-decider-box,
    .sequence-reorder-container,
    .cloze-dialogue-box,
    .flip-card-container,
    .spot-error-box,
    .hotspots-wrapper {
      contain: layout paint;
    }

    .correct-pulse {
      animation: pulseGreen 0.4s ease;
      will-change: transform;
    }

    .wrong-shake {
      animation: shake 0.4s ease;
      will-change: transform;
    }

    .card-tag {
      align-self: flex-start;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      padding: 5px 12px;
      border-radius: 8px;
      margin-top: 4px;
      margin-bottom: 18px;
      display: inline-block;
    }

    .btn-primary {
      background: #0284c7;
      color: #ffffff !important;
      border: none;
      border-radius: 12px;
      font-family: var(--font-body);
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    .btn-primary:active {
      transform: scale(0.98);
    }

    .tag-learn { background: #dcfce7; color: #15803d; }
    .tag-quiz { background: #fef3c7; color: #b45309; }
    .tag-rule { background: #fee2e2; color: #b91c1c; }
    .tag-interact { background: #e0e7ff; color: #3730a3; }

    .card-title {
      font-family: var(--font-title);
      font-size: 23px;
      font-weight: 800;
      color: var(--primary-dark);
      line-height: 1.25;
      margin-bottom: 14px;
      letter-spacing: 0.2px;
    }

    .card-body-text {
      font-size: 15px;
      line-height: 1.6;
      color: #334155;
      margin-bottom: 14px;
      white-space: pre-line;
    }

    .highlight-box {
      background: #ffffff;
      border-left: 5px solid var(--primary-light);
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 16px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
      font-size: 14.5px;
      color: #1e293b;
      line-height: 1.5;
    }

    .takeaway-box {
      background: #ffffff;
      border-left: 5px solid #2563eb;
      border-radius: 14px;
      padding: 16px;
      margin-top: 18px;
      margin-bottom: 16px;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
      font-size: 14.5px;
      color: #1e293b;
      line-height: 1.5;
    }

    @keyframes takeawaySlideIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .takeaway-animate-in {
      animation: takeawaySlideIn 0.35s ease-out forwards;
    }

    .stat-badge {
      display: inline-block;
      font-family: var(--font-title);
      font-size: 28px;
      font-weight: 900;
      color: var(--primary);
      margin-right: 4px;
    }

    /* =================================================================
       COMPONENTE: RASPADINHA TÁTIL (CORRIGIDA)
    ================================================================= */
    
    .scratch-wrapper {
      position: relative;
      width: 100%;
      min-height: 290px;
      border-radius: 22px;
      overflow: hidden;
      margin: 14px 0;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      background: #fefce8;
      border: 2.5px dashed #facc15;
      display: flex;
    }

    .scratch-secret {
      width: 100%;
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      z-index: 1;
    }

    .scratch-gold-overlay {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(135deg, #fef08a 0%, #facc15 30%, #eab308 70%, #ca8a04 100%);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      cursor: pointer;
      z-index: 10;
      box-shadow: inset 0 0 20px rgba(161, 98, 7, 0.4);
      border: 3px solid #78350f;
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scratch-gold-overlay.scratched {
      opacity: 0;
      transform: scale(0.95);
      pointer-events: none;
    }


    /* =================================================================
       COMPONENTE: PREENCHIMENTO DE LACUNAS (CLOZE TEST TÁTIL)
       ================================================================= */
    .cloze-dialogue-box {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 20px;
      padding: 18px 16px;
      margin: 16px 0;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
      position: relative;
    }

    .cloze-speaker-label {
      font-size: 12px;
      font-weight: 800;
      color: #0284c7;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .cloze-sentence-text {
      font-size: 15px;
      line-height: 2.2;
      color: #1e293b;
      font-weight: 600;
    }

    .cloze-slot {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 130px;
      padding: 2px 10px;
      margin: 0 4px;
      border-radius: 10px;
      border: 2px dashed #0284c7;
      background: #f0f9ff;
      color: #0369a1;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      vertical-align: middle;
      transition: all 0.2s ease;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .cloze-slot.empty {
      color: #94a3b8;
      font-weight: 600;
      border-color: #cbd5e1;
      background: #f8fafc;
    }

    .cloze-slot.filled {
      border: 2px solid #0284c7;
      background: #e0f2fe;
      color: #0369a1;
      box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
    }

    .cloze-slot.correct {
      border: 2px solid #10b981 !important;
      background: #dcfce7 !important;
      color: #15803d !important;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
    }

    .cloze-slot.wrong {
      border: 2px solid #ef4444 !important;
      background: #fee2e2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    .cloze-options-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 16px 0;
      justify-content: center;
    }

    .cloze-option-pill {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 10px 16px;
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
      user-select: none;
    }

    .cloze-option-pill:active {
      transform: scale(0.96);
    }

    .cloze-option-pill.used {
      opacity: 0.35;
      pointer-events: none;
      background: #f1f5f9;
      border-color: #e2e8f0;
      transform: scale(0.96);
    }

    .btn-verify-cloze {
      width: 100%;
      background: #0284c7;
      color: #ffffff;
      padding: 14px;
      border-radius: 14px;
      border: none;
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
      transition: all 0.2s ease;
      margin-top: 6px;
    }

    .btn-verify-cloze:disabled {
      background: #cbd5e1;
      color: #64748b;
      box-shadow: none;
      cursor: not-allowed;
    }

    /* =================================================================
       COMPONENTE: CONSTRUTOR DE FRASE COM CONFIRMAÇÃO CLARA
    ================================================================= */
    .sentence-display {
      min-height: 100px;
      background: #ffffff;
      border: 2px dashed #94a3b8;
      border-radius: 18px;
      padding: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin: 14px 0;
      flex-shrink: 0;
      transition: all 0.3s ease;
      position: relative;
    }
    
    
    .word-chip {
      background: var(--primary);
      color: #ffffff;
      padding: 10px 14px;
      border-radius: 14px;
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(30, 58, 138, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      line-height: 1.3;
      white-space: normal;
    }

    .sentence-display.correct {
      border-color: #22c55e;
      background: #f0fdf4;
      box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    }

    .sentence-display.wrong {
      border-color: #ef4444;
      background: #fef2f2;
    }

    .word-chip {
      background: var(--primary);
      color: #ffffff;
      padding: 10px 16px;
      border-radius: 14px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(30, 58, 138, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    

    .word-option-btn {
      background: #ffffff;
      border: 2px solid var(--border);
      color: var(--primary-dark);
      padding: 12px 16px;
      border-radius: 14px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0,0,0,0.03);
      transition: all 0.2s;
    }

    .word-option-btn.used {
      opacity: 0.3;
      pointer-events: none;
      background: #e2e8f0;
      border-color: #cbd5e1;
    }

    

    .btn-verify-order {
      flex: 1;
      background: #10b981;
      color: #ffffff;
      padding: 13px;
      border-radius: 14px;
      border: none;
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
    }

    .btn-clear-order {
      background: #f1f5f9;
      color: #475569;
      padding: 13px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
    }

    /* =================================================================
       COMPONENTE: SLIDER DE COMPARAÇÃO
    ================================================================= */
    /* =================================================================
       COMPONENTE: SEMÁFORO DAS TARJAS FARMACÊUTICAS (GRID ANVISA)
       ================================================================= */
    .tarjas-grid-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin: 16px 0;
    }

    .tarja-card {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 16px;
      padding: 14px 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .tarja-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .tarja-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .tarja-title {
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
      margin: 0;
    }

    .tarja-badge {
      font-size: 10.5px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .tarja-desc {
      font-size: 13px;
      line-height: 1.45;
      color: #334155;
      margin: 0;
    }

    .tarja-sem {
      border-left: 7px solid #10b981;
    }
    .tarja-sem .tarja-badge {
      background: #dcfce7;
      color: #15803d;
    }

    .tarja-verm-sem {
      border-left: 7px solid #ef4444;
    }
    .tarja-verm-sem .tarja-badge {
      background: #fee2e2;
      color: #b91c1c;
    }

    .tarja-verm-com {
      border-left: 7px solid #991b1b;
      background: #fff8f8;
    }
    .tarja-verm-com .tarja-badge {
      background: #7f1d1d;
      color: #ffffff;
    }

    .tarja-preta {
      border-left: 7px solid #0f172a;
      background: #f8fafc;
    }
    .tarja-preta .tarja-badge {
      background: #0f172a;
      color: #ffffff;
    }

    /* =================================================================
       COMPONENTE: ACCORDION INTERATIVO (SANFONA TÁTIL)
       ================================================================= */
    .accordion-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 16px 0;
    }

    .accordion-item {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .accordion-item.open {
      border-color: #0284c7;
      box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
    }

    .accordion-header {
      padding: 14px 16px;
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      color: #1e293b;
      user-select: none;
    }

    .accordion-item.open .accordion-header {
      background: #f0f9ff;
      color: #0369a1;
    }

    .accordion-body {
      display: none;
      padding: 14px 16px;
      font-size: 13.5px;
      line-height: 1.5;
      color: #334155;
      border-top: 1px solid #e2e8f0;
      background: #ffffff;
      animation: fadeIn 0.2s ease;
    }

    .accordion-item.open .accordion-body {
      display: block;
    }

    .accordion-arrow {
      font-size: 12px;
      color: #64748b;
      transition: transform 0.2s ease;
    }

    .accordion-item.open .accordion-arrow {
      transform: rotate(180deg);
      color: #0284c7;
    }

    /* =================================================================
       COMPONENTE: CAIXA DE TROCA DE TÓPICOS (TOPIC SWAPPER / MICRO-STEPPER)
       ================================================================= */
    .topic-swapper-box {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 20px;
      overflow: hidden;
      margin: 16px 0;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    .topic-tabs-header {
      display: flex;
      gap: 6px;
      background: #f8fafc;
      padding: 10px 12px;
      border-bottom: 1.5px solid #e2e8f0;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .topic-tab-pill {
      flex: 1;
      min-width: 90px;
      padding: 9px 10px;
      border-radius: 12px;
      border: 1.5px solid #cbd5e1;
      background: #ffffff;
      color: #64748b;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .topic-tab-pill.active {
      border-color: #0284c7;
      background: #f0f9ff;
      color: #0369a1;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
    }

    .topic-tab-pill.read:not(.active) {
      border-color: #86efac;
      background: #f0fdf4;
      color: #15803d;
    }

    .topic-card-body {
      padding: 18px;
      min-height: 180px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .topic-pane {
      display: none;
      animation: fadeIn 0.2s ease;
    }

    .topic-pane.active {
      display: block;
    }

    .topic-header-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      border-bottom: 1px solid #f1f5f9;
      padding-bottom: 8px;
    }

    .topic-icon {
      font-size: 32px;
      flex-shrink: 0;
    }

    .topic-title {
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.25;
      margin: 0;
    }

    .topic-badge {
      display: inline-block;
      font-size: 10.5px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 6px;
      background: #e0f2fe;
      color: #0369a1;
      margin-top: 4px;
      text-transform: uppercase;
    }

    .topic-text-content {
      font-size: 14px;
      line-height: 1.55;
      color: #334155;
    }

    .topic-swapper-footer {
      display: flex;
      gap: 8px;
      background: #f8fafc;
      padding: 12px 16px;
      border-top: 1.5px solid #e2e8f0;
    }

    .btn-topic-nav {
      font-family: var(--font-title);
      font-size: 13.5px;
      font-weight: 800;
      padding: 12px 16px;
      border-radius: 12px;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-topic-prev {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      color: #475569;
    }

    .btn-topic-next {
      flex: 1;
      background: #0284c7;
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    }

    .btn-topic-done {
      flex: 1;
      background: #10b981;
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    }

    .compare-container {
      position: relative;
      width: 100%;
      height: 250px;
      border-radius: 20px;
      overflow: hidden;
      margin: 14px 0;
      box-shadow: 0 6px 20px rgba(0,0,0,0.12);
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }

    .compare-side {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 20px 18px;
      text-align: center;
      box-sizing: border-box;
      user-select: none;
      -webkit-user-select: none;
    }

    .compare-bad {
      background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
      color: #ffffff;
      z-index: 1;
    }

    .compare-good {
      background: linear-gradient(135deg, #34d399 0%, #059669 100%);
      color: #ffffff;
      clip-path: inset(0 50% 0 0);
      z-index: 2;
    }

    .compare-handle {
      position: absolute;
      top: 0; bottom: 0; left: 50%;
      width: 4px;
      background: #ffffff;
      box-shadow: 0 0 12px rgba(0,0,0,0.6);
      cursor: ew-resize;
      display: flex;
      justify-content: center;
      align-items: center;
      transform: translateX(-50%);
      z-index: 10;
      touch-action: none;
      user-select: none;
    }

    .compare-thumb {
      width: 44px; height: 44px;
      background: #ffffff;
      border: 3px solid var(--primary);
      border-radius: 50%;
      box-shadow: 0 4px 14px rgba(0,0,0,0.35);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 18px;
      color: var(--primary);
      font-weight: 800;
      user-select: none;
    }

    /* =================================================================
       COMPONENTE: ARRASTAR PARA CATEGORIA
    ================================================================= */
    /* =================================================================
       LINHAS CONECTORAS SVG TÁTEIS: ARRASTO REAL ("PUXAR A LINHA")
       ================================================================= */
    .match-pairs-container {
      position: relative;
      display: flex;
      gap: 20px;
      margin: 16px 0;
      width: 100%;
      user-select: none;
      -webkit-user-select: none;
      touch-action: none;
    }

    .match-svg-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 5;
    }

    .match-connector-line {
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
      pointer-events: none;
      transition: stroke 0.2s ease, opacity 0.2s ease;
    }

    .match-drag-live {
      filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.4));
      pointer-events: none;
    }

    @keyframes drawBezierLine {
      to {
        stroke-dashoffset: 0;
      }
    }

    .match-connector-error {
      stroke: #ef4444 !important;
      stroke-width: 3.5 !important;
      stroke-dasharray: 6 5 !important;
      animation: flashErrorLine 0.65s ease forwards;
    }

    @keyframes flashErrorLine {
      0% { opacity: 1; }
      80% { opacity: 0.8; }
      100% { opacity: 0; }
    }

    .match-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 6;
    }

    .match-tile {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 12px 10px;
      font-size: 12.5px;
      font-weight: 700;
      color: #1e293b;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, transform 0.15s;
      min-height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.35;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
      position: relative;
      touch-action: none;
    }

    .match-tile:active {
      transform: scale(0.97);
    }

    .match-tile.selected {
      border-color: #0284c7 !important;
      background: #f0f9ff !important;
      color: #0369a1 !important;
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
    }

    .match-tile.drag-hover {
      border-color: #0284c7 !important;
      background: #e0f2fe !important;
      transform: scale(1.03);
      box-shadow: 0 0 12px rgba(2, 132, 199, 0.35) !important;
    }

    .match-tile.matched {
      border-color: #10b981 !important;
      background: #ecfdf5 !important;
      color: #047857 !important;
      cursor: default;
      pointer-events: none;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    }

    .match-tile.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    /* Pinos Conectores Visuais nas Bordas */
    .match-port {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #94a3b8;
      border: 2px solid #ffffff;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
      pointer-events: none;
      transition: all 0.2s ease;
    }

    .port-right {
      right: -6px;
      top: calc(50% - 5px);
    }

    .port-left {
      left: -6px;
      top: calc(50% - 5px);
    }

    .match-tile.selected .match-port {
      background: #0284c7;
      transform: scale(1.3);
    }

    .match-tile.matched .match-port {
      background: #10b981;
      transform: scale(1.2);
    }

    .drag-zone-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 14px 0;
      min-height: 290px;
    }

    .drop-target {
      padding: 18px;
      border-radius: 18px;
      border: 2px dashed #cbd5e1;
      background: #f1f5f9;
      text-align: center;
      font-size: 14px;
      font-weight: 800;
      color: #64748b;
      transition: all 0.2s ease;
    }

    .drop-target.hover {
      border-color: var(--primary);
      background: #dbeafe;
      color: var(--primary);
      transform: scale(1.02);
    }

    .draggable-card {
      background: #ffffff;
      border: 2px solid var(--primary-light);
      border-radius: 18px;
      padding: 18px;
      font-size: 15px;
      font-weight: 700;
      color: var(--primary-dark);
      box-shadow: 0 10px 25px rgba(0,0,0,0.12);
      text-align: center;
      cursor: grab;
      touch-action: none;
      transition: transform 0.1s ease;
      margin: 8px 0;
    }

    /* =================================================================
       COMPONENTE: ROLEPLAY COM DIÁLOGO E MEDIDOR DE HUMOR
    ================================================================= */
    .roleplay-avatar-box {
      display: flex;
      align-items: center;
      gap: 14px;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      margin: 14px 0;
      box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }

    .customer-face {
      font-size: 52px;
      transition: transform 0.3s ease;
    }

    .customer-dialogue {
      flex: 1;
      font-size: 14px;
      line-height: 1.5;
      color: #1e293b;
      background: #f1f5f9;
      padding: 14px;
      border-radius: 16px;
    }

    .mood-meter-container {
      margin: 12px 0;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
    }

    .mood-label {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .mood-track {
      width: 100%;
      height: 12px;
      background: #e2e8f0;
      border-radius: 6px;
      overflow: hidden;
    }

    .mood-fill {
      height: 100%;
      width: 25%;
      background: #ef4444;
      border-radius: 6px;
      transition: all 0.4s ease;
    }

    /* QUIZZES */
    .quiz-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
      margin-bottom: 14px;
    }

    .quiz-btn {
      background: #ffffff;
      border: 2px solid var(--border);
      border-radius: 16px;
      padding: 15px 18px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }

    .opt-letter {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #f1f5f9;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 800;
      font-size: 12px;
      color: #475569;
      flex-shrink: 0;
    }

    .quiz-btn.correct { background: #dcfce7; border-color: #22c55e; color: #14532d; }
    .quiz-btn.correct .opt-letter { background: #22c55e; color: #ffffff; }
    .quiz-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
    .quiz-btn.wrong .opt-letter { background: #ef4444; color: #ffffff; }

    .feedback-box {
      display: none;
      padding: 15px;
      border-radius: 16px;
      font-size: 13.5px;
      line-height: 1.45;
      margin-top: 8px;
      animation: fadeIn 0.2s ease;
    }
    .feedback-box.correct { display: block; background: #dcfce7; border: 1px solid #86efac; color: #14532d; }
    .feedback-box.wrong { display: block; background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d; }

    /* FOOTER */
    

    .primary-btn {
      width: 100%;
      background: var(--primary);
      color: #ffffff;
      border: none;
      border-radius: 16px;
      padding: 16px;
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
  
    /* ==============================================================
       ESTILOS ESSENCIAIS DO DASHBOARD E GAMIFICAÇÃO (CORREÇÃO DE TRAVAMENTO)
    ============================================================== */
    html, body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background-color: #0b1329;
    }

    .app-container {
      width: 100%;
      max-width: 430px;
      height: 100%;
      max-height: 100%;
      background: var(--bg);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    @media (min-width: 450px) {
      .app-container {
        height: 92vh;
        max-height: 900px;
        border-radius: 36px;
        border: 4px solid #1e293b;
      }
    }

    .view-screen {
      display: none;
      flex-direction: column;
      height: 100%;
      width: 100%;
      position: relative;
      overflow: hidden;
    }

    .view-screen.active {
      display: flex !important;
    }

    #view-auth {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    
    .nav-logo-img {
      width: 38px !important;
      height: 38px !important;
      max-width: 38px !important;
      max-height: 38px !important;
      border-radius: 10px !important;
      background: #ffffff !important;
      padding: 3px !important;
      box-sizing: border-box !important;
      object-fit: contain !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
      flex-shrink: 0 !important;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: 0.5px;
      cursor: pointer;
    }

    .nav-header {
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 18px;
      background: #ffffff;
      border-bottom: 1px solid var(--border);
      z-index: 50;
    }

    /* O MIOLO DO DASHBOARD QUE ESTAVA FALTANDO E TRAVANDO A ROLAGEM */
    .dashboard-content {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* GAMIFICAÇÃO & MEDALHAS (QUE ESTAVAM DESFORMATADAS NA VERTICAL) */
    .gamification-strip {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 14px;
      padding: 10px 14px;
      margin-bottom: 12px;
      font-size: 12px;
      font-weight: 700;
    }

    .badge-shelf {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 6px 2px 14px;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      flex-shrink: 0;
    }

    .badge-item {
      flex: 0 0 78px;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px 6px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }

    .badge-icon {
      font-size: 26px;
      margin-bottom: 4px;
    }

    .badge-title {
      font-size: 9.5px;
      font-weight: 800;
      color: var(--primary-dark);
      line-height: 1.2;
    }

    .badge-item.locked {
      opacity: 0.4;
      filter: grayscale(1);
    }

    /* TRILHAS MACRO EXPANSÍVEIS */
    .track-card {
      background: #ffffff;
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 16px;
      margin-bottom: 10px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.03);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .track-card:active {
      transform: scale(0.99);
    }

    .track-header {
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .track-title {
      font-family: var(--font-title);
      font-size: 15.5px;
      font-weight: 800;
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .track-sub {
      font-size: 11.5px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .track-courses-drawer {
      display: none;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #f1f5f9;
      flex-direction: column;
      gap: 8px;
    }
    .track-courses-drawer.open {
      display: flex !important;
    }

    .course-mini-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 12px;
    }

    /* PLAYER COM TOPO E RODAPÉ FIXOS */
    .player-top-wrapper {
      flex-shrink: 0;
      background: #ffffff;
      border-bottom: 1px solid var(--border);
      z-index: 50;
      display: flex;
      flex-direction: column;
    }

    .progress-bar-container {
      display: flex;
      gap: 6px;
      padding: 14px 18px 6px;
      background: #ffffff;
      flex-shrink: 0;
    }

    .player-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 18px 10px;
      background: #ffffff;
      flex-shrink: 0;
    }

    .player-body {
      flex: 1;
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      touch-action: pan-y;
      background: #f8fafc;
    }

    .player-footer {
      display: none; /* removido — navegação 100% por Reels (swipe/wheel/teclado/setinhas) */
    }



  
    /* BOTOES MODERNOS BLINDADOS */
    .nav-btn, .player-exit-btn, #playerExitBtn {
      background: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #1e3a8a !important;
      border-radius: 12px !important;
      padding: 6px 14px !important;
      font-family: var(--font-title) !important;
      font-size: 12.5px !important;
      font-weight: 800 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      box-shadow: 0 2px 5px rgba(0,0,0,0.04) !important;
      text-decoration: none !important;
    }
    .nav-btn:hover, .player-exit-btn:hover, #playerExitBtn:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
    }
    .nav-btn:active, .player-exit-btn:active, #playerExitBtn:active {
      transform: scale(0.96) !important;
      background: #f1f5f9 !important;
    }

    .password-modal {
      position: fixed;
      inset: 0;
      z-index: 1000000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(4px);
    }

    .profile-modal {
      position: fixed;
      inset: 0;
      z-index: 999999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(4px);
    }

    .profile-modal[hidden] {
      display: none;
    }

    .profile-modal-card {
      position: relative;
      width: min(100%, 420px);
      padding: 28px 22px 22px;
      border: 2px solid #cbd5e1;
      border-radius: 24px;
      background: #ffffff;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    }

    .profile-modal-card h2 {
      margin: 0 34px 18px 0;
      color: var(--primary);
      font-family: var(--font-title);
      font-size: 21px;
    }

    .profile-identity {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 22px;
      padding: 14px 16px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
      color: #475569;
      font-size: 13px;
    }

    .profile-identity strong {
      color: #1e3a8a;
      font-family: var(--font-title);
      font-size: 16px;
    }

    .profile-actions {
      display: grid;
      gap: 10px;
    }

    .profile-logout-btn {
      width: 100%;
      padding: 12px;
      border: 1.5px solid #fecaca;
      border-radius: 12px;
      background: #fff1f2;
      color: #b91c1c;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .password-modal[hidden] {
      display: none;
    }

    .password-modal-card {
      position: relative;
      width: min(100%, 420px);
      max-height: 100%;
      overflow-y: auto;
      padding: 28px 22px 22px;
      border: 2px solid #cbd5e1;
      border-radius: 24px;
      background: #ffffff;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    }

    .password-modal-card h2 {
      margin: 0 34px 8px 0;
      color: var(--primary);
      font-family: var(--font-title);
      font-size: 21px;
    }

    .password-modal-intro {
      margin-bottom: 20px;
      color: #475569;
      font-size: 13px;
      line-height: 1.5;
    }

    .password-modal-close {
      position: absolute;
      top: 12px;
      right: 14px;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 50%;
      background: #f1f5f9;
      color: #334155;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

    .password-feedback {
      min-height: 0;
      margin-top: -4px;
      color: #b91c1c;
      font-size: 12px;
      line-height: 1.4;
    }

    .password-feedback:empty {
      display: none;
    }

    .password-reset-link {
      display: block;
      width: 100%;
      margin-top: 14px;
      border: 0;
      background: transparent;
      color: var(--primary-light);
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      text-decoration: underline;
    }

    @media (max-width: 767px) {
      .nav-header {
        padding: 10px 12px;
        gap: 6px;
      }

      .nav-header > div:last-child {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: flex-end;
        align-items: center;
        gap: 6px !important;
        flex-shrink: 0;
      }

      .nav-header .nav-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        min-height: 36px;
        letter-spacing: -0.2px;
      }

      .nav-brand {
        gap: 6px;
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
      }

      .nav-logo-img {
        width: 28px !important;
        height: 28px !important;
      }
    }

    @media (max-width: 360px) {
      .nav-header {
        padding: 8px 8px;
        gap: 4px;
      }
      .nav-header > div:last-child {
        gap: 4px !important;
      }
      .nav-header .nav-btn {
        padding: 5px 6px !important;
        font-size: 10px !important;
      }
    }

    #playerPrevBtn, .btn-secondary {
      background: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #475569 !important;
      border-radius: 16px !important;
      height: 52px !important;
      padding: 0 18px !important;
      font-family: var(--font-title) !important;
      font-size: 13.5px !important;
      font-weight: 800 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      box-shadow: 0 2px 5px rgba(0,0,0,0.04) !important;
    }
    #playerPrevBtn:hover, .btn-secondary:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
    }
    #playerPrevBtn:active, .btn-secondary:active {
      transform: scale(0.96) !important;
      background: #f1f5f9 !important;
    }

  

    /* MECÂNICAS DO CURSO A1 */
    .dilemma-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 14px 0;
    }
    .dilemma-scenario {
      background: #f8fafc;
      border-left: 4px solid #3b82f6;
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 6px;
    }
    .dilemma-option-btn {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 16px;
      padding: 14px 16px;
      text-align: left;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .dilemma-option-btn:hover {
      border-color: #93c5fd;
      background: #eff6ff;
    }
    .dilemma-option-btn.selected-best {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      box-shadow: 0 4px 12px rgba(16,185,129,0.15) !important;
    }
    .dilemma-option-btn.selected-bad {
      border-color: #f59e0b !important;
      background: #fffbeb !important;
    }

    /* JORNADA DO CLIENTE (BLINDADA CONTRA SOBREPOSIÇÃO) */
    .journey-chain-display {
      background: #f8fafc;
      border: 2px dashed #cbd5e1;
      border-radius: 16px;
      padding: 14px;
      margin: 14px 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 80px;
      height: auto;
      box-sizing: border-box;
      width: 100%;
      clear: both;
    }
    .sentence-actions {
      display: flex !important;
      gap: 10px;
      margin: 16px 0 !important;
      width: 100%;
      box-sizing: border-box;
      clear: both;
    }
    .sentence-actions button {
      flex: 1;
    }
    .journey-slot-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
      color: #1e293b;
      animation: fadeIn 0.2s ease;
    }
    .journey-slot-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--primary);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      flex-shrink: 0;
    }
    .journey-bank {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }
    .journey-chip {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #334155;
      cursor: pointer;
      text-align: left;
      transition: all 0.2s;
    }
    .journey-chip:hover {
      border-color: var(--primary);
      background: #eff6ff;
    }
    .journey-chip.used {
      opacity: 0.35;
      pointer-events: none;
      background: #f1f5f9;
      border-color: #e2e8f0;
    }

    /* CAÇA AOS DESVIOS */
    
    /* ASSOCIAÇÃO DE PARES DUOLINGO */
    .match-pairs-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 14px 0;
    }
    .match-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .match-tile {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 12px 10px;
      font-size: 12.5px;
      font-weight: 700;
      color: #1e293b;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s ease;
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.35;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }
    .match-tile:active {
      transform: scale(0.97);
    }
    .match-tile.selected {
      border-color: #2563eb !important;
      background: #eff6ff !important;
      color: #1d4ed8 !important;
    }
    .match-tile.matched {
      border-color: #10b981 !important;
      background: #ecfdf5 !important;
      color: #047857 !important;
      cursor: default;
    }
    .match-tile.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    /* CARD DE PRÓXIMO TREINAMENTO NO DASHBOARD */
    .next-course-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 55%, #059669 100%);
      border-radius: 20px;
      padding: 18px 16px;
      color: #ffffff;
      margin-top: 14px;
      box-shadow: 0 8px 24px rgba(29, 78, 216, 0.22);
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .next-course-card:active {
      transform: scale(0.98);
    }
    .next-course-badge {
      display: inline-block;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .next-course-title {
      font-family: var(--font-title);
      font-size: 16.5px;
      font-weight: 900;
      margin-bottom: 4px;
    }
    .next-course-desc {
      font-size: 12.5px;
      color: #cbd5e1;
      line-height: 1.4;
      margin-bottom: 12px;
    }
    .next-course-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding-top: 10px;
    }
    .next-course-time {
      font-size: 12px;
      font-weight: 700;
      color: #93c5fd;
    }
    .btn-next-course {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 8px 14px;
      font-size: 12.5px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      transition: all 0.2s ease;
    }
    .btn-next-course:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }

    .defects-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 14px 0;
    }
    .defect-card-item {
      background: #ffffff;
      border: 2px solid #fed7aa;
      border-radius: 16px;
      padding: 14px 12px;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .defect-card-item.fixed {
      border-color: #86efac !important;
      background: #f0fdf4 !important;
      transform: scale(0.98);
    }



    /* MECÂNICAS DO CURSO A1 */
    .dilemma-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 14px 0;
    }
    .dilemma-scenario {
      background: #f8fafc;
      border-left: 4px solid #3b82f6;
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 6px;
    }
    .dilemma-option-btn {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 16px;
      padding: 14px 16px;
      text-align: left;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .dilemma-option-btn:hover {
      border-color: #93c5fd;
      background: #eff6ff;
    }
    .dilemma-option-btn.selected-best {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      box-shadow: 0 4px 12px rgba(16,185,129,0.15) !important;
    }
    .dilemma-option-btn.selected-bad {
      border-color: #f59e0b !important;
      background: #fffbeb !important;
    }

    /* JORNADA DO CLIENTE (BLINDADA CONTRA SOBREPOSIÇÃO) */
    .journey-chain-display {
      background: #f8fafc;
      border: 2px dashed #cbd5e1;
      border-radius: 16px;
      padding: 14px;
      margin: 14px 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 80px;
      height: auto;
      box-sizing: border-box;
      width: 100%;
      clear: both;
    }
    .sentence-actions {
      display: flex !important;
      gap: 10px;
      margin: 16px 0 !important;
      width: 100%;
      box-sizing: border-box;
      clear: both;
    }
    .sentence-actions button {
      flex: 1;
    }
    .journey-slot-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
      color: #1e293b;
      animation: fadeIn 0.2s ease;
    }
    .journey-slot-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--primary);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      flex-shrink: 0;
    }
    .journey-bank {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }
    .journey-chip {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #334155;
      cursor: pointer;
      text-align: left;
      transition: all 0.2s;
    }
    .journey-chip:hover {
      border-color: var(--primary);
      background: #eff6ff;
    }
    .journey-chip.used {
      opacity: 0.35;
      pointer-events: none;
      background: #f1f5f9;
      border-color: #e2e8f0;
    }

    /* CAÇA AOS DESVIOS */
    
    /* ASSOCIAÇÃO DE PARES DUOLINGO */
    .match-pairs-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 14px 0;
    }
    .match-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .match-tile {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 12px 10px;
      font-size: 12.5px;
      font-weight: 700;
      color: #1e293b;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s ease;
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.35;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }
    .match-tile:active {
      transform: scale(0.97);
    }
    .match-tile.selected {
      border-color: #2563eb !important;
      background: #eff6ff !important;
      color: #1d4ed8 !important;
    }
    .match-tile.matched {
      border-color: #10b981 !important;
      background: #ecfdf5 !important;
      color: #047857 !important;
      cursor: default;
    }
    .match-tile.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    /* CARD DE PRÓXIMO TREINAMENTO NO DASHBOARD */
    .next-course-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 55%, #059669 100%);
      border-radius: 20px;
      padding: 18px 16px;
      color: #ffffff;
      margin-top: 14px;
      box-shadow: 0 8px 24px rgba(29, 78, 216, 0.22);
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .next-course-card:active {
      transform: scale(0.98);
    }
    .next-course-badge {
      display: inline-block;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .next-course-title {
      font-family: var(--font-title);
      font-size: 16.5px;
      font-weight: 900;
      margin-bottom: 4px;
    }
    .next-course-desc {
      font-size: 12.5px;
      color: #cbd5e1;
      line-height: 1.4;
      margin-bottom: 12px;
    }
    .next-course-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding-top: 10px;
    }
    .next-course-time {
      font-size: 12px;
      font-weight: 700;
      color: #93c5fd;
    }
    .btn-next-course {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 8px 14px;
      font-size: 12.5px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      transition: all 0.2s ease;
    }
    .btn-next-course:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }

    .defects-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 14px 0;
    }
    .defect-card-item {
      background: #ffffff;
      border: 2px solid #fed7aa;
      border-radius: 16px;
      padding: 14px 12px;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .defect-card-item.fixed {
      border-color: #86efac !important;
      background: #f0fdf4 !important;
      transform: scale(0.98);
    }


    /* ==================================================================
       INTERAÇÕES DO CURSO A3 (MANEJO DE CONFLITOS E SEGURANÇA)
       ================================================================== */
    .conflict-scenario-box {
      background: #f8fafc;
      border: 2px solid #e2e8f0;
      border-radius: 18px;
      padding: 16px;
      margin: 14px 0;
      text-align: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }
    .conflict-quote {
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      color: #991b1b;
      line-height: 1.45;
      margin-bottom: 8px;
    }
    .conflict-meta {
      font-size: 12.5px;
      color: #64748b;
      font-weight: 600;
    }
    .root-cause-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 14px 0;
      width: 100%;
    }
    .root-cause-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      box-sizing: border-box;
      padding: 16px 18px;
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 16px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      color: #1e293b;
      text-align: left;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
      line-height: 1.4;
    }
    .root-cause-btn:active {
      transform: scale(0.98);
    }
    .root-cause-btn.selected-correct {
      background: #f0fdf4 !important;
      border-color: #10b981 !important;
      color: #065f46 !important;
      box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
    }
    .root-cause-btn.selected-wrong {
      background: #fef2f2 !important;
      border-color: #ef4444 !important;
      color: #991b1b !important;
    }

    /* TERMÔMETRO LAST (A3.2) */
    .thermometer-container {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 18px;
      padding: 16px;
      margin: 14px 0;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }
    .thermo-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .thermo-level-badge {
      font-size: 12.5px;
      font-weight: 800;
      color: #b91c1c;
      background: #fee2e2;
      padding: 5px 12px;
      border-radius: 12px;
      border: 1px solid #fca5a5;
    }
    .thermo-track {
      width: 100%;
      height: 14px;
      background: #f1f5f9;
      border-radius: 7px;
      overflow: hidden;
      border: 1px solid #e2e8f0;
    }
    .thermo-fill {
      height: 100%;
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s ease;
      border-radius: 7px;
    }
    .last-step-box {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 18px;
      padding: 18px 16px;
      margin-bottom: 14px;
    }
    .last-step-tag {
      font-size: 11.5px;
      font-weight: 800;
      color: #1e3a8a;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .last-step-prompt {
      font-size: 14.5px;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.5;
      margin-bottom: 16px;
      padding: 14px;
      background: #f8fafc;
      border-radius: 14px;
      border-left: 4px solid #3b82f6;
    }
    .last-step-opts {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }
    .btn-last-opt {
      width: 100%;
      box-sizing: border-box;
      padding: 16px 18px;
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 16px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      color: #1e293b;
      text-align: left;
      cursor: pointer;
      transition: all 0.2s ease;
      line-height: 1.45;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    .btn-last-opt:active {
      transform: scale(0.98);
    }
    .btn-last-opt.selected-correct {
      background: #f0fdf4 !important;
      border-color: #10b981 !important;
      color: #065f46 !important;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    .btn-last-opt.selected-wrong {
      background: #fef2f2 !important;
      border-color: #ef4444 !important;
      color: #991b1b !important;
    }

    /* BOTÕES PROPORCIONAIS E MODERNOS DE A3.1 E A3.3 */
    .root-cause-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 14px 0;
      width: 100%;
    }
    .root-cause-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      box-sizing: border-box;
      padding: 12px 14px;
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      font-family: var(--font-body);
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
      text-align: left;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
      line-height: 1.4;
    }
    .root-cause-btn:hover {
      border-color: #3b82f6;
      background: #f8fafc;
    }
    .root-cause-btn.correct {
      background: #f0fdf4 !important;
      border-color: #10b981 !important;
      color: #065f46 !important;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    .root-cause-btn.wrong {
      background: #fef2f2 !important;
      border-color: #ef4444 !important;
      color: #991b1b !important;
    }

    .scope-box {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 20px;
      padding: 18px 16px;
      margin: 14px 0;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }
    .scope-dots {
      display: flex;
      gap: 6px;
      margin-bottom: 14px;
    }
    .scope-dot {
      flex: 1;
      height: 6px;
      background: #e2e8f0;
      border-radius: 3px;
      transition: all 0.3s ease;
    }
    .scope-dot.active {
      background: #3b82f6;
    }
    .scope-dot.done {
      background: #10b981;
    }
    .scope-situation {
      font-size: 14px;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.5;
      padding: 14px;
      background: #f8fafc;
      border-radius: 14px;
      border: 1px dashed #cbd5e1;
      margin-bottom: 14px;
    }
    .scope-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
    .btn-scope {
      width: 100%;
      box-sizing: border-box;
      padding: 13px 16px;
      border-radius: 14px;
      font-family: var(--font-body);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      transition: all 0.2s ease;
      border: 2px solid transparent;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }
    .btn-scope span {
      font-size: 13.5px;
      font-weight: 800;
    }
    .btn-scope small {
      font-size: 11px;
      font-weight: 600;
      opacity: 0.85;
    }
    .btn-scope:active {
      transform: scale(0.98);
    }
    .btn-scope-balcao {
      background: #f0fdf4;
      border-color: #10b981;
      color: #065f46;
    }
    .btn-scope-balcao:hover {
      background: #dcfce7;
    }
    .btn-scope-farma {
      background: #eff6ff;
      border-color: #3b82f6;
      color: #1e3a8a;
    }
    .btn-scope-farma:hover {
      background: #dbeafe;
    }

  
    /* DESAFIO DE DESCARTE DE RESÍDUOS (3 DESTINOS) */
    .waste-sort-container {
      margin: 14px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .waste-item-card {
      background: #f8fafc;
      border: 2px solid #3b82f6;
      border-radius: 16px;
      padding: 16px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
      transition: all 0.3s ease;
    }
    .waste-item-header {
      font-size: 12px;
      font-weight: 800;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }
    .waste-item-name {
      font-size: 15px;
      font-weight: 800;
      color: #1e3a8a;
      line-height: 1.4;
    }
    .waste-bins-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .waste-bin-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 16px;
      padding: 13px 16px;
      cursor: pointer;
      text-align: left;
      transition: all 0.2s ease;
    }
    .waste-bin-btn:active {
      transform: scale(0.98);
    }
    .waste-bin-btn.bin-urna {
      border-color: #38bdf8;
      background: #f0f9ff;
    }
    .waste-bin-btn.bin-reciclagem {
      border-color: #34d399;
      background: #f0fdf4;
    }
    .waste-bin-btn.bin-descarpack {
      border-color: #facc15;
      background: #fefce8;
    }
    .waste-bin-btn .bin-icon {
      font-size: 28px;
      flex-shrink: 0;
    }
    .waste-bin-btn .bin-title {
      font-size: 14px;
      font-weight: 800;
      color: #0f172a;
    }
    .waste-bin-btn .bin-sub {
      font-size: 11.5px;
      color: #64748b;
      margin-top: 2px;
    }
    .waste-bin-btn.correct-pulse {
      animation: pulseGreen 0.5s ease;
    }
    @keyframes pulseGreen {
      0% { transform: scale(1); }
      50% { transform: scale(1.03); border-color: #22c55e; }
      100% { transform: scale(1); }
    }
/* =================================================================
       ESTILOS MODERNOS DO CERTIFICADO OFICIAL V35 (A4 PAISAGEM • FRENTE E VERSO)
       ================================================================= */
    #view-certificate {
      display: none;
      flex-direction: column;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      background: #f1f5f9 !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      box-sizing: border-box !important;
    }

    #view-certificate.active {
      display: flex !important;
    }

    .cert-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: max(10px, env(safe-area-inset-top, 10px)) 14px 10px;
      background: #1e3a8a;
      color: #ffffff;
      width: 100%;
      box-sizing: border-box;
      position: sticky !important;
      top: 0 !important;
      z-index: 100000 !important;
      box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }

    .cert-tool-btn {
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 9px;
      color: #ffffff;
      font-size: 12.5px;
      font-weight: 800;
      padding: 8px 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      touch-action: manipulation;
    }

    .cert-tool-btn:active {
      transform: scale(0.96);
    }

    .cert-tool-print {
      background: #10b981 !important;
      border-color: #059669 !important;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    }

    .cert-mobile-hint {
      display: block;
      width: 100%;
      background: #e0f2fe;
      color: #0369a1;
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      padding: 7px 12px;
      box-sizing: border-box;
      border-bottom: 1px solid #bae6fd;
    }

    @media (min-width: 960px) {
      .cert-mobile-hint {
        display: none;
      }
    }

    /* CONTAINER DO CERTIFICADO */
    .cert-display-wrapper {
      width: 100%;
      padding: 20px 14px 60px;
      box-sizing: border-box;
      background: #f1f5f9;
      min-height: calc(100vh - 60px);
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 28px !important;
    }

    /* FOLHA DO CERTIFICADO NA TELA: DIMENSÕES FIXAS RIGOROSAMENTE IDÊNTICAS PARA FRENTE E VERSO (880px x 620px) */
    .cert-sheet {
      display: inline-block !important;
      text-align: left !important;
      width: 880px !important;
      min-width: 880px !important;
      max-width: 880px !important;
      height: 620px !important;
      min-height: 620px !important;
      max-height: 620px !important;
      background: #ffffff;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
      border-radius: 12px;
      box-sizing: border-box;
      position: relative;
      margin: 0 auto;
      vertical-align: top;
      overflow: hidden;
    }

    .cert-modern-frame {
      margin: 14px;
      padding: 20px 24px;
      border: 3px solid #1e3a8a;
      border-radius: 8px;
      position: relative;
      box-sizing: border-box;
      background: #ffffff;
      height: calc(100% - 28px) !important;
      min-height: calc(100% - 28px) !important;
      max-height: calc(100% - 28px) !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .cert-modern-frame::before {
      content: '';
      position: absolute;
      top: 4px; left: 4px; right: 4px; bottom: 4px;
      border: 1.5px solid #d97706;
      border-radius: 5px;
      pointer-events: none;
    }

    .cert-top-bar {
      display: flex;
      align-items: center;
      gap: 16px;
      border-bottom: 1.5px solid #e2e8f0;
      padding-bottom: 10px;
    }

    .cert-logo-container {
      flex: 0 0 auto;
    }

    .cert-logo-img {
      max-height: 48px;
      max-width: 150px;
      object-fit: contain;
      display: block;
    }

    .cert-header-text {
      flex: 1;
    }

    .cert-entity-name {
      font-family: var(--font-title);
      font-size: 19px;
      font-weight: 900;
      color: #1e3a8a;
      letter-spacing: 0.8px;
      line-height: 1.1;
    }

    .cert-corporate-name {
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      letter-spacing: 0.4px;
      margin-top: 2px;
    }

    .cert-address {
      font-size: 10px;
      font-weight: 600;
      color: #64748b;
      margin-top: 1px;
    }

    .cert-program-subtitle {
      font-size: 9px;
      font-weight: 700;
      color: #0284c7;
      margin-top: 2px;
      letter-spacing: 0.4px;
    }

    .cert-heading-wrap {
      text-align: center;
      margin: 12px 0 10px;
    }

    .cert-badge-gold {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      color: #b45309;
      background: #fef3c7;
      border: 1px solid #fde68a;
      padding: 2px 10px;
      border-radius: 20px;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .cert-title-text {
      font-family: var(--font-title);
      font-size: 32px;
      font-weight: 900;
      color: #1e3a8a;
      letter-spacing: 4px;
      margin: 0;
      line-height: 1;
    }

    .cert-track-name {
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      color: #0369a1;
      margin-top: 4px;
    }

    .cert-content-body {
      font-size: 14px;
      line-height: 1.7;
      color: #1e293b;
      text-align: justify;
      margin: 12px 0;
    }

    .cert-content-body b {
      color: #0f172a;
    }

    .cert-date-line {
      text-align: right;
      font-size: 11.5px;
      font-weight: 700;
      color: #475569;
      margin: 6px 0 14px;
      font-style: italic;
    }

    .cert-signatures-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 14px;
      text-align: center;
      margin: 12px 0 10px;
    }

    .cert-sig-col {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .cert-signature-draw {
      font-family: 'Brush Script MT', 'Segoe Script', cursive, serif;
      font-size: 18px;
      color: #1e3a8a;
      height: 32px;
      line-height: 32px;
      margin-bottom: 2px;
      white-space: nowrap !important;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      width: 100%;
      overflow: visible;
    }

    .cert-sig-name {
      width: 92%;
      border-top: 1.5px solid #0f172a;
      padding-top: 5px;
      font-size: 11px;
      font-weight: 800;
      color: #0f172a;
      white-space: nowrap !important;
    }

    .cert-sig-title {
      font-size: 9.5px;
      font-weight: 700;
      color: #1e3a8a;
      margin-top: 1px;
    }

    .cert-sig-doc {
      font-size: 9px;
      font-weight: 600;
      color: #64748b;
    }

    .cert-bottom-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1.5px solid #e2e8f0;
      padding-top: 8px;
      margin-top: 10px;
      gap: 14px;
    }

    .cert-qr-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
    }

    .cert-qr-box {
      width: 92px;
      height: 92px;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      padding: 2px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cert-qr-meta {
      display: flex;
      flex-direction: column;
    }

    .cert-meta-label {
      font-size: 8.5px;
      color: #64748b;
      font-weight: 700;
      text-transform: uppercase;
    }

    .cert-meta-code {
      font-family: monospace;
      font-size: 12px;
      font-weight: 800;
      color: #1e3a8a;
      letter-spacing: 0.5px;
    }

    .cert-meta-url {
      font-size: 8.5px;
      color: #0284c7;
      font-weight: 600;
    }

    .cert-legal-clause {
      font-size: 8.5px;
      line-height: 1.35;
      color: #64748b;
      text-align: right;
      max-width: 480px;
    }

    /* ESTILOS DO VERSO */
    .cert-back-top {
      margin-bottom: 10px;
    }

    .cert-back-h1 {
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 900;
      color: #1e3a8a;
      letter-spacing: 0.5px;
    }

    .cert-back-h2 {
      font-size: 10.5px;
      font-weight: 700;
      color: #b45309;
      margin-top: 2px;
    }

    .cert-table-container {
      margin: 10px 0;
      flex: 1;
    }

    .cert-grid-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 10.5px;
      text-align: left;
    }

    .cert-grid-table th {
      background: #1e3a8a;
      color: #ffffff;
      padding: 7px 9px;
      font-weight: 800;
      border: 1px solid #1e3a8a;
    }

    .cert-grid-table td {
      padding: 6px 9px;
      border: 1px solid #cbd5e1;
      color: #334155;
      line-height: 1.3;
    }

    .cert-grid-table tr:nth-child(even) {
      background: #f8fafc;
    }

    .cert-methodology-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 9.5px;
      line-height: 1.4;
      color: #475569;
      margin: 10px 0;
    }

    .cert-back-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 9.5px;
      color: #64748b;
      border-top: 1.5px solid #e2e8f0;
      padding-top: 8px;
      margin-top: 8px;
    }

        /* =================================================================
       TELA DE VALIDAÇÃO PÚBLICA DE CERTIFICADOS (PADRÃO OFICIAL ÁGUA AZUL)
       ================================================================= */
    #view-validator {
      display: none;
      flex-direction: column;
      align-items: center;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      background: #f8fafc !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      box-sizing: border-box !important;
      padding: max(20px, env(safe-area-inset-top, 20px)) 16px 60px !important;
    }

    #view-validator.active {
      display: flex !important;
    }

    .validator-wrapper {
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .validator-top-bar {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 4px;
    }

    .validator-hero-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 24px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .validator-hero-logo {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      object-fit: cover;
      margin-bottom: 12px;
      box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    }

    .validator-title {
      font-family: var(--font-title);
      font-size: 22px;
      font-weight: 900;
      color: #1e3a8a;
      letter-spacing: 0.3px;
      margin-bottom: 4px;
    }

    .validator-sub {
      font-size: 13px;
      color: #64748b;
      font-weight: 600;
      line-height: 1.4;
    }

    .validator-search-card {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 20px;
      padding: 20px 18px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    .validator-search-label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: #1e3a8a;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .validator-input-row {
      display: flex;
      gap: 10px;
    }

    .validator-input {
      flex: 1;
      padding: 14px 16px;
      border-radius: 14px;
      border: 2px solid #cbd5e1;
      font-family: monospace;
      font-size: 15px;
      font-weight: 800;
      text-transform: uppercase;
      color: #1e3a8a;
      background: #f8fafc;
      outline: none;
      transition: all 0.2s ease;
    }

    .validator-input:focus {
      border-color: #2563eb;
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .validator-btn {
      background: #1e3a8a;
      color: #ffffff;
      border: none;
      border-radius: 14px;
      padding: 0 20px;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
      white-space: nowrap;
    }

    .validator-btn:hover {
      background: #1e40af;
      transform: translateY(-1px);
    }

    .validator-btn:active {
      transform: scale(0.97);
    }


    /* =================================================================
       NOVA MECÂNICA A: BATE-PRONTO DE BALCÃO (QUICK DECIDER)
       ================================================================= */
    .quick-decider-box {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 22px;
      padding: 20px 18px;
      margin: 16px 0;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .decider-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      font-weight: 800;
    }

    .decider-step-badge {
      background: #e0f2fe;
      color: #0369a1;
      padding: 4px 10px;
      border-radius: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .decider-score-badge {
      color: #15803d;
      font-weight: 800;
    }

    .decider-card {
      background: #f8fafc;
      border: 2px solid #93c5fd;
      border-radius: 18px;
      padding: 20px 16px;
      text-align: center;
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
      transition: all 0.25s ease;
      min-height: 110px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }

    .decider-card.correct-pulse {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      transform: scale(1.02);
    }

    .decider-card.wrong-shake {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      animation: shake 0.4s;
    }

    .decider-icon {
      font-size: 32px;
    }

    .decider-prompt {
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.45;
    }

    .decider-actions {
      display: flex;
      gap: 12px;
    }

    .btn-decide {
      flex: 1;
      padding: 14px 10px;
      border-radius: 14px;
      border: none;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }

    .btn-decide:active {
      transform: scale(0.97);
    }

    .btn-decide-left {
      background: #10b981;
      color: #ffffff;
    }
    .btn-decide-left:hover {
      background: #059669;
    }

    .btn-decide-right {
      background: #ef4444;
      color: #ffffff;
    }
    .btn-decide-right:hover {
      background: #dc2626;
    }

    /* =================================================================
       NOVA MECÂNICA B: ETIQUETA POSOLÓGICA & CARIMBO CLÍNICO (PRESCRIPTION PAD)
       ================================================================= */
    .rx-pad-box {
      background: #fefce8;
      border: 2px dashed #ca8a04;
      border-radius: 22px;
      padding: 20px 18px;
      margin: 16px 0;
      box-shadow: 0 6px 20px rgba(161, 98, 7, 0.08);
      position: relative;
    }

    .rx-header {
      border-bottom: 2px solid #eab308;
      padding-bottom: 10px;
      margin-bottom: 14px;
      text-align: center;
    }

    .rx-brand {
      font-family: var(--font-title);
      font-size: 13.5px;
      font-weight: 900;
      color: #78350f;
      letter-spacing: 0.5px;
    }

    .rx-sub {
      font-size: 11px;
      font-weight: 700;
      color: #a16207;
      margin-top: 2px;
    }

    .rx-body {
      font-size: 14.5px;
      line-height: 2.3;
      color: #451a03;
      font-weight: 600;
      margin-bottom: 14px;
    }

    .rx-slot {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 140px;
      padding: 2px 10px;
      margin: 0 4px;
      border-radius: 10px;
      border: 2px dashed #ca8a04;
      background: #ffffff;
      color: #a16207;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      vertical-align: middle;
      transition: all 0.2s ease;
    }

    .rx-slot.empty {
      color: #a16207;
      background: #fef9c3;
    }

    .rx-slot.filled {
      border: 2px solid #78350f;
      background: #fef08a;
      color: #451a03;
    }

    .rx-slot.correct {
      border: 2px solid #10b981 !important;
      background: #dcfce7 !important;
      color: #15803d !important;
    }

    .rx-slot.wrong {
      border: 2px solid #ef4444 !important;
      background: #fee2e2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    .rx-bank {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 14px 0;
      justify-content: center;
    }

    .rx-chip {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 12px;
      padding: 9px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #1e293b;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    .rx-chip.used {
      opacity: 0.35;
      pointer-events: none;
      background: #f1f5f9;
      transform: scale(0.96);
    }

    .btn-verify-rx {
      width: 100%;
      background: #ca8a04;
      color: #ffffff;
      padding: 14px;
      border-radius: 14px;
      border: none;
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
      transition: all 0.2s ease;
    }

    .btn-verify-rx:hover {
      background: #a16207;
    }

    .btn-verify-rx:disabled {
      background: #cbd5e1;
      color: #64748b;
      box-shadow: none;
      cursor: not-allowed;
    }

        /* =================================================================
       MODAL DE AVALIAÇÃO DA TRILHA PARA CERTIFICAÇÃO (QUIZ DE 10 QUESTÕES)
       ================================================================= */
    #view-track-quiz {
      display: none;
      flex-direction: column;
      align-items: center;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      background: #f8fafc !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      box-sizing: border-box !important;
      padding: max(16px, env(safe-area-inset-top, 16px)) 16px 60px !important;
    }

    #view-track-quiz.active {
      display: flex !important;
    }

    .track-quiz-wrapper {
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .track-quiz-header-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 20px;
      padding: 16px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    }

    .track-quiz-progress-bar-bg {
      width: 100%;
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
      margin-top: 6px;
    }

    .track-quiz-progress-bar-fill {
      height: 100%;
      width: 10%;
      background: #10b981;
      border-radius: 4px;
      transition: width 0.3s ease;
    }

    .track-quiz-card {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 22px;
      padding: 22px 18px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .track-quiz-question-text {
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.45;
    }

    .track-quiz-options-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .track-quiz-option-btn {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      padding: 14px 16px;
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.4;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }

    .track-quiz-option-btn:hover {
      border-color: #3b82f6;
      background: #f0f9ff;
    }

    .track-quiz-option-btn.selected {
      border-color: #2563eb !important;
      background: #eff6ff !important;
      color: #1e3a8a !important;
    }

    .track-quiz-opt-letter {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 800;
      color: #475569;
      flex-shrink: 0;
    }

    .track-quiz-option-btn.selected .track-quiz-opt-letter {
      background: #2563eb;
      color: #ffffff;
    }

    .btn-quiz-advance {
      background: #1e3a8a;
      color: #ffffff;
      border: none;
      border-radius: 14px;
      padding: 16px;
      font-family: var(--font-title);
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
      transition: all 0.2s ease;
    }

    .btn-quiz-advance:disabled {
      background: #cbd5e1;
      color: #64748b;
      box-shadow: none;
      cursor: not-allowed;
    }

    
    /* =================================================================
       PAINEL ADMINISTRATIVO DO GESTOR & COMPROVAÇÃO DE HORAS EM PDF
       ================================================================= */
    #view-admin, #view-internal-report {
      display: none;
      flex-direction: column;
      align-items: center;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      background: #f8fafc !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      box-sizing: border-box !important;
      padding: max(16px, env(safe-area-inset-top, 16px)) 16px 60px !important;
    }

    #view-admin.active, #view-internal-report.active {
      display: flex !important;
    }

    .admin-wrapper {
      width: 100%;
      max-width: 780px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .admin-header-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 20px;
      padding: 18px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    .admin-nav-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      background: #e2e8f0;
      padding: 6px;
      border-radius: 14px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }

    .admin-nav-tab {
      flex: 0 0 auto;
      min-width: max-content;
      padding: 10px 18px;
      text-align: center;
      font-size: 12.5px;
      font-weight: 800;
      border-radius: 10px;
      color: #64748b;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      background: transparent;
      white-space: nowrap;
      box-sizing: border-box;
      line-height: 1.2;
    }

    .admin-nav-tab.active {
      background: #ffffff;
      color: #1e3a8a;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .admin-tab-content {
      display: none;
      flex-direction: column;
      gap: 16px;
    }

    .admin-tab-content.active {
      display: flex !important;
    }

    .admin-card {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 20px;
      padding: 20px 18px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    }

    .admin-card-title {
      font-family: var(--font-title);
      font-size: 16px;
      font-weight: 800;
      color: #1e3a8a;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .admin-card-sub {
      font-size: 12.5px;
      color: #64748b;
      margin-bottom: 14px;
      line-height: 1.4;
    }

    /* HEATMAP STYLES */
    .heatmap-bar-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid #f1f5f9;
    }

    .heatmap-bar-header {
      display: flex;
      justify-content: space-between;
      font-size: 12.5px;
      font-weight: 700;
      color: #1e293b;
    }

    .heatmap-bar-track {
      width: 100%;
      height: 10px;
      background: #f1f5f9;
      border-radius: 5px;
      overflow: hidden;
    }

    .heatmap-bar-fill {
      height: 100%;
      border-radius: 5px;
      transition: width 0.4s ease;
    }

    /* CAMPANHA CARDS NO DASHBOARD */
    .campaign-banner-card {
      background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
      border: 2px solid #fde68a;
      border-radius: 20px;
      padding: 16px 18px;
      box-shadow: 0 4px 14px rgba(217, 119, 6, 0.1);
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }

    .campaign-tag-badge {
      display: inline-block;
      align-self: flex-start;
      background: #d97706;
      color: #ffffff;
      font-size: 10.5px;
      font-weight: 800;
      padding: 3px 9px;
      border-radius: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    
    /* =================================================================
       TELA DE RANKING DE XP DOS COLABORADORES DA EQUIPE
       ================================================================= */
    #view-team-ranking {
      display: none;
      flex-direction: column;
      align-items: center;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 99999 !important;
      background: #f8fafc !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      box-sizing: border-box !important;
      padding: max(16px, env(safe-area-inset-top, 16px)) 16px 60px !important;
    }

    #view-team-ranking.active {
      display: flex !important;
    }

    .ranking-wrapper {
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .ranking-header-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 20px;
      padding: 16px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    }

    .ranking-hero-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #0284c7 100%);
      border-radius: 22px;
      padding: 24px 20px;
      color: #ffffff;
      text-align: center;
      box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
    }

    .podium-container {
      display: grid;
      grid-template-columns: 1fr 1.15fr 1fr;
      gap: 8px;
      margin-top: 18px;
      align-items: flex-end;
    }

    .podium-step {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 16px;
      padding: 14px 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      backdrop-filter: blur(8px);
      min-width: 0;
      text-align: center;
    }

    .podium-step.first {
      background: rgba(255, 255, 255, 0.22);
      border-color: #fde047;
      padding-bottom: 22px;
    }

    .podium-medal { font-size: 30px; line-height: 1; margin-bottom: 6px; }
    .podium-place, .podium-role { color: #dbeafe; font-size: 10px; font-weight: 700; }
    .podium-name { color: #ffffff; font-size: 13px; line-height: 1.2; margin: 6px 0 4px; overflow-wrap: anywhere; }
    .podium-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; margin-top: 10px; }
    .ranking-metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .ranking-metric strong { font-size: 11px; line-height: 1.1; overflow-wrap: anywhere; }
    .ranking-metric span { font-size: 9px; opacity: .78; }
    .podium-step .ranking-metric strong { color: #ffffff; }

    .ranking-list-card {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 20px;
      padding: 18px 16px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .ranking-user-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f8fafc;
      border: 1.5px solid #e2e8f0;
      border-radius: 14px;
      padding: 12px 14px;
      transition: all 0.2s ease;
      gap: 12px;
    }

    .ranking-rank { flex: 0 0 32px; color: #1d4ed8; font-size: 16px; font-weight: 900; text-align: center; }
    .ranking-identity { display: flex; flex: 1 1 150px; flex-direction: column; gap: 3px; min-width: 0; }
    .ranking-identity strong { color: #0f172a; font-size: 13px; overflow-wrap: anywhere; }
    .ranking-identity span, .ranking-progress span { color: #64748b; font-size: 10px; line-height: 1.25; }
    .ranking-progress { flex: 1 1 120px; min-width: 90px; }
    .ranking-progress-track { background: #dbeafe; border-radius: 99px; height: 6px; margin-top: 5px; overflow: hidden; }
    .ranking-progress-track span { background: linear-gradient(90deg, #1d4ed8 0%, #06b6d4 50%, #10b981 100%); border-radius: inherit; display: block; height: 100%; }
    .ranking-row-metrics { display: flex; flex: 0 0 auto; gap: 10px; text-align: right; }
    .ranking-row-metrics .ranking-metric strong { color: #1e3a8a; }

    @media (max-width: 560px) {
      .ranking-user-row { align-items: flex-start; flex-wrap: wrap; }
      .ranking-progress { order: 4; flex-basis: calc(100% - 44px); margin-left: 44px; }
      .ranking-row-metrics { margin-left: auto; }
      .podium-container { gap: 5px; }
      .podium-step { padding-left: 4px; padding-right: 4px; }
      .podium-name { font-size: 11px; }
    }

    .ranking-user-row.is-current-user {
      border-color: #3b82f6 !important;
      background: #eff6ff !important;
      box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    }

    
    /* =================================================================
       NOVA MECÂNICA 5: LINHA DO TEMPO / ESCADA DE PROCEDIMENTO (TIMELINE)
       ================================================================= */
    .timeline-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 16px 0;
      position: relative;
    }

    .timeline-step-item {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 16px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .timeline-step-item:active {
      transform: scale(0.98);
    }

    .timeline-step-item.selected {
      border-color: #3b82f6 !important;
      background: #eff6ff !important;
    }

    .timeline-step-item.correct {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      color: #15803d;
    }

    .timeline-step-item.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      animation: shake 0.4s;
    }

    .timeline-step-badge {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #e2e8f0;
      color: #475569;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 900;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .timeline-step-item.selected .timeline-step-badge {
      background: #3b82f6;
      color: #ffffff;
    }

    .timeline-step-item.correct .timeline-step-badge {
      background: #10b981;
      color: #ffffff;
    }

    .timeline-step-text {
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.4;
      flex: 1;
    }

    /* =================================================================
       NOVA MECÂNICA 6: DESAFIO DE OBJEÇÕES DE BALCÃO (OBJECTION WHEEL)
       ================================================================= */
    .objection-box {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 22px;
      padding: 20px 18px;
      margin: 16px 0;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .objection-speech-bubble {
      background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
      border: 2px solid #fde68a;
      border-radius: 18px;
      padding: 16px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .objection-avatar {
      font-size: 32px;
      line-height: 1;
    }

    .objection-text {
      font-family: var(--font-title);
      font-size: 14.5px;
      font-weight: 800;
      color: #78350f;
      line-height: 1.45;
    }

    .objection-options-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .btn-objection-opt {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      padding: 14px 16px;
      text-align: left;
      cursor: pointer;
      font-size: 13.5px;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.4;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }

    .btn-objection-opt:hover {
      border-color: #3b82f6;
      background: #f0f9ff;
    }

    .btn-objection-opt:active {
      transform: scale(0.98);
    }

    .btn-objection-opt.correct {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      color: #15803d !important;
    }

    .btn-objection-opt.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    
    /* =================================================================
       PASSO 1: MOTORES E COMPONENTES VISUAIS DAS 6 NOVAS MECÂNICAS
       ================================================================= */

    /* 1. FLIPCARD TÁTIL 3D */
    .flipcard-box {
      perspective: 1000px;
      margin: 16px 0;
      width: 100%;
      min-height: 260px;
    }
    .flipcard-inner {
      position: relative;
      width: 100%;
      min-height: 260px;
      text-align: center;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      transform-style: preserve-3d;
      cursor: pointer;
    }
    .flipcard-box.flipped .flipcard-inner {
      transform: rotateY(180deg);
    }
    .flipcard-front, .flipcard-back {
      position: absolute;
      width: 100%;
      height: 100%;
      min-height: 260px;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      border-radius: 20px;
      padding: 22px 18px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }
    .flipcard-front {
      background: #ffffff;
      border: 2px solid #3b82f6;
      color: #0f172a;
    }
    .flipcard-back {
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border: 2px solid #2563eb;
      color: #1e3a8a;
      transform: rotateY(180deg);
    }
    .flipcard-copy {
      white-space: pre-line;
    }
    .flipcard-hint-badge {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: #dbeafe;
      color: #1e40af;
      padding: 4px 12px;
      border-radius: 10px;
      margin-bottom: 12px;
    }
    .btn-flip-action {
      margin-top: 14px;
      background: #3b82f6;
      color: #ffffff;
      border: none;
      border-radius: 12px;
      padding: 10px 18px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
      transition: all 0.2s;
    }

    /* 2. MATCHGRID (TAP-TO-MATCH SEM FIOS) */
    .matchgrid-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 16px 0;
    }
    .matchgrid-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .matchgrid-card {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 12px 10px;
      font-size: 12.5px;
      font-weight: 700;
      color: #1e293b;
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
      user-select: none;
      line-height: 1.35;
    }
    .matchgrid-card:active {
      transform: scale(0.97);
    }
    .matchgrid-card.selected {
      border-color: #2563eb !important;
      background: #eff6ff !important;
      color: #1e3a8a !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
    }
    .matchgrid-card.matched {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
      color: #15803d !important;
      pointer-events: none;
      opacity: 0.9;
    }
    .matchgrid-card.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
      color: #b91c1c !important;
      animation: shake 0.4s;
    }

    /* 3. STEPFLOW (ESCADA / LINHA DO TEMPO SEQUENCIAL) */
    .stepflow-container {
      margin: 16px 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .stepflow-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      padding: 0 10px;
    }
    .stepflow-nav::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 20px;
      right: 20px;
      height: 3px;
      background: #e2e8f0;
      z-index: 1;
      transform: translateY(-50%);
    }
    .stepflow-node {
      position: relative;
      z-index: 2;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #ffffff;
      border: 2px solid #cbd5e1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-title);
      font-size: 14px;
      font-weight: 800;
      color: #64748b;
      cursor: pointer;
      transition: all 0.25s ease;
    }
    .stepflow-node.active {
      border-color: #2563eb;
      background: #2563eb;
      color: #ffffff;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
      transform: scale(1.1);
    }
    .stepflow-node.viewed {
      border-color: #10b981;
      color: #10b981;
    }
    .stepflow-card {
      background: #ffffff;
      border: 2px solid #e2e8f0;
      border-radius: 18px;
      padding: 18px 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* 4. SEQUENCEREORDER (ORDENADOR TÁTIL DE ETAPAS) */
    .sequencereorder-container {
      margin: 16px 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .seq-item {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 14px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
      transition: all 0.2s ease;
    }
    .seq-item.correct {
      border-color: #10b981 !important;
      background: #f0fdf4 !important;
    }
    .seq-item.wrong {
      border-color: #ef4444 !important;
      background: #fef2f2 !important;
    }
    .seq-actions {
      display: flex;
      gap: 4px;
    }
    .btn-seq-move {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }
    .btn-seq-move:hover {
      background: #e2e8f0;
    }

    /* 5. SPOTTHEERROR (CAÇA AOS DESVIOS / ERROS DE BALCÃO) */
    .spoterror-container {
      margin: 16px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .spot-case-box {
      background: #fffbeb;
      border: 2px dashed #f59e0b;
      border-radius: 18px;
      padding: 16px;
      font-size: 14px;
      line-height: 1.6;
      color: #78350f;
    }
    .spot-phrase {
      display: inline-block;
      padding: 3px 8px;
      margin: 2px 2px;
      border-radius: 8px;
      border: 1.5px solid #cbd5e1;
      background: #ffffff;
      color: #0f172a;
      cursor: pointer;
      font-weight: 700;
      transition: all 0.2s;
    }
    .spot-phrase:hover {
      border-color: #f59e0b;
      background: #fef3c7;
    }
    .spot-phrase.identified-error {
      border-color: #ef4444 !important;
      background: #fee2e2 !important;
      color: #b91c1c !important;
      text-decoration: line-through;
    }
    .spot-phrase.identified-correct {
      border-color: #10b981 !important;
      background: #dcfce7 !important;
      color: #15803d !important;
    }

    
    /* =================================================================
       NOVA MECÂNICA: INSPEÇÃO DE PONTOS CRÍTICOS (HOTSPOTS)
       ================================================================= */
    .hotspot-wrapper {
      margin: 16px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .hotspot-stage {
      position: relative;
      background: #0f172a;
      border-radius: 18px;
      overflow: hidden;
      border: 2px solid #334155;
      min-height: 240px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hotspot-bg-img {
      width: 100%;
      height: auto;
      max-height: 280px;
      object-fit: cover;
      display: block;
      opacity: 0.85;
    }
    .hotspot-pin {
      position: absolute;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #2563eb;
      color: #ffffff;
      border: 2.5px solid #ffffff;
      font-size: 14px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,0.4);
      transform: translate(-50%, -50%);
      transition: all 0.25s ease;
      animation: pulsePin 2s infinite;
      z-index: 5;
    }
    @keyframes pulsePin {
      0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    }
    .hotspot-pin.active {
      background: #f59e0b;
      transform: translate(-50%, -50%) scale(1.15);
    }
    .hotspot-pin.discovered {
      background: #10b981;
      border-color: #ffffff;
      animation: none;
    }
    .hotspot-details-card {
      background: #ffffff;
      border: 2px solid #cbd5e1;
      border-radius: 16px;
      padding: 16px 18px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.03);
      min-height: 90px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      transition: all 0.2s ease;
    }
    .hotspot-counter-badge {
      display: inline-block;
      align-self: flex-start;
      background: #e0f2fe;
      color: #0369a1;
      padding: 4px 10px;
      border-radius: 10px;
      font-size: 11.5px;
      font-weight: 800;
      margin-bottom: 8px;
      text-transform: uppercase;
    }

    /* =================================================================
       IMPRESSÃO PERFEITA EM PDF (RIGOROSAMENTE 2 PÁGINAS A4 PAISAGEM • SEM 3ª PÁGINA)
       ================================================================= */
    @media print {
      /* =========================================================
         MODO PADRÃO: IMPRESSÃO DO CERTIFICADO OFICIAL (A4 PAISAGEM)
         ========================================================= */
      @page {
        size: A4 landscape !important;
        size: 297mm 210mm !important;
        margin: 6mm 10mm !important;
      }
      @page :left {
        size: A4 landscape !important;
        margin: 6mm 10mm !important;
      }
      @page :right {
        size: A4 landscape !important;
        margin: 6mm 10mm !important;
      }

      html, body {
        width: 297mm !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        display: block !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      body * {
        visibility: hidden !important;
      }

      /* Quando for impressão do relatório do gestor (MODO RETRATO) */
      body.print-mode-report {
        display: block !important;
        background: #ffffff !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
      }

      body.print-mode-report #view-certificate,
      body.print-mode-report .app-container,
      body.print-mode-report #view-auth,
      body.print-mode-report #view-dashboard,
      body.print-mode-report #view-player,
      body.print-mode-report #view-team-ranking,
      body.print-mode-report #view-track-quiz,
      body.print-mode-report #view-validator,
      body.print-mode-report .no-print,
      body.print-mode-report .admin-header-card,
      body.print-mode-report .admin-nav-tabs,
      body.print-mode-report #admSec-whitelist,
      body.print-mode-report #admSec-heatmap,
      body.print-mode-report #admSec-campaigns,
      body.print-mode-report .cert-toolbar,
      body.print-mode-report .cert-mobile-hint {
        display: none !important;
        visibility: hidden !important;
      }

      body.print-mode-report #view-internal-report {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        visibility: visible !important;
      }

      body.print-mode-report #view-internal-report * {
        visibility: visible !important;
      }

      body.print-mode-report #reportSheetToPrint {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
      }

      body.print-mode-report table {
        width: 100% !important;
        border-collapse: collapse !important;
      }

      body.print-mode-report th,
      body.print-mode-report td {
        border: 1px solid #0f172a !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
      }

      body.print-mode-report th {
        background: #1e3a8a !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      /* QUANDO FOR IMPRESSÃO DO CERTIFICADO (A4 PAISAGEM) */
      /* Elimina sumariamente a .app-container e todas as outras telas irmãs para não gerar página 1 em branco */
      body:not(.print-mode-report) > :not(#view-certificate),
      body:not(.print-mode-report) .app-container,
      body:not(.print-mode-report) #view-validator,
      body:not(.print-mode-report) #view-team-ranking,
      body:not(.print-mode-report) #view-admin,
      body:not(.print-mode-report) #view-internal-report {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
      }

      body:not(.print-mode-report) #view-certificate,
      body:not(.print-mode-report) #view-certificate * {
        visibility: visible !important;
      }

      body:not(.print-mode-report) #view-certificate {
        position: static !important;
        width: 277mm !important;
        max-width: 277mm !important;
        height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        overflow: visible !important;
      }

      body:not(.print-mode-report) .cert-toolbar,
      body:not(.print-mode-report) .cert-mobile-hint {
        display: none !important;
      }

      body:not(.print-mode-report) .cert-display-wrapper {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
        gap: 0 !important;
        width: 100% !important;
        text-align: left !important;
      }

      /* FOLHA DO CERTIFICADO CALIBRADA PARA 188mm (ENCAIXE PERFEITO EM 1 PÁGINA A4) */
      body:not(.print-mode-report) .cert-sheet {
        display: block !important;
        width: 277mm !important;
        max-width: 277mm !important;
        min-width: 277mm !important;
        height: 188mm !important;
        max-height: 188mm !important;
        min-height: 188mm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
      }

      body:not(.print-mode-report) .cert-modern-frame {
        margin: 0 !important;
        padding: 8mm 12mm !important;
        border: 2.5px solid #1e3a8a !important;
        height: 188mm !important;
        max-height: 188mm !important;
        min-height: 188mm !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        position: relative !important;
      }

      body:not(.print-mode-report) .cert-modern-frame::before {
        content: '' !important;
        position: absolute !important;
        top: 3px !important; left: 3px !important; right: 3px !important; bottom: 3px !important;
        border: 1.5px solid #d97706 !important;
        border-radius: 4px !important;
        pointer-events: none !important;
      }

      body:not(.print-mode-report) .cert-top-bar {
        padding-bottom: 5px !important;
        margin-bottom: 2px !important;
      }

      body:not(.print-mode-report) .cert-logo-img {
        max-height: 42px !important;
      }

      body:not(.print-mode-report) .cert-entity-name {
        font-size: 18px !important;
      }

      body:not(.print-mode-report) .cert-heading-wrap {
        margin: 4px 0 6px !important;
      }

      body:not(.print-mode-report) .cert-badge-gold {
        font-size: 9.5px !important;
        padding: 2px 9px !important;
        margin-bottom: 2px !important;
      }

      body:not(.print-mode-report) .cert-title-text {
        font-size: 28px !important;
        letter-spacing: 3px !important;
      }

      body:not(.print-mode-report) .cert-track-name {
        font-size: 14px !important;
        margin-top: 2px !important;
      }

      body:not(.print-mode-report) .cert-content-body {
        font-size: 13px !important;
        line-height: 1.55 !important;
        margin: 6px 0 !important;
      }

      body:not(.print-mode-report) .cert-date-line {
        font-size: 11px !important;
        margin: 4px 0 6px !important;
      }

      body:not(.print-mode-report) .cert-signatures-row {
        margin: 6px 0 !important;
        gap: 12px !important;
      }

      body:not(.print-mode-report) .cert-signature-draw {
        font-size: 20px !important;
        height: 28px !important;
        line-height: 28px !important;
        margin-bottom: 2px !important;
      }

      body:not(.print-mode-report) .cert-sig-name {
        font-size: 10.5px !important;
        padding-top: 3px !important;
      }

      body:not(.print-mode-report) .cert-sig-title {
        font-size: 8.5px !important;
      }

      body:not(.print-mode-report) .cert-sig-doc {
        font-size: 8px !important;
      }

      body:not(.print-mode-report) .cert-bottom-bar {
        padding-top: 6px !important;
        margin-top: 4px !important;
        gap: 12px !important;
      }

      body:not(.print-mode-report) .cert-qr-box {
        width: 76px !important;
        height: 76px !important;
      }

      body:not(.print-mode-report) .cert-qr-box svg {
        width: 72px !important;
        height: 72px !important;
      }

      body:not(.print-mode-report) .cert-meta-code {
        font-size: 11.5px !important;
      }

      body:not(.print-mode-report) .cert-legal-clause {
        font-size: 8px !important;
        line-height: 1.25 !important;
        max-width: 500px !important;
      }

      /* AJUSTES DO VERSO NO PRINT */
      body:not(.print-mode-report) .cert-back-top {
        margin-bottom: 6px !important;
      }

      body:not(.print-mode-report) .cert-back-h1 {
        font-size: 13.5px !important;
      }

      body:not(.print-mode-report) .cert-table-container {
        margin: 6px 0 !important;
      }

      body:not(.print-mode-report) .cert-grid-table th {
        padding: 5px 8px !important;
        font-size: 10px !important;
        background: #1e3a8a !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      body:not(.print-mode-report) .cert-grid-table td {
        padding: 5px 8px !important;
        font-size: 9.5px !important;
        line-height: 1.25 !important;
      }

      body:not(.print-mode-report) .cert-methodology-card {
        padding: 6px 10px !important;
        font-size: 9px !important;
        line-height: 1.35 !important;
        margin: 6px 0 !important;
      }

      body:not(.print-mode-report) .cert-back-bottom {
        padding-top: 6px !important;
        margin-top: 4px !important;
        font-size: 9px !important;
      }

      /* PÁGINA 1: FRENTE (INICIA RIGOROSAMENTE NA PÁGINA 1) */
      body:not(.print-mode-report) #certFaceFront {
        display: block !important;
        page-break-before: avoid !important;
        break-before: avoid !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 0 !important;
      }

      /* PÁGINA 2: VERSO (INICIA NA PÁGINA 2 E ENCERRA A IMPRESSÃO) */
      body:not(.print-mode-report) #certFaceBack {
        display: block !important;
        page-break-before: always !important;
        break-before: page !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 0 !important;
      }
    }
    /* CONTRASTE ESTÁVEL DE BOTÕES DE VALIDAÇÃO */
    .btn-verify-rx:disabled,
    .btn-verify-rx[disabled] {
      background: #10b981 !important;
      color: #ffffff !important;
      opacity: 1 !important;
      cursor: default !important;
    }

    .btn-verify-cloze {
      background: #0284c7;
      color: #ffffff !important;
    }
    .btn-verify-cloze:disabled,
    .btn-verify-cloze[disabled] {
      background: #e2e8f0 !important;
      color: #94a3b8 !important;
      box-shadow: none !important;
      cursor: not-allowed !important;
    }

#syncStatus { padding:10px 16px;background:#e0f2fe;color:#0c4a6e;font-size:13px;line-height:1.5;flex-shrink:0; }
#syncStatus.sync-error {background:#fef3c7;color:#78350f;}
#syncStatus button {margin-left:8px;padding:6px 10px;border:1px solid currentColor;border-radius:8px;cursor:pointer;}
:focus-visible {outline:3px solid #2563eb;outline-offset:3px;}
.auth-tab {cursor:pointer;}
.card-hero-banner {max-height:170px;object-fit:cover;}

/* NAVEGAÇÃO POR SEGMENTOS DO CATÁLOGO ZELO (OCULTA NO DASHBOARD MODULAR) */
.catalog-segment-bar {
  display: none !important;
  gap: 6px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  padding: 5px;
  border-radius: 16px;
  margin-top: 14px;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.catalog-segment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.catalog-segment-tab:hover {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.6);
}

.catalog-segment-tab.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12), 0 1px 2px rgba(0,0,0,0.06);
}

.catalog-segment-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.catalog-segment-tab-label {
  white-space: nowrap;
}

.catalog-segment-tab-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  line-height: 1.2;
}

.catalog-segment-tab.active .catalog-segment-tab-count {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 480px) {
  .catalog-segment-tab {
    padding: 8px 6px;
    font-size: 11.5px;
    gap: 4px;
  }
  .catalog-segment-tab-icon {
    font-size: 14px;
  }
  .catalog-segment-tab-count {
    padding: 1px 5px;
    font-size: 10px;
  }
}

@media (min-width:800px) {
  .app-container {max-width:1100px;width:94vw;height:96vh;border-radius:20px;border-width:1px;}
  #view-auth {align-items:center;}
  #view-auth > * {max-width:480px;width:100%;}
  #view-player {max-width:760px;align-self:center;}
  #macroTracksList {display:flex;flex-direction:column;gap:16px;align-items:stretch;}
  #macroTracksList > * {min-width:0;}
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after {animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important;} }

/* ===================================================================
   ETAPA 5: NAVEGAÇÃO HIERÁRQUICA, ACESSIBILIDADE E RESPONSIVIDADE
=================================================================== */

.segment-context-banner {
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.segment-context-corp {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bbf7d0;
}

.segment-context-univ {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
}

.segment-context-all {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.segment-context-crumbs {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.segment-context-corp .segment-context-crumbs {
  color: #166534;
}

.segment-context-univ .segment-context-crumbs {
  color: #3730a3;
}

.segment-context-crumbs .crumb-sep {
  color: #94a3b8;
  font-weight: 900;
}

.segment-context-crumbs .crumb-current {
  color: var(--primary-dark);
  font-weight: 900;
}

.segment-context-desc {
  font-size: 12.5px;
  color: #334155;
  margin-top: 4px;
  line-height: 1.45;
}

.next-course-seg-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.next-course-seg-tag.tag-corp {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.next-course-seg-tag.tag-univ {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.track-header:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 8px;
}

.btn-scope-farma,
.btn-scope-farm {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.btn-scope-farma:hover,
.btn-scope-farm:hover {
  background: #dbeafe;
}

/* Touch targets mínimos para mobile (44px+) e safe area */
@media (max-width: 767px) {
  .nav-btn,
  .btn-submit,
  .catalog-segment-tab,
  .btn-next-course {
    min-height: 44px;
    touch-action: manipulation;
  }
  .segment-context-crumbs {
    font-size: 10.5px;
  }
  .segment-context-desc {
    font-size: 11.5px;
  }
}

/* ===================================================================
   TELA 1.5: HUB DE MÓDULOS MULTI-TENANT (FASE G)
=================================================================== */
.module-hub-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.module-hub-card:hover,
.module-hub-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.15);
  border-color: #93c5fd;
  outline: none;
}

.module-hub-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-hub-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
}

.module-hub-icon-corp {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.module-hub-icon-univ {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.module-hub-card-title {
  font-family: var(--font-title);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.module-hub-card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.module-hub-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  width: fit-content;
}

.module-hub-badge-corp {
  background: #dbeafe;
  color: #1d4ed8;
}

.module-hub-badge-univ {
  background: #dcfce7;
  color: #15803d;
}

.module-hub-card-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.module-hub-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--zelo-gradient);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.module-hub-card-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ==================================================================
   SELETOR DE SEGMENTO DO PAINEL DO GESTOR (CORPORATIVO VS ACADÊMICO)
   ================================================================== */
.admin-segment-selector-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 14px;
}

.admin-segment-pill {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #64748b;
  transition: all 0.2s ease;
}

.admin-segment-pill.active {
  background: #ffffff;
  color: #1e3a8a;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
