:root {
  --agent-bg: #030302;
  --agent-panel: #111008;
  --agent-panel-2: #181308;
  --agent-line: rgba(216, 170, 78, .36);
  --agent-gold: #f7d06d;
  --agent-gold-2: #a87924;
  --agent-text: #fff6d9;
  --agent-muted: #b7ad91;
  --agent-danger: #ff4d4f;
}

html {
  background: var(--agent-bg);
}

body.agent-mobile-shell {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -8%, rgba(231, 179, 70, .18), transparent 34%),
    linear-gradient(90deg, #000 0, #070604 48%, #000 100%);
  color: var(--agent-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.agent-mobile-shell #wrapper {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(28, 22, 8, .92) 0, rgba(5, 5, 3, .98) 34%, #000 100%);
  border-left: 1px solid rgba(209, 157, 50, .25);
  border-right: 1px solid rgba(209, 157, 50, .25);
  box-shadow: 0 0 70px rgba(0, 0, 0, .9);
}

.agent-mobile-shell #content-wrapper,
.agent-mobile-shell #content {
  width: 100%;
  min-height: 100svh;
  background: transparent !important;
}

.agent-mobile-shell .agent-container {
  padding: 14px 12px 104px;
}

.agent-mobile-shell .sticky-footer,
.agent-mobile-shell .scroll-to-top,
.agent-mobile-shell .topbar-divider {
  display: none !important;
}

.agent-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin: 0 !important;
  padding: 9px 12px;
  background: rgba(7, 6, 3, .94) !important;
  border-bottom: 1px solid var(--agent-line);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36);
  backdrop-filter: blur(12px);
}

.agent-topbar-copy {
  min-width: 0;
  flex: 1;
}

.agent-topbar-copy strong {
  display: block;
  color: var(--agent-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.agent-topbar-copy span {
  display: block;
  margin-top: 3px;
  color: var(--agent-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-icon-btn,
.agent-bottom-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--agent-gold);
  border: 1px solid rgba(247, 208, 109, .38);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(58, 45, 16, .94), rgba(11, 10, 6, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .34);
}

.agent-icon-btn:hover,
.agent-icon-btn:focus {
  color: #fff0b5;
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(247, 208, 109, .25), 0 10px 24px rgba(0, 0, 0, .34);
}

.agent-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  pointer-events: none;
  background: rgba(0, 0, 0, .64);
  opacity: 0;
  transition: opacity .18s ease;
}

.agent-sidebar {
  position: fixed !important;
  left: 50%;
  bottom: 84px;
  z-index: 1100;
  width: min(calc(100vw - 24px), 456px) !important;
  max-height: min(72svh, 620px);
  padding: 14px;
  overflow: auto;
  color: var(--agent-text);
  border: 1px solid rgba(230, 183, 84, .44);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0, rgba(247, 208, 109, .18), transparent 34%),
    linear-gradient(180deg, #191408, #070604 58%, #030302);
  box-shadow: 0 -18px 70px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translate(-50%, calc(100% + 120px));
  transition: transform .22s ease;
  scrollbar-color: rgba(247, 208, 109, .58) rgba(0, 0, 0, .22);
}

.agent-sidebar::-webkit-scrollbar {
  width: 6px;
}

.agent-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .22);
  border-radius: 999px;
}

.agent-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7d06d, #8f5f17);
  border-radius: 999px;
}

.agent-menu-open {
  overflow: hidden;
}

.agent-menu-open .agent-menu-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.agent-menu-open .agent-sidebar {
  transform: translate(-50%, 0);
}

.agent-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 14px;
}

.agent-menu-emblem {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(247, 208, 109, .44);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
}

.agent-menu-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.agent-menu-head span,
.agent-menu-section h6 {
  color: var(--agent-muted);
  font-size: 12px;
}

.agent-menu-section {
  margin-top: 10px;
}

.agent-menu-section h6 {
  margin: 0 0 8px;
  padding-left: 4px;
  font-weight: 700;
}

.agent-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.agent-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px;
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .27);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.agent-menu-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #171004;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe69a, #b77a20);
}

.agent-menu-item span {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.agent-menu-item:hover,
.agent-menu-item:focus {
  color: #fff;
  text-decoration: none;
  border-color: rgba(247, 208, 109, .58);
}

.agent-bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1080;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100vw, 480px);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  background: rgba(5, 4, 2, .96);
  border-top: 1px solid rgba(229, 181, 76, .38);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -16px 42px rgba(0, 0, 0, .62);
  transform: translateX(-50%);
}

.agent-bottom-tabs a,
.agent-bottom-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0;
  color: #b7ad91;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.agent-bottom-tabs i {
  font-size: 17px;
}

.agent-bottom-tabs button,
.agent-bottom-tabs button i,
.agent-bottom-tabs button span {
  color: var(--agent-gold);
}

.agent-bottom-tabs a:hover,
.agent-bottom-tabs button:hover,
.agent-bottom-tabs .is-active {
  color: var(--agent-gold);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(211, 153, 44, .22), rgba(129, 88, 22, .12));
}

.agent-mobile-shell h1,
.agent-mobile-shell h2,
.agent-mobile-shell h3,
.agent-mobile-shell h4,
.agent-mobile-shell h5,
.agent-mobile-shell h6 {
  color: var(--agent-text);
  font-weight: 800;
}

.agent-mobile-shell .card {
  overflow: hidden;
  color: var(--agent-text);
  border: 1px solid var(--agent-line) !important;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(35, 28, 12, .94), rgba(8, 7, 4, .98) 56%, rgba(3, 3, 2, .98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35) !important;
}

.agent-mobile-shell .card-header {
  border-bottom: 1px solid rgba(216, 170, 78, .24);
  background: rgba(255, 255, 255, .025);
}

.agent-mobile-shell .card-body {
  color: var(--agent-text);
}

.agent-mobile-shell .text-primary,
.agent-mobile-shell .text-success,
.agent-mobile-shell .text-info,
.agent-mobile-shell .text-warning {
  color: var(--agent-gold) !important;
}

.agent-mobile-shell .text-gray-800,
.agent-mobile-shell .text-gray-900,
.agent-mobile-shell .text-gray-600 {
  color: var(--agent-text) !important;
}

.agent-mobile-shell .text-gray-500,
.agent-mobile-shell .small {
  color: var(--agent-muted) !important;
}

.agent-mobile-shell .text-gray-300 {
  color: var(--agent-gold) !important;
  opacity: .92;
}

.agent-mobile-shell .progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.agent-mobile-shell .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #9b681a, #f7d06d) !important;
}

.agent-mobile-shell .border-left-primary,
.agent-mobile-shell .border-left-success,
.agent-mobile-shell .border-left-info,
.agent-mobile-shell .border-left-warning {
  border-left: 1px solid var(--agent-line) !important;
}

.agent-mobile-shell .row {
  margin-right: -6px;
  margin-left: -6px;
}

.agent-mobile-shell [class*="col-"] {
  padding-right: 6px;
  padding-left: 6px;
}

.agent-mobile-shell .agent-container > .row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.agent-mobile-shell .btn,
.agent-login-page .btn {
  min-height: 42px;
  border: 1px solid rgba(255, 229, 158, .45);
  border-radius: 14px;
  color: #160f03;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe69a, #d9a33c 48%, #936217);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.agent-mobile-shell .btn:hover,
.agent-login-page .btn:hover {
  color: #080602;
  filter: brightness(1.05);
}

.agent-mobile-shell .btn-danger {
  color: #fff7e0;
  border-color: rgba(255, 96, 96, .55);
  background: linear-gradient(180deg, #b83535, #621818);
}

.agent-mobile-shell .btn-warning {
  color: #1a1204;
}

.agent-mobile-shell .form-control,
.agent-login-page .form-control {
  height: 46px;
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .32) !important;
  border-radius: 14px !important;
  background: rgba(0, 0, 0, .42) !important;
  box-shadow: none !important;
}

.agent-mobile-shell .form-control::placeholder,
.agent-login-page .form-control::placeholder {
  color: rgba(255, 246, 217, .48);
}

.agent-mobile-shell form.navbar-search,
.agent-mobile-shell form.d-none {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.agent-mobile-shell form.navbar-search .input-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.agent-mobile-shell form.navbar-search .form-control {
  width: 100% !important;
}

.agent-mobile-shell .input-group-append {
  display: block;
}

.agent-mobile-shell .input-group-append .btn {
  width: 100%;
}

.agent-mobile-shell .dropdown-menu {
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .35);
  border-radius: 14px;
  background: #141006;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .5);
}

.agent-mobile-shell .dropdown-item {
  color: var(--agent-text);
}

.agent-mobile-shell .dropdown-item:hover,
.agent-mobile-shell .dropdown-item:focus {
  color: #170f03;
  background: var(--agent-gold);
}

.agent-mobile-shell .table-responsive {
  overflow: visible;
  padding: 0 !important;
}

.agent-mobile-shell table.table {
  display: block;
  width: 100% !important;
  margin: 0;
  color: var(--agent-text);
  border: 0 !important;
  background: transparent;
}

.agent-mobile-shell table.table thead {
  display: none;
}

.agent-mobile-shell table.table tbody,
.agent-mobile-shell table.table tr,
.agent-mobile-shell table.table td {
  display: block;
  width: 100%;
}

.agent-mobile-shell table.table tr {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 170, 78, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.agent-mobile-shell table.table td {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  min-height: 34px;
  color: var(--agent-text);
  text-align: right;
  white-space: normal;
  word-break: break-word;
  border: 0 !important;
  border-bottom: 1px solid rgba(216, 170, 78, .12) !important;
}

.agent-mobile-shell table.table td:last-child {
  border-bottom: 0 !important;
}

.agent-mobile-shell table.table td::before {
  content: attr(data-label);
  flex: 0 0 42%;
  color: var(--agent-muted);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.agent-mobile-shell table.table td:empty::after {
  content: "-";
  color: var(--agent-muted);
}

.agent-mobile-shell .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.agent-mobile-shell .page-link,
.agent-mobile-shell .page-item.disabled .page-link {
  color: var(--agent-gold);
  border: 1px solid rgba(216, 170, 78, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.agent-mobile-shell .page-item.active .page-link {
  color: #160f03;
  border-color: transparent;
  background: var(--agent-gold);
}

.agent-mobile-shell .agent-container > .input-group form.navbar-search .input-group-append .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  line-height: 1 !important;
  overflow: hidden;
}

.agent-mobile-shell .agent-container > .input-group form.navbar-search .input-group-append .btn i {
  line-height: 1 !important;
}

.agent-mobile-shell #dataTable td {
  align-items: center;
}

.agent-mobile-shell #dataTable td .btn.btn-sm,
.agent-mobile-shell #dataTable td .btn-icon-split.btn-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center;
  flex: 0 0 auto;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  line-height: 1 !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.agent-mobile-shell #dataTable td .btn.btn-sm .text,
.agent-mobile-shell #dataTable td .btn-icon-split.btn-sm .text {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.agent-mobile-shell .chart-area,
.agent-mobile-shell .chart-pie {
  height: 220px;
}

.agent-mobile-shell .modal-content {
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .35);
  border-radius: 18px;
  background: #111008;
}

.agent-mobile-shell .modal-header,
.agent-mobile-shell .modal-footer {
  border-color: rgba(216, 170, 78, .2);
}

.agent-mobile-shell #logoutModal {
  background: rgba(0, 0, 0, .58);
}

.agent-mobile-shell #logoutModal .modal-dialog {
  width: min(360px, calc(100vw - 40px));
  max-width: none;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.agent-mobile-shell #logoutModal .modal-content {
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(247, 208, 109, .42);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 208, 109, .12), transparent 34%),
    linear-gradient(180deg, #121006 0%, #070704 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.agent-mobile-shell #logoutModal .modal-header {
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  border-bottom: 1px solid rgba(247, 208, 109, .24);
}

.agent-mobile-shell #logoutModal .modal-title {
  margin: 0;
  color: #fff6d9;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.agent-mobile-shell #logoutModal .close {
  width: 34px;
  height: 34px;
  margin: 0 -8px 0 auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(247, 208, 109, .3);
  background: rgba(247, 208, 109, .08);
  color: #f7d06d;
  font-size: 0;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
}

.agent-mobile-shell #logoutModal .close span {
  display: block;
  color: inherit;
  font-size: 26px;
  font-weight: 300;
  line-height: 30px;
  transform: translateY(-1px);
}

.agent-mobile-shell #logoutModal .modal-body {
  padding: 22px 18px 20px;
  color: #fff6d9;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.agent-mobile-shell #logoutModal .modal-footer {
  min-height: 68px;
  padding: 12px 16px 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(247, 208, 109, .22);
}

.agent-mobile-shell #logoutModal .modal-footer > * {
  margin: 0;
}

.agent-mobile-shell #logoutModal .btn {
  width: 112px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.agent-mobile-shell #logoutModal .btn-secondary {
  color: #2b1b03;
  border-color: rgba(247, 208, 109, .75);
  background: linear-gradient(180deg, #ffe691 0%, #bd8428 100%);
}

.agent-mobile-shell #logoutModal .btn-primary {
  color: #2b1b03;
  border-color: rgba(247, 208, 109, .9);
  background: linear-gradient(180deg, #fff0a8 0%, #c58b2c 100%);
}

.agent-mobile-shell a {
  color: var(--agent-gold);
}

.agent-mobile-shell img {
  max-width: 100%;
}

.agent-hero-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(247, 208, 109, .38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(247, 208, 109, .18), transparent 42%),
    linear-gradient(135deg, rgba(39, 30, 10, .96), rgba(6, 5, 3, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

.agent-hero-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(247, 208, 109, .44);
}

.agent-hero-copy {
  min-width: 0;
}

.agent-hero-copy span,
.agent-hero-copy small {
  display: block;
  color: var(--agent-muted);
  font-size: 12px;
}

.agent-hero-copy strong {
  display: block;
  margin: 2px 0;
  color: var(--agent-text);
  font-size: 20px;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  color: #160f03 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe69a, #b87a21);
  font-size: 12px;
  font-weight: 900;
}

.agent-hero-action:hover {
  text-decoration: none;
}

.agent-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.agent-quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 76px;
  padding: 10px 6px;
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.agent-quick-grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #160f03;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffe69a, #a96d1c);
}

.agent-quick-grid span {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.agent-quick-grid a:hover {
  text-decoration: none;
  border-color: rgba(247, 208, 109, .54);
}

.agent-overview-grid,
.agent-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

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

.agent-stat-card,
.agent-panel {
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0, rgba(247, 208, 109, .12), transparent 36%),
    linear-gradient(145deg, rgba(32, 25, 10, .95), rgba(6, 5, 3, .98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.agent-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
}

.agent-stat-card span {
  display: block;
  color: var(--agent-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.agent-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--agent-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  word-break: break-all;
}

.agent-stat-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #1b1103;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe69a, #ad701e);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
}

.agent-panel {
  padding: 14px;
  overflow: hidden;
}

.agent-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-panel-head span {
  display: block;
  color: var(--agent-muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-panel-head strong {
  display: block;
  margin-top: 3px;
  color: var(--agent-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.agent-panel-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  padding: 0 12px;
  flex: 0 0 auto;
  color: #1a1103 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe69a, #b67a22);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.agent-chart-box {
  height: 220px !important;
  margin: 0;
}

.agent-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--agent-muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-chart-legend.compact {
  justify-content: center;
  margin: 10px 0 0;
}

.agent-chart-legend i {
  color: var(--agent-gold);
  font-size: 8px;
}

.agent-mini-list {
  display: grid;
  gap: 9px;
}

.agent-mini-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.agent-mini-list a:hover,
.agent-mini-list a:focus {
  color: var(--agent-text);
  text-decoration: none;
  border-color: rgba(247, 208, 109, .55);
}

.agent-mini-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #1b1103;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe69a, #a96d1c);
}

.agent-mini-list strong,
.agent-mini-list small {
  display: block;
  min-width: 0;
}

.agent-mini-list strong {
  color: var(--agent-text);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mini-list small {
  margin-top: 4px;
  color: var(--agent-muted);
  font-size: 11px;
}

.agent-empty-state {
  padding: 22px 0;
  color: var(--agent-muted);
  text-align: center;
  font-size: 13px;
}

.agent-promo-copy {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 170, 78, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.agent-promo-copy p {
  margin: 0 0 6px;
  color: var(--agent-muted);
  font-size: 13px;
  line-height: 1.6;
}

.agent-promo-copy p:last-child {
  margin-bottom: 0;
}

.agent-promo-copy b,
.agent-rules-box b {
  color: var(--agent-gold);
}

.agent-rules-box {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(216, 170, 78, .18);
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
}

.agent-rules-box h6 {
  margin: 0 0 8px;
  color: var(--agent-gold);
  font-size: 14px;
}

.agent-rules-box p {
  margin: 0 0 6px;
  color: #ead8a4;
  font-size: 12px;
  line-height: 1.65;
}

.agent-rules-box pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ead8a4;
  border: 1px solid rgba(245, 201, 106, .2);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
  padding: 10px;
  font-size: 12px;
  line-height: 1.65;
}

.agent-qr-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 170, 78, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.agent-qr-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

.agent-qr-card strong,
.agent-qr-card span,
.agent-qr-card a {
  display: block;
}

.agent-qr-card strong {
  color: var(--agent-text);
  font-size: 15px;
  font-weight: 900;
}

.agent-qr-card span {
  margin: 6px 0 10px;
  color: var(--agent-muted);
  font-size: 12px;
  line-height: 1.5;
}

.agent-qr-card a {
  color: var(--agent-gold);
  font-size: 12px;
  font-weight: 900;
}

.agent-notice-list {
  display: grid;
  gap: 14px;
}

.agent-notice-card {
  position: relative;
  display: block;
  padding: 14px 42px 14px 14px;
  color: var(--agent-text);
  border: 1px solid rgba(216, 170, 78, .28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0, rgba(247, 208, 109, .12), transparent 34%),
    rgba(255, 255, 255, .035);
  text-decoration: none;
}

.agent-notice-card:hover,
.agent-notice-card:focus {
  color: var(--agent-text);
  text-decoration: none;
  border-color: rgba(247, 208, 109, .62);
  box-shadow: 0 0 0 2px rgba(247, 208, 109, .16), 0 14px 30px rgba(0, 0, 0, .28);
}

.agent-notice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(216, 170, 78, .12);
}

.agent-notice-row:last-of-type {
  border-bottom: 0;
}

.agent-notice-row span {
  flex: 0 0 70px;
  color: var(--agent-muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-notice-row strong {
  min-width: 0;
  color: var(--agent-text);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.agent-notice-title {
  color: var(--agent-gold) !important;
}

.agent-notice-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--agent-gold);
  font-size: 14px;
  opacity: .85;
}

.agent-login-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 0, rgba(247, 208, 109, .2), transparent 35%),
    linear-gradient(180deg, #141006, #030302 56%, #000);
}

.agent-login-wrap {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 14px;
  display: flex;
  align-items: center;
}

.agent-login-card {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(247, 208, 109, .4);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(247, 208, 109, .16), transparent 34%),
    linear-gradient(180deg, rgba(26, 20, 8, .96), rgba(5, 4, 2, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.agent-login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.agent-login-brand img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(247, 208, 109, .44);
}

.agent-login-brand h1 {
  margin: 14px 0 6px;
  color: var(--agent-text);
  font-size: 24px;
  font-weight: 900;
}

.agent-login-brand p {
  margin: 0;
  color: var(--agent-muted);
  font-size: 13px;
}

.agent-login-page #captcha {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.agent-login-page #captcha input {
  width: 100% !important;
}

.agent-login-page #captcha img {
  width: 112px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}
