@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --page: #f7f8fc;
  --surface: #fff;
  --surface-2: #fafbfe;
  --text: #20243a;
  --muted: #858ba2;
  --line: #eceef5;
  --primary: #6558e8;
  --primary-soft: #f0efff;
  --sidebar: #fff;
  --green: #149b72;
  --red: #d94b65;
  --shadow: 0 3px 16px rgba(33, 40, 80, 0.025);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.admin-shell {
  min-height: 100vh;
}
.admin-sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 25px 17px 15px;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 34px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: 0 5px 12px #6558e82b;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}
.sidebar-caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
  color: #a0a5b8;
  padding: 0 12px 11px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar-nav .nav-link {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border-radius: 9px;
  color: #70768d;
  font-weight: 500;
  text-decoration: none;
  transition: 0.18s;
}
.sidebar-nav .nav-link > i {
  font-size: 17px;
  width: 19px;
  text-align: center;
}
.sidebar-nav .nav-link:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.sidebar-nav .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.nav-dot {
  width: 6px;
  height: 6px;
  background: #20b78b;
  border-radius: 50%;
  margin-left: auto;
}
.nav-count {
  margin-left: auto;
  background: #fff0e7;
  color: #d87839;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.help-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 17px;
}
.help-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 12px;
}
.help-card strong {
  font-size: 12px;
}
.help-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 10px;
}
.help-card a {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.sidebar-version {
  border-top: 1px solid var(--line);
  padding: 14px 7px 0;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-version span {
  float: right;
}
.admin-main {
  margin-left: 246px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 20px;
}
.breadcrumb-line {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9a9fb1;
  font-size: 12px;
}
.breadcrumb-line i {
  font-size: 9px;
}
.breadcrumb-line strong {
  font-weight: 600;
  color: var(--text);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-box {
  height: 37px;
  width: 230px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #969bb0;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font: inherit;
  color: var(--text);
  font-size: 11px;
}
.search-box kbd {
  font-size: 9px;
  white-space: nowrap;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #9398aa;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: #70768d;
  display: grid;
  place-items: center;
  font-size: 16px;
  position: relative;
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--primary);
  border-color: #dcd9ff;
}
.notification-btn span {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #f06b7d;
  border: 1px solid #fff;
  border-radius: 50%;
}
.topbar-divider {
  height: 29px;
  width: 1px;
  background: var(--line);
  margin: 0 1px;
}
.profile-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: var(--text);
  padding: 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e8e5ff;
  color: #6558e8;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.profile-copy strong,
.profile-copy small {
  display: block;
}
.profile-copy strong {
  font-size: 11px;
  font-weight: 700;
}
.profile-copy small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.profile-button > i {
  font-size: 10px;
  color: #9297aa;
  margin-left: 3px;
}
.page-content {
  /* padding: 31px 34px 28px; */
  padding: 11px 14px 28px;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #888da3;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.eyebrow-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--primary);
}
h1 {
  font-size: 25px;
  letter-spacing: -0.9px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.wave {
  color: #f2a947;
  font-size: 19px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.btn {
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px;
}
.btn-soft {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #626981;
}
.btn-soft:hover {
  background: var(--surface-2);
}
.btn-primary-admin {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 9px #6558e821;
}
.btn-primary-admin:hover {
  background: #5548d4;
  color: white;
}
.date-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 18px;
  color: #9297aa;
  font-size: 10px;
}
.date-strip > i {
  font-size: 12px;
}
.date-strip-divider {
  height: 13px;
  width: 1px;
  background: #dedfeb;
  margin: 0 4px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #22b88a;
  border-radius: 50%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stat-card {
  min-height: 151px;
  padding: 17px 18px 14px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label {
  font-size: 11px;
  color: #7f859b;
  font-weight: 500;
}
.stat-icon {
  height: 32px;
  width: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.icon-violet {
  background: #f0edff;
  color: #7666e9;
}
.icon-blue {
  background: #eaf3ff;
  color: #4288e9;
}
.icon-orange {
  background: #fff2e8;
  color: #e8944d;
}
.icon-green {
  background: #e6f8f1;
  color: #20a77d;
}
.stat-value {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.stat-change {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 5px;
  border-radius: 5px;
}
.positive {
  color: #169b72;
  background: #eaf8f2;
}
.negative {
  color: #d94b65;
  background: #fff0f2;
}
.stat-foot {
  font-size: 10px;
  color: #a0a5b5;
  margin-top: 5px;
}
.mini-bars {
  position: absolute;
  bottom: 0;
  right: 15px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  opacity: 0.55;
}
.mini-bars i {
  display: block;
  width: 5px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  height: var(--h, 50%);
}
.mini-bars i:nth-child(1) {
  --h: 30%;
}
.mini-bars i:nth-child(2) {
  --h: 50%;
}
.mini-bars i:nth-child(3) {
  --h: 39%;
}
.mini-bars i:nth-child(4) {
  --h: 65%;
}
.mini-bars i:nth-child(5) {
  --h: 48%;
}
.mini-bars i:nth-child(6) {
  --h: 76%;
}
.mini-bars i:nth-child(7) {
  --h: 58%;
}
.mini-bars i:nth-child(8) {
  --h: 83%;
}
.mini-bars i:nth-child(9) {
  --h: 63%;
}
.mini-bars i:nth-child(10) {
  --h: 91%;
}
.mini-bars i:nth-child(11) {
  --h: 70%;
}
.mini-bars i:nth-child(12) {
  --h: 100%;
}
.bars-violet {
  color: #a49af6;
}
.bars-blue {
  color: #87b7f5;
}
.bars-orange {
  color: #f4bc8c;
}
.bars-green {
  color: #7ed8b8;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.panel {
  padding: 21px 22px;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.panel-header h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.period-select {
  font: inherit;
  font-size: 10px;
  color: #747a91;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 27px 8px 10px;
  background: var(--surface);
  outline: 0;
}
.chart-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
}
.chart-summary > strong {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.summary-pill {
  font-size: 9px;
  font-weight: 700;
  color: #149b72;
  background: #eaf8f2;
  border-radius: 5px;
  padding: 4px 6px;
}
.summary-note {
  font-size: 10px;
  color: #a0a5b5;
}
.chart-wrap {
  height: 190px;
  margin-top: 8px;
  position: relative;
}
.chart-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 10px;
  color: #8e93a7;
  margin-top: 9px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.primary-dot {
  background: #6c5ce7;
}
.pale-dot {
  background: #c9c4fb;
}
.more-btn,
.row-more {
  border: 0;
  background: transparent;
  color: #9297aa;
  font-size: 18px;
  padding: 0 3px;
}
.traffic-chart-wrap {
  height: 175px;
  position: relative;
  margin: 14px auto 4px;
  max-width: 235px;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.donut-center strong {
  font-size: 23px;
  letter-spacing: -0.7px;
}
.donut-center span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.source-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 14px;
}
.source-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.source-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777d92;
}
.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  display: inline-block;
}
.source-one {
  background: #6c5ce7;
}
.source-two {
  background: #a69bf6;
}
.source-three {
  background: #d4cffd;
}
.source-four {
  background: #e7e9f4;
}
.source-list strong {
  font-size: 10px;
}
.source-list small {
  font-size: 9px;
  color: #a0a5b5;
  font-weight: 500;
  margin-left: 6px;
}
.orders-panel {
  margin-top: 18px;
  padding-bottom: 0;
}
.orders-panel .panel-header {
  align-items: center;
  margin-bottom: 19px;
}
.view-all {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.view-all i {
  margin-left: 5px;
}
.admin-table {
  font-size: 10px;
  white-space: nowrap;
}
.admin-table thead th {
  background: var(--surface-2);
  color: #969bb0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 12px 13px;
  border-color: var(--line);
}
.admin-table tbody td {
  padding: 13px;
  border-color: var(--line);
  color: #7d8398;
}
.order-id {
  font-weight: 700;
  color: var(--primary);
}
.customer-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.customer-avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}
.ca-purple {
  background: #f0edff;
  color: #7566e8;
}
.ca-blue {
  background: #eaf3ff;
  color: #4388e9;
}
.ca-orange {
  background: #fff0e5;
  color: #d88948;
}
.ca-green {
  background: #e7f8f1;
  color: #209a76;
}
.customer-cell strong,
.customer-cell small {
  display: block;
}
.customer-cell strong {
  font-size: 10px;
  color: var(--text);
  font-weight: 600;
}
.customer-cell small {
  font-size: 9px;
  color: #a0a5b5;
  margin-top: 3px;
}
.amount-cell {
  font-weight: 700;
  color: var(--text) !important;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
}
.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-paid {
  background: #eaf8f2;
  color: #15986f;
}
.status-pending {
  background: #fff5e7;
  color: #c88929;
}
.status-cancelled {
  background: #fff0f2;
  color: #d94b65;
}
.table-footer {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9297aa;
  font-size: 10px;
}
.table-footer strong {
  color: #626981;
}
.pagination-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-mini button {
  height: 27px;
  min-width: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #777d92;
  font: inherit;
}
.pagination-mini button:disabled {
  opacity: 0.4;
}
.pagination-mini button.current-page {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination-mini span {
  padding: 0 4px;
}
.admin-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 34px;
  border-top: 1px solid var(--line);
  color: #a0a5b5;
  font-size: 10px;
}
.admin-footer i {
  color: #e87991;
  font-size: 9px;
  margin-left: 3px;
}
.mobile-menu {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
body.dark-mode {
  --page: #151722;
  --surface: #1c1f2c;
  --surface-2: #222535;
  --text: #edf0fa;
  --muted: #969db5;
  --line: #303448;
  --sidebar: #1c1f2c;
  --shadow: none;
}
body.dark-mode .search-box,
body.dark-mode .period-select,
body.dark-mode .icon-btn,
body.dark-mode .pagination-mini button {
  background: var(--surface-2);
  color: var(--text);
}
body.dark-mode .search-box kbd {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-mode .admin-table thead th {
  background: var(--surface-2);
}
body.dark-mode .admin-table tbody tr {
  background: var(--surface);
}
body.dark-mode .customer-cell strong,
body.dark-mode .amount-cell {
  color: var(--text) !important;
}
body.dark-mode .profile-button {
  color: var(--text);
}
body.dark-mode .nav-count {
  background: #352b2c;
}
body.dark-mode .notification-btn span {
  border-color: var(--surface);
}
@media (min-width: 1500px) {
  /* .page-content {
    padding-left: 42px;
    padding-right: 42px;
  } */
  .stats-grid {
    gap: 19px;
  }
  .dashboard-grid {
    gap: 19px;
  }
  .stat-card {
    padding: 20px 21px;
    min-height: 160px;
  }
  .stat-value {
    font-size: 27px;
  }
}
@media (max-width: 1200px) {
  .admin-sidebar {
    width: 220px;
  }
  .admin-main {
    margin-left: 220px;
  }
  .topbar {
    padding: 0 23px;
  }
  .page-content {
    padding: 26px 23px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  }
  .stat-card {
    min-height: 145px;
  }
}
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
    box-shadow: none;
  }
  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 35px #10152b1a;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: #17192b66;
    z-index: 1030;
  }
  .admin-shell.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 68px;
    padding: 0 22px;
  }
  .search-box {
    width: 190px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-content {
    padding: 25px 22px;
  }
  .admin-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 15px;
    gap: 10px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .breadcrumb-line {
    gap: 7px;
    font-size: 11px;
  }
  .search-box {
    width: 36px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
  }
  .search-box input,
  .search-box kbd {
    display: none;
  }
  .search-box > i {
    font-size: 16px;
  }
  .theme-toggle {
    display: none;
  }
  .topbar-divider {
    margin: 0;
  }
  .profile-copy,
  .profile-button > i {
    display: none;
  }
  .profile-button .avatar {
    width: 32px;
    height: 32px;
  }
  .page-content {
    padding: 23px 15px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 21px;
    line-height: 1.3;
  }
  .page-heading p {
    max-width: 280px;
    line-height: 1.5;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions .btn {
    padding: 9px 10px;
    font-size: 10px;
  }
  .heading-actions .btn-soft {
    display: none;
  }
  .date-strip {
    margin-top: 18px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px 12px;
    min-height: 133px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-icon {
    height: 28px;
    width: 28px;
    font-size: 13px;
  }
  .stat-value {
    font-size: 20px;
    display: block;
    margin-top: 10px;
  }
  .stat-change {
    display: inline-block;
    margin-top: 5px;
    font-size: 8px;
  }
  .stat-foot {
    font-size: 9px;
    max-width: 125px;
    line-height: 1.4;
  }
  .mini-bars {
    right: 8px;
    gap: 2px;
  }
  .mini-bars i {
    width: 3px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .panel {
    padding: 17px 15px;
  }
  .chart-wrap {
    height: 180px;
  }
  .traffic-chart-wrap {
    height: 165px;
  }
  .orders-panel {
    margin-top: 12px;
    padding-bottom: 0;
  }
  .orders-panel .panel-header {
    margin-bottom: 14px;
  }
  .admin-table thead th,
  .admin-table tbody td {
    padding: 11px 10px;
  }
  .table-footer {
    padding: 8px 0;
    gap: 8px;
    flex-wrap: wrap;
  }
  .admin-footer {
    padding: 14px 15px;
    font-size: 9px;
  }
  .summary-note {
    font-size: 9px;
  }
  .summary-pill {
    font-size: 8px;
  }
}
@media (max-width: 370px) {
  .page-heading h1 {
    font-size: 19px;
  }
  .heading-actions .btn-primary-admin {
    padding: 9px 8px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-card {
    padding: 12px 10px;
  }
  .stat-change {
    padding: 3px;
  }
  .topbar-actions {
    gap: 6px;
  }
}

/* Admin application pages and the reusable form system. */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.stat-card-link:hover {
  color: inherit;
  text-decoration: none;
  border-color: #d9d5ff;
  transform: translateY(-1px);
}
.stat-card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.dashboard-grid-single {
  grid-template-columns: minmax(0, 1fr);
}
.panel-icon {
  height: 34px;
  width: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 12px;
}
.admin-alert .close {
  margin-left: auto;
  font-size: 19px;
}
.admin-alert.alert-success {
  background: #eaf8f2;
  color: #167b60;
}
.admin-alert.alert-danger {
  background: #fff0f2;
  color: #a83f50;
}
.data-panel {
  padding: 0;
  overflow: hidden;
}
.list-toolbar {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.list-toolbar h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.list-toolbar p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.list-search,
.filter-form {
  display: flex;
  align-items: center;
  gap: 9px;
}
.list-search {
  height: 38px;
  min-width: 310px;
  padding: 0 7px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: #969bb0;
}
.list-search > i {
  font-size: 13px;
}
.list-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 80px;
  width: 100%;
  font: inherit;
  color: var(--text);
  font-size: 11px;
}
.list-search .btn {
  font-size: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #626981;
}
.clear-search {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-table {
  font-size: 11px;
  white-space: nowrap;
}
.admin-table thead th {
  font-size: 9px;
}
.admin-table tbody td {
  vertical-align: middle;
}
.customer-cell > strong {
  font-size: 11px;
  color: var(--text);
}
.customer-cell .customer-avatar {
  flex: none;
}
.customer-cell small,
.table-subtext {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.table-primary-text {
  color: var(--text);
  font-size: 11px;
}
.mono-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #717790;
}
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff5e8;
  color: #b77924;
  font-size: 10px;
  font-weight: 700;
}
.coin-badge i {
  font-size: 12px;
}
.status-active,
.status-inactive {
  font-size: 9px;
}
.status-active {
  background: #eaf8f2;
  color: #15986f;
}
.status-inactive {
  background: #f0f1f5;
  color: #858ba2;
}
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.inline-form {
  display: inline;
}
.table-action {
  border: 0;
  background: none;
  padding: 3px 0;
  color: var(--primary);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.table-action:hover {
  color: #4d41c8;
  text-decoration: underline;
}
.table-action-danger {
  color: #d94b65;
}
.table-action-danger:hover {
  color: #a92b44;
}
.pagination-wrap {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.pagination {
  margin: 0;
}
.page-link {
  color: var(--primary);
  font-size: 11px;
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}
.page-item.disabled .page-link {
  color: #a0a5b5;
}
.empty-state {
  min-height: 180px;
  padding: 35px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.empty-chart {
  min-height: 220px;
}
.empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.empty-state strong {
  font-size: 12px;
  color: var(--text);
}
.empty-state p {
  max-width: 360px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 6px 0 0;
}
.integration-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.integration-cell strong {
  font-size: 11px;
  color: var(--text);
}
.integration-icon {
  height: 30px;
  width: 30px;
  border-radius: 9px;
  background: #eaf8f2;
  color: #17976c;
  display: grid;
  place-items: center;
}
.filter-form label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.filter-form select {
  width: auto;
  min-width: 155px;
  height: 36px;
  font-size: 11px;
}
.usage-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usage-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
}
.usage-successInfo {
  background: #149b72;
}
.usage-incorrect {
  background: #e8944d;
}
.usage-invalid {
  background: #d94b65;
}
.usage-limitExhaust {
  background: #8b7be9;
}
.count-value {
  font-weight: 700;
  color: var(--text);
}
.admin-form-card {
  padding: 24px;
}
.form-intro {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}
.admin-field-wrap {
  margin-bottom: 18px;
}
.admin-label {
  display: block;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 7px;
}
.required-mark {
  color: #d94b65;
}
.admin-control.form-control {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  box-shadow: none;
}
.admin-control.form-control:focus {
  border-color: #aaa2fa;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.1);
}
textarea.admin-control.form-control {
  height: auto;
  min-height: 95px;
  padding-top: 10px;
}
.admin-control.form-control[readonly],
.admin-control.form-control:disabled {
  background: var(--surface-2);
  color: var(--muted);
}
.admin-control.is-invalid {
  border-color: #d94b65;
}
.invalid-feedback {
  font-size: 10px;
}
.admin-help {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.admin-check {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.admin-check .form-check-input {
  margin-top: 0;
}
.admin-check .form-check-label {
  font-size: 11px;
  color: var(--text);
  margin-left: 6px;
}
.admin-radio-group {
  border: 0;
  padding: 0;
  margin: 0;
}
.admin-radio-group .admin-label {
  margin-bottom: 7px;
}
.admin-radio-group .admin-check {
  display: inline-flex;
  margin-right: 7px;
}
.form-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  padding-top: 7px;
  margin: 5px 0 12px;
  border-top: 1px solid var(--line);
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-action-button.btn {
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  padding: 9px 14px;
}
.admin-action-button.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.admin-action-button.btn-primary:hover {
  background: #5548d4;
  border-color: #5548d4;
}
.admin-action-button.btn-light {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #626981;
}
.form-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}
.admin-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(24, 28, 54, 0.18);
}
.admin-modal .modal-header {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.admin-modal .modal-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.admin-modal .modal-body {
  max-height: calc(100vh - 225px);
  overflow-y: auto;
  padding: 20px 22px 5px;
}
.admin-modal .modal-footer {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
}
.admin-modal-close {
  font-size: 23px;
  font-weight: 400;
  color: var(--muted);
  opacity: 1;
  text-shadow: none;
}
.admin-modal-close:hover {
  color: var(--text);
}
.profile-menu {
  min-width: 220px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(33, 40, 80, 0.1);
  font-size: 11px;
}
.profile-menu .dropdown-item-text {
  font-size: 10px;
  color: var(--muted);
  white-space: normal;
}
.profile-menu .dropdown-item {
  border-radius: 6px;
  font-size: 11px;
  padding: 8px 10px;
}
.profile-menu .dropdown-item:hover {
  background: var(--surface-2);
}
.admin-sidebar .nav-link {
  font-size: 11px;
}
.topbar .profile-button {
  cursor: pointer;
}
.topbar .profile-button:focus {
  outline: 0;
}
.topbar .profile-button:focus-visible,
.icon-btn:focus-visible,
.admin-action-button:focus-visible {
  outline: 2px solid #aaa2fa;
  outline-offset: 2px;
}
.admin-main {
  min-width: 0;
}
.table-responsive {
  border-radius: 0;
}
.search-box input:focus,
.list-search input:focus {
  outline: 0;
}
body.dark-mode .admin-modal .modal-content,
body.dark-mode .admin-modal .admin-control.form-control,
body.dark-mode .admin-modal .admin-check,
body.dark-mode .admin-form-card {
  background: var(--surface);
  color: var(--text);
}
body.dark-mode .admin-control.form-control::placeholder {
  color: #858ba2;
}
body.dark-mode .admin-table {
  color: var(--muted);
}
body.dark-mode .list-search {
  background: var(--surface-2);
}
body.dark-mode .list-search .btn {
  background: var(--surface);
  color: var(--text);
}
body.dark-mode .admin-alert.alert-success {
  background: #193a32;
  color: #8ad6bd;
}
body.dark-mode .admin-alert.alert-danger {
  background: #3b252d;
  color: #f3a6b1;
}
body.dark-mode .status-inactive {
  background: #343747;
  color: #b5bbce;
}
body.dark-mode .coin-badge {
  background: #3a3328;
  color: #e8bd72;
}
@media (max-width: 767px) {
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }
  .list-search {
    width: 100%;
    min-width: 0;
  }
  .filter-form {
    width: 100%;
    flex-wrap: wrap;
  }
  .filter-form select {
    flex: 1;
  }
  .admin-form-card {
    padding: 19px 15px;
  }
  .admin-modal .modal-dialog {
    margin: 10px;
  }
  .admin-modal .modal-body {
    max-height: calc(100vh - 190px);
    padding: 16px 16px 3px;
  }
  .admin-modal .modal-header,
  .admin-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .admin-modal .admin-field-wrap {
    margin-bottom: 13px;
  }
  .admin-form-actions {
    flex-wrap: wrap;
  }
  .admin-form-actions .btn {
    flex: 1;
  }
  .pagination-wrap {
    justify-content: center;
  }
  .row-actions {
    gap: 8px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .btn {
    flex: 1;
    text-align: center;
  }
  .profile-menu {
    position: absolute;
  }
  .table-responsive {
    font-size: 10px;
  }
}
@media print {
  .admin-sidebar,
  .topbar,
  .heading-actions,
  .admin-footer,
  .sidebar-backdrop {
    display: none !important;
  }
  .admin-main {
    margin: 0;
  }
  .page-content {
    padding: 0;
  }
  .panel,
  .stat-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
.theme-toggle {
  display: grid;
}
.admin-submit-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: admin-spin 0.7s linear infinite;
}
@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(
      circle at 12% 8%,
      rgba(101, 88, 232, 0.09),
      transparent 30%
    ),
    var(--page);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 34px 36px 29px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(33, 40, 80, 0.08);
}
.auth-brand {
  padding: 0;
  margin-bottom: 35px;
  font-size: 18px;
}
.auth-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #858ba2;
  font-weight: 700;
  margin-bottom: 11px;
}
.auth-heading .eyebrow-dot {
  display: block;
}
.auth-card h1 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.auth-subtitle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 22px;
}
.auth-card .form-group {
  margin-bottom: 17px;
}
.auth-password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-password-label a,
.auth-back {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 20px;
  padding-left: 1.25rem;
}
.auth-remember .form-check-input {
  margin-top: 0;
}
.auth-remember .form-check-label {
  font-size: 10px;
  color: #777d92;
}
.auth-submit {
  width: 100%;
  padding: 11px 14px !important;
  font-size: 11px !important;
}
.auth-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted);
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.auth-footnote i {
  color: var(--primary);
  font-size: 12px;
}
.auth-back {
  display: inline-block;
  margin-top: 21px;
}
.admin-auth-page .admin-alert {
  margin-bottom: 16px;
}
.admin-auth-page .admin-control.form-control {
  height: 43px;
}
@media (max-width: 650px) {
  .theme-toggle {
    display: grid;
  }
  .auth-card {
    padding: 29px 23px 24px;
  }
  .auth-brand {
    margin-bottom: 29px;
  }
}
