body.admin-modern-page {
  --admin-bg: #090f16;
  --admin-surface: #101720;
  --admin-surface-2: #121b25;
  --admin-surface-3: #0c131c;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-strong: rgba(240, 192, 84, 0.34);
  --admin-text: #eef2f7;
  --admin-text-soft: #bcc4cf;
  --admin-text-dim: #7e8895;
  --admin-gold: #efc04e;
  --admin-gold-strong: #f4ca62;
  --admin-gold-deep: #a77a18;
  --admin-danger: #ff6161;
  --admin-success: #22c55e;
  --admin-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --admin-radius-xl: 24px;
  --admin-radius-lg: 20px;
  --admin-radius-md: 16px;
  --admin-radius-sm: 14px;
  color: var(--admin-text);
  background: var(--admin-bg);
  font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  padding: 8px;
}

body.admin-modern-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 214, 112, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 12%);
  opacity: 0.7;
  z-index: 0;
}

body.admin-modern-page #bg-video {
  display: none;
}

body.admin-modern-page .page {
  position: relative;
  z-index: 1;
  width: calc(100% - 244px);
  max-width: none;
  margin: 0 0 0 244px;
  padding: 0 0 28px;
}

body.admin-modern-page .top-nav,
body.admin-modern-page .stat-box,
body.admin-modern-page .mago-section,
body.admin-modern-page .student-card,
body.admin-modern-page .search-row > .filter-field,
body.admin-modern-page .modal-box,
body.admin-modern-page .db-box,
body.admin-modern-page #ea-drawer-panel {
  background: linear-gradient(180deg, rgba(16, 23, 32, 0.98), rgba(12, 18, 27, 0.98));
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
}

body.admin-modern-page .top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--admin-radius-xl);
  border-bottom: 1px solid var(--admin-border);
}

body.admin-modern-page .top-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.admin-modern-page .page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(1rem, 1.12rem + 0.54vw, 1.72rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--admin-gold-strong);
  background: none;
  -webkit-text-fill-color: initial;
}

body.admin-modern-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.admin-modern-page .admin-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  flex: 0 0 auto;
  -webkit-mask: var(--admin-icon) center / contain no-repeat;
  mask: var(--admin-icon) center / contain no-repeat;
}

body.admin-modern-page .icon-menu {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-crown {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 18h14l1-9-4 3-4-6-4 6-4-3 1 9Zm2 2a1 1 0 0 1 0-2h10a1 1 0 1 1 0 2H7Z'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-logout {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-alert {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-students {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='3'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-user {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-school {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-4 7 4v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M9 10h.01M15 10h.01'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-groups {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-broadcast {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a4 4 0 0 0 4 4h2'/%3E%3Cpath d='M15 5.5a8.38 8.38 0 0 1 0 13'/%3E%3Cpath d='M12 8a4.5 4.5 0 0 1 0 8'/%3E%3Cpath d='M7 9h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H7Z'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-search {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-group-line {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-5 9 5-9 5-9-5Z'/%3E%3Cpath d='M7 13.18V17a7 7 0 0 0 10 0v-3.82'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-number {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M20 19V5'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M8 5v14'/%3E%3Cpath d='M16 5v14'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-code {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m8 10-2 2 2 2'/%3E%3Cpath d='m16 10 2 2-2 2'/%3E%3Cpath d='M10 16h4'/%3E%3C/svg%3E");
}

body.admin-modern-page .icon-chevron {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

body.admin-modern-page #ea-menu-toggle,
body.admin-modern-page .nav-btn,
body.admin-modern-page #guard-bell-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 46px;
  border-radius: 16px !important;
  padding: 0 15px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  border: 1px solid var(--admin-border) !important;
  background: rgba(255, 255, 255, 0.015) !important;
  color: var(--admin-gold-strong) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.admin-modern-page #ea-menu-toggle {
  width: 46px;
  padding: 0 !important;
  font-size: 0 !important;
}

body.admin-modern-page #ea-menu-toggle:hover,
body.admin-modern-page .nav-btn:hover,
body.admin-modern-page #guard-bell-btn:hover {
  transform: translateY(-1px);
  border-color: var(--admin-border-strong) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body.admin-modern-page .nav-btn.danger {
  color: var(--admin-gold-strong) !important;
}

body.admin-modern-page .nav-btn.danger .admin-ico,
body.admin-modern-page #guard-bell-btn .admin-ico,
body.admin-modern-page #ea-menu-toggle .admin-ico {
  font-size: 1.1rem;
}

body.admin-modern-page #guard-bell-btn {
  border-color: rgba(255, 97, 97, 0.24) !important;
  color: #ffd0d0 !important;
}

body.admin-modern-page #guard-badge {
  background: #ff4d4d !important;
  color: #fff !important;
  border-radius: 999px;
  min-width: 22px;
  padding: 2px 7px !important;
}

body.admin-modern-page .stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

body.admin-modern-page .stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 16px;
  border-radius: var(--admin-radius-lg);
  text-align: left;
}

body.admin-modern-page .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--admin-gold-strong);
  background: linear-gradient(180deg, rgba(255, 214, 112, 0.08), rgba(255, 214, 112, 0.03));
  border: 1px solid rgba(240, 192, 84, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.admin-modern-page .stat-icon .admin-ico {
  font-size: 1.32rem;
}

body.admin-modern-page .stat-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.admin-modern-page .stat-num {
  font-family: "Trebuchet MS", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(1.65rem, 1.28rem + 0.78vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  color: var(--admin-gold-strong);
}

body.admin-modern-page .stat-lbl {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--admin-text-soft);
  margin: 0;
}

body.admin-modern-page #stat-sem-senha-msg {
  min-height: 26px !important;
  margin: 0 0 14px !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--admin-gold-strong) !important;
}

body.admin-modern-page .mago-section {
  margin-bottom: 14px;
  border-radius: var(--admin-radius-xl);
  overflow: hidden;
  border-color: var(--admin-border);
}

body.admin-modern-page .mago-sec-header {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

body.admin-modern-page .mago-sec-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.admin-modern-page .mago-sec-title {
  font-family: inherit;
  font-size: clamp(0.96rem, 0.91rem + 0.3vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--admin-gold-strong);
  background: none;
  -webkit-text-fill-color: initial;
}

body.admin-modern-page .mago-sec-title-wrap .admin-ico {
  font-size: 1.15rem;
  color: var(--admin-gold-strong);
}

body.admin-modern-page .mago-sec-arrow {
  font-size: 1rem;
  color: var(--admin-gold-strong);
}

body.admin-modern-page .mago-sec-body {
  padding: 15px 18px 18px;
}

body.admin-modern-page .field label,
body.admin-modern-page .mago-compose .field label {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--admin-text-soft);
}

body.admin-modern-page .field input,
body.admin-modern-page .field select,
body.admin-modern-page .field textarea,
body.admin-modern-page .mago-compose .field input,
body.admin-modern-page .mago-compose .field textarea,
body.admin-modern-page .search-input,
body.admin-modern-page .search-select,
body.admin-modern-page #mago-turma-destino,
body.admin-modern-page .ea-form textarea,
body.admin-modern-page .ea-turmas-box,
body.admin-modern-page .db-panel select,
body.admin-modern-page .db-panel textarea,
body.admin-modern-page .db-panel input {
  border-radius: var(--admin-radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(8, 12, 19, 0.96) !important;
  color: var(--admin-text) !important;
  font-family: inherit !important;
  font-size: 0.94rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.admin-modern-page .field input:focus,
body.admin-modern-page .field select:focus,
body.admin-modern-page .field textarea:focus,
body.admin-modern-page .search-input:focus,
body.admin-modern-page .search-select:focus,
body.admin-modern-page #mago-turma-destino:focus,
body.admin-modern-page .ea-form textarea:focus {
  outline: none;
  border-color: rgba(244, 202, 98, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(244, 202, 98, 0.09);
}

body.admin-modern-page .field textarea,
body.admin-modern-page .mago-compose .field textarea {
  min-height: 112px;
}

body.admin-modern-page .btn-action,
body.admin-modern-page .db-action-btn,
body.admin-modern-page .db-close-btn,
body.admin-modern-page .db-edit-btn,
body.admin-modern-page .ea-card-actions button,
body.admin-modern-page .btn-msg-admin {
  min-height: 48px;
  border-radius: var(--admin-radius-sm);
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
}

body.admin-modern-page .btn-gold,
body.admin-modern-page .db-edit-btn {
  background: linear-gradient(135deg, #f5d163 0%, #d6a728 100%) !important;
  border: 1px solid rgba(247, 214, 121, 0.48) !important;
  color: #14181f !important;
  box-shadow: 0 16px 28px rgba(214, 167, 40, 0.24);
}

body.admin-modern-page .btn-gold:hover,
body.admin-modern-page .db-edit-btn:hover {
  box-shadow: 0 20px 34px rgba(214, 167, 40, 0.34);
}

body.admin-modern-page .btn-outline,
body.admin-modern-page .db-close-btn,
body.admin-modern-page .btn-msg-admin {
  background: transparent !important;
  border: 1px solid rgba(240, 192, 84, 0.4) !important;
  color: var(--admin-gold-strong) !important;
}

body.admin-modern-page .btn-red {
  background: rgba(255, 97, 97, 0.08) !important;
  border: 1px solid rgba(255, 97, 97, 0.28) !important;
  color: #ffc4c4 !important;
}

body.admin-modern-page .msg {
  border-radius: var(--admin-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
}

body.admin-modern-page .search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.admin-modern-page .search-row > .filter-field {
  position: relative;
  border-radius: var(--admin-radius-md);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 23, 32, 0.98), rgba(12, 18, 27, 0.98));
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
}

body.admin-modern-page .search-row > .filter-field .admin-ico {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--admin-text-dim);
  pointer-events: none;
}

body.admin-modern-page .search-input,
body.admin-modern-page .search-select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-modern-page .filter-search .search-input {
  padding-left: 52px;
}

body.admin-modern-page .students-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.admin-modern-page .student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--admin-radius-lg);
  border-color: var(--admin-border);
  transform: none;
}

body.admin-modern-page .student-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 202, 98, 0.26);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
}

body.admin-modern-page .student-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

body.admin-modern-page .s-avatar-wrap {
  flex-shrink: 0;
}

body.admin-modern-page .s-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(240, 192, 84, 0.7);
  background: linear-gradient(180deg, rgba(33, 39, 48, 0.96), rgba(11, 14, 18, 1));
  color: var(--admin-gold-strong);
  font-family: inherit;
  font-size: 2rem;
  font-weight: 800;
}

body.admin-modern-page .s-frame {
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
}

body.admin-modern-page .presence-dot {
  width: 20px;
  height: 20px;
  bottom: 4px;
  right: 4px;
  border: 3px solid #121821;
}

body.admin-modern-page .presence-dot.offline {
  background: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.16);
}

body.admin-modern-page .s-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.admin-modern-page .s-name {
  font-family: "Trebuchet MS", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(1.28rem, 1.1rem + 0.35vw, 1.7rem);
  font-weight: 800;
  color: var(--admin-gold-strong);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

body.admin-modern-page .s-name,
body.admin-modern-page .s-name a {
  text-decoration: none;
}

body.admin-modern-page .s-meta-list {
  display: grid;
  gap: 8px;
}

body.admin-modern-page .s-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--admin-text-soft);
}

body.admin-modern-page .s-meta .admin-ico {
  font-size: 0.95rem;
  color: var(--admin-gold-strong);
}

body.admin-modern-page .s-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.admin-modern-page .s-badge.is-pre {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #c0dbff;
}

body.admin-modern-page .s-badge.is-alert {
  background: rgba(255, 138, 76, 0.12);
  border: 1px solid rgba(255, 138, 76, 0.3);
  color: #ffc495;
}

body.admin-modern-page .student-card-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--admin-gold-strong);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(240, 192, 84, 0.22);
}

body.admin-modern-page .student-card-end .admin-ico {
  font-size: 1.2rem;
}

body.admin-modern-page .empty-state {
  padding: 28px;
  border-radius: var(--admin-radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text-dim);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

body.admin-modern-page .mago-active-box,
body.admin-modern-page .mago-list-wrap,
body.admin-modern-page .ea-card,
body.admin-modern-page .chat-conv,
body.admin-modern-page .quiz-item {
  border-radius: var(--admin-radius-md);
  background: linear-gradient(180deg, rgba(14, 19, 26, 0.98), rgba(10, 15, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-modern-page .mago-active-title,
body.admin-modern-page .mago-resp-num,
body.admin-modern-page .quiz-bim-title,
body.admin-modern-page .db-hero-name,
body.admin-modern-page .chat-conv-partner,
body.admin-modern-page .ea-card-tema,
body.admin-modern-page .modal-title {
  font-family: "Trebuchet MS", "Segoe UI Variable Display", sans-serif;
  font-weight: 800;
  color: var(--admin-gold-strong);
  background: none;
  -webkit-text-fill-color: initial;
}

body.admin-modern-page .mago-active-title,
body.admin-modern-page .modal-title {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

body.admin-modern-page .mago-active-text,
body.admin-modern-page .quiz-lbl,
body.admin-modern-page .chat-conv-preview,
body.admin-modern-page .db-hero-meta {
  font-family: inherit;
  color: var(--admin-text-soft);
}

body.admin-modern-page .mago-list-header,
body.admin-modern-page .db-tab-btn,
body.admin-modern-page .ea-drawer-title,
body.admin-modern-page .ea-drawer-item,
body.admin-modern-page .quiz-head,
body.admin-modern-page .disc-title,
body.admin-modern-page .db-pontos,
body.admin-modern-page .db-prog-txt,
body.admin-modern-page .db-hero-meta,
body.admin-modern-page .db-level-badge,
body.admin-modern-page .chat-conv-time,
body.admin-modern-page .mago-active-meta,
body.admin-modern-page .mago-resp-lbl {
  font-family: inherit;
}

body.admin-modern-page .mago-list-header:hover,
body.admin-modern-page .chat-conv:hover,
body.admin-modern-page .ea-card-actions button:hover,
body.admin-modern-page .db-tab-btn.active,
body.admin-modern-page .db-tab-btn:hover {
  color: var(--admin-gold-strong);
}

body.admin-modern-page .modal-overlay {
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(14px);
}

body.admin-modern-page .modal-box,
body.admin-modern-page .db-box {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.98), rgba(10, 14, 18, 1));
  color: var(--admin-text);
}

body.admin-modern-page .db-topbar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.admin-modern-page .db-hero,
body.admin-modern-page .db-action-row,
body.admin-modern-page .db-tabs-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.admin-modern-page .db-tabs-row {
  gap: 4px;
}

body.admin-modern-page .db-tab-btn.active {
  border-bottom-color: var(--admin-gold-strong);
}

body.admin-modern-page .db-level-badge {
  border-color: rgba(244, 202, 98, 0.28);
}

body.admin-modern-page #ea-drawer-overlay {
  display: none !important;
}

body.admin-modern-page #ea-drawer-panel {
  position: fixed;
  top: 8px;
  left: 8px;
  bottom: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 220px;
  max-width: 220px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  transform: none;
  transition: none;
  overflow: auto;
}

body.admin-modern-page #ea-drawer-overlay.open {
  display: none !important;
}

body.admin-modern-page #ea-drawer-panel.open {
  transform: none;
}

body.admin-modern-page .ea-drawer-title {
  padding: 0 12px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--admin-gold-strong);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.admin-modern-page .ea-drawer-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d8dee8;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.96), rgba(13, 18, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-start !important;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.admin-modern-page .ea-drawer-item > span:first-child {
  display: none;
}

body.admin-modern-page .ea-drawer-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  background: var(--admin-gold-strong);
  -webkit-mask: var(--admin-item-icon) center / contain no-repeat;
  mask: var(--admin-item-icon) center / contain no-repeat;
}

body.admin-modern-page .ea-drawer-item.is-active {
  color: #fff0d0;
  border-color: rgba(176, 55, 55, 0.45);
  background: linear-gradient(180deg, rgba(102, 26, 26, 0.72), rgba(74, 21, 21, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.admin-modern-page .ea-drawer-item.is-active::before {
  background: var(--admin-gold-strong);
}

body.admin-modern-page .ea-drawer-item[data-nav="panel"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='4'/%3E%3Crect x='14' y='10' width='7' height='11'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="activity"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 2.7 6.3 6.8.6-5.1 4.4 1.5 6.7L12 16.7 6.1 20l1.5-6.7L2.5 8.9l6.8-.6Z'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="guard"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="proofs"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="grades"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="profile"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="library"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-4 7 4v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="layout"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='m4.93 4.93 2.83 2.83'/%3E%3Cpath d='m16.24 16.24 2.83 2.83'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3Cpath d='m4.93 19.07 2.83-2.83'/%3E%3Cpath d='m16.24 7.76 2.83-2.83'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
body.admin-modern-page .ea-drawer-item[data-nav="bugs"] { --admin-item-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5a3 3 0 0 1 6 0'/%3E%3Crect x='7' y='7' width='10' height='12' rx='5'/%3E%3Cpath d='M12 8v11M3 11h4M17 11h4M3 16h4M17 16h4M4 6l3 2M20 6l-3 2M4 20l3-2M20 20l-3-2'/%3E%3C/svg%3E"); }

body.admin-modern-page .ea-drawer-item:hover {
  background: linear-gradient(180deg, rgba(32, 41, 56, 0.98), rgba(20, 27, 40, 0.98));
  color: #f4ebcf;
  border-color: rgba(244, 202, 98, 0.2);
}

@media (max-width: 980px) {
  body.admin-modern-page {
    padding: 10px;
  }

  body.admin-modern-page .page {
    width: 100%;
    margin-left: 0;
    padding-top: 14px;
  }

  body.admin-modern-page #ea-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10001;
    width: min(84vw, 330px);
    max-width: 330px;
    margin: 0;
    padding: 18px 12px;
    border-radius: 0 22px 22px 0;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  body.admin-modern-page #ea-drawer-panel.open {
    transform: translateX(0);
  }

  body.admin-modern-page #ea-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 7, 13, .68);
    backdrop-filter: blur(3px);
  }

  body.admin-modern-page #ea-drawer-overlay.open {
    display: block !important;
  }

  body.admin-modern-page .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-modern-page .search-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body.admin-modern-page .top-nav {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  body.admin-modern-page .top-nav-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  body.admin-modern-page .top-nav-actions > * {
    flex: 1 1 180px;
  }

  body.admin-modern-page .search-row,
  body.admin-modern-page .stats-row {
    grid-template-columns: 1fr;
  }

  body.admin-modern-page .student-card,
  body.admin-modern-page .student-card-main {
    align-items: flex-start;
  }

  body.admin-modern-page .student-card {
    padding: 16px;
  }

  body.admin-modern-page .s-avatar {
    width: 68px;
    height: 68px;
  }

  body.admin-modern-page .student-card-end {
    align-self: center;
  }

  body.admin-modern-page #ea-drawer-panel {
    padding: 14px 10px;
  }

  body.admin-modern-page .ea-drawer-item {
    min-height: 48px;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  body.admin-modern-page {
    padding: 8px;
  }

  body.admin-modern-page .page {
    padding-top: 12px;
  }

  body.admin-modern-page .page-title {
    font-size: 0.92rem;
    gap: 8px;
  }

  body.admin-modern-page .top-nav,
  body.admin-modern-page .mago-sec-body,
  body.admin-modern-page .mago-sec-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.admin-modern-page .student-card-main {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin-modern-page .stats-row {
    gap: 10px;
  }

  body.admin-modern-page .stat-box {
    min-height: 84px;
    padding: 14px;
  }

  body.admin-modern-page .stat-icon {
    width: 40px;
    height: 40px;
  }

  body.admin-modern-page .stat-icon .admin-ico {
    font-size: 1.08rem;
  }

  body.admin-modern-page .stat-num {
    font-size: 1.45rem;
  }

  body.admin-modern-page .stat-lbl {
    font-size: 0.72rem;
  }

  body.admin-modern-page .search-input,
  body.admin-modern-page .search-select,
  body.admin-modern-page #ea-menu-toggle,
  body.admin-modern-page .nav-btn,
  body.admin-modern-page #guard-bell-btn,
  body.admin-modern-page .btn-action,
  body.admin-modern-page .db-action-btn,
  body.admin-modern-page .db-close-btn,
  body.admin-modern-page .db-edit-btn,
  body.admin-modern-page .ea-card-actions button,
  body.admin-modern-page .btn-msg-admin {
    min-height: 44px !important;
    font-size: 0.84rem !important;
  }

  body.admin-modern-page .search-row > .filter-field .admin-ico {
    left: 14px;
    font-size: 1rem;
  }

  body.admin-modern-page .filter-search .search-input {
    padding-left: 42px;
  }
}
