:root {
  --gmi-ink: #4f4a52;
  --gmi-charcoal: #67616b;
  --gmi-carbon: #817b86;
  --gmi-gold: #d4af37;
  --gmi-gold-deep: #b79224;
  --gmi-cream: #f6f2e6;
  --gmi-surface: #ffffff;
  --gmi-surface-soft: #faf7ef;
  --gmi-border: rgba(103, 97, 107, 0.14);
  --gmi-border-strong: rgba(103, 97, 107, 0.22);
  --gmi-text: #3f3a43;
  --gmi-text-soft: #7c7580;
  --gmi-success: #177245;
  --gmi-danger: #b23a33;
  --gmi-info: #206c92;
  --gmi-shadow-lg: 0 24px 60px rgba(103, 97, 107, 0.16);
  --gmi-shadow-md: 0 14px 32px rgba(103, 97, 107, 0.11);
  --gmi-shadow-sm: 0 8px 18px rgba(103, 97, 107, 0.08);
  --gmi-radius-xl: 28px;
  --gmi-radius-lg: 20px;
  --gmi-radius-md: 14px;
  --gmi-radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 97, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfbf7 0%, #f3eee2 100%);
  color: var(--gmi-text);
  min-height: 100vh;
}

.app-body.guest-user {
  background: #f2eee4;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand-text,
.section-kicker,
.hero-display,
.auth-title,
.panel-title {
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.app-body {
  min-height: 100vh;
}

.app-shell {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(18px);
  background: rgba(255, 252, 246, 0.84);
  border-bottom: 1px solid rgba(103, 97, 107, 0.12);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), transparent 32%, rgba(103, 97, 107, 0.1));
  pointer-events: none;
}

.topbar .container-fluid {
  position: relative;
  z-index: 1;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 0.9rem;
}

.brand-logo {
  width: auto;
  height: 32px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.navbar-brand-text {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-brand-subtext {
  font-size: 0.62rem;
  color: var(--gmi-text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .nav-link {
  color: var(--gmi-text);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus {
  background: rgba(244, 191, 26, 0.14);
  color: var(--gmi-ink);
  transform: translateY(-1px);
}

.topbar .dropdown-menu {
  border: 1px solid rgba(103, 97, 107, 0.12);
  border-radius: 16px;
  box-shadow: var(--gmi-shadow-sm);
  padding: 0.55rem;
}

.topbar .dropdown-item {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
}

.topbar .dropdown-item:hover {
  background: rgba(244, 191, 26, 0.12);
}

.notification-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.notification-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--gmi-gold);
  color: var(--gmi-ink);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.notification-menu {
  width: min(380px, 92vw);
  padding: 0.4rem;
}

.notification-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.55rem 0.65rem;
}

.notification-mark-read {
  color: var(--gmi-forest);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.notification-menu-list {
  display: grid;
  gap: 0.35rem;
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--gmi-text);
  background: rgba(103, 97, 107, 0.05);
}

.notification-item:hover,
.notification-item:focus {
  background: rgba(244, 191, 26, 0.12);
  color: var(--gmi-ink);
}

.notification-item.unread {
  border-left: 3px solid var(--gmi-gold);
  background: rgba(244, 191, 26, 0.1);
}

.notification-item-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.notification-item-copy {
  font-size: 0.78rem;
  color: var(--gmi-text-soft);
}

.notification-item-time {
  font-size: 0.72rem;
  color: rgba(79, 74, 82, 0.62);
}

.notification-empty {
  padding: 0.9rem 0.8rem;
  border-radius: 14px;
  color: var(--gmi-text-soft);
  background: rgba(103, 97, 107, 0.05);
  font-size: 0.84rem;
}

.app-layout {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem;
}

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  height: calc(100vh - 104px);
  position: sticky;
  top: 92px;
  align-self: flex-start;
  padding: 0.9rem;
  border-radius: 22px;
  background: #1f1c22;
  color: #fff;
  box-shadow: var(--gmi-shadow-lg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
}

.sidebar::after {
  content: none;
}

.sidebar-profile {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gmi-gold), #ffe089);
  color: var(--gmi-ink);
  box-shadow: 0 10px 24px rgba(244, 191, 26, 0.28);
}

.sidebar-username {
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-role {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
}

.sidebar-section-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.52);
  margin: 1.15rem 0 0.55rem;
  padding: 0 0.35rem;
}

.sidebar-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 13px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.sidebar .nav-link .bi {
  width: 1.1rem;
  color: rgba(244, 191, 26, 0.84);
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(4px);
}

.sidebar .nav-link.active {
  color: var(--gmi-ink);
  background: linear-gradient(135deg, #ffe08c, var(--gmi-gold));
  box-shadow: 0 10px 24px rgba(244, 191, 26, 0.2);
}

.sidebar .nav-link.active .bi {
  color: var(--gmi-ink);
}

.sidebar .nav-link-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: space-between;
  text-align: left;
}

.sidebar .nav-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-caret {
  width: auto;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar .nav-link-toggle[aria-expanded="true"] .sidebar-caret,
.sidebar .nav-link-toggle.active .sidebar-caret {
  transform: rotate(180deg);
  color: currentColor;
}

.sidebar-submenu-wrap {
  padding: 0.25rem 0 0.1rem;
}

.sidebar-submenu {
  display: grid;
  gap: 0.35rem;
  margin-left: 1rem;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-submenu-link .bi {
  color: rgba(244, 191, 26, 0.78);
}

.sidebar-submenu-text {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-count-badge {
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.55rem;
  text-align: center;
}

.sidebar-submenu-link:hover,
.sidebar-submenu-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.sidebar-submenu-link.active {
  color: var(--gmi-ink);
  background: linear-gradient(135deg, #ffe08c, var(--gmi-gold));
  box-shadow: 0 10px 24px rgba(244, 191, 26, 0.18);
}

.sidebar-submenu-link.active .bi {
  color: var(--gmi-ink);
}

.sidebar-submenu-link.active .sidebar-count-badge {
  background: rgba(30, 26, 35, 0.14);
  color: var(--gmi-ink);
}

.sidebar-bottom-spacer {
  height: 0.75rem;
}

.main-content-wrap {
  flex: 1;
  min-width: 0;
}

.main-content {
  min-height: calc(100vh - 106px);
}

.content-surface {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 32px;
  box-shadow: var(--gmi-shadow-md);
  padding: 2rem;
  overflow: hidden;
}

.content-surface::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gmi-gold) 0%, #f7d66b 40%, rgba(33, 31, 36, 0.65) 100%);
}

.messages .alert {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--gmi-shadow-sm);
  padding: 1rem 1.15rem;
}

.alert-success {
  background: rgba(23, 114, 69, 0.12);
  color: #0f5a34;
}

.alert-warning,
.alert-danger {
  background: rgba(178, 58, 51, 0.1);
  color: #7e261f;
}

.card {
  border: 1px solid var(--gmi-border);
  border-radius: 24px;
  background: var(--gmi-surface);
  box-shadow: var(--gmi-shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  border: 0;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, rgba(33, 31, 36, 0.98), rgba(54, 48, 60, 0.96));
  color: #fff;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header p {
  margin-bottom: 0;
}

.card-body,
.card-footer {
  position: relative;
  z-index: 1;
}

.card-footer {
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, rgba(251, 248, 240, 0.92), rgba(255, 255, 255, 0.96));
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(244, 191, 26, 0.06);
  --bs-table-hover-bg: rgba(244, 191, 26, 0.11);
  margin-bottom: 0;
}

.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gmi-text-soft);
  background: rgba(244, 191, 26, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.table td,
.table th {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-color: rgba(17, 17, 17, 0.06);
}

.table a {
  color: #0f0f10;
  font-weight: 700;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"] {
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.95);
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  color: var(--gmi-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: rgba(244, 191, 26, 0.92);
  box-shadow: 0 0 0 0.22rem rgba(244, 191, 26, 0.16);
  outline: none;
}

.form-label {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--gmi-charcoal);
  margin-bottom: 0.45rem;
}

.form-text,
.text-muted {
  color: var(--gmi-text-soft) !important;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.2rem;
  border-width: 1px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(103, 97, 107, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gmi-charcoal), var(--gmi-carbon));
  border-color: var(--gmi-charcoal);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--gmi-ink), var(--gmi-charcoal));
  border-color: var(--gmi-ink);
  color: #fff;
}

.btn-warning,
.btn-gold {
  background: linear-gradient(135deg, #ffde74, var(--gmi-gold));
  border-color: rgba(216, 161, 10, 0.92);
  color: var(--gmi-ink);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-gold:hover,
.btn-gold:focus {
  background: linear-gradient(135deg, #ffe99d, var(--gmi-gold-deep));
  color: var(--gmi-ink);
}

.btn-secondary {
  background: rgba(103, 97, 107, 0.08);
  border-color: rgba(103, 97, 107, 0.12);
  color: var(--gmi-charcoal);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(103, 97, 107, 0.14);
  border-color: rgba(103, 97, 107, 0.18);
  color: var(--gmi-charcoal);
}

.btn-info {
  background: rgba(32, 108, 146, 0.11);
  border-color: rgba(32, 108, 146, 0.18);
  color: var(--gmi-info);
}

.btn-info:hover,
.btn-info:focus {
  background: rgba(32, 108, 146, 0.18);
  border-color: rgba(32, 108, 146, 0.22);
  color: #144964;
}

.btn-danger {
  background: rgba(178, 58, 51, 0.1);
  border-color: rgba(178, 58, 51, 0.18);
  color: var(--gmi-danger);
}

.btn-danger:hover,
.btn-danger:focus {
  background: rgba(178, 58, 51, 0.18);
  border-color: rgba(178, 58, 51, 0.22);
  color: #7a271f;
}

.btn-outline-primary {
  border-color: rgba(103, 97, 107, 0.2);
  color: var(--gmi-charcoal);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--gmi-charcoal);
  border-color: var(--gmi-charcoal);
  color: #fff;
}

.btn-outline-secondary {
  background: #fff;
  border-color: rgba(103, 97, 107, 0.16);
  color: var(--gmi-text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(103, 97, 107, 0.08);
  border-color: rgba(103, 97, 107, 0.24);
  color: var(--gmi-charcoal);
}

.btn-outline-dark {
  background: #fff;
  border-color: rgba(103, 97, 107, 0.24);
  color: var(--gmi-charcoal);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--gmi-charcoal);
  border-color: var(--gmi-charcoal);
  color: #fff;
}

.btn-outline-danger {
  background: #fff;
  border-color: rgba(178, 58, 51, 0.28);
  color: var(--gmi-danger);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: rgba(178, 58, 51, 0.1);
  border-color: rgba(178, 58, 51, 0.35);
  color: #7a271f;
}

.btn-sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
}

.badge {
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bg-success {
  background-color: rgba(23, 114, 69, 0.92) !important;
}

.bg-secondary {
  background-color: rgba(33, 31, 36, 0.88) !important;
}

.bg-light {
  background-color: rgba(247, 244, 235, 0.9) !important;
}

.page-link {
  border: 1px solid rgba(17, 17, 17, 0.07);
  color: var(--gmi-charcoal);
  border-radius: 999px !important;
  margin: 0 0.15rem;
  min-width: 42px;
  text-align: center;
}

.page-item.active .page-link {
  background: var(--gmi-charcoal);
  border-color: var(--gmi-charcoal);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gmi-text-soft);
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title-row h1,
.page-title-row h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.page-subtitle {
  color: var(--gmi-text-soft);
  max-width: 680px;
}

.hero-panel,
.auth-panel,
.feature-panel,
.stat-panel {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.footer {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(244, 191, 26, 0.3), transparent 24%),
    linear-gradient(135deg, #171519 0%, #262228 100%);
  color: #fff;
}

.footer-wave {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left top, rgba(244, 191, 26, 0.2), transparent 25%),
    radial-gradient(circle at right 20%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.footer-content {
  position: relative;
  padding: 3rem 0 2rem;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 0.65rem 0.85rem;
}

.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7d66b;
  margin-bottom: 0.95rem;
}

.footer-links li,
.footer-contact li {
  display: flex;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.55rem;
}

.footer-links a:hover {
  color: #f7d66b;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.landing-hero {
  background: #1f2430;
  border-radius: 34px;
  color: #fff;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  position: relative;
  box-shadow: var(--gmi-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
}

.landing-hero::after {
  content: none;
}

.landing-colorway-a {
  background: #1f2430;
}

.landing-colorway-b {
  background: #f8f5ed;
  border: 1px solid #e2dccf;
}

.landing-kicker {
  color: #f0d883;
}

.hero-display {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.94;
  margin: 0.5rem 0 1.2rem;
  max-width: 10ch;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metric {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #2d3544;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-brand-mark {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 18px 36px rgba(19, 21, 27, 0.24);
}

.metric-grid,
.feature-grid,
.module-grid {
  display: grid;
  gap: 1.2rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card,
.feature-card,
.module-card,
.metric-card {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 24px;
  box-shadow: var(--gmi-shadow-sm);
  padding: 1.4rem;
}

.feature-icon,
.module-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f4c93b;
  color: var(--gmi-ink);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.landing-lane-wrap {
  background: #fff;
  border: 1px solid #e9e0d1;
  border-radius: 24px;
  padding: 1.1rem;
  box-shadow: var(--gmi-shadow-sm);
}

.landing-lane-title {
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #73676f;
  margin-bottom: 0.8rem;
}

.landing-lane-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.landing-lane-chip {
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(31, 36, 48, 0.12);
}

.lane-chip-invoice {
  background: #e9effc;
  color: #1d376e;
}

.lane-chip-payment {
  background: #fff2db;
  color: #7c4b07;
}

.lane-chip-cargo {
  background: #e7f5e9;
  color: #185c36;
}

.lane-chip-transit {
  background: #efe9fb;
  color: #4f2a83;
}

.landing-lane-arrow {
  color: #8f8590;
  text-align: center;
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}

.auth-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--gmi-shadow-lg);
}

.auth-showcase {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 140, 0.46), transparent 30%),
    linear-gradient(145deg, #18161b 0%, #2a242d 48%, #5b4510 100%);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  background: rgba(244, 191, 26, 0.22);
  border-radius: 50%;
  filter: blur(12px);
}

.auth-logo-card {
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
}

.auth-logo-card img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.auth-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #f7d66b;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  margin: 0.7rem 0 1rem;
  max-width: 8ch;
}

.auth-copy {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.8);
}

.auth-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.auth-point {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.auth-point i {
  color: #f7d66b;
}

.auth-form-panel {
  padding: clamp(2rem, 3vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(244, 191, 26, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 236, 0.94));
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(244, 191, 26, 0.14);
  color: var(--gmi-charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.auth-panel-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.auth-panel-copy {
  color: var(--gmi-text-soft);
  margin-bottom: 1.5rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.input-shell {
  position: relative;
}

.input-shell .bi {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gmi-text-soft);
}

.input-shell .form-control {
  padding-left: 2.75rem;
}

.dashboard-board {
  display: grid;
  gap: 1.5rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 1.8rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 140, 0.36), transparent 24%),
    linear-gradient(130deg, #171519 0%, #28242b 48%, #4a3910 100%);
  color: #fff;
  box-shadow: var(--gmi-shadow-lg);
}

.dashboard-hero .hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-kpi-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-kpi-card .value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.hero-kpi-card .label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--gmi-shadow-sm);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(244, 191, 26, 0.14);
  color: var(--gmi-charcoal);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card .stat-label {
  margin-top: 0.45rem;
  color: var(--gmi-text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.panel-title {
  font-size: 1.15rem;
  margin: 0;
}

.surface-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  padding: 1.35rem;
  box-shadow: var(--gmi-shadow-sm);
}

.workspace-stack {
  display: grid;
  gap: 1.5rem;
}

.workspace-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(244, 191, 26, 0.2), transparent 28%),
    linear-gradient(135deg, #18161b 0%, #27232c 100%);
  color: #fff;
  box-shadow: var(--gmi-shadow-lg);
}

.workspace-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(244, 191, 26, 0.16);
  filter: blur(8px);
}

.workspace-hero > * {
  position: relative;
  z-index: 1;
}

.workspace-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: end;
}

.workspace-hero-copy h1,
.workspace-hero-copy h2 {
  margin: 0.35rem 0 0.65rem;
  color: #fff;
}

.workspace-hero-copy p {
  margin: 0;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.74);
}

.workspace-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-content: start;
}

.workspace-badge {
  min-width: 124px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.workspace-badge strong {
  display: block;
  font-size: 1.35rem;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
}

.workspace-badge span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.toolbar-card {
  padding: 1.15rem 1.2rem;
}

.toolbar-form .input-group,
.toolbar-form .form-control,
.toolbar-form .form-select {
  min-height: 50px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.client-toolbar-actions .btn {
  min-width: 138px;
}

.client-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5rem;
  white-space: nowrap;
}

.client-action-btn {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.client-action-btn i {
  font-size: 0.95rem;
}

.client-form-page {
  gap: 1rem;
}

.client-form-hero {
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  box-shadow: var(--gmi-shadow-sm);
}

.client-form-hero::after {
  width: 112px;
  height: 112px;
  right: -28px;
  bottom: -34px;
  opacity: 0.45;
}

.client-form-hero .workspace-hero-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.client-form-hero .workspace-hero-copy h1 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.65rem;
  line-height: 1.15;
}

.client-form-hero .workspace-hero-copy p {
  max-width: 58ch;
  font-size: 0.92rem;
  line-height: 1.45;
}

.client-form-hero .eyebrow-label {
  font-size: 0.68rem;
}

.client-form-hero .workspace-badge {
  min-width: 96px;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
}

.client-form-hero .workspace-badge strong {
  font-size: 1rem;
}

.client-help-panel {
  padding: 1rem;
  border-radius: 16px;
  box-shadow: var(--gmi-shadow-sm);
}

.client-help-panel .panel-title {
  font-size: 1rem;
}

.client-help-panel .workspace-stack {
  gap: 0.75rem;
}

.client-help-panel .detail-item {
  padding: 0.85rem;
  border-radius: 12px;
}

.client-help-panel .detail-item .value {
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .client-toolbar-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 767.98px) {
  .client-toolbar-actions .btn {
    width: 100%;
  }
}

.workspace-table-card .card-header,
.workspace-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-table-card .table,
.workspace-card .table {
  margin-bottom: 0;
}

.workspace-table-card .table thead th,
.workspace-card .table thead th {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-table-card .table tbody td,
.workspace-card .table tbody td {
  vertical-align: middle;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mini-stat {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--gmi-shadow-sm);
}

.mini-stat .value {
  display: block;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gmi-ink);
}

.mini-stat .label {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gmi-text-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--gmi-surface-soft);
  border: 1px solid rgba(17, 17, 17, 0.07);
}

.detail-item-wide {
  grid-column: 1 / -1;
}

.detail-item .label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gmi-text-soft);
}

.detail-item .value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gmi-ink);
}

.detail-sidebar-list {
  display: grid;
  gap: 0.8rem;
}

.detail-sidebar-link {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: var(--gmi-surface-soft);
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.detail-sidebar-link:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 191, 26, 0.45);
  box-shadow: var(--gmi-shadow-sm);
}

.metric-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(244, 191, 26, 0.14);
  color: var(--gmi-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.chart-panel {
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 235, 0.94));
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.export-grid .btn {
  justify-content: center;
}

@media (max-width: 1199px) {
  .app-layout {
    gap: 1rem;
    padding: 1rem;
  }

  .sidebar {
    width: 236px;
    flex-basis: 236px;
  }

  .metric-grid,
  .dashboard-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-hero-grid,
  .detail-grid,
  .stats-strip,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .landing-lane-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .landing-lane-arrow {
    display: none;
  }

  .workspace-badge-row {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .app-layout {
    display: block;
    padding: 1rem;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    min-height: auto;
    margin-bottom: 1rem;
  }

  .content-surface {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .auth-wrap,
  .dashboard-hero,
  .dashboard-grid-2,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .metric-grid,
  .dashboard-grid-4,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .topbar .container-fluid {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .brand-logo {
    height: 42px;
  }

  .navbar-brand-subtext {
    display: none;
  }

  .content-surface {
    padding: 1rem;
    border-radius: 20px;
  }

  .hero-display,
  .auth-title {
    max-width: none;
  }

  .hero-metrics,
  .metric-grid,
  .feature-grid,
  .module-grid,
  .dashboard-grid-4,
  .dashboard-grid-2,
  .dashboard-hero .hero-kpis {
    grid-template-columns: 1fr;
  }

  .page-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-meta {
    flex-direction: column;
  }
}
