  /* ===== Aguarde (loading elegante) + cards estáveis ===== */
  .bc-aguarde {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    width: 100%;
    min-height: 7.5rem;
    padding: 1.25rem 1rem;
    border-radius: .85rem;
    background:
      linear-gradient(180deg, rgba(2, 129, 140, .06), rgba(11, 31, 76, .03)),
      #f7fafb;
    border: 1px dashed rgba(11, 31, 76, .12);
    color: #0b1f4c;
    text-align: center;
  }

  .bc-aguarde__spinner {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    border: 2.5px solid rgba(2, 129, 140, .2);
    border-top-color: #02818c;
    animation: bc-aguarde-spin .7s linear infinite;
  }

  .bc-aguarde__text {
    font-size: .92rem;
    font-weight: 650;
    letter-spacing: .01em;
    color: #0b1f4c;
  }

  .bc-aguarde__hint {
    font-size: .78rem;
    color: #5a6b82;
    margin-top: -.35rem;
  }

  @keyframes bc-aguarde-spin {
    to { transform: rotate(360deg); }
  }

  .bc-aguarde--overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 0;
    border-radius: inherit;
  }

  .bc-aguarde--compact {
    min-height: 5.5rem;
    padding: .9rem .75rem;
  }

  /* Evita “sanfona”: altura mínima estável enquanto carrega */
  .bc-card-stable > .card-body {
    display: flex;
    flex-direction: column;
  }

  .bc-card-planos #meusPlanos,
  .bc-card-planos #listaPlanos {
    min-height: 6.5rem;
  }

  .bc-card-planos #meusPlanos {
    min-height: 9.5rem;
  }

  .bc-card-planos #listaPlanos {
    min-height: 14rem;
  }

  .bc-card-curriculo #previewWrap {
    position: relative;
    min-height: 18rem;
    overflow: hidden;
  }

  .bc-card-curriculo #previewWrap.is-loading .bc-preview-main {
    opacity: .28;
    pointer-events: none;
  }

  .bc-card-curriculo #previewWrap:not(.is-loading) .bc-aguarde--overlay {
    display: none;
  }

  #cardMyResumes #gridResumes {
    min-height: 7rem;
  }

  #cardMyResumes.is-loading #gridResumes {
    min-height: 8.5rem;
  }

  .bc-card-modelos #gridTemplates {
    min-height: 14rem;
  }

  .bc-card-modelos.is-loading #gridTemplates {
    min-height: 16rem;
  }

  .bc-card-modelos.is-loading #templatesPager {
    opacity: .45;
    pointer-events: none;
  }

  /* ===== Planos de oportunidades de emprego ===== */
  .bc-oport-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #02818c;
  }

  .bc-oport-lead {
    font-size: .86rem;
    line-height: 1.45;
    color: #5a6b82;
  }

  .bc-oport-info {
    margin-top: .85rem;
    padding: .85rem .9rem;
    border-radius: .85rem;
    background: linear-gradient(160deg, rgba(2, 129, 140, .08), rgba(11, 31, 76, .04));
    border: 1px solid rgba(2, 129, 140, .16);
  }

  .bc-oport-info__title {
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #02818c;
    margin-bottom: .35rem;
  }

  .bc-oport-info__text {
    font-size: .82rem;
    line-height: 1.5;
    color: #334155;
  }

  .bc-oport-bullets li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .88rem;
    color: #334155;
    margin-bottom: .45rem;
  }

  .bc-oport-bullets .bi {
    color: #02818c;
    margin-top: .1rem;
  }

  .bc-oport-main-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 2.05fr);
    gap: 1.5rem 1.75rem;
    align-items: stretch;
  }

  .bc-oport-main-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: .25rem;
  }

  .bc-oport-main-copy {
    font-size: .92rem;
    line-height: 1.55;
    color: #5a6b82;
    margin: 0;
  }

  .bc-oport-main-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    align-items: stretch;
    padding-top: .7rem;
  }

  .bc-oport-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    height: 100%;
    min-height: 100%;
    padding: 1.15rem 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid #e7ecf3;
    background: #fff;
    overflow: visible;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .bc-oport-plan:hover {
    border-color: rgba(2, 129, 140, .35);
    box-shadow: 0 8px 24px rgba(11, 31, 76, .06);
  }

  .bc-oport-plan.is-featured {
    border-color: rgba(2, 129, 140, .5);
    background: linear-gradient(180deg, #f3fbfc, #fff 48%);
    box-shadow: 0 10px 28px rgba(2, 129, 140, .1);
  }

  .bc-oport-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: calc(100% - 1.25rem);
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: #02818c;
    border-radius: 999px;
    padding: .28rem .7rem;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(2, 129, 140, .28);
  }

  .bc-oport-plan__name {
    font-size: 1rem;
    font-weight: 750;
    color: #0b1f4c;
    margin: 0;
    padding-right: 0;
    white-space: nowrap;
    line-height: 1.25;
  }

  .bc-oport-plan__tag {
    font-size: .78rem;
    color: #5a6b82;
    margin: 0;
    min-height: 2.35em;
    line-height: 1.35;
  }

  .bc-oport-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem .35rem;
    margin-top: .1rem;
  }

  .bc-oport-plan__price strong {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0b1f4c;
    letter-spacing: -.02em;
    white-space: nowrap;
  }

  .bc-oport-plan__price span {
    font-size: .78rem;
    color: #64748b;
    white-space: nowrap;
  }

  .bc-oport-plan__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .3rem;
    flex: 1 1 auto;
  }

  .bc-oport-plan__meta li {
    font-size: .8rem;
    color: #334155;
    display: flex;
    gap: .4rem;
    align-items: flex-start;
    line-height: 1.35;
  }

  .bc-oport-plan__meta .bi {
    color: #02818c;
    flex: 0 0 auto;
    margin-top: .1rem;
  }

  .bc-oport-plan .btn {
    margin-top: auto;
    border-radius: 8px;
    font-weight: 650;
    white-space: nowrap;
  }

  .bc-card-oport #listaPlanosOportunidades {
    min-height: 18rem;
    padding-top: .55rem;
  }

  .bc-card-oport .bc-oport-plan__tag {
    min-height: 0;
  }

  .bc-card-oport-main,
  .bc-card-oport-main > .card-body {
    overflow: visible;
  }

  .bc-card-oport-main .bc-oport-plan {
    height: 100%;
  }

  @media (max-width: 991.98px) {
    .bc-oport-main-layout {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }

    .bc-oport-main-plans {
      grid-template-columns: 1fr;
    }
  }

  @media (min-width: 992px) and (max-width: 1199.98px) {
    .bc-oport-main-layout {
      grid-template-columns: 1fr;
    }

    .bc-oport-main-plans {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* CTA sidebar (vagas / planos) — tamanho fixo evita FOUC ao recarregar o painel */
  .card-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #e9edf7;
    border-radius: .75rem;
    background: #fff;
    width: 100%;
    text-decoration: none;
    color: inherit;
  }

  .card-cta:hover {
    background: #f8fafc;
  }

  .icon-24 {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px;
    display: block;
    object-fit: contain;
  }

  .badge-circle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3b5bdb;
    font-weight: 700;
    flex: 0 0 auto;
  }

  #Etapas.is-switching {
    opacity: .72;
    pointer-events: none;
  }

  /* Estabiliza tamanho dos ícones durante troca de etapas (evita FOUC da fonte) */
  .bi::before,
  [class^="bi-"]::before,
  [class*=" bi-"]::before {
    font-size: inherit;
    line-height: 1;
  }

  .btn .bi,
  .btn .fas,
  .btn .fa,
  .dropdown-item .bi,
  .input-group-text .bi,
  .step-row .fas {
    font-size: 1em;
    line-height: 1;
    vertical-align: -0.125em;
  }


  .AlertCampo {
      font-size: 12px !important;
      ;
      color: #F90004 !important;
  }

  img[src=""],
  img:not([src]) {
      display: none;
  }

  /* Brand MCP (sidebar) */
  .brand-mcp {
      display: flex;
      align-items: center;
      gap: .6rem;
      line-height: 1;
  }

  .brand-mcp__mark {
      flex: 0 0 auto;
  }

  .brand-mcp__type {
      display: block;
      height: 26px;
  }

  /* Variante compacta para sidebars muito estreitas */
  @media (max-width: 420px) {
      .brand-mcp__type {
          display: none;
      }
  }

  /* Se a sidebar tiver fundo claro em algum tema, permita herdar cores */
  .sidebar.light .brand-mcp__type text[fill="#ffffff"] {
      fill: #0b1f4c;
  }

  .sidebar.light .brand-mcp__mark rect[fill="#ffffff"] {
      opacity: .12;
  }

  /* Fim Brand MCP (sidebar) */


  .sidebar {
      background-color: #0b1f4c;
      color: rgb(33, 32, 32);
      min-height: 100vh;
      padding: 30px 20px;
  }

  .progress-bar-custom {
      background-color: #f7c54a;
      height: 6px;
  }

  .step {
      font-size: 1rem;
      margin: 15px 0;
  }

  .step.active {
      font-weight: bold;
      color: #f7c54a;
  }

  .form-section {
      padding: 40px;
  }

  .form-section input,
  .form-section select {
      border-radius: 6px;
      border: 2px solid #ccc;
      padding: 10px;
  }

  .form-label {
      font-weight: bold;
      font-size: 0.65rem;
  }

  .valid-icon {
      color: green;
      margin-left: 10px;
  }

  .remove-icon {
      cursor: pointer;
      color: #004488;
      font-size: 1.1rem;
      margin-left: 10px;
  }




/* ===== ALTERAÇÃO 1: Estilo do botão de foto ===== */
.btn-change-photo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b5ed7, #845ef7);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 .5rem 1rem rgba(13,110,253,.15);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-change-photo:hover { filter: brightness(1.05); box-shadow: 0 .75rem 1.25rem rgba(13,110,253,.22); }
.btn-change-photo:active { transform: translateY(1px); }
.btn-change-photo .bi { font-size: 1rem; }

/* Tamanho/ajuste da foto de perfil (se quiser garantir layout) */
.profile-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}



  .cv-preview {
      background-color: #f4f8ef;
      padding: 20px;
      border-radius: 10px;
  }

  .text-small {
      font-size: 0.85rem;
  }

  .text-muted {
      font-size: 0.55rem;
  }




  .position-relative .field-status {
      position: absolute;
      right: .75rem;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      pointer-events: none
  }

  .form-control.is-valid+.field-status {
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="%2316a34a" d="M7.6 13.2l-3-3 1.4-1.4 1.6 1.6 6-6 1.4 1.4z"/></svg>') no-repeat center/16px
  }

  .form-control.is-invalid+.field-status {
      background: none !important;
  }



  /* ícone de status já existente permanece */
  .infield-wrap {
      position: relative;
  }

  .has-infield {
      padding-right: 2.75rem;
  }

  /* espaço pro ícone interno */

  .infield-btn {
      position: absolute;
      right: .5rem;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      /* target 32x32 */
      height: 32px;
      border: 0;
      background: transparent;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #0b2e6f;
      /* azul do tema */
      transition: background-color .15s ease, color .15s ease, transform .05s ease;
  }

  .infield-btn svg {
      width: 20px;
      height: 20px;
  }

  .infield-btn:hover {
      background: rgba(13, 110, 253, .08);
  }

  /* hover azul claro */
  .infield-btn:focus-visible {
      outline: 2px solid rgba(13, 110, 253, .35);
      outline-offset: 2px;
  }

  .infield-btn:active {
      transform: translateY(-50%) scale(.96);
  }

  /* não deixe estado inválido “pintar” o botão em vermelho */
  .is-invalid+.field-status+.infield-btn,
  .was-validated .form-control:invalid+.field-status+.infield-btn {
      color: #0b2e6f;
  }


  .infield-btn:focus {
      outline: 2px solid #00838f33;
      outline-offset: 2px;
  }

  /* Ajuste para select do Bootstrap não “comer” o padding à direita */
  .select.form-select,
  .form-select.has-infield {
      background-position: right 2.75rem center;
  }


  /* Remove apenas o ícone de limpar em selects */
  select::-ms-clear,
  select::-webkit-clear-button {
      display: none;
  }

  /* Se o ícone for um elemento dentro do select */
  select+.remove-icon {
      display: none !important;
  }

  /* Exemplo para Choices.js */
  .choices__button {
      display: none !important;
  }

  /* Remover SOMENTE o check (✔) do Bootstrap nos campos opcionais com botão interno */
  .opt-field .form-control.is-valid,
  .opt-field .form-select.is-valid,
  .was-validated .opt-field .form-control:valid,
  .was-validated .opt-field .form-select:valid {
      background-image: none !important;
      padding-right: 2.75rem;
  }

  /* Para selects, reposiciona a setinha padrão respeitando o botão interno */
  .opt-field .form-select.has-infield {
      background-position: right 2.25rem center;
  }


  .input-wrapper {
      position: relative;
      display: inline-block;
      width: 100%;
  }

  .input-wrapper input {
      padding-right: 35px;
      /* espaço para o ícone */
  }

  .input-wrapper .delete-icon {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      cursor: pointer;
      color: #888;
  }

  .input-wrapper .delete-icon:hover {
      color: #000;
  }



  .step-unlocked {
      cursor: pointer;
  }

  .step-unlocked:hover span,
  .step-unlocked:hover .rounded-circle {
      text-decoration: underline;
  }

  .step-locked {
      cursor: default;
      pointer-events: none;
  }

  /* Criação: progresso só informativo (sem clique) */
  #EtapasProgresso.progresso-nav-travada .step-row {
      cursor: default;
      pointer-events: none;
  }

  #EtapasProgresso.progresso-nav-travada .step-row.todo {
      opacity: .55;
  }

  /* Editar: todas as etapas navegáveis */
  #EtapasProgresso.progresso-nav-livre .step-row {
      cursor: pointer;
      pointer-events: auto;
      opacity: 1;
  }

  #EtapasProgresso.progresso-nav-livre .step-row:hover span,
  #EtapasProgresso.progresso-nav-livre .step-row:hover .rounded-circle {
      text-decoration: underline;
  }

  /* alterar foto */
  .photo-modal {
      border-radius: 20px;
  }

  .modal-xxl {
      max-width: 1100px;
  }

  /* Área de corte */
  .crop-area {
      height: 520px;
      background: #f3f5f8;
      border-radius: 12px;
      overflow: hidden;
  }

  .editor-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  /* Grade (regra dos terços) */
  .crop-grid {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
          linear-gradient(to right, rgba(255, 255, 255, .65) 1px, transparent 1px),
          linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255, 255, 255, .65) 1px, transparent calc(33.333% + .5px)),
          linear-gradient(to right, transparent calc(66.666% - .5px), rgba(255, 255, 255, .65) 1px, transparent calc(66.666% + .5px)),
          linear-gradient(to bottom, rgba(255, 255, 255, .65) 1px, transparent 1px),
          linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255, 255, 255, .65) 1px, transparent calc(33.333% + .5px)),
          linear-gradient(to bottom, transparent calc(66.666% - .5px), rgba(255, 255, 255, .65) 1px, transparent calc(66.666% + .5px));
      opacity: .6;
  }

  /* Cantoneiras */
  .crop-frame {
      position: absolute;
      inset: 20px;
      pointer-events: none;
      --c: 18px;
      --b: 4px;
      --col: #fff;
      background:
          linear-gradient(var(--col), var(--col)) 0 0 / var(--b) var(--c),
          linear-gradient(var(--col), var(--col)) 0 0 / var(--c) var(--b),
          linear-gradient(var(--col), var(--col)) 100% 0 / var(--b) var(--c),
          linear-gradient(var(--col), var(--col)) 100% 0 / var(--c) var(--b),
          linear-gradient(var(--col), var(--col)) 0 100% / var(--b) var(--c),
          linear-gradient(var(--col), var(--col)) 0 100% / var(--c) var(--b),
          linear-gradient(var(--col), var(--col)) 100% 100% / var(--b) var(--c),
          linear-gradient(var(--col), var(--col)) 100% 100% / var(--c) var(--b);
      background-repeat: no-repeat;
  }

  /* Barra vertical */
  .tool-rail {
      width: 70px;
      background: #0f2b57;
      color: #fff;
      border-radius: 12px;
      padding: 16px 10px;
      min-height: 520px;
  }

  .tool-rail i {
      font-size: 20px;
  }

  .vrange {
      writing-mode: bt-lr;
      -webkit-appearance: slider-vertical;
      width: 12px;
      height: 220px;
      background: transparent;
  }

  .tool-btn {
      background: transparent;
      border: 0;
      color: #fff;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
  }

  .tool-btn span {
      font-size: 12px;
      opacity: .9;
  }

  /* Cartão preview */
  .preview-card {
      background: #f9fafb;
  }

  .pc-photo {
      width: 84px;
      height: 84px;
      border-radius: 50%;
      overflow: hidden;
      background: #e9eef5;
  }

  .pc-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .pc-name {
      line-height: 1.1;
  }

  .pc-lines .line {
      height: 10px;
      background: #dfe5ec;
      border-radius: 6px;
      margin-bottom: 8px;
  }

  /* Grid de formatos/filtros */
  .format-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
  }

  .format-grid.small .thumb {
      width: 60px;
      height: 60px;
  }

  .fmt-item,
  .flt-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 10px 8px;
      width: 100%;
  }

  .fmt-item.active,
  .flt-item.active {
      border-color: #1f7a8c;
      box-shadow: 0 0 0 2px rgba(31, 122, 140, .15);
  }

  .thumb {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 10px;
      background: #f0f3f7;
  }

  .thumb.circle {
      border-radius: 50%;
  }

  .thumb.portrait {
      aspect-ratio: 3/4;
      width: 70px;
      height: auto;
  }

  .fmt-item span,
  .flt-item span {
      font-size: 12px;
  }

  /* Botões footer */
  .btn-success {
      background: #0aa37f;
      border-color: #0aa37f;
  }

  .btn-success:hover {
      background: #089a76;
      border-color: #089a76;
  }

  /* Áreas de preview do Cropper */
  .img-preview {
      overflow: hidden;
      background: #f0f3f7;
  }

  /* Tamanhos: preview principal (coerente com .pc-photo) */
  .card-preview {
      width: 84px;
      height: 84px;
      border-radius: 12px;
  }

  /* Tamanhos: thumbs */
  .thumb {
      width: 70px;
      height: 70px;
      border-radius: 10px;
  }

  /* Formatos (aplicados por classe) */
  .fmt-quadrado {
      border-radius: 10px;
  }

  .fmt-circular {
      border-radius: 50%;
  }

  .fmt-arredondado {
      border-radius: 18px;
  }

  .fmt-retrato {
      width: 70px;
      height: 94px;
      border-radius: 10px;
  }

  /* Filtros visuais para thumbs e preview (aplicaremos via JS também) */
  .flt-none {
      filter: none;
  }

  .flt-clar {
      filter: brightness(1.12) contrast(1.05);
  }

  .flt-suav {
      filter: contrast(.92) saturate(.96) brightness(1.03);
  }

  .flt-pb {
      filter: grayscale(1) contrast(1.05);
  }

  /* Opcional: remova o arredondamento fixo do container da foto do card */
  .pc-photo {
      border-radius: 0;
  }

  .pc-photo img {
      display: none;
  }

  /* fim alterar foto */


  /* Trilho vertical entre as etapas */
  .step-row {
      position: relative;
  }

  /* Conector padrão (pendente): branco tracejado */
  .step-connector {
      position: absolute;
      left: 14px;
      /* alinha ao centro do círculo (30px) */
      top: 30px;
      /* começa na base do círculo */
      height: 20px;
      /* trecho entre uma etapa e a seguinte */
      border-left: 3px dashed #ffffff;
      opacity: .9;
  }

  /* Concluídas: linha amarela contínua */
  .step-row.done .step-connector {
      border-left-style: solid;
      border-left-color: #f7c54a;
      opacity: 1;
  }

  /* Última etapa não precisa de conector */
  .step-row:last-child .step-connector {
      display: none;
  }





  /* === Alert stack (canto superior-direito) === */
#alertStack {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* evita bloquear cliques fora; o card habilita de volta */
}

.alert-card {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 6px solid var(--accent, #64748b);
  color: #0b1f4c;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  padding: .75rem 2.25rem .9rem .9rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.alert-card.show { opacity: 1; transform: translateY(0); }

.alert-card .alert-close {
  position: absolute;
  top: 8px; right: 8px;
  border: 0; background: transparent;
  font-size: 18px; line-height: 1; cursor: pointer; opacity: .6;
}
.alert-card .alert-close:hover { opacity: 1; }

.alert-card .alert-title { font-weight: 800; margin-bottom: 2px; font-size: .95rem; }
.alert-card .alert-message { font-size: .95rem; }
.alert-card .alert-meta { font-size: .8rem; opacity: .7; margin-top: .25rem; }

.alert-progress {
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0%;
  background: var(--accent, #64748b);
  transition: width .2s linear;
}

/* Cores por tipo */
.alert-card.success { --accent: #16a34a; } /* verde */
.alert-card.warning { --accent: #f59e0b; } /* âmbar */
.alert-card.info    { --accent: #0ea5e9; } /* azul */
.alert-card.danger  { --accent: #dc2626; } /* vermelho */

/* === Status assinatura oportunidades === */
.bc-oport-sub-status {
  margin-top: .75rem;
  padding: .65rem .85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(11, 31, 76, .06));
  border: 1px solid rgba(16, 185, 129, .28);
  color: #0b1f4c;
  font-size: .875rem;
  line-height: 1.35;
}
.bc-oport-sub-status strong { color: #0b1f4c; }

/* === Engrenagem + drawer preferências === */
.bc-settings-gear {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1040;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 76, .12);
  background: linear-gradient(145deg, #0b1f4c 0%, #123a6b 55%, #0f766e 140%);
  color: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(11, 31, 76, .28);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .15s ease;
}
.bc-settings-gear[hidden] { display: none !important; }
.bc-settings-gear:hover {
  transform: translateY(-1px) rotate(22deg);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(11, 31, 76, .36);
}
.bc-settings-gear:focus-visible {
  outline: 3px solid rgba(45, 212, 191, .7);
  outline-offset: 2px;
}
.bc-settings-gear .bi { font-size: 1.25rem; }

.bc-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1045;
  background: rgba(8, 18, 40, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.bc-settings-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bc-settings-overlay[hidden] { display: none !important; }

.bc-settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  width: min(380px, 92vw);
  height: 100%;
  background: #f8fafc;
  color: #0b1f4c;
  box-shadow: -16px 0 40px rgba(8, 18, 40, .22);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
}
.bc-settings-drawer.is-open { transform: translateX(0); }

.bc-settings-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(135deg, #0b1f4c 0%, #0f766e 120%);
  color: #fff;
}
.bc-settings-drawer__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.bc-settings-drawer__close {
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bc-settings-drawer__close:hover { background: rgba(255,255,255,.24); }

.bc-settings-drawer__body {
  padding: 1.15rem;
  overflow-y: auto;
  flex: 1;
}
.bc-settings-drawer__lead {
  font-size: .9rem;
  color: #334155;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.bc-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(11, 31, 76, .08);
}
.bc-settings-toggle__label {
  display: block;
  font-weight: 700;
  font-size: .95rem;
}
.bc-settings-toggle__hint {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-top: .15rem;
}

.bc-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.bc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bc-switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s ease;
}
.bc-switch__slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.bc-switch input:checked + .bc-switch__slider {
  background: linear-gradient(135deg, #0d9488, #10b981);
}
.bc-switch input:checked + .bc-switch__slider::before {
  transform: translateX(20px);
}
.bc-switch input:focus-visible + .bc-switch__slider {
  outline: 3px solid rgba(45, 212, 191, .55);
  outline-offset: 2px;
}

.bc-settings-sub {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 31, 76, .1);
}
.bc-settings-sub__title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: .35rem;
}
.bc-settings-sub__text {
  font-size: .88rem;
  color: #0b1f4c;
  line-height: 1.4;
}
.bc-settings-sub__cta {
  margin-top: .75rem;
  width: 100%;
  border: 1px solid rgba(15, 118, 110, .35);
  background: linear-gradient(135deg, rgba(13, 148, 136, .1), rgba(11, 31, 76, .06));
  color: #0b1f4c;
  font-weight: 700;
  font-size: .85rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bc-settings-sub__cta:hover {
  border-color: rgba(15, 118, 110, .55);
  background: linear-gradient(135deg, rgba(13, 148, 136, .18), rgba(11, 31, 76, .08));
}

.bc-oport-plan.is-current {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .25);
}
.bc-oport-plan__current {
  display: inline-block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f766e;
}
.bc-oport-flash {
  animation: bcOportFlash .9s ease;
}
@keyframes bcOportFlash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 4px rgba(16, 185, 129, .35); }
}

.bc-settings-feedback {
  margin-top: .9rem;
  font-size: .82rem;
  font-weight: 600;
}
.bc-settings-feedback.is-ok { color: #047857; }
.bc-settings-feedback.is-err { color: #b91c1c; }

@media (max-width: 576px) {
  .bc-settings-gear {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}
