/* DojoManager — Design System: Preto · Dourado · Branco */
:root {
  /* Paleta base */
  --gold-50:      #FCF8EC;
  --gold-100:     #F5E6B8;
  --gold-400:     #D4AF37;
  --gold-500:     #C9A227;
  --gold-600:     #A67C00;
  --gold-700:     #8A6500;
  --black-950:    #050505;
  --black-900:    #0A0A0A;
  --black-800:    #141414;
  --black-700:    #1C1C1C;
  --white:        #FFFFFF;
  --white-muted:  #FAFAF8;

  /* Tokens semânticos (legado + novos) */
  --brand:        var(--gold-500);
  --brand-hover:  #B8921F;
  --brand-dark:   var(--gold-700);
  --brand-light:  var(--gold-50);
  --dark:         var(--black-900);
  --dark-2:       var(--black-800);
  --purple:       var(--gold-500);
  --danger:       var(--black-900);
  --warning:      var(--gold-600);
  --info:         var(--black-800);

  --bg-page:      var(--white-muted);
  --bg-surface:   var(--white);
  --bg-muted:     #F0EFE9;
  --text-1:       var(--black-900);
  --text-2:       #3D3D38;
  --text-3:       #6B6B63;
  --text-inverse: var(--white);
  --text-on-gold: var(--black-900);

  --border:       rgba(10, 10, 10, 0.08);
  --border-md:    rgba(10, 10, 10, 0.14);
  --border-gold:  rgba(201, 162, 39, 0.45);
  --focus-ring:   rgba(201, 162, 39, 0.38);

  --shadow-sm:    0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md:    0 4px 20px rgba(10, 10, 10, 0.06);
  --shadow-gold:  0 4px 24px rgba(201, 162, 39, 0.18);

  --sidebar-bg:   var(--black-900);
  --sidebar-text: rgba(255, 255, 255, 0.62);
  --sidebar-text-active: #F5E6B8;

  --r-sm:         6px;
  --r-md:         8px;
  --r-lg:         12px;
  --r-xl:         16px;
  --sb-w:         236px;
  --sb-w-collapsed: 72px;
  --hdr-h:        56px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

html { color-scheme: light; scroll-behavior: smooth; }

[data-theme="dark"] {
  color-scheme: dark;
  --brand-light:  #2A2410;
  --bg-page:      var(--black-950);
  --bg-surface:   var(--black-800);
  --bg-muted:     var(--black-700);
  --text-1:       #F5F5F0;
  --text-2:       #C8C8C0;
  --text-3:       #8A8A82;
  --border:       rgba(255, 255, 255, 0.07);
  --border-md:    rgba(255, 255, 255, 0.12);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md:    0 8px 28px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(201, 162, 39, 0.28);
  color: var(--text-1);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sb-w);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow: hidden;
  transition: width 0.25s var(--ease), transform 0.25s var(--ease);
  border-right: 0.5px solid rgba(201, 162, 39, 0.12);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
html.sidebar-collapsed { --sb-w: var(--sb-w-collapsed); }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.sidebar-brand:hover { background: rgba(201, 162, 39, 0.06); }
.brand-icon {
  width: 34px; height: 34px;
  background: var(--brand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 18px; flex-shrink: 0;
}
.brand-icon.purple { background: var(--brand); }
.brand-text  { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.2; letter-spacing: -0.01em; }
.brand-sub   { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; overflow-x: hidden; }
.nav-section {
  padding: 14px 16px 4px;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-group + .nav-group { margin-top: 2px; }
.nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px 16px 6px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.nav-section-toggle:hover,
.nav-section-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.55);
}
.nav-section-label { text-align: left; }
.nav-section-chevron {
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.nav-group.is-collapsed .nav-section-chevron {
  transform: rotate(-90deg);
}
.nav-group-items {
  overflow: hidden;
  max-height: 480px;
  transition: max-height 0.25s var(--ease), opacity 0.2s var(--ease);
  opacity: 1;
}
.nav-group.is-collapsed .nav-group-items {
  max-height: 0;
  opacity: 0;
}
.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  font-size: 13px; color: var(--sidebar-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  cursor: pointer;
}
.nav-link:hover  { background: rgba(201, 162, 39, 0.1); color: var(--white); }
.nav-link.active {
  background: rgba(201, 162, 39, 0.14);
  color: var(--sidebar-text-active);
  border-left-color: var(--brand);
  font-weight: 600;
}
.nav-link > i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  flex-shrink: 0;
  font-family: "tabler-icons" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-link > i:first-child::before {
  display: block;
}
.nav-link:hover > i:first-child,
.nav-link.active > i:first-child {
  background: rgba(201, 162, 39, 0.2);
  color: var(--brand);
}
.nav-link i      { font-size: 16px; flex-shrink: 0; }
.sidebar-bottom  { padding: 12px 16px; border-top: 0.5px solid rgba(255,255,255,0.08); }
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.sidebar-collapse-btn:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--white);
  border-color: rgba(201, 162, 39, 0.25);
}
.sidebar-collapse-btn i {
  font-size: 16px;
  flex-shrink: 0;
}
html.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 16px 10px;
}
html.sidebar-collapsed .sidebar-brand > div:last-child,
html.sidebar-collapsed .nav-section,
html.sidebar-collapsed .nav-section-toggle,
html.sidebar-collapsed .sidebar-collapse-label,
html.sidebar-collapsed .sidebar-user > div:not(.user-avatar):not(.avatar),
html.sidebar-collapsed .sidebar-user__meta {
  display: none;
}
html.sidebar-collapsed .nav-group-items {
  max-height: none !important;
  opacity: 1 !important;
}
html.sidebar-collapsed .nav-link {
  justify-content: center;
  gap: 0;
  padding: 10px 8px;
  font-size: 0;
  border-left-color: transparent;
}
html.sidebar-collapsed .nav-link.active {
  border-left-color: transparent;
  box-shadow: inset 3px 0 0 var(--brand);
}
html.sidebar-collapsed .sidebar-collapse-btn {
  justify-content: center;
  padding: 8px;
}
html.sidebar-collapsed .sidebar-user {
  justify-content: center;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
a.sidebar-user:hover { opacity: 0.88; }
.sidebar-user__meta { flex: 1; min-width: 0; }
.sidebar-user__meta .user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user__meta .user-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-avatar     { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--dark); flex-shrink: 0; }

/* ===== USER AVATAR ===== */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand);
  color: var(--dark);
  font-weight: 600;
  line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--sm  { width: 30px; height: 30px; font-size: 11px; }
.avatar--sm i { font-size: 15px; }
.avatar--md  { width: 34px; height: 34px; font-size: 12px; border-radius: var(--r-md); }
.avatar--md.avatar--img,
.avatar--md.avatar--icon,
.avatar--md.avatar--initials { border-radius: var(--r-md); }
.avatar--md i { font-size: 17px; }
.avatar--lg  { width: 72px; height: 72px; font-size: 22px; }
.avatar--lg i { font-size: 32px; }
.avatar--xl  { width: 96px; height: 96px; font-size: 28px; }
.avatar--xl i { font-size: 42px; }
.avatar--icon { background: var(--brand); color: var(--dark); }
.avatar--initials { background: var(--brand); color: var(--dark); }
.sidebar-brand .avatar--md { flex-shrink: 0; }

/* ===== PERFIL SUPER ADMIN ===== */
.perfil-page { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.perfil-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  flex-wrap: wrap;
}
.perfil-hero__info { flex: 1; min-width: 180px; }
.perfil-hero__name { font-size: 20px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.perfil-hero__email { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.perfil-hero__action { margin-left: auto; }
.perfil-hint { font-size: 13px; color: var(--text-2); margin: 0 0 16px; line-height: 1.5; }
.perfil-card .tab-pane { padding-top: 4px; }

.avatar-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  border: 1.5px dashed var(--border-md);
  border-radius: var(--r-lg);
  background: var(--bg-page);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  margin-bottom: 14px;
}
.avatar-upload-zone:hover,
.avatar-upload-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-light);
}
.avatar-upload-zone.has-file { border-style: solid; border-color: var(--brand); }
.avatar-upload-zone__icon { font-size: 32px; color: var(--brand); }
.avatar-upload-zone__title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.avatar-upload-zone__sub { font-size: 12px; color: var(--text-3); }
.avatar-upload-zone__filename { font-size: 12px; color: var(--brand-dark); font-weight: 500; margin-top: 4px; }
.avatar-upload-preview {
  margin-bottom: 14px;
  text-align: center;
}
.avatar-upload-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow-gold);
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.icon-picker__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-2);
  transition: all 0.15s;
}
.icon-picker__item i { font-size: 24px; color: var(--text-1); transition: color 0.15s; }
.icon-picker__label { font-size: 10px; text-align: center; line-height: 1.2; }
.icon-picker__item:hover {
  border-color: var(--brand);
  background: var(--bg-page);
}
.icon-picker__item.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 1px var(--brand);
}
.icon-picker__item.selected i { color: var(--brand-dark); }
.icon-picker__item[aria-pressed="true"] { font-weight: 500; }
.user-name  { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
.user-role  { font-size: 10px; color: rgba(255,255,255,0.35); }

/* ===== MAIN ===== */
.main-content { margin-left: var(--sb-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left 0.25s var(--ease); }
.topbar {
  height: var(--hdr-h);
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
  padding: 0 24px; gap: 10px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; }
.topbar-heading { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.topbar-title-lg { flex: none; font-size: 22px; font-weight: 700; }
.topbar-subtitle { font-size: 13px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.topbar-search {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  background: var(--bg-page);
  font-size: 12px; color: var(--text-3);
  width: 200px; cursor: text;
}
.topbar-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  transition: all 0.15s;
}
.topbar-btn:hover { background: var(--bg-page); }
.page-body { flex: 1; padding: 24px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card + .card { margin-top: 14px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 13px; font-weight: 500; color: var(--text-1);
  display: flex; align-items: center; gap: 7px;
}
.card-title i { font-size: 15px; color: var(--gold-600); }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card  {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-icon  { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.stat-icon.green  { background: var(--brand-light); color: var(--brand-dark); }
.stat-icon.blue   { background: var(--dark); color: var(--brand); }
.stat-icon.amber  { background: var(--brand-light); color: var(--brand-dark); }
.stat-icon.purple { background: var(--bg-muted); color: var(--brand); }
.stat-icon.red    { background: var(--dark); color: #fff; }
.stat-value { font-size: 28px; font-weight: 600; color: var(--text-1); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-trend { font-size: 11px; font-weight: 500; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.trend-up   { color: var(--brand); }
.trend-neutral { color: var(--text-3); }

/* Dashboard — cards com identidade Preto · Dourado · Branco */
.dash-stat-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 16px 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.dash-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.dash-stat-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
  transform: translateY(-1px);
}
.dash-stat-card--gold {
  background: linear-gradient(105deg, var(--brand-light) 0%, var(--bg-surface) 48%);
}
.dash-stat-card--gold::before { background: linear-gradient(180deg, var(--gold-400) 0%, var(--brand-dark) 100%); }
.dash-stat-card--dark {
  background: linear-gradient(105deg, color-mix(in srgb, var(--dark) 7%, var(--bg-surface)) 0%, var(--bg-surface) 48%);
}
.dash-stat-card--dark::before { background: var(--dark); }
.dash-stat-card--sand {
  background: linear-gradient(105deg, var(--bg-muted) 0%, var(--bg-surface) 48%);
}
.dash-stat-card--sand::before { background: var(--gold-600); }
.dash-stat-card--accent {
  background: linear-gradient(105deg, color-mix(in srgb, var(--brand) 12%, var(--bg-surface)) 0%, var(--bg-surface) 52%);
}
.dash-stat-card--accent::before { background: var(--brand); }
.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.dash-stat-icon--gold { background: var(--brand); color: var(--text-on-gold); box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35); }
.dash-stat-icon--dark { background: var(--dark); color: var(--brand); box-shadow: 0 2px 8px rgba(10, 10, 10, 0.2); }
.dash-stat-icon--soft { background: var(--gold-100); color: var(--brand-dark); }
.dash-stat-icon--ring { background: var(--bg-surface); color: var(--brand-dark); border: 1.5px solid var(--border-gold); }
.dash-stat-body { flex: 1; min-width: 0; }
.dash-stat-val { font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1; letter-spacing: -0.02em; }
.dash-stat-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.dash-stat-card--stack { align-items: flex-start; }
.dash-stat-card--danger {
  background: linear-gradient(105deg, rgba(220, 38, 38, 0.08) 0%, var(--bg-surface) 48%);
}
.dash-stat-card--danger::before { background: #dc2626; }
.dash-stat-card--link { padding: 0; overflow: hidden; }
.dash-stat-card__link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s var(--ease);
}
.dash-stat-card--link:hover .dash-stat-card__link { background: rgba(201, 162, 39, 0.06); }
.dash-stat-icon--danger { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

/* Tema claro/escuro — ícone minimalista sem moldura */
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-switch__face {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.theme-switch__icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: currentColor;
  transition: opacity 0.28s var(--ease), transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}
/* Tema claro → lua */
.theme-switch__icon--sun {
  opacity: 0;
  transform: rotate(40deg) scale(0.45);
}
.theme-switch__icon--moon {
  opacity: 1;
  transform: rotate(-14deg) scale(1);
}
/* Tema escuro → sol */
[data-theme="dark"] .theme-switch__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .theme-switch__icon--moon {
  opacity: 0;
  transform: rotate(-40deg) scale(0.45);
}
.theme-switch:hover {
  color: var(--text-1);
}
.theme-switch:active {
  transform: scale(0.92);
}
.theme-switch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Alternar lista / cards — chip escuro + ouro */
.view-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 3px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  border: 1.5px solid var(--border-md);
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.07);
}
.view-switch__btn {
  width: 36px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.12s var(--ease);
}
.view-switch__btn i { font-size: 17px; }
.view-switch__btn:hover:not(.active) {
  color: var(--text-1);
  background: var(--bg-muted);
}
.view-switch__btn.active {
  color: var(--gold-400);
  background: linear-gradient(160deg, var(--black-900) 0%, var(--black-800) 100%);
  box-shadow:
    0 2px 8px rgba(10, 10, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 0.5px rgba(201, 162, 39, 0.35);
}
.view-switch__btn:active { transform: scale(0.94); }
.view-switch__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
[data-theme="dark"] .view-switch {
  background: linear-gradient(180deg, var(--black-800) 0%, var(--black-900) 100%);
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .view-switch__btn { color: var(--text-2); }
[data-theme="dark"] .view-switch__btn:hover:not(.active) {
  background: var(--black-700);
  color: var(--text-1);
}
[data-theme="dark"] .view-switch__btn.active {
  color: var(--gold-400);
  background: linear-gradient(160deg, #2a2410 0%, var(--black-800) 100%);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 0.5px rgba(201, 162, 39, 0.45);
}

/* Cards de academia (Super Admin) — layout perfil com header + logo sobreposto */
.academias-section { display: flex; flex-direction: column; gap: 14px; }
.academias-toolbar { margin-bottom: 0; }
.academias-table-panel,
.academias-grid-panel {
  transition: opacity 0.2s var(--ease);
}
.academias-section.is-view-table .academias-grid-panel {
  display: none !important;
}
.academias-section.is-view-grid .academias-table-panel {
  display: none !important;
}
.academias-section.is-view-grid .academias-grid-panel {
  display: block !important;
}
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
  padding: 4px 2px 8px;
}
.academy-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.academy-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.academy-card--inactive { opacity: 0.92; }
.academy-card--inactive .academy-card__header {
  background: linear-gradient(135deg, #3d3d38 0%, var(--black-800) 100%);
}
.academy-card__header {
  position: relative;
  height: 78px;
  background: linear-gradient(135deg, var(--black-900) 0%, var(--black-800) 55%, color-mix(in srgb, var(--gold-600) 35%, var(--black-900)) 100%);
  overflow: hidden;
}
.academy-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 18% 40%, rgba(201, 162, 39, 0.55) 0%, transparent 28%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.12) 0%, transparent 22%),
    radial-gradient(circle at 88% 68%, rgba(201, 162, 39, 0.35) 0%, transparent 18%),
    radial-gradient(circle at 42% 78%, rgba(255, 255, 255, 0.08) 0%, transparent 14%);
}
.academy-card__status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.academy-card__status i { font-size: 12px; }
.academy-card__status--active {
  background: color-mix(in srgb, var(--gold-500) 22%, var(--black-900));
  color: var(--gold-400);
  border: 0.5px solid rgba(201, 162, 39, 0.45);
}
.academy-card__status--inactive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
}
.academy-card__body {
  position: relative;
  padding: 0 16px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.academy-card__logo {
  width: 68px;
  height: 68px;
  margin: -34px auto 10px;
  border-radius: 14px;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 18px rgba(10, 10, 10, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  background: linear-gradient(145deg, var(--brand-light) 0%, var(--bg-surface) 100%);
  flex-shrink: 0;
}
.academy-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.academy-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.academy-card__email {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 10px;
  word-break: break-all;
  line-height: 1.4;
}
.academy-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.academy-card__alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 10px;
  font-size: 11px;
  font-weight: 500;
  color: #b45309;
}
.academy-card__alert i { font-size: 13px; }
.academy-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 8px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: var(--brand-light);
  border: 0.5px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.academy-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-2);
  line-height: 1.2;
}
.academy-card__stat i {
  font-size: 15px;
  color: var(--brand-dark);
}
.academy-card__stat strong {
  font-weight: 700;
  color: var(--text-1);
}
.academy-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.academy-card__cta-form {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.academy-card__cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.academy-card__cta:hover {
  background: var(--black-800);
  color: var(--gold-400);
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.18);
}
.academy-card__cta i { font-size: 14px; }
button.academy-card__cta {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.academy-card__toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  background: var(--bg-page);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.academy-card__toggle:hover {
  background: var(--bg-muted);
  color: var(--text-1);
  border-color: var(--border-gold);
}
.academy-card__toggle-form { margin: 0; flex-shrink: 0; }

/* Miniatura na tabela */
.academy-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 0.5px solid var(--border);
}
.academy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="dark"] .academy-card {
  background: var(--black-800);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .academy-card__logo {
  border-color: var(--black-800);
  background: linear-gradient(145deg, #2a2410 0%, var(--black-800) 100%);
  color: var(--gold-400);
}
[data-theme="dark"] .academy-card__stats {
  background: color-mix(in srgb, var(--gold-500) 10%, var(--black-700));
  border-color: rgba(201, 162, 39, 0.2);
}
[data-theme="dark"] .academy-card__stat i { color: var(--gold-400); }
[data-theme="dark"] .academy-card__cta {
  background: linear-gradient(160deg, #2a2410 0%, var(--black-900) 100%);
  color: var(--gold-400);
  border: 0.5px solid rgba(201, 162, 39, 0.35);
}
[data-theme="dark"] .academy-card__toggle {
  background: var(--black-700);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}

/* ===== FORMS ===== */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-section-label {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.07em;
  padding-bottom: 8px; border-bottom: 0.5px solid var(--border);
  margin: 4px 0 2px; grid-column: 1 / -1;
  display: flex; align-items: center; gap: 7px;
}
.form-section-label i { font-size: 14px; color: var(--brand); }
label { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
label .req { color: var(--gold-600); margin-left: 2px; }
.form-control {
  padding: 10px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  font-size: 13.5px;
  background: var(--bg-surface); color: var(--text-1);
  font-family: var(--font); width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-control:hover:not(:disabled):not([readonly]) { border-color: var(--border-gold); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.form-control[readonly], .form-control:disabled { background: var(--bg-page); color: var(--text-3); cursor: not-allowed; }
.input-group { position: relative; display: flex; }
.input-group .form-control { padding-right: 40px; }
.input-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-3);
  padding: 0;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.input-eye i { font-size: 18px; }
.input-eye:hover { color: var(--text-1); background: var(--bg-muted); }
.input-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border: 0.5px solid var(--border-md);
  background: var(--bg-surface);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--text-1); font-family: var(--font);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn:hover   { background: var(--bg-muted); border-color: var(--border-gold); }
.btn:active  { transform: scale(0.98); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring); }
.btn-primary {
  background: var(--black-900);
  border-color: var(--black-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--black-800);
  border-color: var(--black-800);
  box-shadow: var(--shadow-md);
}
.btn-brand {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  border-color: var(--gold-600);
  color: var(--text-on-gold);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-brand:hover {
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--brand-hover) 100%);
  border-color: var(--gold-700);
}
.btn-danger  { background: var(--black-900); border-color: var(--brand); color: var(--white); }
.btn-sm      { padding: 5px 10px; font-size: 12px; }
.btn-full    { width: 100%; justify-content: center; padding: 11px 16px; }
.btn-row     { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-green  { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.35); }
.badge-amber  { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.35); }
.badge-blue   { background: var(--dark); color: var(--brand); border: 0.5px solid var(--brand); }
.badge-red    { background: var(--dark); color: #fff; border: 0.5px solid var(--brand); }
.badge-gray   { background: var(--bg-muted); color: var(--text-2); }
.badge-purple { background: var(--bg-muted); color: var(--brand); border: 0.5px solid rgba(212,175,55,0.45); }
.faixa-branca { background: var(--bg-surface); color: var(--text-1); border: 0.5px solid var(--border-md); }
.faixa-azul   { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.35); }
.faixa-roxa   { background: var(--bg-muted); color: var(--brand); border: 0.5px solid rgba(212,175,55,0.45); }
.faixa-marrom { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.35); }
.faixa-preta  { background: var(--dark); color: #fff; border: 0.5px solid var(--brand); }

/* ===== ALERTS ===== */
.alert { padding: 11px 14px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; }
.alert-danger  { background: var(--dark); color: #fff; border: 0.5px solid var(--brand); }
.alert-warning { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.50); }
.alert-success { background: var(--brand-light); color: var(--brand-dark); border: 0.5px solid rgba(212,175,55,0.50); }
.alert-info    { background: var(--bg-surface); color: var(--text-1); border: 0.5px solid var(--brand); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  text-align: left; padding: 9px 14px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 0.5px solid var(--border); color: var(--text-1); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-muted); }
.td-primary { font-weight: 500; }
.td-sub     { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ===== TABS ===== */
.tab-bar  { display: flex; border-bottom: 0.5px solid var(--border); margin-bottom: 20px; }
.tab-item {
  padding: 10px 18px; font-size: 13px;
  color: var(--text-3); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font);
}
.tab-item:hover  { color: var(--text-1); }
.tab-item.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.tab-item.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== BAR CHART ===== */
.bar-item     { margin-bottom: 12px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-label-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.bar-label-row strong { font-weight: 500; color: var(--text-1); }
.bar-track { height: 6px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; background: var(--brand); transition: width 0.4s ease; }

/* ===== DASHBOARD — MODALIDADE × FAIXA ===== */
.dash-modalidades-card { max-height: 520px; display: flex; flex-direction: column; }
.dash-mod-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}
.dash-mod-block {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
}
.dash-mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}
.dash-mod-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-mod-title i { color: var(--gold-600); font-size: 16px; }
.dash-mod-total {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-700);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.dash-mod-empty {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}
.dash-faixa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-faixa-item { display: flex; flex-direction: column; gap: 5px; }
.dash-faixa-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.dash-faixa-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-faixa-name {
  flex: 1;
  color: var(--text-2);
  font-weight: 500;
}
.dash-faixa-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  min-width: 1.5rem;
  text-align: right;
}
.dash-faixa-bar { height: 5px; }

/* ===== FAIXA LIST ===== */
.faixa-list-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.faixa-list-item:last-child { border: none; }
.faixa-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.faixa-list-item .count { margin-left: auto; font-weight: 500; color: var(--text-1); }

/* ===== HISTORY ===== */
.history-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.history-item:last-child { border: none; }
.history-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.history-desc { flex: 1; color: var(--text-2); font-size: 12px; }
.history-date { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ===== GRADUAÇÕES (admin) ===== */
.graduacoes-filter-form {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.graduacoes-filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.graduacoes-filter-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

.graduacoes-filter-search .form-control {
  padding-left: 34px;
}

.graduacoes-filter-modalidade {
  width: 200px;
}

.graduacoes-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.graduacoes-alunos {
  min-width: 0;
}

.graduacoes-historico-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-height: calc(100dvh - var(--hdr-h) - 120px);
  overflow: hidden;
}

.graduacoes-historico-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.graduacoes-historico-list .history-item {
  align-items: flex-start;
}

.graduacoes-historico-list .history-date {
  margin-top: 2px;
}

/* ===== LOGIN ===== */
.login-layout {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.login-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--black-950) 0%, #12100a 45%, var(--black-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 40px 40px 40px calc(380px + 40px);
  overflow: hidden;
}
.login-left {
  position: relative;
  z-index: 2;
  width: 380px;
  min-height: 100vh;
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  border-right: none;
  border-radius: 0 20px 20px 0;
  box-shadow:
    8px 0 40px rgba(0, 0, 0, 0.18),
    4px 0 16px rgba(0, 0, 0, 0.08);
}
.login-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.login-form-inner { width: 100%; max-width: 320px; }
.login-layout--cadastro .login-left--scroll {
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 32px;
  padding-bottom: 32px;
}
.login-layout--cadastro .login-form-inner { max-width: 100%; }
.login-form-inner--wide { max-width: 100%; }
/* Login — marca circular (imagem) ou disco dourado (ícone/padrão), igual ao perfil */
.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.login-app-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.login-app-name__meu {
  color: var(--gold-600);
}
.login-app-name__product {
  color: var(--black-950);
}
.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  overflow: hidden;
}
.login-logo--image {
  background: transparent;
  box-shadow: var(--shadow-md);
  border: 0.5px solid var(--border);
}
.login-logo--symbol {
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--shadow-gold);
}
.login-logo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-brand-icon {
  font-size: 26px;
  color: var(--text-on-gold);
}
.login-brand-icon--lg {
  font-size: 52px;
  color: rgba(255, 255, 255, 0.22);
}
.login-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.login-hero-brand--image {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.login-hero-brand--symbol {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
}
.login-hero-brand__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-title { font-size: 23px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; letter-spacing: -0.03em; }
.login-sub   { font-size: 13px; color: var(--text-3); margin-bottom: 24px; line-height: 1.5; }
.login-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}
.login-aurora__canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.login-aurora--fallback {
  background:
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(212, 175, 55, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}
.login-right::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}
.login-hero-title {
  font-size: 24px; font-weight: 700; color: var(--white);
  text-align: center; line-height: 1.25; letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.login-hero-sub {
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  text-align: center; max-width: 260px; line-height: 1.65;
  position: relative; z-index: 1;
}
.login-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255, 255, 255, 0.62);
  padding: 6px 0; position: relative; z-index: 1;
}
.login-feature i { font-size: 15px; color: var(--gold-400); }

/* ===== SUPER ADMIN ===== */
.status-active { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--brand); font-weight: 500; }
.status-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.status-suspended { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-1); font-weight: 500; }
.status-suspended::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dark); box-shadow: 0 0 0 1px var(--brand); }
.plan-trial   { background: var(--bg-muted); color: var(--text-2); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.plan-basico  { background: var(--brand-light); color: var(--brand-dark); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.plan-pro     { background: var(--dark); color: var(--brand); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.plan-enterprise { background: var(--bg-muted); color: var(--brand); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.slug-code { font-size: 11px; background: var(--bg-muted); padding: 2px 8px; border-radius: 5px; font-family: monospace; color: var(--text-2); }

/* ===== RADIO BUTTONS ===== */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-btn { padding: 6px 14px; border-radius: 20px; border: 0.5px solid var(--border-md); font-size: 12.5px; cursor: pointer; color: var(--text-2); background: var(--bg-surface); transition: all 0.15s; font-family: var(--font); }
.radio-btn:hover { background: var(--bg-page); }
.radio-btn.selected { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); font-weight: 500; }

/* ===== UTILITIES ===== */
.text-muted   { color: var(--text-3); }
.text-sm      { font-size: 12px; }
.font-medium  { font-weight: 500; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.justify-end { justify-content: flex-end; }

/* ===== MOBILE TOGGLE ===== */
.btn-menu { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-1); }
.topbar-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.topbar-collapse-btn:hover {
  border-color: var(--border-gold);
  color: var(--brand-dark);
  background: var(--brand-light);
}
.topbar-collapse-btn i { font-size: 18px; }
@media (min-width: 769px) {
  .topbar-collapse-btn { display: inline-flex; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html.app-shell,
  html.app-shell body {
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100dvh;
    max-width: 100%;
  }

  html.portal-page,
  html.portal-page body.portal-body {
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100dvh;
  }

  .app-layout {
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100dvh;
    height: auto;
  }

  :root { --sb-w: 0px; }
  html.sidebar-collapsed { --sb-w: 0px; }
  .sidebar { transform: translateX(-230px); width: 230px; }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35); }
  .main-content {
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100dvh;
    height: auto;
  }
  .sidebar-collapse-btn { display: none; }
  .topbar {
    padding: 0 12px;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .topbar-heading,
  .topbar-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-title-lg {
    font-size: 18px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-search { display: none; }
  .topbar-right {
    flex-shrink: 0;
    gap: 6px;
  }
  .page-body {
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    flex: 1 1 auto;
  }
  .card {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
  }
  .config-page {
    max-width: 100% !important;
    min-width: 0;
  }
  .config-plano-grid {
    grid-template-columns: 1fr !important;
  }
  .config-plano-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .config-plano-row__action {
    flex-shrink: 1;
    width: 100%;
  }
  .config-plano-row__action .btn,
  .config-plano-row__action form {
    width: 100%;
  }
  .config-plano-row__action .btn {
    justify-content: center;
  }
  .graduacoes-layout {
    grid-template-columns: 1fr;
  }
  .graduacoes-filter-search,
  .graduacoes-filter-modalidade {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .graduacoes-historico-card {
    max-height: min(420px, 52dvh);
  }
  .graduacoes-historico-list {
    padding-right: 4px;
    margin-right: -4px;
  }
  .graduacoes-alunos .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .alert {
    max-width: 100%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .form-control,
  .btn-full,
  select.form-control,
  textarea.form-control {
    max-width: 100%;
  }
  .input-group {
    min-width: 0;
    width: 100%;
  }
  .btn-row {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  img, video, svg {
    max-width: 100%;
    height: auto;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-section-label { grid-column: 1; }
  .login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(160deg, var(--black-950) 0%, #12100a 45%, var(--black-900) 100%);
  }
  .login-right { display: none; }
  .login-left {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .login-form-inner { max-width: 100%; min-width: 0; }
  .btn-menu { display: flex; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== FLASH MESSAGES ===== */
.flash-success, .flash-error {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  border-bottom: 0.5px solid transparent;
}
.flash-success { background: var(--brand-light); color: var(--brand-dark); border-color: rgba(212,175,55,0.50); }
.flash-error   { background: var(--dark); color: #fff; border-color: var(--brand); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state i    { font-size: 40px; opacity: 0.4; }
.empty-state h3   { font-size: 15px; font-weight: 500; color: var(--text-2); }
.empty-state p    { font-size: 13px; max-width: 280px; line-height: 1.5; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}

/* ===== ALUNO AVATAR ===== */
.aluno-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}

/* ===== QUICK ACTIONS ===== */
.quick-action {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: var(--bg-surface);
  text-decoration: none; color: var(--text-1);
  transition: all 0.15s; cursor: pointer;
}
.quick-action:hover { background: var(--bg-page); border-color: var(--brand); }
.qa-icon  { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.qa-title { font-size: 13px; font-weight: 500; }
.qa-sub   { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ===== TOPBAR EXTRAS ===== */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-logout {
  white-space: nowrap;
  color: var(--text-2);
  border-color: var(--border);
}
.topbar-logout:hover {
  color: var(--text-1);
  border-color: var(--border-gold);
}
.topbar-plan  {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  color: var(--gold-700);
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--brand-light);
  border: 0.5px solid var(--border-gold);
}
.topbar-plan i { color: var(--gold-600); }

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ===== PROGRESS TABS ===== */
.progress-tabs { display: flex; align-items: center; margin-bottom: 20px; }
.ptab { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ptab-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-muted); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; transition: all 0.2s; flex-shrink: 0;
}
.ptab.active .ptab-num { background: var(--brand); color: var(--dark); }
.ptab.done   .ptab-num { background: var(--brand-light); color: var(--brand); }
.ptab-title { font-size: 13px; font-weight: 500; color: var(--text-2); }
.ptab.active .ptab-title { color: var(--text-1); }
.ptab-sub   { font-size: 11px; color: var(--text-3); }
.ptab-line  { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }

/* ===== INFO ROW ===== */
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px;
}
.info-row:last-child { border: none; }
.info-row span:first-child { color: var(--text-3); font-size: 12px; }
.info-row span:last-child  { font-weight: 500; color: var(--text-1); text-align: right; max-width: 60%; }

/* ===== CLINICO ITEM ===== */
.clinico-item { padding: 14px; background: var(--bg-page); border-radius: var(--r-md); }

/* ===== TAB PANE ===== */
.tab-pane         { display: none; }
.tab-pane.active  { display: block; }

/* ===== THEME TOGGLE — .theme-switch (partials/theme_toggle.php) ===== */

/* ===== DARK THEME — refinamentos ===== */
[data-theme="dark"] .sidebar { border-right-color: rgba(201, 162, 39, 0.15); }
[data-theme="dark"] .card:hover { border-color: rgba(201, 162, 39, 0.2); }
[data-theme="dark"] .topbar-plan {
  background: var(--brand-light);
  color: var(--gold-400);
  border-color: rgba(201, 162, 39, 0.25);
}
[data-theme="dark"] .btn-brand {
  color: var(--black-950);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}
[data-theme="dark"] .login-left {
  background: var(--black-800);
  box-shadow:
    8px 0 40px rgba(0, 0, 0, 0.45),
    4px 0 16px rgba(0, 0, 0, 0.25),
    0 0 0 0.5px var(--border);
}
[data-theme="dark"] .login-app-name__meu { color: var(--gold-400); }
[data-theme="dark"] .login-app-name__product { color: var(--white); }
[data-theme="dark"] .login-left::before { opacity: 0.9; }

.login-brand-preview .login-logo { margin-bottom: 0; }
.perfil-subtabs { margin-top: 0; }
.perfil-subpane { display: none; }
.perfil-subpane.active { display: block; }

/* ===== LOJA — VENDAS / ESTOQUE ===== */
.venda-pos {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  align-items: start;
}
.venda-pos__busca .form-group { margin-bottom: 12px; }
.venda-produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.venda-prod-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-page);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.venda-prod-btn:hover { border-color: var(--brand); background: var(--brand-light); }
.venda-prod-btn__nome { font-size: 12px; font-weight: 600; line-height: 1.3; }
.venda-prod-btn__preco { font-size: 11px; color: var(--brand-dark); }
.venda-prod-btn__est { font-size: 10px; color: var(--text-3); }
.venda-sugestoes {
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}
.venda-sug-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 0.5px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.venda-sug-item:hover { background: var(--brand-light); }
.venda-sug-item:last-child { border-bottom: none; }
.venda-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-top: 12px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: 18px;
}
.venda-total-box strong { color: var(--gold-400); }
.venda-pag-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.venda-qty-input { padding: 4px 8px !important; }
.row-estoque-baixo { background: rgba(245, 158, 11, 0.06); }
.estoque-ranking { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.estoque-rank-item { font-size: 13px; }
.estoque-rank-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.estoque-rank-pos { font-weight: 700; color: var(--brand); min-width: 24px; }
.estoque-rank-nome { flex: 1; font-weight: 600; }
.estoque-rank-qtd { color: var(--text-3); font-size: 12px; }
.estoque-rank-bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}
.estoque-rank-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 3px;
}
.estoque-rank-val { font-size: 11px; color: var(--text-3); }
.estoque-baixo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.estoque-baixo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}
.estoque-baixo-list li:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .venda-pos { grid-template-columns: 1fr; }
}

#session-timeout-warning {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  max-width: calc(100vw - 32px);
}
#session-timeout-warning span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#session-timeout-warning button {
  border: none;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--white);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#session-timeout-warning button:hover {
  filter: brightness(1.05);
}

/* ===== PAGE GRID (form + list layouts) ===== */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
  max-width: 1040px;
}
.page-grid--wide { grid-template-columns: 1.4fr 1fr; max-width: none; }
.page-grid--reverse { grid-template-columns: 1.2fr 1fr; }
.page-grid--equal { grid-template-columns: 1fr 1fr; }
.page-grid--detail { grid-template-columns: 1fr 2fr; max-width: 1200px; }
.page-grid > .card { align-self: start; }

@media (max-width: 768px) {
  .page-grid,
  .page-grid--wide,
  .page-grid--reverse,
  .page-grid--equal,
  .page-grid--detail {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE HEADING (a11y h1) ===== */
.page-heading {
  margin-bottom: 16px;
}
.page-heading h1,
h1.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.page-heading p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.visually-hidden-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESPONSIVE DATA: table desktop / cards mobile ===== */
.responsive-data { position: relative; }
.responsive-data__cards { display: none; }
.responsive-data-card {
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border);
}
.responsive-data-card:last-child { border-bottom: none; }
.responsive-data-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.responsive-data-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}
.responsive-data-card__sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.responsive-data-card__rows {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.responsive-data-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.responsive-data-card__row dt {
  color: var(--text-3);
  font-weight: 400;
}
.responsive-data-card__row dd {
  text-align: right;
  color: var(--text-1);
  margin: 0;
}
.responsive-data-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
}

@media (max-width: 768px) {
  .responsive-data .table-wrap { display: none; }
  .responsive-data__cards { display: block; }
}

/* ===== FLASH MESSAGES ===== */
.flash-success,
.flash-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
}
.flash-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 0.5px solid rgba(34, 197, 94, 0.25);
}
.flash-error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 0.5px solid rgba(239, 68, 68, 0.22);
}
[data-theme="dark"] .flash-success { color: #86efac; }
[data-theme="dark"] .flash-error { color: #fca5a5; }
.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 2px;
  flex-shrink: 0;
}

/* ===== FORM UX ===== */
.form-inline-error {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 0.5px solid rgba(239, 68, 68, 0.2);
}
.form-inline-error.is-visible { display: flex; }
.form-control.is-invalid { border-color: #ef4444; }

.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}
.btn.is-loading .ti:not(.ti-loader) { visibility: hidden; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: dm-spin 0.6s linear infinite;
}

@keyframes dm-spin { to { transform: rotate(360deg); } }

/* ===== FORM SECTIONS (cadastro aluno) ===== */
.form-section-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}
.form-section-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 14px;
}
.form-section-heading i { color: var(--brand); font-size: 16px; }

/* ===== ONBOARDING BANNER ===== */
.onboarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--gold-50) 0%, var(--white) 100%);
  border: 0.5px solid var(--border-gold);
}
[data-theme="dark"] .onboarding-banner {
  background: linear-gradient(135deg, #2A2410 0%, var(--black-800) 100%);
}
.onboarding-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--text-on-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.onboarding-banner__body { flex: 1; min-width: 200px; }
.onboarding-banner__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.onboarding-banner__text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.onboarding-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
.onboarding-step:hover { border-color: var(--brand); color: var(--text-1); }
.onboarding-step.is-done {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #15803d;
}

/* ===== TOPBAR PLAN BADGE ===== */
.topbar-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  white-space: nowrap;
}
.topbar-plan i { color: var(--brand); }

@media (max-width: 640px) {
  .topbar-plan { display: none; }
}

/* ===== LOGIN VALIDATION ===== */
.login-field-error {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
  display: none;
}
.login-field-error.is-visible { display: block; }

/* ===== CONFIRM DESTRUCTIVE (shared) ===== */
@media (max-width: 768px) {
  .config-plano-grid { grid-template-columns: 1fr !important; }
  .form-grid-1-14,
  .grid-faixa-row,
  .graduacao-row { grid-template-columns: 1fr; }
  .grid-faixa-row .btn-sm,
  .graduacao-row .btn-sm { justify-self: start; }
}

[data-confirm] { cursor: pointer; }

/* ============================================================
   DojoManager Design System — Layout & Components
   btn-brand  → Salvar, Criar, Confirmar, auth submit
   btn-primary → Filtros, paginação ativa, ações secundárias
   btn         → Cancelar, Voltar
   ============================================================ */

/* --- Layout --- */
.form-page { max-width: 860px; }
.form-page--wide,
form.form-page--wide { max-width: 1100px; display: block; }
.config-page { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { gap: 8px; }
.stack-md { gap: 12px; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-row-gap-sm { display: flex; gap: 6px; align-items: center; }
.flex-col-gap { display: flex; flex-direction: column; gap: 14px; }
.col-sidebar { display: flex; flex-direction: column; gap: 14px; }
.card--spaced { margin-bottom: 14px; }
.card--flush { padding: 0; }
.page-intro { font-size: 13px; color: var(--text-2); margin-bottom: 16px; line-height: 1.5; }
.text-meta { font-size: 12px; color: var(--text-3); }
.text-meta-block { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.divider { border: none; border-top: 0.5px solid var(--border); margin: 12px 0; }
.divider-lg { margin: 20px 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }

/* --- Grids --- */
.form-grid-1-14 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}
.grid-faixa-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 90px auto;
  gap: 10px;
  align-items: end;
}
.graduacao-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
}
.form-group--flush { margin-bottom: 0; }
.form-control--color { padding: 4px; height: 38px; }
.form-control--uf { width: 60px; text-transform: uppercase; flex-shrink: 0; }
.city-uf-row { display: flex; gap: 6px; }

/* --- Nested blocks --- */
.faixa-box {
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-page);
}
.modal-card {
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-page);
  position: relative;
}
.modal-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-card-title { font-size: 13px; font-weight: 500; color: var(--text-1); }
.modal-remove {
  background: none; border: none; cursor: pointer;
  color: var(--danger); font-size: 18px; padding: 2px 6px; border-radius: 4px;
}
.modal-remove:hover { background: var(--brand-light); }
.add-modal-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 0.5px dashed var(--border-md);
  border-radius: var(--r-md); background: none; cursor: pointer;
  color: var(--brand); font-size: 13px; font-family: inherit;
  width: 100%; justify-content: center; transition: all 0.15s; margin-top: 4px;
}
.add-modal-btn:hover { background: var(--brand-light); border-color: var(--brand); }

.subsection-title { font-size: 12px; font-weight: 600; color: var(--text-2); }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--text-2); }
.checkbox-label--header { font-size: 13px; color: var(--text-2); }

/* --- Profile / ficha --- */
.profile-card { text-align: center; padding: 24px 20px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; color: var(--brand);
  margin: 0 auto 12px;
}
.profile-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.profile-meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.profile-badges { margin-top: 8px; }
.profile-badge-row { margin-bottom: 4px; }
.profile-action { margin-top: 12px; width: 100%; justify-content: center; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-3); font-size: 12px; }
.info-row span:last-child { font-weight: 500; color: var(--text-1); text-align: right; max-width: 60%; }
.emergency-block { margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--border); }
.emergency-label {
  font-size: 11px; color: var(--text-3); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.clinico-item { padding: 14px; background: var(--bg-page); border-radius: var(--r-md); }
.clinico-question { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }

/* --- List cards (turmas, polos, etc.) --- */
.entity-list { display: flex; flex-direction: column; gap: 10px; }
.entity-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
}
.entity-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.entity-card__body { flex: 1; min-width: 0; }
.entity-card__title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.entity-card__title { font-size: 14px; font-weight: 600; }
.entity-card__meta { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.entity-card__sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.entity-card__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* --- Filter bar --- */
.filter-bar form { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; align-items: center; }
.filter-search { position: relative; flex: 1; min-width: 200px; }
.filter-search i {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 15px;
}
.filter-search .form-control { padding-left: 34px; }
.filter-select { width: 180px; }
.filter-count { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.filter-count strong { color: var(--text-1); }

/* --- Wizard --- */
.wizard-steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-bottom: 24px; padding-bottom: 4px;
}
.wizard-step {
  display: flex; align-items: flex-start; gap: 10px;
  flex: 1; min-width: 0; opacity: 0.45;
}
.wizard-step.is-active { opacity: 1; }
.wizard-step.is-done { opacity: 0.85; }
.wizard-step__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-muted); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
  transition: all 0.2s;
}
.wizard-step.is-active .wizard-step__num,
.wizard-step.is-done .wizard-step__num {
  background: var(--brand); color: var(--text-on-gold);
}
.wizard-step__title { font-size: 13px; font-weight: 500; color: var(--text-2); line-height: 1.3; }
.wizard-step.is-active .wizard-step__title { color: var(--text-1); font-weight: 600; }
.wizard-step__sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.wizard-step__line {
  flex: 0 0 24px; height: 1px; background: var(--border);
  margin: 16px 8px 0; align-self: flex-start;
}
.wizard-context {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--bg-muted); border-radius: var(--r-md);
  font-size: 13px; color: var(--text-2);
}
.wizard-context strong { color: var(--text-1); }
.wizard-skip { font-size: 12px; color: var(--text-3); margin-top: 8px; text-align: center; }
.wizard-skip a { color: var(--brand); text-decoration: none; }
.wizard-step.is-hidden,
.wizard-step__line.is-hidden { display: none !important; }

@media (max-width: 640px) {
  .wizard-steps { flex-direction: column; gap: 8px; }
  .wizard-step__line { display: none; }
  .filter-select { width: 100%; }
}

/* --- CEP loading --- */
.cep-wrap { position: relative; }
.cep-loading {
  display: none; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
}
.cep-loading.is-active { display: block; }
.cep-loading i { font-size: 15px; color: var(--brand); animation: dm-spin 1s linear infinite; }
.cep-status { font-size: 12px; margin-top: 4px; min-height: 16px; }

/* --- Pagination --- */
.pagination-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 16px; border-top: 0.5px solid var(--border);
}

/* --- Aluno avatar (list) --- */
.aluno-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.aluno-row { display: flex; align-items: center; gap: 10px; }

/* --- Tab panes visibility --- */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Hidden utility --- */
.is-hidden { display: none !important; }

/* ===== CONFIGURAÇÕES ===== */
.config-theme-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
}

/* ===== LANGUAGE SWITCHER (partials/language_switcher.php) ===== */
.lang-switcher {
  margin-top: 4px;
}
.lang-switcher__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.lang-switcher__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  color: var(--text-1);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lang-switcher__btn:hover {
  border-color: var(--brand);
  background: var(--bg-muted);
}
.lang-switcher__btn--active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.lang-switcher__flag {
  font-size: 1.25rem;
  line-height: 1;
}
.lang-switcher__label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.lang-switcher__sub {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.lang-switcher__hint {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ===== LANGUAGE TOPBAR (partials/language_switcher_topbar.php) ===== */
.lang-topbar {
  position: relative;
  flex-shrink: 0;
}
.lang-topbar__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lang-topbar__trigger:hover {
  color: var(--text-1);
}
.lang-topbar__trigger:active {
  transform: scale(0.92);
}
.lang-topbar__trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.lang-topbar__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: 11.5rem;
  padding: 6px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
}
.lang-topbar--open .lang-topbar__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: calc(var(--r-md) - 2px);
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.lang-topbar__item:hover {
  background: var(--bg-muted);
}
.lang-topbar__item--active {
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface));
  color: var(--text-1);
}
.lang-topbar__flag {
  font-size: 1rem;
  line-height: 1;
}
.lang-topbar__label {
  flex: 1;
  font-weight: 500;
}
.lang-topbar__currency {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.logo-preview {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0.5px solid var(--border);
  flex-shrink: 0;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-preview i { font-size: 28px; color: var(--text-3); }
.logo-preview-meta { font-size: 13px; font-weight: 500; }
.logo-preview-hint { font-size: 12px; color: var(--text-3); }
.config-brand-preview {
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
}
.config-brand-preview__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.config-brand-preview__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.config-brand-preview__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.config-brand-preview__sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.config-brand-tabs { margin-bottom: 14px; }
.config-brand-tabs + .tab-pane { display: none; padding-top: 4px; }
.config-brand-tabs + .tab-pane.active,
.config-brand-tabs ~ .tab-pane.active { display: block; }
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.form-group--compact { margin-bottom: 12px; }

.config-plano-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.config-stat-cell {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--r-md);
}
.config-stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.config-stat-value { font-size: 18px; font-weight: 600; color: var(--text-1); }

.config-plano-list { display: flex; flex-direction: column; gap: 12px; }
.config-plano-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
}
.config-plano-row--active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.config-plano-row__body { flex: 1; min-width: 0; }
.config-plano-row__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.config-plano-row__name { font-size: 15px; font-weight: 600; }
.config-plano-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.config-plano-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.config-plano-features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.config-plano-note { font-size: 11px; color: var(--text-3); margin: 8px 0 0; }
.config-plano-row__action { flex-shrink: 0; }
.config-plano-row__action form { margin: 0; }
.btn-ghost-disabled {
  opacity: 0.6;
  pointer-events: none;
}
.badge-sm { font-size: 10px; }
.badge-downgrade {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
.alert--flush { margin: 0 0 16px; }

/* ===== DASHBOARD ===== */
.stats-grid--spaced { margin-bottom: 14px; }
.dash-capacity { margin-top: 10px; }
.dash-capacity__head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.dash-capacity__track {
  height: 4px;
  background: var(--bg-muted);
  border-radius: 2px;
  overflow: hidden;
}
.dash-capacity__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
  transition: width 0.5s ease;
}
.dash-capacity__fill--warn { background: var(--dark); }

.stat-link {
  text-decoration: none;
  color: inherit;
}
.stat-link:hover { color: var(--brand); }

.dash-checkin-list { display: flex; flex-direction: column; gap: 8px; }
.dash-checkin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-page);
  border-radius: var(--r-md);
  font-size: 13px;
}
.dash-checkin-item__sub { font-size: 12px; color: var(--text-3); }
.dash-checkin-item__time { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dash-checkin-total { font-size: 12px; color: var(--text-3); margin: 12px 0 0; }
.dash-empty-inline { font-size: 13px; color: var(--text-3); margin: 0; padding: 8px 0; }

.quick-action__chevron { margin-left: auto; color: var(--text-3); }
.qa-icon--brand { background: var(--brand-light); color: var(--brand-dark); }
.qa-icon--brand i { color: var(--brand-dark); }
.qa-icon--sand { background: #EDE6C6; color: var(--dark); }
.qa-icon--sand i { color: var(--dark); }
.qa-icon--dark { background: var(--dark); color: var(--brand); }
.qa-icon--dark i { color: var(--brand); }
.qa-icon--gold { background: #FFF8DF; color: var(--brand-dark); }
.qa-icon--gold i { color: var(--brand-dark); }

.dash-faixa-dot {
  background: var(--faixa-color, var(--brand));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.bar-fill--dynamic {
  background: var(--faixa-color, var(--brand));
  width: var(--bar-pct, 0%);
}

.badge-faixa {
  border: 0.5px solid transparent;
}
.empty-state--compact { padding: 20px 0; }
.table-cell-muted { font-size: 12px; color: var(--text-2); }
