body.portal-console-active,
.portal-console-shell {
  --portal-bg: #0b1112;
  --portal-bg-2: #121b1d;
  --portal-panel: rgba(24, 29, 28, 0.66);
  --portal-panel-strong: rgba(34, 36, 32, 0.8);
  --portal-panel-soft: rgba(12, 16, 15, 0.54);
  --portal-field: rgba(7, 11, 11, 0.72);
  --portal-line: rgba(214, 173, 101, 0.3);
  --portal-line-strong: rgba(234, 193, 111, 0.62);
  --portal-text: #f5ead8;
  --portal-muted: #b9a994;
  --portal-muted-2: #8f806d;
  --portal-gold: #f4c35f;
  --portal-gold-deep: #b77823;
  --portal-ember: #c9361f;
  --portal-ember-deep: #8f2216;
  --portal-green: #7fe0a1;
  --portal-cyan: #62d6e9;
  --portal-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

body.portal-console-active {
  background: var(--portal-bg) !important;
  color: var(--portal-text) !important;
}

.portal-console-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--portal-bg) !important;
  color: var(--portal-text) !important;
}

.portal-console-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 229, 164, 0.18), transparent 30rem),
    linear-gradient(90deg, rgba(5, 7, 7, 0.54) 0%, rgba(5, 7, 7, 0.08) 38%, rgba(5, 7, 7, 0.1) 64%, rgba(5, 7, 7, 0.56) 100%),
    linear-gradient(180deg, rgba(7, 10, 10, 0.08), rgba(7, 10, 10, 0.68)),
    url("/assets/epic-ring-bg.png") center 12% / cover no-repeat;
  filter: brightness(1.16) saturate(1.08);
}

.portal-console-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.08), rgba(5, 6, 5, 0.48)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px);
}

.portal-console-shell .bg-mesh-gradient {
  display: none !important;
}

.portal-console-shell ::selection,
body.portal-console-active ::selection {
  background: rgba(244, 195, 95, 0.24);
  color: #fff4dc;
}

.portal-console-shell * {
  scrollbar-color: rgba(244, 195, 95, 0.42) rgba(7, 11, 11, 0.2);
}

body.portal-console-active::-webkit-scrollbar,
.portal-console-shell *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.portal-console-active::-webkit-scrollbar-track,
.portal-console-shell *::-webkit-scrollbar-track {
  background: rgba(7, 11, 11, 0.2);
}

body.portal-console-active::-webkit-scrollbar-thumb,
.portal-console-shell *::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(244, 195, 95, 0.42) !important;
}

.portal-console-main {
  position: relative;
}

.portal-console-shell main {
  min-height: calc(100vh - 4rem);
}

.portal-console-shell .glass,
.portal-console-shell header.glass {
  background:
    linear-gradient(180deg, rgba(24, 29, 28, 0.82), rgba(10, 14, 14, 0.64)) !important;
  border-color: var(--portal-line) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.portal-console-shell .sidebar {
  background:
    linear-gradient(180deg, rgba(22, 24, 22, 0.9), rgba(8, 12, 12, 0.82)) !important;
  border-color: var(--portal-line) !important;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.portal-console-shell .sidebar-header,
.portal-console-shell .sidebar .border-t,
.portal-console-shell .sidebar [class*="border-gray"],
.portal-console-shell .sidebar [class*="dark:border-dark"] {
  border-color: var(--portal-line) !important;
}

.portal-console-shell .sidebar-logo {
  border: 1px solid var(--portal-line-strong);
  border-radius: 8px !important;
  background:
    radial-gradient(circle, rgba(244, 195, 95, 0.22), transparent 60%),
    rgba(19, 12, 8, 0.78) !important;
  color: var(--portal-gold);
  box-shadow: 0 0 22px rgba(244, 195, 95, 0.2) !important;
}

.portal-console-shell .sidebar-brand-title,
.portal-console-shell .page-title,
.portal-console-shell h1,
.portal-console-shell h2,
.portal-console-shell h3,
.portal-console-shell .modal-title,
.portal-console-shell .dialog-header,
body.portal-console-active .modal-title {
  color: var(--portal-text) !important;
}

.portal-console-shell .page-description,
.portal-console-shell .input-hint,
.portal-console-shell .stat-label,
.portal-console-shell .sidebar-section-title,
.portal-console-shell .sidebar-section-title-text {
  color: var(--portal-muted) !important;
}

.portal-console-shell .sidebar-link {
  border: 1px solid transparent;
  border-radius: 8px !important;
  color: #d8c4a7 !important;
}

.portal-console-shell .sidebar-link:hover {
  background: rgba(244, 195, 95, 0.1) !important;
  border-color: rgba(244, 195, 95, 0.2);
  color: #fff4dc !important;
}

.portal-console-shell .sidebar-link-active {
  background:
    linear-gradient(90deg, rgba(201, 54, 31, 0.82), rgba(183, 120, 35, 0.52)) !important;
  border-color: rgba(244, 195, 95, 0.58);
  color: #fff4dc !important;
  box-shadow: 0 10px 28px rgba(201, 54, 31, 0.2);
}

.portal-console-shell .card,
.portal-console-shell .glass-card,
.portal-console-shell .card-glass,
.portal-console-shell .stat-card,
.portal-console-shell .table-scroll-container,
.portal-console-shell .table-container,
.portal-console-shell [class*="bg-white"],
.portal-console-shell [class*="dark:bg-dark-8"],
.portal-console-shell [class*="dark:bg-dark-9"],
body.portal-console-active .dropdown,
body.portal-console-active .modal-content,
body.portal-console-active .dialog-container,
body.portal-console-active .select-dropdown-portal,
body.portal-console-active .toast,
body.portal-console-active .action-menu-content {
  background:
    linear-gradient(180deg, rgba(32, 26, 20, 0.58), rgba(9, 14, 14, 0.66)),
    rgba(0, 0, 0, 0.18) !important;
  border-color: var(--portal-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--portal-shadow) !important;
  color: var(--portal-text) !important;
  backdrop-filter: blur(14px);
}

.portal-console-shell .card-header,
.portal-console-shell .card-footer,
.portal-console-shell .modal-header,
.portal-console-shell .modal-footer,
.portal-console-shell .dialog-header,
.portal-console-shell .dialog-footer,
body.portal-console-active .modal-header,
body.portal-console-active .modal-footer,
body.portal-console-active .dialog-header,
body.portal-console-active .dialog-footer,
body.portal-console-active .select-search {
  border-color: var(--portal-line) !important;
  background: rgba(7, 11, 11, 0.36) !important;
}

.portal-console-shell .card-hover:hover,
.portal-console-shell .stat-card:hover {
  transform: translateY(-1px);
  border-color: var(--portal-line-strong) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5) !important;
}

.portal-console-shell .btn {
  border-radius: 8px !important;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0;
}

.portal-console-shell .btn-primary,
.portal-console-shell .btn-success,
.portal-console-shell .btn-warning,
.portal-console-shell .date-picker-apply,
body.portal-console-active .btn-primary {
  background:
    linear-gradient(180deg, #e64a2d, #b72d1b 55%, #8f2216) !important;
  border-color: rgba(244, 195, 95, 0.62) !important;
  color: #fff4dc !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 158, 0.28),
    0 14px 30px rgba(201, 54, 31, 0.28) !important;
}

.portal-console-shell .btn-primary:hover,
.portal-console-shell .btn-success:hover,
.portal-console-shell .btn-warning:hover,
.portal-console-shell .date-picker-apply:hover,
body.portal-console-active .btn-primary:hover {
  background:
    linear-gradient(180deg, #f05a38, #c9361f 55%, #982615) !important;
  border-color: rgba(255, 220, 139, 0.72) !important;
}

.portal-console-shell .btn-secondary,
.portal-console-shell .btn-ghost,
.portal-console-shell .btn-stripe,
.portal-console-shell .btn-airwallex,
.portal-console-shell .btn-alipay,
.portal-console-shell .btn-wxpay,
.portal-console-shell nav[aria-label="Pagination"] button {
  background: rgba(7, 11, 11, 0.56) !important;
  border-color: var(--portal-line) !important;
  color: #f3d99d !important;
  box-shadow: none !important;
}

.portal-console-shell .btn-secondary:hover,
.portal-console-shell .btn-ghost:hover,
.portal-console-shell nav[aria-label="Pagination"] button:hover {
  background: rgba(244, 195, 95, 0.12) !important;
  border-color: var(--portal-line-strong) !important;
  color: #fff4dc !important;
}

.portal-console-shell .btn-danger,
body.portal-console-active .btn-danger {
  background: rgba(201, 54, 31, 0.18) !important;
  border-color: rgba(239, 93, 69, 0.5) !important;
  color: #ffb9a9 !important;
}

.portal-console-shell .input,
.portal-console-shell input:not([type="checkbox"]):not([type="radio"]),
.portal-console-shell textarea,
.portal-console-shell .select-trigger,
.portal-console-shell .date-picker-trigger,
.portal-console-shell .date-picker-input,
body.portal-console-active .select-search-input {
  background: var(--portal-field) !important;
  border-color: var(--portal-line) !important;
  border-radius: 8px !important;
  color: var(--portal-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.04) !important;
}

.portal-console-shell .input:focus,
.portal-console-shell input:focus,
.portal-console-shell textarea:focus,
.portal-console-shell .select-trigger-open,
.portal-console-shell .date-picker-trigger-open {
  border-color: var(--portal-line-strong) !important;
  outline: none !important;
  box-shadow:
    0 0 0 2px rgba(244, 195, 95, 0.18),
    inset 0 1px 0 rgba(255, 226, 160, 0.06) !important;
}

.portal-console-shell .input::placeholder,
.portal-console-shell input::placeholder,
.portal-console-shell textarea::placeholder,
body.portal-console-active .select-search-input::placeholder {
  color: rgba(185, 169, 148, 0.68) !important;
}

.portal-console-shell .input-label,
.portal-console-shell label,
.portal-console-shell .date-picker-label {
  color: #e7c890 !important;
}

.portal-console-shell .select-icon,
.portal-console-shell .select-clear,
.portal-console-shell .date-picker-icon,
.portal-console-shell .date-picker-chevron {
  color: var(--portal-gold) !important;
}

body.portal-console-active .select-dropdown-portal .select-option,
body.portal-console-active .dropdown-item,
body.portal-console-active .date-picker-preset,
.portal-console-shell .dropdown-item,
.portal-console-shell .date-picker-preset {
  color: #ead9bd !important;
}

body.portal-console-active .select-dropdown-portal .select-option:hover,
body.portal-console-active .select-dropdown-portal .select-option-focused,
body.portal-console-active .dropdown-item:hover,
.portal-console-shell .dropdown-item:hover,
.portal-console-shell .date-picker-preset:hover {
  background: rgba(244, 195, 95, 0.12) !important;
  color: #fff4dc !important;
}

body.portal-console-active .select-dropdown-portal .select-option-selected,
.portal-console-shell .date-picker-preset-active,
.portal-console-shell .tab-active,
.portal-console-shell nav[aria-label="Pagination"] button[aria-current="page"] {
  background: rgba(201, 54, 31, 0.42) !important;
  border-color: var(--portal-line-strong) !important;
  color: #fff4dc !important;
}

.portal-console-shell .table-wrapper,
.portal-console-shell table {
  color: var(--portal-text) !important;
}

.portal-console-shell table,
.portal-console-shell .table {
  background: transparent !important;
}

.portal-console-shell thead,
.portal-console-shell .table-header,
.portal-console-shell .table-scroll-container thead {
  background:
    linear-gradient(180deg, rgba(46, 37, 26, 0.72), rgba(12, 16, 15, 0.72)) !important;
}

.portal-console-shell th,
.portal-console-shell .table th,
.portal-console-shell .table-scroll-container th {
  color: #e7c890 !important;
  border-color: var(--portal-line) !important;
  background: transparent !important;
}

.portal-console-shell td,
.portal-console-shell .table td,
.portal-console-shell .table-scroll-container td {
  color: #ead9bd !important;
  border-color: rgba(214, 173, 101, 0.16) !important;
  background: transparent !important;
}

.portal-console-shell tbody,
.portal-console-shell .table-body,
.portal-console-shell .table tbody {
  background: transparent !important;
}

.portal-console-shell tbody tr:hover,
.portal-console-shell .table tbody tr:hover {
  background: rgba(244, 195, 95, 0.08) !important;
}

.portal-console-shell .stat-icon {
  border: 1px solid var(--portal-line);
  border-radius: 8px !important;
  background:
    radial-gradient(circle, rgba(244, 195, 95, 0.18), rgba(7, 11, 11, 0.36)) !important;
  color: var(--portal-gold) !important;
}

.portal-console-shell .stat-value {
  color: #fff4dc !important;
}

.portal-console-shell .stat-trend-up,
.portal-console-shell .text-emerald-500,
.portal-console-shell .text-emerald-600,
.portal-console-shell .dark\:text-emerald-400 {
  color: var(--portal-green) !important;
}

.portal-console-shell .stat-trend-down,
.portal-console-shell .text-red-500,
.portal-console-shell .text-red-600,
.portal-console-shell .dark\:text-red-400 {
  color: #ff8d78 !important;
}

.portal-console-shell .badge,
.portal-console-shell [class*="badge-"] {
  border: 1px solid var(--portal-line);
  border-radius: 999px !important;
  background: rgba(244, 195, 95, 0.1) !important;
  color: #f3d99d !important;
}

.portal-console-shell .tabs {
  background: rgba(7, 11, 11, 0.5) !important;
  border: 1px solid var(--portal-line);
  border-radius: 8px !important;
}

.portal-console-shell .tab {
  border-radius: 6px !important;
  color: var(--portal-muted) !important;
}

.portal-console-shell .progress,
.portal-console-shell [class*="bg-gray-200"],
.portal-console-shell [class*="dark:bg-dark-600"] {
  background: rgba(7, 11, 11, 0.58) !important;
}

.portal-console-shell .progress-bar,
.portal-console-shell .sidebar-link-active,
.portal-console-shell .tab-active,
.portal-console-shell .select-option-selected,
.portal-console-shell .switch-active {
  background:
    linear-gradient(90deg, var(--portal-ember), var(--portal-gold-deep)) !important;
}

.portal-console-shell .switch,
.portal-console-shell [role="switch"] {
  border: 1px solid var(--portal-line) !important;
  background: rgba(7, 11, 11, 0.58) !important;
}

.portal-console-shell .switch-thumb {
  background: #f3d99d !important;
}

.portal-console-shell .divider,
.portal-console-shell hr,
.portal-console-shell [class*="border-gray"],
.portal-console-shell [class*="dark:border-dark"] {
  border-color: var(--portal-line) !important;
}

.portal-console-shell .code,
.portal-console-shell code,
.portal-console-shell pre {
  background: rgba(7, 11, 11, 0.72) !important;
  color: #f3d99d !important;
  border-color: var(--portal-line) !important;
}

.portal-console-shell .empty-state-title {
  color: var(--portal-text) !important;
}

.portal-console-shell .empty-state-description,
.portal-console-shell .select-empty,
body.portal-console-active .select-empty {
  color: var(--portal-muted) !important;
}

.portal-console-shell .text-gray-900,
.portal-console-shell .text-gray-800,
.portal-console-shell .text-gray-700,
.portal-console-shell .dark\:text-white,
.portal-console-shell .dark\:text-gray-100,
.portal-console-shell .dark\:text-gray-200,
body.portal-console-active .text-gray-900,
body.portal-console-active .dark\:text-white {
  color: var(--portal-text) !important;
}

.portal-console-shell .text-gray-600,
.portal-console-shell .text-gray-500,
.portal-console-shell .text-gray-400,
.portal-console-shell .dark\:text-dark-300,
.portal-console-shell .dark\:text-dark-400,
.portal-console-shell .dark\:text-gray-300,
body.portal-console-active .text-gray-600,
body.portal-console-active .text-gray-500,
body.portal-console-active .dark\:text-dark-400 {
  color: var(--portal-muted) !important;
}

.portal-console-shell .text-primary-400,
.portal-console-shell .text-primary-500,
.portal-console-shell .text-primary-600,
.portal-console-shell .text-primary-700,
.portal-console-shell .dark\:text-primary-300,
.portal-console-shell .dark\:text-primary-400,
body.portal-console-active .text-primary-500,
body.portal-console-active .text-primary-600 {
  color: var(--portal-gold) !important;
}

.portal-console-shell a:not(.sidebar-link):not(.btn) {
  color: #f3d99d;
}

.portal-console-shell a:not(.sidebar-link):not(.btn):hover {
  color: #fff4dc;
}

.portal-console-shell .modal-overlay,
body.portal-console-active .modal-overlay,
.portal-console-shell .dialog-overlay,
body.portal-console-active .dialog-overlay {
  background: rgba(5, 7, 7, 0.68) !important;
  backdrop-filter: blur(10px);
}

.portal-console-shell .skeleton,
body.portal-console-active .skeleton,
.portal-console-shell [class*="animate-pulse"] {
  background:
    linear-gradient(90deg, rgba(244, 195, 95, 0.08), rgba(244, 195, 95, 0.18), rgba(244, 195, 95, 0.08)) !important;
}

body.portal-console-active .toast {
  border-left-color: var(--portal-gold) !important;
}

@media (max-width: 768px) {
  .portal-console-shell main {
    padding: 1rem !important;
  }

  .portal-console-shell::before {
    background-position: center top;
  }
}
