:root {
  --ibjj-green: #1b7a4e;
  --ibjj-green-dark: #145c3a;
  --ibjj-green-soft: #e8f5ee;
  --ibjj-yellow: #f5c518;
  --ibjj-yellow-dark: #d4a60f;
  --ibjj-ink: #14201a;
  --ibjj-muted: #5a6b62;
  --ibjj-bg: #f3f6f4;
  --ibjj-surface: #ffffff;
  --ibjj-border: #d7e3dc;
  --ibjj-sidebar: #0f2e22;
  --ibjj-sidebar-hover: #164032;
  --ibjj-radius: 12px;
  --ibjj-touch: 44px;
  --ibjj-sidebar-w: 260px;
  --ibjj-sidebar-collapsed: 72px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ibjj-ink);
  background: var(--ibjj-bg);
  min-height: 100vh;
}

/* —— Shell —— */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--ibjj-sidebar-w);
  background: linear-gradient(180deg, var(--ibjj-sidebar) 0%, #0a241a 100%);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  transition: width 0.2s ease, transform 0.2s ease;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  color: #fff !important;
}

.app-sidebar-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-sidebar-brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-sidebar-brand .brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  white-space: nowrap;
}

.app-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.app-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--ibjj-touch);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-back,
.btn-sidebar-toggle,
.app-action,
.sticky-submit .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-sidebar-nav a:hover {
  background: var(--ibjj-sidebar-hover);
  color: #fff !important;
}

.app-sidebar-nav a.is-active {
  background: rgba(27, 122, 78, 0.45);
  color: #fff !important;
}

.app-sidebar-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ibjj-yellow);
}

.app-sidebar-nav a i {
  width: 1.25rem;
  text-align: center;
  color: var(--ibjj-yellow);
  flex-shrink: 0;
}

.app-sidebar-section {
  margin: 0.85rem 0.85rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  list-style: none;
  pointer-events: none;
}

.nav-group {
  list-style: none;
  margin: 0.35rem 0;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.nav-group-toggle:hover {
  color: var(--ibjj-yellow);
  background: rgba(255, 255, 255, 0.04);
}

.nav-group-chevron {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

.nav-group.is-open .nav-group-chevron {
  transform: rotate(180deg);
}

.nav-group-items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nav-group.is-open .nav-group-items {
  max-height: 640px;
  opacity: 1;
}

.nav-group-items a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--ibjj-touch);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-group-items a:hover {
  background: var(--ibjj-sidebar-hover);
  color: #fff !important;
}

.nav-group-items a.is-active {
  background: rgba(27, 122, 78, 0.45);
  color: #fff !important;
}

.nav-group-items a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ibjj-yellow);
}

.nav-group-items a i {
  width: 1.25rem;
  text-align: center;
  color: var(--ibjj-yellow);
  flex-shrink: 0;
}

body.sidebar-collapsed .nav-group-icon {
  display: none;
}

.nav-group-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-group-icon {
  width: 1.25rem;
  text-align: center;
  color: var(--ibjj-yellow);
  font-size: 1rem;
}

/* Desktop retraído: só ícones dos grupos (sem listar tudo) */
@media (min-width: 992px) {
  body.sidebar-collapsed .nav-group {
    display: list-item;
    margin: 0.15rem 0;
  }

  body.sidebar-collapsed .nav-group-toggle {
    justify-content: center;
    padding: 0.55rem 0.35rem;
    min-height: var(--ibjj-touch);
  }

  body.sidebar-collapsed .nav-group-label,
  body.sidebar-collapsed .nav-group-chevron {
    display: none;
  }

  body.sidebar-collapsed .nav-group-icon {
    display: inline-block;
    margin: 0;
    font-size: 1.15rem;
  }

  body.sidebar-collapsed .nav-group-items {
    display: none !important;
  }

  body.sidebar-collapsed .nav-group.is-active-group .nav-group-toggle {
    background: rgba(27, 122, 78, 0.45);
  }
}

/* Mobile: grupos sempre visíveis no drawer */
@media (max-width: 991.98px) {
  body.sidebar-collapsed .nav-group {
    display: list-item;
  }

  body.sidebar-collapsed .nav-group-icon {
    display: inline-block;
  }
}

.app-sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--ibjj-touch);
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  border-radius: 8px;
}

.app-sidebar-footer a:hover {
  background: var(--ibjj-sidebar-hover);
}

.app-main-wrap {
  flex: 1;
  margin-left: var(--ibjj-sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.2s ease;
  position: relative;
}

/* Flash alerts sit above content when rendered before shell */
body.app-body > .flash-wrap {
  margin-left: var(--ibjj-sidebar-w);
  transition: margin-left 0.2s ease;
}

body.sidebar-collapsed > .flash-wrap {
  margin-left: var(--ibjj-sidebar-collapsed);
}

@media (max-width: 991.98px) {
  body.app-body > .flash-wrap,
  body.sidebar-collapsed > .flash-wrap {
    margin-left: 0;
  }
}

body.sidebar-collapsed .app-sidebar {
  width: var(--ibjj-sidebar-collapsed);
}

body.sidebar-collapsed .app-main-wrap {
  margin-left: var(--ibjj-sidebar-collapsed);
}

body.sidebar-collapsed .app-sidebar .brand-text,
body.sidebar-collapsed .app-sidebar-section,
body.sidebar-collapsed .app-sidebar-nav a span,
body.sidebar-collapsed .app-sidebar-footer a span {
  display: none;
}

body.sidebar-collapsed .app-sidebar-nav a {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 22, 0.45);
  z-index: 1035;
}

body.sidebar-open-mobile .app-sidebar-overlay {
  display: block;
}

/* —— Topbar —— */
.app-topbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--ibjj-surface);
  border-bottom: 1px solid var(--ibjj-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sidebar-toggle {
  width: var(--ibjj-touch);
  height: var(--ibjj-touch);
  border: 1px solid var(--ibjj-border);
  border-radius: 10px;
  background: var(--ibjj-green-soft);
  color: var(--ibjj-green-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.btn-sidebar-toggle:hover {
  background: var(--ibjj-yellow);
  color: var(--ibjj-ink);
  border-color: var(--ibjj-yellow);
}

.app-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
  margin-left: auto;
}

.app-topbar-user .meta {
  line-height: 1.25;
}

.app-topbar-user .meta strong {
  display: block;
  font-size: 0.95rem;
}

.app-topbar-user .meta span {
  font-size: 0.8rem;
  color: var(--ibjj-muted);
}

.app-topbar-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  min-width: 0;
}

.app-topbar-identity-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}

.app-topbar-identity-text strong {
  font-size: 1rem;
  line-height: 1.2;
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-topbar-sair {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: #fff;
  color: #5c1010 !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-topbar-sair:hover {
  background: #ffe8e8;
  color: #3d0a0a !important;
}

.aula-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .aula-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.aula-card {
  background: var(--ibjj-surface);
  border: 1px solid var(--ibjj-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04);
}

.aula-card-media {
  background: #0f1a14;
}

.aula-card-media video {
  display: block;
  width: 100%;
  max-height: 280px;
  background: #000;
}

.aula-card-body {
  padding: 0.9rem 1rem 1rem;
}

.aula-card-title {
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.aula-nivel {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.aula-nivel--basico {
  background: #e6f4ec;
  color: #1f6b4a;
}

.aula-nivel--intermediario {
  background: #fff4d6;
  color: #8a6a12;
}

.aula-nivel--avancado {
  background: #fde8e8;
  color: #8a1f1f;
}

.app-avatar-btn--ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--belt-ring, var(--ibjj-yellow)), rgba(0, 0, 0, 0.25));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.app-avatar-btn--ring .app-avatar {
  border-color: #fff;
  border-width: 2px;
}

.app-avatar--top {
  width: 52px;
  height: 52px;
}

.belt-strip {
  height: 8px;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Tab bar aluno (mobile) */
.app-tabbar {
  display: none;
}

body.role-aluno .app-tabbar {
  display: none;
}

@media (max-width: 991.98px) {
  /* Aluno no celular: só topbar + tab bar (sem sidebar) */
  body.role-aluno .app-sidebar,
  body.role-aluno .app-sidebar-overlay {
    display: none !important;
  }

  body.role-aluno .app-topbar-left,
  body.role-aluno .btn-sidebar-toggle {
    display: none !important;
  }

  body.role-aluno .app-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ibjj-border);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(15, 46, 34, 0.08);
  }

  body.role-aluno .app-main-wrap {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.role-aluno .app-topbar--aluno .app-topbar-row {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  body.role-aluno .app-topbar-identity {
    margin-left: 0;
    flex: 1;
    min-width: 0;
    width: auto;
  }

  body.role-aluno .btn-topbar-sair {
    flex-shrink: 0;
  }

  body.role-aluno .app-avatar--top {
    width: 58px;
    height: 58px;
  }

  body.role-aluno .app-main {
    padding-top: 0.85rem;
  }

  body.role-aluno .app-page-header {
    margin-bottom: 0.85rem;
  }

  body.role-aluno .app-page-title {
    font-size: 1.35rem;
  }

  body.role-aluno .perf-gauges {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  body.role-aluno .app-panel {
    border-radius: 18px;
  }
}

.app-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  color: var(--ibjj-muted) !important;
  text-decoration: none !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-tabbar-item i {
  font-size: 1.25rem;
}

.app-tabbar-item.is-active {
  color: var(--ibjj-green) !important;
}

.app-avatar-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 50%;
}

.app-avatar-btn:focus {
  outline: 2px solid var(--ibjj-yellow);
  outline-offset: 2px;
}

.app-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ibjj-yellow);
  background: var(--ibjj-green-soft);
  cursor: pointer;
  display: block;
}

.app-avatar--sm {
  width: 36px;
  height: 36px;
}

.app-avatar--lg {
  width: 96px;
  height: 96px;
}

.app-avatar--xl {
  width: 112px;
  height: 112px;
}

.belt-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.belt-chip--lg {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  margin-top: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ibjj-border);
  background: #fff;
  color: var(--ibjj-green-dark);
  text-decoration: none !important;
  margin-left: 0.25rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-icon:hover {
  background: var(--ibjj-green-soft);
  color: var(--ibjj-green-dark);
}

.btn-icon--edit {
  border-color: rgba(27, 122, 78, 0.35);
  color: var(--ibjj-green);
}

.btn-icon--danger {
  border-color: rgba(192, 57, 43, 0.3);
  color: #c0392b;
}

.btn-icon--danger:hover {
  background: #fdecea;
  color: #a93226;
}

.meta-mini {
  min-width: 88px;
  font-size: 0.9rem;
}

.meta-mini span {
  color: var(--ibjj-muted);
}

.meta-mini-bar {
  height: 5px;
  border-radius: 999px;
  background: #e4ebe7;
  margin-top: 0.3rem;
  overflow: hidden;
}

.meta-mini-bar span {
  display: block;
  height: 100%;
  background: var(--ibjj-green);
  border-radius: 999px;
}

.edit-student-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 300px) 1fr;
  align-items: start;
}

@media (max-width: 991.98px) {
  .edit-student-layout {
    grid-template-columns: 1fr;
  }
}

.edit-student-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

a.cell-user {
  color: inherit;
  text-decoration: none;
}

a.cell-user:hover span {
  text-decoration: underline;
}

.edit-student-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.edit-student-contact {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 46, 34, 0.04);
  border: 1px solid var(--ibjj-border);
  text-align: center;
}

.edit-student-contact p {
  margin: 0;
  word-break: break-word;
}

.edit-gauge {
  margin: 0.5rem auto 0;
  max-width: 180px;
}

.promo-ready-box {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.45);
}

.promo-panel {
  background: linear-gradient(145deg, #0f2e22 0%, #1b7a4e 70%, #15633f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 14px 36px rgba(15, 46, 34, 0.28);
}

.promo-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.promo-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: var(--ibjj-yellow);
}

.promo-panel-title i {
  margin-right: 0.35rem;
}

.promo-panel-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.promo-panel-count {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ibjj-yellow);
  color: #12261c;
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.promo-panel-toggle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.promo-panel-head--btn {
  margin-bottom: 0;
  align-items: center;
}

.promo-panel-chevron {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
  margin-left: 0;
  color: var(--ibjj-yellow);
  flex-shrink: 0;
}

.promo-panel.is-open .promo-panel-chevron,
.promo-panel:not(.is-collapsed) .promo-panel-chevron {
  transform: rotate(180deg);
}

.promo-panel.is-collapsed .promo-panel-body {
  display: none;
}

.promo-panel.is-collapsed {
  padding-bottom: 1.25rem;
}

.promo-panel:not(.is-collapsed) .promo-panel-body {
  margin-top: 1rem;
}

.promo-list {
  display: grid;
  gap: 0.75rem;
}

.promo-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

@media (max-width: 767.98px) {
  .promo-card {
    grid-template-columns: auto 1fr;
  }
  .promo-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.promo-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.promo-card-body strong {
  font-size: 1.05rem;
}

.promo-card-meta,
.promo-card-next {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.promo-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
}

.btn-promo-primary,
.btn-promo-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-promo-primary {
  background: var(--ibjj-yellow);
  color: #1a1a1a !important;
  border: 2px solid var(--ibjj-yellow);
}

.btn-promo-primary:hover {
  filter: brightness(1.05);
  color: #000 !important;
}

.btn-promo-edit {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-promo-edit:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

/* Painel "sentindo falta" */
.miss-panel {
  background: linear-gradient(145deg, #3d2a12 0%, #8a5a12 55%, #6b4510 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 14px 36px rgba(61, 42, 18, 0.28);
}

.miss-panel-toggle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.miss-panel-head--btn {
  margin-bottom: 0;
  align-items: center;
}

.miss-panel-chevron {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
  margin-left: 0;
  flex-shrink: 0;
}

.miss-panel.is-open .miss-panel-chevron,
.miss-panel:not(.is-collapsed) .miss-panel-chevron {
  transform: rotate(180deg);
}

.miss-panel.is-collapsed .miss-panel-body {
  display: none;
}

.miss-panel.is-collapsed {
  padding-bottom: 1.25rem;
}

.miss-panel:not(.is-collapsed) .miss-panel-body {
  margin-top: 1rem;
}

/* Painel aniversários (mesmo padrão) */
.bday-panel {
  background: linear-gradient(145deg, #0f3d48 0%, #1a6b78 52%, #145a66 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 14px 36px rgba(15, 61, 72, 0.28);
}

.bday-panel-toggle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.bday-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bday-panel-head--btn {
  margin-bottom: 0;
  align-items: center;
}

.bday-panel-chevron {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
  margin-left: 0;
  flex-shrink: 0;
}

.bday-panel.is-open .bday-panel-chevron,
.bday-panel:not(.is-collapsed) .bday-panel-chevron {
  transform: rotate(180deg);
}

.bday-panel.is-collapsed .bday-panel-body {
  display: none;
}

.bday-panel.is-collapsed {
  padding-bottom: 1.25rem;
}

.bday-panel:not(.is-collapsed) .bday-panel-body {
  margin-top: 1rem;
}

.bday-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: #f5d76e;
}

.bday-panel-title i {
  margin-right: 0.35rem;
}

.bday-panel-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.bday-panel-count {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5c518;
  color: #123528;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.miss-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.miss-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: #ffd56a;
}

.miss-panel-title i {
  margin-right: 0.35rem;
}

.miss-panel-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.miss-panel-count {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffd56a;
  color: #3d2a12;
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.miss-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.miss-check-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.miss-list {
  display: grid;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.miss-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.miss-select {
  margin: 0;
  cursor: pointer;
}

.miss-select input {
  width: 1.1rem;
  height: 1.1rem;
}

.miss-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.miss-card-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.miss-card-warn {
  font-size: 0.8rem;
  color: #ffd56a;
}

.miss-card-actions {
  display: flex;
  gap: 0.35rem;
}

@media (max-width: 767.98px) {
  .miss-card {
    grid-template-columns: auto auto 1fr;
  }
  .miss-card-actions {
    grid-column: 1 / -1;
  }
  .miss-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.btn-miss-block {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #8a1f1f !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.btn-miss-block:hover {
  background: #ffe8e8;
  color: #5c1010 !important;
}

.fin-compare-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fin-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fin-compare-card {
  background: var(--ibjj-surface);
  border: 1px solid var(--ibjj-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04);
}

.fin-compare-card--budget {
  border-top: 3px solid #2c5f8a;
}

.fin-compare-card--cash {
  border-top: 3px solid var(--ibjj-green);
}

.fin-compare-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--ibjj-green-dark);
}

.fin-compare-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.fin-compare-row--total {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ibjj-border);
  font-weight: 700;
}

.fin-tabs .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.fin-tabs .nav-link.active {
  background: var(--ibjj-green);
}

.reset-panel {
  background: linear-gradient(145deg, #1e3a5f 0%, #2c5f8a 55%, #1a4a6e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(30, 58, 95, 0.28);
}

.reset-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reset-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: #cfe6ff;
}

.reset-panel-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.reset-panel-count {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffd56a;
  color: #1e3a5f;
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reset-list {
  display: grid;
  gap: 0.65rem;
}

.reset-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.reset-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.reset-card-body .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.reset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-reset-action,
.btn-reset-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.btn-reset-action {
  background: #ffd56a;
  color: #1e3a5f !important;
}

.btn-reset-edit {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 767.98px) {
  .reset-card {
    grid-template-columns: auto 1fr;
  }
  .reset-card-actions {
    grid-column: 1 / -1;
  }
}

.section-title-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ibjj-green-dark);
}

.app-actions--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
  .app-actions--compact {
    grid-template-columns: 1fr;
  }
}

.profile-photo-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.profile-photo-picker {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0;
}

.profile-photo-picker .app-avatar {
  display: block;
  transition: opacity 0.15s ease;
}

.profile-photo-picker:hover .app-avatar {
  opacity: 0.85;
}

.profile-photo-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ibjj-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  pointer-events: none;
}

.profile-photo-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ibjj-muted);
}

/* —— Content —— */
.app-main {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

.app-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.app-page-header .titles {
  min-width: 0;
  flex: 1;
}

.app-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.biz-tabs .nav-link {
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-weight: 700;
}

.app-table tr.row-clickable:hover {
  background: rgba(31, 107, 74, 0.08);
}

.app-table tr.row-clickable a {
  text-decoration: none;
}

.app-table tr.row-clickable a:hover {
  text-decoration: underline;
}

.app-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 0 0 0.25rem;
  letter-spacing: 0.03em;
}

.app-page-lead {
  color: var(--ibjj-muted);
  margin: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--ibjj-touch);
  padding: 0.45rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--ibjj-border);
  background: var(--ibjj-surface);
  color: var(--ibjj-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
}

.btn-back:hover {
  border-color: var(--ibjj-green);
  color: var(--ibjj-green) !important;
  background: var(--ibjj-green-soft);
}

.app-panel {
  background: var(--ibjj-surface);
  border: 1px solid var(--ibjj-border);
  border-radius: var(--ibjj-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04);
}

.app-panel fieldset.gestao-config-block {
  border: 1px solid var(--ibjj-border);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0;
  min-width: 0;
}

.app-panel fieldset.gestao-config-block:disabled {
  opacity: 0.55;
}

.app-panel fieldset.gestao-config-block legend {
  width: auto;
  padding: 0 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.kpi-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  justify-content: stretch;
  margin-bottom: 1.25rem;
}

.dash-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .dash-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.dash-chart-wrap {
  position: relative;
  height: 240px;
}

.dash-chart-wrap--sm {
  height: 240px;
  max-width: 320px;
  margin: 0 auto;
}

.dash-chart-wrap--lg {
  height: 280px;
}

.freq-panel {
  border-top: 3px solid var(--ibjj-green);
}

.freq-panel .btn-group .btn.active {
  background: var(--ibjj-green);
  border-color: var(--ibjj-green);
  color: #fff;
}

.kpi-card {
  background: var(--ibjj-surface);
  border: 1px solid var(--ibjj-border);
  border-radius: var(--ibjj-radius);
  padding: 1rem 1.15rem 1.1rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ibjj-green), var(--ibjj-yellow));
}

.kpi-card .label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--ibjj-muted);
  margin-bottom: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kpi-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.55rem + 1.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ibjj-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.app-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .app-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .app-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--ibjj-radius);
  background: var(--ibjj-green);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(27, 122, 78, 0.2);
}

.app-action i {
  color: var(--ibjj-yellow);
  font-size: 1.15rem;
}

.app-action:hover {
  background: var(--ibjj-green-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.app-action--accent {
  background: var(--ibjj-yellow);
  color: var(--ibjj-ink) !important;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
}

.app-action--accent i {
  color: var(--ibjj-green-dark);
}

.app-action--accent:hover {
  background: var(--ibjj-yellow-dark);
  color: var(--ibjj-ink) !important;
}

.app-action--muted {
  background: var(--ibjj-surface);
  color: var(--ibjj-ink) !important;
  border: 1px solid var(--ibjj-border);
  box-shadow: none;
}

.app-action--muted i {
  color: var(--ibjj-green);
}

.app-action--muted:hover {
  border-color: var(--ibjj-green);
  background: var(--ibjj-green-soft);
  color: var(--ibjj-ink) !important;
}

/* —— Forms / tables —— */
.student-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--ibjj-border);
  border-radius: var(--ibjj-radius);
  background: #fff;
}

.student-check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ibjj-border);
  min-height: var(--ibjj-touch);
}

.student-check-list li:last-child {
  border-bottom: 0;
}

.student-check-list input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}

.sticky-submit {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, transparent, var(--ibjj-bg) 28%);
}

.sticky-submit .btn {
  min-height: var(--ibjj-touch);
  width: 100%;
  font-weight: 700;
}

.table-responsive {
  border-radius: var(--ibjj-radius);
  border: 1px solid var(--ibjj-border);
  background: var(--ibjj-surface);
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.table-tools-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.table-tools-search {
  flex: 1 1 220px;
  max-width: 420px;
}

.table-tools-faixa {
  white-space: nowrap;
}

.table-tools-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.table.app-table th[data-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.table.app-table th[data-sort]::after {
  content: ' \2195';
  opacity: 0.35;
  font-size: 0.75em;
}

.table.app-table th[data-sort].is-asc::after {
  content: ' \2191';
  opacity: 0.85;
}

.table.app-table th[data-sort].is-desc::after {
  content: ' \2193';
  opacity: 0.85;
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
  justify-content: flex-end;
}

.table.app-table {
  margin: 0;
}

.table.app-table th {
  background: var(--ibjj-green-soft);
  border-top: 0;
  white-space: nowrap;
  color: var(--ibjj-green-dark);
  font-weight: 700;
}

.table.app-table td {
  vertical-align: middle !important;
  font-size: 0.98rem;
}

.table.app-table .cell-user span {
  font-size: 1rem;
  font-weight: 600;
}

.cell-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.form-control,
.custom-select {
  min-height: var(--ibjj-touch);
}

.btn-primary,
.btn-dark {
  background: var(--ibjj-green) !important;
  border-color: var(--ibjj-green) !important;
  color: #fff !important;
  min-height: var(--ibjj-touch);
  font-weight: 700;
}

.btn-primary:hover,
.btn-dark:hover {
  background: var(--ibjj-green-dark) !important;
  border-color: var(--ibjj-green-dark) !important;
}

.btn-warning,
.btn-cta {
  background: var(--ibjj-yellow) !important;
  border-color: var(--ibjj-yellow) !important;
  color: var(--ibjj-ink) !important;
  font-weight: 700;
  min-height: var(--ibjj-touch);
}

.btn-outline-dark {
  border-color: var(--ibjj-border) !important;
  color: var(--ibjj-ink) !important;
  min-height: var(--ibjj-touch);
}

.btn-outline-dark:hover {
  background: var(--ibjj-green-soft) !important;
  border-color: var(--ibjj-green) !important;
  color: var(--ibjj-green-dark) !important;
}

.flash-wrap {
  max-width: 1180px;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
  width: 100%;
}

.progress {
  background: #e4ebe7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar.bg-success {
  background-color: var(--ibjj-green) !important;
}

.progress-bar.bg-warning {
  background-color: var(--ibjj-yellow) !important;
  color: var(--ibjj-ink) !important;
}

/* Velocímetros de desempenho (home aluno) */
.perf-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  align-items: end;
}

.perf-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.perf-gauge-dial {
  position: relative;
  width: min(100%, 160px);
}

.perf-gauge-dial svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.perf-gauge-track {
  stroke: #e4ebe7;
  stroke-width: 11;
  stroke-linecap: round;
}

.perf-gauge-fill {
  stroke-width: 11;
  stroke-linecap: round;
}

.perf-gauge--week .perf-gauge-fill { stroke: #c0392b; }
.perf-gauge--month .perf-gauge-fill { stroke: var(--ibjj-yellow); }
.perf-gauge--belt .perf-gauge-fill { stroke: var(--ibjj-green); }

.perf-gauge-value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--ibjj-ink);
  line-height: 1;
}

.perf-gauge-label {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ibjj-muted);
  line-height: 1.25;
  max-width: 11rem;
}

@media (max-width: 575.98px) {
  .perf-gauges {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .perf-gauge-dial {
    width: min(100%, 200px);
  }
}

.qr-code-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 1rem;
  background: var(--ibjj-sidebar);
  color: var(--ibjj-yellow);
  border-radius: var(--ibjj-radius);
}

.stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.stat-tile {
  background: var(--ibjj-surface);
  border: 1px solid var(--ibjj-border);
  border-radius: var(--ibjj-radius);
  padding: 1rem;
  text-align: center;
}

.stat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ibjj-green-dark);
}

/* —— Login —— */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(15, 46, 34, 0.92), rgba(27, 122, 78, 0.75)),
    url("../images/bjj.jpg") center/cover;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border-top: 4px solid var(--ibjj-yellow);
}

.login-card .brand-mark {
  display: block;
  position: relative;
  margin: 0 auto 1rem;
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  overflow: hidden !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.login-card .brand-mark img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  display: block;
}

.login-card h1 {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--ibjj-green-dark);
}

.login-card .btn-primary {
  background: var(--ibjj-green) !important;
  border-color: var(--ibjj-green) !important;
}

.login-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.login-links a {
  color: var(--ibjj-green-dark);
  font-weight: 600;
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap .form-control {
  padding-right: 3rem;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ibjj-muted);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
  color: var(--ibjj-green-dark);
  outline: none;
  background: rgba(15, 46, 34, 0.06);
}

.login-card .custom-control-label {
  font-size: 0.95rem;
  color: var(--ibjj-ink);
}

/* —— Avisos financeiros (aluno) —— */
.finance-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: var(--ibjj-radius);
  border: 1px solid var(--ibjj-border);
  background: var(--ibjj-surface);
}

.finance-notice-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.finance-notice-title {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  color: var(--ibjj-ink);
}

.finance-notice-text {
  color: var(--ibjj-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.finance-notice--lembrete {
  background: linear-gradient(135deg, #fffdf3 0%, #fff 70%);
  border-color: #ecd98a;
}

.finance-notice--lembrete .finance-notice-icon {
  background: rgba(245, 197, 24, 0.22);
  color: #9a7800;
}

.finance-notice--pendencia {
  background: linear-gradient(135deg, #fff6f4 0%, #fff 70%);
  border-color: #f0b4a8;
}

.finance-notice--pendencia .finance-notice-icon {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.finance-notice--indeferido {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 70%);
  border-color: #f0a8a8;
}

.finance-notice--indeferido .finance-notice-icon {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.finance-notice-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #145c3a;
  text-decoration: underline;
}

/* —— Hub Consulta —— */
.consulta-hub {
  display: grid;
  gap: 0.85rem;
}

.consulta-hub-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 46, 34, 0.12);
  border-radius: var(--ibjj-radius, 12px);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 46, 34, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.consulta-hub-card:hover,
.consulta-hub-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: rgba(27, 122, 78, 0.35);
}

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

.consulta-hub-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 122, 78, 0.12);
  color: #1b7a4e;
  font-size: 1.25rem;
}

.consulta-hub-icon--pay {
  background: rgba(202, 138, 4, 0.14);
  color: #a16207;
}

.consulta-hub-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.consulta-hub-copy strong {
  font-size: 1.05rem;
  color: #123528;
}

.consulta-hub-copy span {
  font-size: 0.88rem;
  color: #5a6b62;
  line-height: 1.35;
}

.consulta-hub-chevron {
  color: #9aa39d;
  flex-shrink: 0;
}

/* —— Frequência (calendário aluno) —— */
.freq-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.freq-nav-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: space-between;
}

.freq-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.freq-summary-card {
  background: #fff;
  border: 1px solid rgba(15, 46, 34, 0.1);
  border-radius: var(--ibjj-radius, 12px);
  padding: 0.7rem 0.55rem;
  text-align: center;
}

.freq-summary-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #123528;
}

.freq-summary-card span {
  font-size: 0.78rem;
  color: #5a6b62;
}

.freq-summary-card--ok strong { color: #1b7a4e; }
.freq-summary-card--miss strong { color: #b45309; }

.freq-summary-hint { margin-top: 0; }

.freq-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.freq-cal-head {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6b62;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0;
}

.freq-cal-cell {
  position: relative;
  min-height: 2.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f4f7f5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.3rem 0.35rem;
  font-size: 0.85rem;
  color: #3d4f46;
}

.freq-cal-cell--empty { background: transparent; min-height: 0; }

.freq-cal-cell--weekend {
  background: #f0f0f0;
  color: #9aa39d;
}

.freq-cal-cell--absent {
  background: #faf6f1;
  border-color: rgba(180, 83, 9, 0.18);
}

.freq-cal-cell--present {
  background: linear-gradient(160deg, #d8f3e4 0%, #b8e6cd 100%);
  border-color: rgba(27, 122, 78, 0.35);
  color: #0f3d28;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.freq-cal-cell--present:active {
  transform: scale(0.97);
}

.freq-cal-cell--future {
  opacity: 0.55;
}

.freq-cal-cell--today {
  box-shadow: inset 0 0 0 2px #1b7a4e;
}

.freq-cal-day { line-height: 1; }

.freq-cal-mark {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #1b7a4e;
}

.freq-legend {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #5a6b62;
}

.freq-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.freq-legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.freq-legend-swatch--present { background: #b8e6cd; border: 1px solid rgba(27, 122, 78, 0.35); }
.freq-legend-swatch--absent { background: #faf6f1; border: 1px solid rgba(180, 83, 9, 0.25); }
.freq-legend-swatch--weekend { background: #f0f0f0; }

/* —— Pagamentos aluno —— */
.pay-list {
  display: grid;
  gap: 0.85rem;
}

.pay-card {
  background: #fff;
  border: 1px solid rgba(15, 46, 34, 0.12);
  border-radius: var(--ibjj-radius, 12px);
  padding: 0.95rem 1rem;
  border-left: 4px solid #94a3b8;
}

.pay-card--paid { border-left-color: #1b7a4e; }
.pay-card--wait { border-left-color: #ca8a04; }
.pay-card--denied { border-left-color: #b91c1c; }
.pay-card--late { border-left-color: #c0392b; }
.pay-card--open { border-left-color: #64748b; }

.pay-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pay-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  color: #123528;
}

.pay-card-meta {
  font-size: 0.88rem;
  color: #5a6b62;
}

.pay-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f3;
  color: #334840;
  white-space: nowrap;
}

.pay-card--paid .pay-badge { background: #d8f3e4; color: #145c3a; }
.pay-card--wait .pay-badge { background: #fef3c7; color: #92400e; }
.pay-card--denied .pay-badge { background: #fee2e2; color: #991b1b; }
.pay-card--late .pay-badge { background: #fde8e6; color: #9b2c2c; }

.pay-card-note--denied {
  color: #991b1b;
  font-weight: 600;
}

.pay-notify-form .btn.is-processing {
  opacity: 0.85;
  pointer-events: none;
}

.mens-review-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(15, 46, 34, 0.12);
  background: #f8faf9;
}

.mens-review-receipt {
  min-height: 2rem;
}

.pay-receipt-link {
  font-weight: 600;
  color: #145c3a;
}

.pay-notify-form {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 46, 34, 0.08);
}

.mens-cell--notificado {
  outline: 2px solid #ca8a04;
  outline-offset: -2px;
}

@media (max-width: 576px) {
  .freq-cal-cell {
    min-height: 2.85rem;
    font-size: 0.8rem;
  }

  .freq-nav-months .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* —— Banner de aniversário —— */
.birthday-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--ibjj-radius);
  border: 1px solid rgba(27, 122, 78, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 197, 24, 0.28), transparent 55%),
    linear-gradient(135deg, #123528 0%, #1b7a4e 48%, #145c3a 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 46, 34, 0.18);
  animation: birthday-enter 0.55s ease-out both;
}

.birthday-banner-glow {
  position: absolute;
  inset: -40% auto auto 55%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.35), transparent 68%);
  pointer-events: none;
  animation: birthday-glow 4.5s ease-in-out infinite;
}

.birthday-banner-inner {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
}

.birthday-banner-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(245, 197, 24, 0.95);
  color: #123528;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.18);
  animation: birthday-pulse 2.4s ease-in-out infinite;
}

.birthday-banner-eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.birthday-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #fff;
}

.birthday-banner-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

@keyframes birthday-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes birthday-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-18px, 10px) scale(1.12); opacity: 1; }
}

@keyframes birthday-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .birthday-banner,
  .birthday-banner-glow,
  .birthday-banner-mark {
    animation: none;
  }
}

/* —— Botão publicar videoaula —— */
.btn-publish-aula.is-busy {
  opacity: 0.92;
  cursor: wait;
  pointer-events: none;
}

.btn-publish-busy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-publish-busy[hidden],
.btn-publish-label[hidden] {
  display: none !important;
}

/* —— Planilha de mensalidades —— */
.mens-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.mens-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--ibjj-muted);
  font-weight: 600;
}

.mens-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  display: inline-block;
}

.mens-dot--pago { background: #1b7a4e; }
.mens-dot--debito { background: #c0392b; }
.mens-dot--pendente { background: #e0b400; }
.mens-dot--futuro { background: #d7e3dc; }
.mens-dot--inativo { background: #c5cbc7; }

.mens-sheet-wrap {
  padding-bottom: 1rem;
}

.mens-sheet-scroll {
  overflow: auto;
  max-height: min(70vh, 820px);
  border: 1px solid var(--ibjj-border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.mens-sheet {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.mens-sheet th,
.mens-sheet td {
  border-bottom: 1px solid var(--ibjj-border);
  border-right: 1px solid #e8eee9;
  padding: 0;
  vertical-align: middle;
  background: #fff;
}

.mens-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f6f4;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ibjj-muted);
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--ibjj-border);
}

.mens-sheet thead th.is-current {
  color: var(--ibjj-green-dark);
  background: #e8f5ee;
}

.mens-sheet thead tr.mens-sheet-totals th {
  top: 2.15rem;
  z-index: 3;
  background: #eef3f0;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.4rem 0.25rem;
  border-bottom: 2px solid var(--ibjj-border);
}

.mens-sheet thead tr.mens-sheet-totals th.is-current {
  background: #dff0e6;
}

.mens-sheet thead tr.mens-sheet-totals .mens-sheet-aluno {
  z-index: 5;
  background: #eef3f0;
  text-align: left !important;
  font-size: 0.75rem;
  color: var(--ibjj-ink);
}

.mens-sheet-total-cell {
  line-height: 1.15;
}

.mens-total-pago {
  display: block;
  color: #1b7a4e;
  font-variant-numeric: tabular-nums;
}

.mens-total-aberto {
  display: block;
  color: #c0392b;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.mens-sheet-aluno {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 160px;
  max-width: 220px;
  text-align: left !important;
  padding: 0.45rem 0.7rem !important;
  background: #fff;
  box-shadow: 4px 0 8px -6px rgba(20, 32, 26, 0.25);
}

.mens-sheet thead .mens-sheet-aluno {
  z-index: 4;
  background: #f3f6f4;
}

.mens-sheet-nome {
  display: block;
  font-weight: 700;
  color: var(--ibjj-ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mens-sheet-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--ibjj-muted);
  font-weight: 600;
}

.mens-sheet-valor {
  white-space: nowrap;
  text-align: right !important;
  padding: 0.45rem 0.55rem !important;
  font-variant-numeric: tabular-nums;
  color: var(--ibjj-muted);
  font-weight: 600;
  min-width: 88px;
}

.mens-sheet-mes {
  min-width: 44px;
  width: 44px;
}

.mens-sheet-cell {
  text-align: center;
}

.mens-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 44px;
  min-height: 40px;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.mens-cell.is-static {
  cursor: default;
  opacity: 0.55;
}

.mens-cell--pago {
  background: #e8f5ee;
  color: #145c3a;
}

.mens-cell--debito {
  background: #fdecea;
  color: #c0392b;
}

.mens-cell--pendente {
  background: #fff8e1;
  color: #9a7800;
}

.mens-cell--futuro,
.mens-cell--vazio,
.mens-cell--inativo {
  background: #f7f9f8;
  color: #a0aea6;
}

.mens-cell--inativo {
  background: repeating-linear-gradient(
    -45deg,
    #f2f4f3,
    #f2f4f3 4px,
    #e8ece9 4px,
    #e8ece9 8px
  );
}

button.mens-cell:hover {
  filter: brightness(0.96);
}

button.mens-cell:active {
  transform: scale(0.96);
}

.mens-cell.is-loading {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 767.98px) {
  .mens-sheet-aluno {
    min-width: 132px;
    max-width: 150px;
  }

  .mens-sheet-mes,
  .mens-cell {
    min-width: 40px;
  }
}

/* —— Mobile —— */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: var(--ibjj-sidebar-w) !important;
  }

  body.sidebar-open-mobile .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .app-sidebar {
    width: var(--ibjj-sidebar-w) !important;
  }

  .app-main-wrap,
  body.sidebar-collapsed .app-main-wrap {
    margin-left: 0 !important;
  }

  body.sidebar-collapsed .app-sidebar .brand-text,
  body.sidebar-collapsed .app-sidebar-section,
  body.sidebar-collapsed .app-sidebar-nav a span,
  body.sidebar-collapsed .app-sidebar-footer a span {
    display: inline;
  }

  body.sidebar-collapsed .app-sidebar-nav a {
    justify-content: flex-start;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .app-topbar-user .meta {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .kpi-card {
    padding: 0.95rem 1rem 1rem;
  }

  .kpi-card .label {
    font-size: 0.9rem;
  }

  .kpi-card strong {
    font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  }

  .birthday-banner-inner {
    align-items: flex-start;
  }

  .birthday-banner-title {
    font-size: 1.2rem;
  }
}

/* —— Alert modal de check-in (aluno) —— */
.checkin-alert {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.checkin-alert.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkin-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 20, 0.72);
  backdrop-filter: blur(4px);
}

.checkin-alert__card {
  position: relative;
  width: min(100%, 380px);
  background: var(--ibjj-surface);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(15, 46, 34, 0.28);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.checkin-alert.is-open .checkin-alert__card {
  transform: translateY(0) scale(1);
}

.checkin-alert__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: #fff;
}

.checkin-alert__card--success .checkin-alert__icon {
  background: linear-gradient(145deg, var(--ibjj-green) 0%, var(--ibjj-green-dark) 100%);
  box-shadow: 0 10px 24px rgba(27, 122, 78, 0.35);
}

.checkin-alert__card--error .checkin-alert__icon {
  background: linear-gradient(145deg, #c0392b 0%, #922b21 100%);
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.3);
}

.checkin-alert__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ibjj-ink);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.checkin-alert__text {
  margin: 0 0 1.35rem;
  color: var(--ibjj-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.checkin-alert__btn {
  min-height: var(--ibjj-touch);
  width: 100%;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  background: var(--ibjj-sidebar);
  color: var(--ibjj-yellow) !important;
}

.checkin-alert__btn:hover,
.checkin-alert__btn:focus {
  background: var(--ibjj-sidebar-hover);
  color: var(--ibjj-yellow) !important;
}

.checkin-alert__card--success .checkin-alert__btn {
  background: var(--ibjj-green);
  color: #fff !important;
}

.checkin-alert__card--success .checkin-alert__btn:hover,
.checkin-alert__card--success .checkin-alert__btn:focus {
  background: var(--ibjj-green-dark);
  color: #fff !important;
}

/* —— Banner inativação automática (editar aluno) —— */
.inatividade-banner {
  background: linear-gradient(135deg, #fff8e6 0%, #fef3d0 100%);
  border: 1px solid #e8c86a;
  border-left: 4px solid var(--ibjj-yellow-dark);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ibjj-ink);
}

.inatividade-banner strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  color: #7a5c00;
}

.inatividade-banner p {
  font-size: 0.88rem;
  color: var(--ibjj-muted);
  line-height: 1.4;
}

.badge-inatividade {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 6px;
  background: #f5c518;
  color: #14201a;
  vertical-align: middle;
}
