body.admin-modern {
  background: #eef4f8;
  color: #223044;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.auth-modern .content-wrapper.auth {
  background:
    linear-gradient(135deg, rgba(9, 25, 39, 0.9), rgba(20, 64, 74, 0.88)),
    url("../images/auth/login-bg.jpg") center/cover;
}

.auth-modern .auth-form-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.auth-modern .auth-form-light h4 {
  color: #102c3f;
  font-weight: 800;
}

.admin-modern .navbar {
  background: linear-gradient(90deg, #091927 0%, #102c3f 48%, #173b3e 100%);
  box-shadow: 0 14px 38px rgba(8, 25, 39, 0.22);
}

.admin-modern .navbar .navbar-brand-wrapper,
.admin-modern .navbar .navbar-menu-wrapper {
  background: transparent;
}

.admin-modern .navbar .navbar-toggler,
.admin-modern .navbar .nav-profile-name,
.admin-modern .top-console-title {
  color: #edf8fb !important;
}

.admin-modern .top-console-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-modern .navbar .nav-profile img {
  border: 2px solid rgba(71, 214, 201, 0.8);
  box-shadow: 0 0 0 5px rgba(71, 214, 201, 0.12);
}

.admin-modern .sidebar {
  background: #081b2a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-modern .sidebar .nav .nav-item .nav-link {
  border-radius: 8px;
  color: #e8f3f8;
  font-weight: 700;
  margin: 4px 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-modern .sidebar .nav .nav-item .nav-link .menu-icon,
.admin-modern .sidebar .nav .nav-item .nav-link .menu-title,
.admin-modern .sidebar .nav .nav-item .nav-link .menu-arrow {
  color: #e8f3f8;
}

.admin-modern .sidebar .nav .nav-item .nav-link:hover,
.admin-modern .sidebar .nav .nav-item .nav-link.active {
  background: linear-gradient(90deg, rgba(71, 214, 201, 0.24), rgba(255, 200, 87, 0.14));
  color: #ffffff;
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 #47d6c9;
}

.admin-modern .sidebar .nav .nav-item .nav-link.active .menu-icon,
.admin-modern .sidebar .nav .nav-item .nav-link:hover .menu-icon,
.admin-modern .sidebar .nav .nav-item .nav-link.active .menu-title,
.admin-modern .sidebar .nav .nav-item .nav-link:hover .menu-title {
  color: #ffffff;
}

.admin-modern .sidebar .nav.sub-menu .nav-item .nav-link {
  color: #d4e6ef;
  padding-left: 44px;
  font-size: 14px;
}

.admin-modern .sidebar .nav.sub-menu .nav-item .nav-link:hover,
.admin-modern .sidebar .nav.sub-menu .nav-item .nav-link.active {
  color: #ffffff;
  background: rgba(71, 214, 201, 0.16);
}

.admin-modern .content-wrapper {
  background:
    radial-gradient(circle at 12% 0%, rgba(71, 214, 201, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 193, 7, 0.12), transparent 24%),
    #eef4f8;
  padding-top: 2rem;
}

.admin-page-hero {
  min-height: 132px;
  margin-bottom: 22px;
  padding: 24px 28px;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(9, 25, 39, 0.96), rgba(20, 64, 74, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 48px);
  box-shadow: 0 22px 42px rgba(15, 42, 61, 0.22);
  overflow: hidden;
  position: relative;
}

.admin-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 auto;
  width: 260px;
  height: 3px;
  background: linear-gradient(90deg, #47d6c9, #ffc857);
  opacity: 0.9;
}

.admin-page-hero .hero-kicker {
  color: #77e5dc;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-page-hero h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 800;
}

.admin-page-hero p {
  color: #b8ccd8;
  margin: 0;
}

.hero-status {
  border: 1px solid rgba(119, 229, 220, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #47d6c9;
  box-shadow: 0 0 0 6px rgba(71, 214, 201, 0.15);
}

.swal2-popup {
  border-radius: 8px !important;
  box-shadow: 0 24px 60px rgba(15, 42, 61, 0.24) !important;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

.swal2-title {
  color: #102c3f !important;
  letter-spacing: 0 !important;
}

.swal2-html-container,
.swal2-content {
  color: #475569 !important;
}

.swal2-confirm {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.swal2-cancel {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.kh-swal-toast {
  border-left: 4px solid #47d6c9 !important;
}

.registration-switch {
  width: 100%;
}

.registration-toggle {
  align-items: center;
  background: #f6fafc;
  border: 1px solid #dbe8ef;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
}

.registration-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.registration-toggle-slider {
  background: #94a3b8;
  border-radius: 999px;
  flex: 0 0 48px;
  height: 26px;
  position: relative;
  transition: background 0.2s ease;
}

.registration-toggle-slider::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 42, 61, 0.28);
  content: "";
  height: 20px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.2s ease;
  width: 20px;
}

.registration-toggle input:checked + .registration-toggle-slider {
  background: #16a34a;
}

.registration-toggle input:checked + .registration-toggle-slider::after {
  transform: translateX(22px);
}

.registration-toggle-text {
  color: #102c3f;
  font-weight: 700;
  line-height: 1.4;
}

.admin-modern .card {
  border: 1px solid rgba(30, 61, 88, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(19, 48, 74, 0.1);
}

.admin-modern .card .card-title,
.admin-modern .card-title {
  color: #12263a;
  font-size: 16px;
  font-weight: 800;
}

.admin-modern .dashboard-tabs .nav-tabs {
  border-bottom: 1px solid #dde8ef;
  gap: 8px;
}

.admin-modern .nav-tabs .nav-link {
  border: 0;
  border-radius: 8px 8px 0 0;
  color: #627487;
  font-weight: 700;
}

.admin-modern .nav-tabs .nav-link.active {
  color: #102c3f;
  background: #e9f7f5;
  box-shadow: inset 0 -3px 0 #47d6c9;
}

.admin-modern .dashboard-tabs .item {
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
  min-height: 112px;
}

.admin-modern .dashboard-tabs h5,
.admin-modern .card-text {
  color: #102c3f;
  font-size: 24px;
  font-weight: 800;
}

.chart-canvas-wrap {
  height: 340px;
  position: relative;
}

.dashboard-chart-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.dashboard-chart-legend li {
  align-items: center;
  color: #60758a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-chart-legend li span {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 22px;
}

.admin-modern h3 {
  color: #102c3f;
  font-weight: 800;
}

.admin-modern .alert-warning {
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-left: 4px solid #ffc857;
  border-radius: 8px;
  background: #fff8e6;
  color: #7b5812;
}

.admin-modern .table {
  color: #26384d;
  margin-bottom: 0;
}

.admin-modern .table thead th {
  background: #f3f8fb;
  border-bottom: 1px solid #dbe7ef;
  color: #5f7185;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-modern .table td,
.admin-modern .table th {
  vertical-align: middle;
}

.admin-modern .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(238, 246, 249, 0.7);
}

.admin-modern .form-control {
  border-color: #d6e3eb;
  border-radius: 8px;
}

.admin-modern .form-control:focus {
  border-color: #47d6c9;
  box-shadow: 0 0 0 0.15rem rgba(71, 214, 201, 0.16);
}

.user-list-toolbar {
  gap: 16px;
}

.user-list-toolbar .card-title {
  flex: 0 0 auto;
}

.user-search-form {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  max-width: 720px;
  width: min(100%, 720px);
}

.user-search-input {
  align-items: center;
  display: flex;
  flex: 1 1 360px;
  min-width: 280px;
  position: relative;
}

.user-search-input i {
  color: #7b8fa4;
  font-size: 18px;
  left: 13px;
  position: absolute;
  z-index: 1;
}

.user-search-input .form-control {
  min-width: 0;
  padding-left: 40px;
}

.user-search-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-modern code {
  background: #eef8f6;
  border: 1px solid #d4ebe7;
  border-radius: 6px;
  color: #0f766e;
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.admin-modern .modal-header {
  border-bottom-color: #e2ebf1;
}

.admin-modern .modal-footer {
  border-top-color: #e2ebf1;
}

.settings-badge {
  align-items: center;
  background: #e9f7f5;
  border: 1px solid #cfece7;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 12px;
}

.settings-badge-success {
  background: #e7f8ef;
  border-color: #c8efd9;
  color: #087a3d;
}

.settings-badge-warning {
  background: #fff8e6;
  border-color: #ffe1a6;
  color: #8a5d00;
}

.real-income-toolbar {
  gap: 16px;
}

.real-income-filter {
  align-items: center;
  display: flex;
  gap: 10px;
}

.real-income-filter .form-control {
  min-width: 155px;
}

.real-income-filter .btn {
  white-space: nowrap;
}

.settings-tip {
  background: #f3f8fb;
  border-left: 4px solid #21b59e;
  border-radius: 8px;
  color: #60758a;
  line-height: 1.7;
  padding: 12px 14px;
}

.settings-preview {
  background: linear-gradient(135deg, #102c3f, #17444b);
  border-radius: 8px;
  color: #d8e7ee;
  line-height: 1.9;
  padding: 18px;
}

.settings-preview .preview-title {
  color: #77e5dc;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.profile-stat-card {
  align-items: center;
  background: linear-gradient(135deg, #0e2d44, #14505a);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(16, 44, 63, 0.14);
  color: #d8e7ee;
  display: flex;
  justify-content: space-between;
  min-height: 116px;
  padding: 22px;
}

.profile-stat-card span {
  color: #8db7c5;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-stat-card strong {
  color: #fff;
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-stat-card i {
  color: #77e5dc;
  font-size: 42px;
  opacity: 0.9;
}

.profile-info-list {
  border: 1px solid #e0ebf1;
  border-radius: 8px;
  overflow: hidden;
}

.profile-info-row {
  align-items: center;
  background: #f8fbfd;
  border-bottom: 1px solid #e0ebf1;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px 16px;
}

.profile-info-row:last-child {
  border-bottom: 0;
}

.profile-info-row span,
.integration-panel span {
  color: #60758a;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.profile-info-row strong {
  color: #102c3f;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

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

.payment-card {
  background: #f4fafb;
  border: 1px solid #dcebf0;
  border-radius: 8px;
  padding: 16px;
}

.payment-card-head {
  align-items: center;
  color: #102c3f;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 14px;
}

.payment-card-head i {
  color: #21b59e;
  font-size: 20px;
}

.qr-preview,
.qr-empty {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px dashed #c7dae4;
  border-radius: 8px;
  color: #7a8ca0;
  display: flex;
  font-weight: 800;
  justify-content: center;
  max-width: 150px;
  object-fit: cover;
  width: 100%;
}

.qr-preview {
  border-style: solid;
  cursor: pointer;
}

.integration-panel {
  background: #f7fbfd;
  border: 1px solid #dfeaf1;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 13px;
}

.integration-panel code {
  display: block;
  margin-top: 8px;
  max-width: none;
  width: 100%;
}

.profile-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-modal {
  align-items: center;
  background: rgba(7, 20, 32, 0.86);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 32px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
}

.qr-modal-content {
  background: #fff;
  border-radius: 8px;
  max-height: 86vh;
  max-width: min(620px, 92vw);
  object-fit: contain;
  padding: 10px;
}

.qr-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  height: 46px;
  line-height: 1;
  position: fixed;
  right: 24px;
  top: 22px;
  width: 46px;
}

.doc-page .doc-text {
  color: #60758a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.doc-flow {
  display: grid;
  gap: 14px;
}

.doc-flow-item {
  align-items: flex-start;
  background: #f4fafb;
  border: 1px solid #dcebf0;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.doc-flow-item > span {
  align-items: center;
  background: #102c3f;
  border-radius: 50%;
  color: #77e5dc;
  display: inline-flex;
  flex: 0 0 32px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.doc-flow-item strong {
  color: #102c3f;
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.doc-flow-item p {
  color: #60758a;
  line-height: 1.7;
  margin: 0;
}

.doc-endpoint {
  border-bottom: 1px solid #e2ebf1;
  padding: 13px 0;
}

.doc-endpoint:first-of-type {
  padding-top: 0;
}

.doc-endpoint:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.doc-endpoint span {
  color: #60758a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.doc-code {
  background: #0b1f2f;
  border: 1px solid rgba(119, 229, 220, 0.18);
  border-radius: 8px;
  color: #d8e7ee;
  line-height: 1.7;
  margin: 0;
  overflow: auto;
  padding: 18px;
}

.doc-code code {
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  max-width: none;
  padding: 0;
  white-space: pre;
}

.doc-faq {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-faq > div {
  background: #f7fbfd;
  border: 1px solid #e0ebf1;
  border-radius: 8px;
  padding: 16px;
}

.doc-faq strong {
  color: #102c3f;
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc-faq p {
  color: #60758a;
  line-height: 1.7;
  margin: 0;
}

.admin-modern .btn {
  border-radius: 8px;
  font-weight: 700;
}

.admin-modern .btn-primary {
  background: linear-gradient(135deg, #1277c8, #21b59e);
  border: 0;
  box-shadow: 0 10px 18px rgba(18, 119, 200, 0.22);
}

.admin-modern .btn-danger {
  background: linear-gradient(135deg, #dc3545, #ef7d45);
  border: 0;
}

.admin-modern .pagination .page-link {
  border: 0;
  border-radius: 8px;
  color: #416174;
  margin-left: 6px;
}

.admin-modern .pagination .active .page-link {
  background: #102c3f;
  color: #fff;
}

.qr-code {
  border-radius: 8px;
  border: 1px solid #dbe7ef;
  object-fit: cover;
}

.admin-modern .modal-content {
  border-radius: 8px;
}

@media (max-width: 767px) {
  .admin-page-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .admin-page-hero h1 {
    font-size: 24px;
  }

  .admin-modern .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .user-search-form {
    align-items: stretch;
    flex-direction: column;
    max-width: none;
    width: 100%;
  }

  .user-search-input {
    flex-basis: auto;
    min-width: 0;
  }

  .user-search-form .form-control,
  .user-search-form .btn {
    width: 100%;
  }

  .real-income-filter {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .real-income-filter .form-control,
  .real-income-filter .btn {
    width: 100%;
  }

  .doc-faq {
    grid-template-columns: 1fr;
  }

  .doc-flow-item {
    padding: 14px;
  }

  .profile-grid,
  .payment-grid,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-info-row strong {
    text-align: left;
  }
}
