/* GHVM Admin — modern light/dark shell (replaces Adminty chrome) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --ghvm-primary: #1ab69d;
  --ghvm-primary-dark: #159a85;
  --ghvm-accent: #ee4a62;
  --ghvm-gold: #f8b81f;
  --ghvm-sidebar-w: 280px;
  --ghvm-top-h: 64px;
  --ghvm-radius: 12px;
  --ghvm-font: "Poppins", system-ui, sans-serif;

  --ghvm-bg: #f0f4f5;
  --ghvm-surface: #ffffff;
  --ghvm-surface-2: #f7fafb;
  --ghvm-border: #e2e8ee;
  --ghvm-text: #1a2332;
  --ghvm-muted: #64748b;
  --ghvm-sidebar-bg: #0c1820;
  --ghvm-sidebar-bg-2: #122530;
  --ghvm-sidebar-text: #d5e0e7;
  --ghvm-sidebar-muted: #7f94a2;
  --ghvm-sidebar-hover: rgba(26, 182, 157, 0.14);
  --ghvm-sidebar-active: #1ab69d;
  --ghvm-sidebar-active-soft: rgba(26, 182, 157, 0.18);
  --ghvm-shadow: 0 4px 24px rgba(15, 28, 36, 0.06);
  --ghvm-input-bg: #fff;
  --ghvm-table-stripe: #f8fafb;
}

[data-theme="dark"] {
  --ghvm-bg: #0b1218;
  --ghvm-surface: #14202a;
  --ghvm-surface-2: #1a2834;
  --ghvm-border: #243442;
  --ghvm-text: #e8eef2;
  --ghvm-muted: #94a3b0;
  --ghvm-sidebar-bg: #070d12;
  --ghvm-sidebar-bg-2: #0e1820;
  --ghvm-sidebar-text: #c9d5dd;
  --ghvm-sidebar-muted: #6b7f8c;
  --ghvm-sidebar-hover: rgba(26, 182, 157, 0.16);
  --ghvm-sidebar-active-soft: rgba(26, 182, 157, 0.22);
  --ghvm-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --ghvm-input-bg: #1a2834;
  --ghvm-table-stripe: #182430;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--ghvm-font);
  font-size: 14px;
  color: var(--ghvm-text);
  background: var(--ghvm-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ghvm-primary);
  transition: color 0.15s ease;
}
a:hover {
  color: var(--ghvm-primary-dark);
  text-decoration: none;
}

/* —— Shell layout —— */
.ghvm-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ghvm-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ghvm-top-h);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0 0;
  background: var(--ghvm-surface);
  border-bottom: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
}

.ghvm-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: var(--ghvm-sidebar-w);
  min-width: var(--ghvm-sidebar-w);
  height: 100%;
  padding: 0 1rem;
  background: var(--ghvm-sidebar-bg);
  border-right: 1px solid transparent;
}

.ghvm-topbar-brand a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.ghvm-topbar-brand img {
  height: 36px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}

.ghvm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding-right: 0.5rem;
}

.ghvm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ghvm-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ghvm-icon-btn:hover {
  background: var(--ghvm-surface-2);
  color: var(--ghvm-primary);
}

.ghvm-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ghvm-border);
  border-radius: 999px;
  background: var(--ghvm-surface-2);
  color: var(--ghvm-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.ghvm-user-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ghvm-sidebar {
  position: fixed;
  top: var(--ghvm-top-h);
  left: 0;
  bottom: 0;
  width: var(--ghvm-sidebar-w);
  z-index: 1030;
  color: var(--ghvm-sidebar-text);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(26, 182, 157, 0.16), transparent 55%),
    radial-gradient(90% 40% at 100% 100%, rgba(238, 74, 98, 0.08), transparent 50%),
    linear-gradient(180deg, var(--ghvm-sidebar-bg-2) 0%, var(--ghvm-sidebar-bg) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ghvm-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ghvm-sidebar-tools {
  padding: 0.85rem 0.85rem 0.55rem;
  flex-shrink: 0;
}

.ghvm-nav-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ghvm-nav-search:focus-within {
  background: rgba(26, 182, 157, 0.1);
  border-color: rgba(26, 182, 157, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.15);
}
.ghvm-nav-search i {
  color: var(--ghvm-sidebar-muted);
  font-size: 0.95rem;
}
.ghvm-nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
}
.ghvm-nav-search input::placeholder {
  color: var(--ghvm-sidebar-muted);
}

.ghvm-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.65rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.ghvm-sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.ghvm-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.ghvm-nav-group {
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.2rem 0.45rem;
  border-radius: 14px;
  transition: opacity 0.2s, transform 0.2s;
}
.ghvm-nav-group.is-filtered-out {
  display: none;
}

.ghvm-nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghvm-sidebar-muted);
}
.ghvm-nav-section-badge {
  letter-spacing: 0;
  text-transform: none;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(238, 74, 98, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ghvm-nav-badge {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(238, 74, 98, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.ghvm-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ghvm-nav > li {
  margin: 0.12rem 0;
}

.ghvm-nav > li.is-filtered-out {
  display: none;
}

.ghvm-nav > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 11px;
  color: var(--ghvm-sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ghvm-nav > li > a:hover {
  background: var(--ghvm-sidebar-hover);
  color: #fff;
  transform: translateX(2px);
}

.ghvm-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #9eb0bc;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.ghvm-nav-ico i {
  font-size: 1rem;
  line-height: 1;
  width: auto;
  opacity: 1;
}
.ghvm-nav > li > a:hover .ghvm-nav-ico {
  background: rgba(26, 182, 157, 0.22);
  color: #5eead4;
  transform: scale(1.04);
}

.ghvm-nav-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.ghvm-nav > li.active > a {
  background: linear-gradient(90deg, rgba(26, 182, 157, 0.28), rgba(26, 182, 157, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ghvm-sidebar-active);
}
.ghvm-nav > li.active > a .ghvm-nav-ico {
  background: var(--ghvm-sidebar-active);
  color: #fff;
}

.ghvm-nav .has-sub > a::after {
  content: "";
  margin-left: 0.25rem;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.22s;
  flex-shrink: 0;
}
.ghvm-nav .has-sub.open > a::after {
  transform: rotate(45deg);
  opacity: 0.95;
}
.ghvm-nav .has-sub.open > a {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ghvm-sub {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.35rem 1.15rem;
  display: none;
  position: relative;
}
.ghvm-nav .has-sub.open > .ghvm-sub {
  display: block;
}
.ghvm-sub::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ghvm-sub a {
  display: block;
  position: relative;
  padding: 0.42rem 0.75rem 0.42rem 1.1rem;
  margin: 0.08rem 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ghvm-sidebar-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.ghvm-sub a::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
  transition: background 0.15s, transform 0.15s;
}
.ghvm-sub a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.ghvm-sub a:hover::before,
.ghvm-sub a.active::before {
  background: var(--ghvm-sidebar-active);
  transform: translateY(-50%) scale(1.2);
}
.ghvm-sub a.active {
  color: #fff;
  background: var(--ghvm-sidebar-active-soft);
  font-weight: 600;
}

.ghvm-nav-empty {
  margin: 1.5rem 0.5rem;
  text-align: center;
  color: var(--ghvm-sidebar-muted);
  font-size: 0.82rem;
}

.ghvm-sidebar-foot {
  flex-shrink: 0;
  padding: 0.75rem 0.85rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.ghvm-sidebar-foot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  background: rgba(26, 182, 157, 0.14);
  border: 1px solid rgba(26, 182, 157, 0.28);
  color: #7ee0cf !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.ghvm-sidebar-foot-link:hover {
  background: rgba(26, 182, 157, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
}

.ghvm-nav-note {
  opacity: 0.55;
  pointer-events: none;
  font-size: 0.75rem !important;
}

.ghvm-main {
  margin-left: var(--ghvm-sidebar-w);
  margin-top: var(--ghvm-top-h);
  min-height: calc(100vh - var(--ghvm-top-h));
  padding: 1.5rem 1.75rem 2.5rem;
  transition: margin-left 0.25s ease;
}

.ghvm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1025;
  background: rgba(8, 14, 20, 0.5);
  backdrop-filter: blur(2px);
}

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

@media (max-width: 991.98px) {
  .ghvm-topbar-brand {
    width: auto;
    min-width: 0;
    background: transparent;
    padding-left: 0.5rem;
  }
  .ghvm-topbar-brand span {
    display: inline;
  }
  .ghvm-sidebar {
    transform: translateX(-100%);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  }
  body.ghvm-sidebar-open .ghvm-sidebar {
    transform: translateX(0);
  }
  .ghvm-main {
    margin-left: 0;
    padding: 1.25rem 1rem 2rem;
  }
}

/* —— Compat wrappers (existing page markup) —— */
.pcoded,
.pcoded-overlay-box,
.pcoded-container,
.pcoded-wrapper,
.pcoded-main-container,
.pcoded-inner-content,
.main-body {
  display: contents;
}

.pcoded-content,
.page-wrapper {
  display: block;
  width: 100%;
}

.page-header {
  margin-bottom: 1.25rem;
}

.page-header-title h4,
.page-header-title .d-inline h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ghvm-text);
}

.page-header-title span,
.page-header-title .d-inline span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ghvm-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.page-header-breadcrumb,
.breadcrumb-title {
  display: none;
}

.page-body {
  width: 100%;
}

/* —— Cards —— */
.card {
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  border-radius: var(--ghvm-radius);
  box-shadow: var(--ghvm-shadow);
  margin-bottom: 1.25rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--ghvm-border);
  padding: 1rem 1.25rem;
}

.card-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ghvm-text);
}

.card-block,
.card-body {
  padding: 1.25rem;
  color: var(--ghvm-text);
}

.statustic-card .card-block {
  text-align: center;
}

.statustic-card .f-36 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ghvm-primary);
}

.text-c-pink { color: var(--ghvm-accent) !important; }
.text-c-blue { color: #3b82f6 !important; }
.text-c-yellow { color: var(--ghvm-gold) !important; }
.text-c-green { color: var(--ghvm-primary) !important; }

/* —— Buttons —— */
.btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.btn-primary,
.btn-md.btn-primary {
  background: var(--ghvm-primary);
  border-color: var(--ghvm-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ghvm-primary-dark);
  border-color: var(--ghvm-primary-dark);
}

.btn-outline-primary {
  color: var(--ghvm-primary);
  border-color: var(--ghvm-primary);
}
.btn-outline-primary:hover {
  background: var(--ghvm-primary);
  border-color: var(--ghvm-primary);
  color: #fff;
}

.btn-outline-info,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-secondary,
.btn-outline-danger {
  border-radius: 8px;
}

.b-b-primary {
  border-bottom: 2px solid var(--ghvm-primary);
  padding-bottom: 2px;
}

/* —— Forms —— */
.form-control,
.select2-container--default .select2-selection--single {
  background: var(--ghvm-input-bg);
  border: 1px solid var(--ghvm-border);
  border-radius: 8px;
  color: var(--ghvm-text);
  height: calc(1.5em + 0.75rem + 2px);
}

.form-control:focus {
  border-color: var(--ghvm-primary);
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.2);
  background: var(--ghvm-input-bg);
  color: var(--ghvm-text);
}

label,
.form-group label {
  color: var(--ghvm-muted);
  font-weight: 500;
  font-size: 0.8rem;
}

/* —— Tables —— */
.table {
  color: var(--ghvm-text);
}
.table thead th {
  border-bottom-color: var(--ghvm-border);
  color: var(--ghvm-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table td,
.table th {
  border-top-color: var(--ghvm-border);
  vertical-align: middle;
}
.table-hover tbody tr:hover {
  background: var(--ghvm-table-stripe);
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: var(--ghvm-input-bg);
  border: 1px solid var(--ghvm-border);
  border-radius: 8px;
  color: var(--ghvm-text);
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--ghvm-muted) !important;
}

/* —— Table action buttons (Edit / Delete) —— */
.tabledit-edit-button,
.tabledit-delete-button,
a.btn.tabledit-edit-button,
a.btn.tabledit-delete-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  float: none !important;
  margin: 0.15rem !important;
  min-width: auto;
  padding: 0.35rem 0.7rem !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.tabledit-edit-button {
  background: var(--ghvm-primary) !important;
  border-color: var(--ghvm-primary) !important;
}
.tabledit-edit-button:hover {
  background: var(--ghvm-primary-dark) !important;
  border-color: var(--ghvm-primary-dark) !important;
  color: #fff !important;
}
.tabledit-delete-button {
  background: var(--ghvm-accent) !important;
  border-color: var(--ghvm-accent) !important;
}
.tabledit-delete-button:hover {
  background: #d63d54 !important;
  border-color: #d63d54 !important;
  color: #fff !important;
}
.tabledit-edit-button .icofont,
.tabledit-delete-button .icofont {
  font-size: 0.9rem;
  line-height: 1;
}
.tabledit-edit-button .ghvm-btn-label,
.tabledit-delete-button .ghvm-btn-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-danger {
  background: var(--ghvm-accent);
  border-color: var(--ghvm-accent);
}
.btn-danger:hover {
  background: #d63d54;
  border-color: #d63d54;
}


/* —— Alerts / hints —— */
.alert {
  border-radius: 10px;
  border: none;
}
.alert.background-success,
.alert-success {
  background: rgba(26, 182, 157, 0.15);
  color: var(--ghvm-primary-dark);
}
.alert.background-danger,
.alert-danger {
  background: rgba(238, 74, 98, 0.15);
  color: var(--ghvm-accent);
}
.alert.background-warning,
.alert-warning {
  background: rgba(248, 184, 31, 0.18);
  color: #b45309;
}
.alert.background-info,
.alert-info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

[data-theme="dark"] .alert.background-success,
[data-theme="dark"] .alert-success {
  color: #5eead4;
}
[data-theme="dark"] .alert.background-danger,
[data-theme="dark"] .alert-danger {
  color: #fca5a5;
}
[data-theme="dark"] .alert.background-info,
[data-theme="dark"] .alert-info {
  color: #93c5fd;
}

.admin-page-hint .alert {
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
  color: var(--ghvm-text);
  line-height: 1.45;
}
.admin-page-hint .alert a {
  font-weight: 600;
}

.admin-hub-tabs .nav-tabs {
  border-bottom: 2px solid var(--ghvm-border);
}
.admin-hub-nav .nav-link {
  color: var(--ghvm-muted);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border: none;
}
.admin-hub-nav .nav-link.active {
  color: var(--ghvm-primary);
  border-bottom: 2px solid var(--ghvm-primary);
  background: transparent;
}
.admin-hub-tabs a.card {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-hub-tabs a.card:hover,
.page-body a.card:hover {
  box-shadow: 0 8px 28px rgba(15, 28, 36, 0.1);
  transform: translateY(-2px);
}

/* —— Dashboard —— */
.ghvm-dash {
  max-width: 1280px;
}

.ghvm-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(26, 182, 157, 0.18), transparent 50%),
    radial-gradient(80% 100% at 0% 100%, rgba(238, 74, 98, 0.08), transparent 45%),
    var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  animation: ghvm-dash-in 0.45s ease both;
}
.ghvm-dash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
}
.ghvm-dash-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--ghvm-text);
  letter-spacing: -0.02em;
}
.ghvm-dash-sub {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: var(--ghvm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.ghvm-dash-user {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--ghvm-muted);
}
.ghvm-dash-user strong {
  color: var(--ghvm-text);
  font-weight: 600;
}
.ghvm-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ghvm-dash-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-surface-2);
  color: var(--ghvm-text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.ghvm-dash-cta:hover {
  transform: translateY(-1px);
  border-color: var(--ghvm-primary);
}
.ghvm-dash-cta.primary {
  background: var(--ghvm-primary);
  border-color: var(--ghvm-primary);
  color: #fff !important;
}
.ghvm-dash-cta.primary:hover {
  background: var(--ghvm-primary-dark);
  border-color: var(--ghvm-primary-dark);
}
.ghvm-dash-cta .pill {
  margin-left: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(238, 74, 98, 0.95);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.ghvm-dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ghvm-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  animation: ghvm-dash-in 0.5s ease both;
}
.ghvm-stat:nth-child(2) { animation-delay: 0.05s; }
.ghvm-stat:nth-child(3) { animation-delay: 0.1s; }
.ghvm-stat:nth-child(4) { animation-delay: 0.15s; }
.ghvm-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 28, 36, 0.1);
  border-color: transparent;
}
.ghvm-stat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.ghvm-stat.coral .ghvm-stat-ico { background: rgba(238, 74, 98, 0.12); color: var(--ghvm-accent); }
.ghvm-stat.blue .ghvm-stat-ico { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.ghvm-stat.gold .ghvm-stat-ico { background: rgba(248, 184, 31, 0.16); color: #d97706; }
.ghvm-stat.teal .ghvm-stat-ico { background: rgba(26, 182, 157, 0.14); color: var(--ghvm-primary); }
.ghvm-stat-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ghvm-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
}
.ghvm-stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ghvm-text);
}
.ghvm-stat-hint {
  font-size: 0.78rem;
  color: var(--ghvm-muted);
}

.ghvm-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}
.ghvm-panel {
  margin-bottom: 1.25rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 16px;
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  animation: ghvm-dash-in 0.55s ease both;
}
.ghvm-panel-head {
  margin-bottom: 1rem;
}
.ghvm-panel-head.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.ghvm-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ghvm-text);
}
.ghvm-panel-head p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ghvm-muted);
}
.ghvm-link {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ghvm-primary) !important;
  text-decoration: none !important;
}

.ghvm-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.ghvm-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
  color: var(--ghvm-text) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.ghvm-quick i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(26, 182, 157, 0.12);
  color: var(--ghvm-primary);
  font-size: 1rem;
}
.ghvm-quick:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 182, 157, 0.45);
  background: rgba(26, 182, 157, 0.08);
}

.ghvm-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.ghvm-section-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
}
.ghvm-section-card header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.ghvm-section-card header i {
  color: var(--ghvm-primary);
  font-size: 1.05rem;
}
.ghvm-section-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ghvm-text);
}
.ghvm-section-card a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ghvm-muted) !important;
  text-decoration: none !important;
  border-top: 1px solid transparent;
  transition: color 0.15s, padding-left 0.15s;
}
.ghvm-section-card a:hover {
  color: var(--ghvm-primary) !important;
  padding-left: 0.25rem;
}

.ghvm-inbox-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.ghvm-inbox-split a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.7rem;
  border-radius: 12px;
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
  text-align: center;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}
.ghvm-inbox-split a:hover {
  border-color: var(--ghvm-primary);
  transform: translateY(-1px);
}
.ghvm-inbox-split strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ghvm-text);
  letter-spacing: -0.02em;
}
.ghvm-inbox-split span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}

.ghvm-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ghvm-feed li {
  margin: 0;
}
.ghvm-feed li.empty {
  padding: 1rem 0.25rem;
  text-align: center;
  color: var(--ghvm-muted);
  font-size: 0.85rem;
}
.ghvm-feed a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--ghvm-border);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s;
}
.ghvm-feed li:last-child a {
  border-bottom: 0;
}
.ghvm-feed a:hover {
  background: var(--ghvm-surface-2);
  border-radius: 10px;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.ghvm-feed .avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(238, 74, 98, 0.12);
  color: var(--ghvm-accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.ghvm-feed .avatar.teal {
  background: rgba(26, 182, 157, 0.14);
  color: var(--ghvm-primary);
}
.ghvm-feed .meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ghvm-feed .meta strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ghvm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghvm-feed .meta em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ghvm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghvm-feed .when {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ghvm-muted);
}

@keyframes ghvm-dash-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199.98px) {
  .ghvm-dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ghvm-dash-grid { grid-template-columns: 1fr; }
  .ghvm-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .ghvm-dash-metrics { grid-template-columns: 1fr; }
  .ghvm-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ghvm-section-grid { grid-template-columns: 1fr; }
  .ghvm-dash-hero { padding: 1.2rem; }
}

/* legacy metric helpers kept for other pages */
.ghvm-metric {
  display: block;
  padding: 1.25rem;
  border-radius: var(--ghvm-radius);
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s, box-shadow 0.15s;
  height: 100%;
}
.ghvm-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15, 28, 36, 0.1);
}
.ghvm-metric .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ghvm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ghvm-metric .value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.35rem 0;
  color: var(--ghvm-text);
}
.ghvm-metric .hint {
  font-size: 0.8rem;
  color: var(--ghvm-primary);
  font-weight: 500;
}
.ghvm-metric.accent-coral .value { color: var(--ghvm-accent); }
.ghvm-metric.accent-teal .value { color: var(--ghvm-primary); }
.ghvm-metric.accent-gold .value { color: #d97706; }
.ghvm-metric.accent-blue .value { color: #3b82f6; }

.ghvm-shortcut-grid .btn {
  text-align: left;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--ghvm-muted) !important;
}

/* —— Content hubs (Gallery / Student Corner / Co-curricular) —— */
.ghvm-hub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--ghvm-surface) 0%, var(--ghvm-surface-2) 100%);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  position: relative;
}
.ghvm-hub-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ghvm-primary);
}
.ghvm-hub-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0.75rem 0.15rem 0.85rem;
  border-right: 1px solid var(--ghvm-border);
  min-width: 0;
  flex: 0 0 auto;
}
.ghvm-hub-nav-brand-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
  line-height: 1.2;
}
.ghvm-hub-nav-brand-here {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ghvm-text);
  line-height: 1.25;
  white-space: nowrap;
}
.ghvm-hub-nav-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: var(--ghvm-bg);
  border: 1px solid var(--ghvm-border);
  flex: 1 1 18rem;
  min-width: 0;
}
.ghvm-hub-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ghvm-muted) !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ghvm-hub-nav-link i {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.85;
}
.ghvm-hub-nav-link:hover {
  background: var(--ghvm-surface);
  color: var(--ghvm-text) !important;
  border-color: var(--ghvm-border);
}
.ghvm-hub-nav-link.active {
  background: var(--ghvm-primary);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 182, 157, 0.35);
}
.ghvm-hub-nav-link.active i {
  opacity: 1;
}
.ghvm-hub-nav-hint {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(26, 182, 157, 0.14);
  color: var(--ghvm-primary);
  line-height: 1.3;
}
.ghvm-hub-nav-link.active .ghvm-hub-nav-hint {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
@media (max-width: 767.98px) {
  .ghvm-hub-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem;
  }
  .ghvm-hub-nav::before {
    top: 0;
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    height: 3px;
    border-radius: 0 0 3px 3px;
  }
  .ghvm-hub-nav-brand {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--ghvm-border);
    padding: 0.15rem 0.35rem 0.55rem;
    min-width: 0;
  }
  .ghvm-hub-nav-brand-here {
    white-space: normal;
    text-align: right;
  }
}

.ghvm-hub-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(26, 182, 157, 0.16), transparent 55%),
    var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
}
.ghvm-hub-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
}
.ghvm-hub-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ghvm-text);
}
.ghvm-hub-lead {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ghvm-muted);
}
.ghvm-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  background: var(--ghvm-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
}
.ghvm-hub-cta:hover {
  background: var(--ghvm-primary-dark);
  transform: translateY(-1px);
}

.ghvm-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ghvm-hub-stat {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
}
.ghvm-hub-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ghvm-text);
  letter-spacing: -0.02em;
}
.ghvm-hub-stat span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}

.ghvm-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 1.15rem;
  align-items: start;
}
.ghvm-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ghvm-hub-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-surface-2);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.ghvm-hub-action:hover {
  border-color: rgba(26, 182, 157, 0.45);
  transform: translateY(-1px);
  background: rgba(26, 182, 157, 0.06);
}
.ghvm-hub-action.primary {
  background: rgba(26, 182, 157, 0.1);
  border-color: rgba(26, 182, 157, 0.35);
}
.ghvm-hub-action .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: rgba(26, 182, 157, 0.14);
  color: var(--ghvm-primary);
  flex-shrink: 0;
}
.ghvm-hub-action .copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ghvm-hub-action .copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ghvm-text);
}
.ghvm-hub-action .copy em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ghvm-muted);
  line-height: 1.35;
}
.ghvm-hub-action > .feather,
.ghvm-hub-action > i.feather {
  color: var(--ghvm-muted);
  flex-shrink: 0;
}

.ghvm-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ghvm-hub-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.15rem;
  border-bottom: 1px solid var(--ghvm-border);
  text-decoration: none !important;
  color: inherit !important;
}
.ghvm-hub-list li:last-child a {
  border-bottom: 0;
}
.ghvm-hub-list .name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ghvm-text);
}
.ghvm-hub-list .count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}
.ghvm-hub-list a:hover .name {
  color: var(--ghvm-primary);
}

.ghvm-hub-empty {
  text-align: center;
  padding: 1.25rem 0.5rem;
  color: var(--ghvm-muted);
}
.ghvm-hub-empty p {
  margin-bottom: 0.85rem;
}

.ghvm-hub-help ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ghvm-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.ghvm-hub-help strong {
  color: var(--ghvm-text);
}

@media (max-width: 991.98px) {
  .ghvm-hub-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .ghvm-hub-stats { grid-template-columns: 1fr; }
}

/* Hide legacy Adminty chrome if any remnant loads */
.theme-loader {
  display: none !important;
}

/* —— Login page (cinematic full-bleed) —— */
.ghvm-login-body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Poppins", system-ui, sans-serif;
  color: #fff;
  background: #071016;
  overflow-x: hidden;
  overflow-y: auto;
}
html:has(.ghvm-login-body) {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.ghvm-login-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.ghvm-login-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: ghvm-login-ken 22s ease-in-out infinite alternate;
}
.ghvm-login-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(7, 16, 22, 0.94) 0%, rgba(7, 16, 22, 0.62) 38%, rgba(7, 16, 22, 0.28) 58%, rgba(7, 16, 22, 0.55) 100%),
    radial-gradient(ellipse at 15% 85%, rgba(26, 182, 157, 0.4), transparent 45%),
    radial-gradient(ellipse at 92% 12%, rgba(238, 74, 98, 0.28), transparent 40%);
}
.ghvm-login-glass {
  position: relative;
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  color: #1a2332;
  backdrop-filter: blur(18px);
  animation: ghvm-login-rise 0.85s ease 0.16s both;
}
.ghvm-login-glass::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #1ab69d, #ee4a62);
}
.ghvm-login-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ghvm-login-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  flex-shrink: 0;
  animation: ghvm-login-rise 0.7s ease both;
}
.ghvm-login-crest {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.ghvm-login-crest img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.ghvm-login-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ghvm-login-site {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background 0.15s, border-color 0.15s;
}
.ghvm-login-site:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
.ghvm-login-top .ghvm-icon-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
}

.ghvm-login-compose {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.35rem 0 1rem;
  overflow: visible;
}

.ghvm-login-hero {
  padding-bottom: 0.5rem;
  animation: ghvm-login-rise 0.85s ease 0.08s both;
}
.ghvm-login-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ghvm-login-wordmark {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.75rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: #fff;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.ghvm-login-tagline {
  margin: 0.65rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.ghvm-login-line {
  margin: 0.65rem 0 0;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .ghvm-login-glass {
  background: rgba(16, 28, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eef2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.ghvm-login-glass-head {
  margin-bottom: 1.15rem;
}
.ghvm-login-glass-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: inherit;
}
.ghvm-login-glass-head p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
}
[data-theme="dark"] .ghvm-login-glass-head p {
  color: #94a3b0;
}

.ghvm-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  border: 1px solid transparent;
}
.ghvm-login-alert i { margin-top: 0.08rem; flex-shrink: 0; }
.ghvm-login-alert-danger,
.ghvm-login-alert-warning {
  background: rgba(238, 74, 98, 0.1);
  border-color: rgba(238, 74, 98, 0.28);
  color: #c0364c;
}
[data-theme="dark"] .ghvm-login-alert-danger,
[data-theme="dark"] .ghvm-login-alert-warning {
  color: #ffb3bf;
}
.ghvm-login-alert-success {
  background: rgba(26, 182, 157, 0.12);
  border-color: rgba(26, 182, 157, 0.3);
  color: #0f8f7c;
}

.ghvm-login-field { margin-bottom: 0.8rem; }
.ghvm-login-field label,
.ghvm-login-label-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
[data-theme="dark"] .ghvm-login-field label,
[data-theme="dark"] .ghvm-login-label-row label {
  color: #94a3b0;
}
.ghvm-login-input {
  position: relative;
  display: flex;
  align-items: center;
}
.ghvm-login-input > i {
  position: absolute;
  left: 0.85rem;
  color: #94a3b0;
  font-size: 1rem;
  pointer-events: none;
}
.ghvm-login-input input {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.7rem 0 2.5rem;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  background: #f4f7f8;
  color: #1a2332;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
[data-theme="dark"] .ghvm-login-input input {
  background: #14202a;
  border-color: #2a3b48;
  color: #e8eef2;
}
.ghvm-login-input input::placeholder { color: #94a3b0; opacity: 0.9; }
.ghvm-login-input input:hover { border-color: rgba(26, 182, 157, 0.5); }
.ghvm-login-input input:focus {
  outline: none;
  background: #fff;
  border-color: #1ab69d;
  box-shadow: 0 0 0 3px rgba(26, 182, 157, 0.2);
}
[data-theme="dark"] .ghvm-login-input input:focus {
  background: #1a2834;
}
.ghvm-login-eye {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ghvm-login-eye:hover {
  background: rgba(26, 182, 157, 0.1);
  color: #1ab69d;
}

.ghvm-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.85rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1ab69d 0%, #159a85 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(26, 182, 157, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.ghvm-login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(26, 182, 157, 0.42);
}
.ghvm-login-submit:active { transform: none; }
.ghvm-login-submit:disabled,
.ghvm-login-submit.is-loading {
  opacity: 0.78;
  cursor: wait;
  transform: none;
}

@keyframes ghvm-login-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1.2%, 0); }
}
@keyframes ghvm-login-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Fit login + error alert into shorter laptop viewports without a page scrollbar */
@media (min-width: 900px) and (max-height: 820px) {
  .ghvm-login-top { padding: 0.55rem 1.15rem; }
  .ghvm-login-crest img { width: 34px; height: 34px; }
  .ghvm-login-compose { padding: 0.15rem 0 0.65rem; gap: 1.25rem; }
  .ghvm-login-wordmark { font-size: clamp(2.8rem, 7vw, 4.8rem); }
  .ghvm-login-eyebrow { margin-bottom: 0.45rem; }
  .ghvm-login-tagline { margin-top: 0.4rem; }
  .ghvm-login-line { margin-top: 0.4rem; font-size: 0.85rem; }
  .ghvm-login-glass { padding: 1rem 1.1rem 1.05rem; border-radius: 16px; }
  .ghvm-login-glass-head { margin-bottom: 0.55rem; }
  .ghvm-login-glass-head h2 { font-size: 1.25rem; }
  .ghvm-login-alert { margin-bottom: 0.65rem; padding: 0.55rem 0.7rem; font-size: 0.82rem; }
  .ghvm-login-field { margin-bottom: 0.65rem; }
  .ghvm-login-input input { height: 2.55rem; }
  .ghvm-login-submit { height: 2.65rem; }
}

@media (min-width: 900px) and (max-height: 700px) {
  .ghvm-login-line { display: none; }
  .ghvm-login-tagline { display: none; }
  .ghvm-login-wordmark { font-size: clamp(2.4rem, 6vw, 3.8rem); }
}

@media (max-width: 899.98px) {
  .ghvm-login-body,
  html:has(.ghvm-login-body) {
    overflow: auto;
  }
  .ghvm-login-stage {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }
  .ghvm-login-compose {
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(420px, calc(100% - 2rem));
    padding: 0.35rem 0 1.5rem;
    gap: 1.15rem;
    overflow: visible;
  }
  .ghvm-login-hero {
    text-align: left;
    padding-bottom: 0;
  }
  .ghvm-login-wordmark {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }
  .ghvm-login-line {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ghvm-login-photo,
  .ghvm-login-top,
  .ghvm-login-hero,
  .ghvm-login-glass {
    animation: none !important;
  }
}

/* Legacy aliases */
.ghvm-login-page { min-height: 100vh; }
.ghvm-login-card { display: none; }
.ghvm-login-theme { display: none; }

.dropdown-menu {
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  border-radius: 10px;
  box-shadow: var(--ghvm-shadow);
}
.dropdown-item {
  color: var(--ghvm-text);
  font-size: 0.875rem;
}
.dropdown-item:hover {
  background: var(--ghvm-surface-2);
  color: var(--ghvm-primary);
}

.modal-content {
  background: var(--ghvm-surface);
  color: var(--ghvm-text);
  border: 1px solid var(--ghvm-border);
}

/* —— Shared CRUD page shell —— */
.ghvm-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 2rem;
  animation: ghvm-dash-in 0.45s ease both;
}
.ghvm-page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(26, 182, 157, 0.1) 0%, rgba(238, 74, 98, 0.06) 55%, transparent 100%),
    var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
}
.ghvm-page-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  min-width: 0;
}
.ghvm-page-hero-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 182, 157, 0.14);
  color: var(--ghvm-primary);
  font-size: 1.2rem;
}
.ghvm-page-hero-copy { min-width: 0; }
.ghvm-page-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.ghvm-page-hero h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ghvm-text);
  line-height: 1.2;
}
.ghvm-page-hero-desc {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ghvm-muted);
}
.ghvm-page-badge {
  display: inline-flex;
  align-items: center;
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(238, 74, 98, 0.12);
  color: var(--ghvm-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ghvm-page-hero-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ghvm-page-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.ghvm-page .ghvm-panel {
  margin-bottom: 0;
}
.ghvm-panel-body {
  padding-top: 0.15rem;
}
.ghvm-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ghvm-border);
}
.ghvm-panel-foot .btn-ghost,
.ghvm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-surface-2);
  color: var(--ghvm-text) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s;
}
.ghvm-btn-ghost:hover {
  border-color: var(--ghvm-primary);
  background: rgba(26, 182, 157, 0.08);
  color: var(--ghvm-primary) !important;
}
.ghvm-page .ghvm-panel-foot .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.4rem;
  padding: 0 1.1rem;
  border-radius: 10px;
  font-weight: 600;
}

.ghvm-page .ghvm-field {
  margin-bottom: 0.95rem;
}
.ghvm-page .ghvm-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}
.ghvm-page .ghvm-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.ghvm-page .ghvm-field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.ghvm-page .ghvm-field-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.ghvm-page .form-control,
.ghvm-page select.form-control,
.ghvm-page textarea.form-control {
  border-radius: 10px;
  border-color: var(--ghvm-border);
  background: var(--ghvm-input-bg);
  min-height: 2.55rem;
}
.ghvm-page textarea.form-control {
  min-height: 6rem;
}

.ghvm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.ghvm-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.ghvm-toolbar p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--ghvm-muted);
}
.ghvm-count-pill {
  display: inline-flex;
  align-items: center;
  height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
  color: var(--ghvm-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.ghvm-table-wrap {
  border-radius: 12px;
  border: 1px solid var(--ghvm-border);
  overflow: hidden;
  background: var(--ghvm-surface);
}
.ghvm-page .ghvm-table-wrap .table {
  margin: 0;
}
.ghvm-page .ghvm-table-wrap .table thead th {
  background: var(--ghvm-surface-2);
  border-bottom-color: var(--ghvm-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
  white-space: nowrap;
}
.ghvm-page .ghvm-table-wrap .table td {
  vertical-align: middle;
}
.ghvm-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-surface-2);
}
.ghvm-thumb-lg {
  width: 96px;
  height: 64px;
}
.ghvm-muted-cell {
  color: var(--ghvm-muted);
  font-size: 0.82rem;
}
.ghvm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--ghvm-muted);
}
.ghvm-empty i {
  font-size: 1.75rem;
  color: var(--ghvm-primary);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.ghvm-empty strong {
  color: var(--ghvm-text);
  font-size: 0.95rem;
}
.ghvm-empty span {
  font-size: 0.82rem;
  max-width: 22rem;
}
.ghvm-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ghvm-page .dataTables_wrapper {
  padding: 0.85rem 0.85rem 0.5rem;
}
.ghvm-page .dataTables_wrapper .dataTables_filter input,
.ghvm-page .dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-input-bg);
  color: var(--ghvm-text);
}

@media (max-width: 991.98px) {
  .ghvm-page .ghvm-field-row,
  .ghvm-page .ghvm-field-row-3,
  .ghvm-page .ghvm-field-row-4 {
    grid-template-columns: 1fr;
  }
  .ghvm-page-hero {
    flex-direction: column;
  }
}

/* —— Profile —— */
.ghvm-profile {
  max-width: 980px;
}
.ghvm-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(26, 182, 157, 0.14), transparent 55%),
    linear-gradient(225deg, rgba(238, 74, 98, 0.08), transparent 40%),
    var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
  box-shadow: var(--ghvm-shadow);
  animation: ghvm-dash-in 0.45s ease both;
}
.ghvm-profile-avatar-wrap {
  flex-shrink: 0;
}
.ghvm-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ghvm-surface);
  box-shadow: 0 0 0 2px rgba(26, 182, 157, 0.45);
  display: block;
}
.ghvm-profile-avatar[hidden],
.ghvm-profile-avatar.is-empty,
.ghvm-profile-avatar-fallback[hidden],
.ghvm-profile-avatar-fallback.is-empty,
.ghvm-upload-preview img[hidden],
.ghvm-upload-preview img.is-empty,
.ghvm-upload-placeholder[hidden],
.ghvm-upload-placeholder.is-empty {
  display: none !important;
}
.ghvm-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--ghvm-primary), #0f8f7c);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.ghvm-profile-hero-copy h1 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ghvm-text);
}
.ghvm-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ghvm-muted);
}
.ghvm-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ghvm-profile-meta i {
  font-size: 0.95rem;
  color: var(--ghvm-primary);
}
.ghvm-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 1.15rem;
  align-items: start;
}
.ghvm-profile-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.ghvm-profile .ghvm-panel {
  margin-bottom: 0;
}
.ghvm-field {
  margin-bottom: 1rem;
}
.ghvm-field:last-child {
  margin-bottom: 0;
}
.ghvm-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}
.ghvm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.ghvm-upload-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(26, 182, 157, 0.45);
  background: var(--ghvm-surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ghvm-upload-card:hover {
  border-color: var(--ghvm-primary);
  background: rgba(26, 182, 157, 0.08);
}
.ghvm-upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.ghvm-upload-preview {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ghvm-surface);
  border: 1px solid var(--ghvm-border);
}
.ghvm-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ghvm-upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ghvm-primary);
  font-size: 1.25rem;
}
.ghvm-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ghvm-upload-copy strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ghvm-text);
}
.ghvm-upload-copy em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ghvm-muted);
}
.ghvm-upload-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ghvm-muted);
  line-height: 1.35;
}
.ghvm-upload-hint i {
  color: var(--ghvm-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ghvm-profile-actions .btn-primary {
  min-width: 140px;
}
@media (max-width: 767.98px) {
  .ghvm-profile-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .ghvm-profile-grid,
  .ghvm-field-row {
    grid-template-columns: 1fr;
  }
}

/* —— Inbox message list (admission / grievance / contact) —— */
.ghvm-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ghvm-border);
  background: var(--ghvm-surface-2);
}
.ghvm-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ghvm-text);
  cursor: pointer;
  user-select: none;
}
.ghvm-bulk-select-all input,
.ghvm-msg-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--ghvm-primary);
  cursor: pointer;
}
.ghvm-bulk-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}
.ghvm-bulk-bar .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ghvm-msg-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
.ghvm-msg-card.is-selected {
  border-color: rgba(26, 182, 157, 0.55);
  background: rgba(26, 182, 157, 0.06);
}

.ghvm-msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ghvm-msg-card {
  border: 1px solid var(--ghvm-border);
  border-radius: 12px;
  background: var(--ghvm-surface);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s;
}
.ghvm-msg-card:hover {
  border-color: var(--ghvm-primary);
}
.ghvm-msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ghvm-msg-who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.ghvm-msg-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 182, 157, 0.14);
  color: var(--ghvm-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.ghvm-msg-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ghvm-text);
  word-break: break-word;
}
.ghvm-msg-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--ghvm-muted);
}
.ghvm-msg-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ghvm-msg-contact i {
  font-size: 0.8rem;
}
.ghvm-msg-date {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ghvm-muted);
  white-space: nowrap;
}
.ghvm-msg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
}
.ghvm-msg-tag {
  display: inline-flex;
  align-items: center;
  height: 1.55rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--ghvm-surface-2);
  border: 1px solid var(--ghvm-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ghvm-muted);
}
.ghvm-msg-body {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--ghvm-surface-2);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ghvm-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.ghvm-msg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
@media (max-width: 575.98px) {
  .ghvm-msg-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .ghvm-msg-foot {
    justify-content: flex-start;
  }
}

/* —— Read-only detail grid (e.g. admission detail view) —— */
.ghvm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
}
.ghvm-detail-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ghvm-border);
}
.ghvm-detail-item dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ghvm-muted);
}
.ghvm-detail-item dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ghvm-text);
  word-break: break-word;
}
@media (max-width: 767.98px) {
  .ghvm-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Image Upload Preview ───────────────────────────────────────────── */
.ghvm-upload-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--ghvm-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ghvm-upload-hint .feather {
  font-size: 12px;
}
.ghvm-img-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 10px 14px;
  background: var(--ghvm-surface-2);
  border: 1.5px solid var(--ghvm-border);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
  transition: border-color 0.2s;
}
.ghvm-img-preview-wrap.ghvm-img-preview-new {
  border-color: var(--ghvm-primary);
  background: rgba(26, 182, 157, 0.06);
}
.ghvm-img-preview-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--ghvm-border);
  background: var(--ghvm-bg);
  display: block;
  flex-shrink: 0;
}
.ghvm-img-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ghvm-muted);
  line-height: 1.4;
}
.ghvm-img-preview-wrap.ghvm-img-preview-new .ghvm-img-preview-label {
  color: var(--ghvm-primary);
}
[data-theme="dark"] .ghvm-img-preview-wrap {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .ghvm-img-preview-thumb {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
