:root {
  --radius: 14px;
  --radius-pill: 9999px;
  --brand-a: #a78bfa;
  --brand-b: #8b5cf6;
  --panel-bg: rgba(255, 255, 255, 0.55);
  --panel-brd: rgba(255, 255, 255, 0.28);
  --panel-blur: 16px;
  --panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --weak-bg: rgba(0, 0, 0, 0.03);
  --thead-bg: rgba(0, 0, 0, 0.04);
  --auth-card-max: 560px;
  --container-max: 1200px;
}
html[data-bs-theme="dark"] {
  --panel-bg: rgba(32, 32, 36, 0.86);
  --panel-brd: rgba(255, 255, 255, 0.1);
  --panel-blur: 18px;
  --panel-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --weak-bg: rgba(255, 255, 255, 0.06);
  --thead-bg: rgba(255, 255, 255, 0.08);
}
html,
body {
  height: 100%;
}
body {
  background-color: var(--tblr-bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(60% 50% at 12% 8%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(55% 45% at 88% 12%, rgba(139, 92, 246, 0.18), transparent 65%),
    radial-gradient(70% 55% at 80% 105%, rgba(167, 139, 250, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.06), rgba(139, 92, 246, 0.06));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  transition: opacity 0.6s ease-in-out;
}
html[data-bs-theme="dark"] body::before {
  opacity: 0.25;
}
.auth-wrap {
  min-height: 100vh;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
@supports (min-height: 100svh) {
  .auth-wrap {
    min-height: 100svh;
  }
}
@supports (min-height: 100dvh) {
  .auth-wrap {
    min-height: 100dvh;
  }
}
.auth-card {
  width: min(var(--auth-card-max), calc(100% - 2rem));
  border-radius: var(--radius);
  border: 1px solid var(--panel-brd);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}
html[data-bs-theme="dark"] .auth-card {
  background: rgba(32, 32, 36, 0.7);
}
.auth-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--tblr-border-color);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-bs-theme="dark"] .auth-top {
  background: rgba(32, 32, 36, 0.5);
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(167, 139, 250, 0.4);
}
.tabs {
  margin-left: auto;
}
.tabs .nav-link {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  color: var(--tblr-secondary);
  padding: 0.4rem 0.7rem;
}
.tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
}
.view {
  padding: 18px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--tblr-border-color);
  border-radius: calc(var(--radius) - 6px);
  margin: 0.9rem;
}
html[data-bs-theme="dark"] .view {
  background: rgba(255, 255, 255, 0.03);
}
.view h3 {
  font-weight: 800;
  margin: 0 0 0.35rem;
  text-align: center;
}
.view .sub {
  color: var(--tblr-secondary);
  text-align: center;
  margin-bottom: 0.6rem;
}
.container-xl {
  max-width: var(--container-max);
  padding: 1.25rem;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border-radius: var(--radius);
  border: 1px solid var(--panel-brd);
  box-shadow: var(--panel-shadow);
  margin: 1rem auto 2rem;
  width: calc(100% - 2rem);
}
.page-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.page-title .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.page-title h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-tabs {
  border-bottom: 0 !important;
  padding: 0.5rem;
  background: transparent;
}
.nav-tabs .nav-link {
  border: none;
  border-radius: calc(var(--radius) - 4px);
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: var(--tblr-secondary);
  transition: all 0.25s;
  margin: 0 2px;
}
.nav-tabs .nav-link:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  transform: translateY(-1px);
}
.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
}
.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card {
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--radius) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
}
.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.card-header {
  border-radius: var(--radius) var(--radius) 0 0 !important;
  border-bottom: 1px solid var(--tblr-border-color);
  background: transparent;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  opacity: 0.85;
  flex: 0 0 auto;
}
.card-header .meta-muted {
  margin-left: auto;
  color: var(--tblr-secondary);
  flex: 0 0 auto;
}
@media (max-width: 576px) {
  .card-header .meta-muted {
    width: 100%;
    order: 3;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}
.table thead th {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tblr-body-color);
  border-bottom: 2px solid var(--tblr-border-color);
  background: var(--thead-bg);
}
.meta-muted {
  font-size: 0.95rem;
  color: var(--tblr-secondary);
}
.btn {
  border-radius: var(--radius) !important;
  font-weight: 600;
  border: none;
  transition: all 0.25s;
  padding: 0.55rem 1.1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 3px 10px rgba(167, 139, 250, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(167, 139, 250, 0.45);
}
.btn-outline-primary {
  border: 1px solid #c4b5fd !important;
  color: #a78bfa;
  background: transparent;
}
.btn-outline-primary:hover {
  background: rgba(167, 139, 250, 0.12);
}
.btn-outline-info {
  border: 1px solid rgba(0, 184, 217, 0.4) !important;
  color: #0aa2c0;
}
.btn-outline-info:hover {
  background: rgba(0, 184, 217, 0.12);
}
.btn-sm {
  border-radius: calc(var(--radius) - 6px) !important;
  padding: 0.45rem 0.8rem;
}
.form-control,
.form-select {
  border-radius: var(--radius) !important;
  border: 1px solid var(--tblr-border-color);
  background: var(--weak-bg);
  backdrop-filter: blur(6px);
}
.fancy-select {
  position: relative;
  min-width: 200px;
}
.fancy-select .select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.52rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--tblr-border-color);
  background: var(--weak-bg);
  cursor: pointer;
  font-weight: 700;
  color: var(--tblr-secondary);
  backdrop-filter: blur(6px);
}
.fancy-select .chev {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: transform 0.2s;
}
.fancy-select.open .chev {
  transform: rotate(180deg);
}
.fancy-select .select-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  max-height: 260px;
  overflow: auto;
  padding: 0.35rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  z-index: 1000;
}
.fancy-select .opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 6px);
  cursor: pointer;
  color: var(--tblr-body-color);
}
.fancy-select .opt:hover {
  background: var(--weak-bg);
}
.fancy-select .opt.active {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
}
@media (max-width: 576px) {
  .fancy-select {
    min-width: 0;
    width: 100%;
  }
}
.badge,
.status-pill {
  border-radius: var(--radius-pill) !important;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 26px;
}
.status-pill {
  white-space: nowrap;
}
.status-pending {
  background: rgba(255, 193, 7, 0.18);
  color: #8b6b00;
  border: 1px solid rgba(255, 193, 7, 0.38);
}
.status-shipped {
  background: rgba(40, 167, 69, 0.18);
  color: #0f6b3a;
  border: 1px solid rgba(40, 167, 69, 0.36);
}
.status-canceled {
  background: rgba(108, 117, 125, 0.18);
  color: #475057;
  border: 1px solid rgba(108, 117, 125, 0.36);
}
.redeem-notice {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: left;
}
.addr-item {
  border: 1px solid var(--tblr-border-color);
  border-radius: calc(var(--radius) - 4px);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--weak-bg);
  text-align: left;
}
.addr-item.selected {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
}
.address-card {
  transition: all 0.25s;
  border: 2px solid transparent;
  border-radius: var(--radius) !important;
}
.address-card:hover {
  border-color: #a78bfa;
  transform: translateY(-2px);
}
.address-card[data-default="1"] {
  border-color: #a78bfa;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(139, 92, 246, 0.06));
}
.address-add {
  border: 1px dashed var(--tblr-border-color);
  background: var(--weak-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  border-radius: var(--radius) !important;
}
.fab-theme {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1100;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--panel-brd);
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--panel-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
}
.fab-theme svg {
  width: 26px;
  height: 26px;
}
.fab-theme .icon-sun {
  display: block;
  color: #000;
}
.fab-theme .icon-moon {
  display: none;
  color: #fff;
}
html[data-bs-theme="dark"] .fab-theme .icon-sun {
  display: none;
}
html[data-bs-theme="dark"] .fab-theme .icon-moon {
  display: block;
}
@media (max-width: 576px) {
  .fab-theme {
    width: 48px;
    height: 48px;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
.swal2-popup.modal-compact {
  border-radius: var(--radius) !important;
  padding: 1rem !important;
  background: var(--tblr-bg-surface) !important;
  color: var(--tblr-body-color) !important;
  width: min(600px, 92vw) !important;
}
.announcement-modal {
  background: var(--panel-bg) !important;
  color: var(--tblr-body-color) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--panel-brd);
  backdrop-filter: blur(var(--panel-blur));
}
.announcement-modal .swal2-title {
  color: var(--tblr-body-color) !important;
  font-weight: 700;
}
.announcement-modal .swal2-html-container {
  color: var(--tblr-body-color) !important;
  text-align: left;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .container-xl {
    margin: 0.75rem auto 1.25rem;
    width: calc(100% - 1.5rem);
    padding: 1rem;
  }
  .card-header {
    padding: 0.65rem 0.9rem;
  }
  .card-body {
    padding: 0.75rem;
  }
  .table-responsive {
    font-size: 0.92rem;
    border-radius: var(--radius);
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .page-title .avatar {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 576px) {
  .container-xl {
    margin: 0.5rem auto 1rem;
    width: calc(100% - 1rem);
    padding: 0.75rem;
  }
  .btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.84rem;
  }
  .page-title h2 {
    font-size: 1.25rem;
  }
  .page-title .avatar {
    width: 40px;
    height: 40px;
  }
}
.page-title--centered {
  display: grid;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 0 14px;
}
.page-title--centered .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50% !important;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.6);
}
html[data-bs-theme="dark"] .page-title--centered .avatar {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.page-title--centered .ptc-name {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.2px;
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}
.page-title--centered .ptc-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-title--centered .ptc-meta .badge {
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill) !important;
}
@media (max-width: 576px) {
  .page-title--centered .avatar {
    width: 84px;
    height: 84px;
  }
  .page-title--centered .ptc-name {
    font-size: 1.25rem;
  }
}
.nav-tabs.nav-tabs--centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-tabs.nav-tabs--centered .nav-item {
  flex: 0 0 auto;
}
@media (max-width: 576px) {
  .nav-tabs.nav-tabs--centered {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-inline: 0.25rem;
  }
  .nav-tabs.nav-tabs--centered .nav-link {
    padding: 0.5rem 0.85rem;
  }
}
.swal2-container,
.swal2-popup,
.swal2-actions,
.swal2-icon,
.swal2-title,
.swal2-html-container {
  transition: none !important;
}
.swal2-container .swal2-show {
  animation: swal2-show 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
}
.swal2-container .swal2-hide {
  animation: swal2-hide 0.18s ease both !important;
}
.swal2-container,
.swal2-popup {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  .swal2-container,
  .swal2-popup,
  .swal2-actions,
  .swal2-icon,
  .swal2-title,
  .swal2-html-container,
  .swal2-timer-progress-bar {
    animation-duration: 0.25s !important;
    transition-duration: 0.25s !important;
  }
}
#tab-exchange .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#exchangeTable {
  width: max-content !important;
  table-layout: auto;
}
#exchangeTable thead th,
#exchangeTable tbody td {
  white-space: nowrap !important;
  vertical-align: middle;
}
#exchangeTable td * {
  white-space: inherit;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#exchangeTable .cell-gift,
#exchangeTable .cell-remark {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: auto !important;
}
#exchangeTable .cell-time {
  width: 1% !important;
}
#exchangeTable .cell-status {
  width: 1% !important;
}
#exchangeTable .cell-actions {
  width: 1% !important;
  text-align: left !important;
}
#exchangeTable .table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
#exTableWrap,
#tab-exchange .table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}
#exTableWrap:empty,
#tab-exchange .table-responsive:empty {
  display: none;
}
#exTableWrap > table,
#tab-exchange .table-responsive > table,
#exchangeTable {
  width: max-content !important;
  min-width: 960px;
  table-layout: auto;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}
#exchangeTable thead th,
#exchangeTable tbody td {
  white-space: nowrap !important;
  vertical-align: middle;
}
#exchangeTable td * {
  white-space: inherit;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#exchangeTable .cell-time {
  width: 1% !important;
}
#exchangeTable .cell-status {
  width: 1% !important;
}
#exchangeTable .cell-actions {
  width: 1% !important;
  text-align: left !important;
}
#exchangeTable .table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: center;
}
#exchangeTable .cell-gift,
#exchangeTable .cell-remark {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: auto !important;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
#tab-exchange .table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
#exchangeTable {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}
#exchangeTable thead th,
#exchangeTable tbody td {
  white-space: nowrap !important;
  vertical-align: middle;
}
#exchangeTable td * {
  white-space: inherit;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#exchangeTable .cell-time {
  width: 1% !important;
}
#exchangeTable .cell-status {
  width: 1% !important;
}
#exchangeTable .cell-actions {
  width: 1% !important;
  text-align: left !important;
}
#exchangeTable .table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: center;
}
#exchangeTable .cell-gift,
#exchangeTable .cell-remark {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: auto !important;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.page-title .avatar-container {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.page-title .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.page-title--centered .avatar-container {
  width: 96px !important;
  height: 96px !important;
}
.page-title--centered .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
}
html[data-bs-theme="dark"] .page-title--centered .avatar-img {
  border-color: rgba(255, 255, 255, 0.18);
}
.news-item {
  border-bottom: 1px solid var(--tblr-border-color);
  padding: 20px;
  display: flex;
  gap: 15px;
  transition: background-color 0.2s;
}
.news-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
html[data-bs-theme="dark"] .news-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
.news-item:last-child {
  border-bottom: none;
}
.news-content-wrapper {
  flex: 1;
}
.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tblr-body-color);
}
.news-text {
  color: var(--tblr-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}
.news-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--tblr-muted);
}
.news-actions {
  margin-top: 10px;
}
.news-image-wrapper {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--tblr-border-color);
}
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item {
  border-bottom: 1px solid var(--tblr-border-color);
  padding: 20px;
  display: flex;
  gap: 15px;
  overflow: hidden;
}
.news-content-wrapper {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-areas:
    "title"
    "body"
    "meta"
    "actions";
  row-gap: 8px;
}
.news-title {
  grid-area: title;
}
.news-body {
  grid-area: body;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.news-meta {
  grid-area: meta;
}
.news-actions {
  grid-area: actions;
}
.news-text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.news-image-wrapper {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--tblr-border-color);
}
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#exchangeTable .btn-outline-success {
  border: 1px solid rgba(32, 201, 151, 0.5) !important;
  color: #20c997;
  background: transparent;
}
#exchangeTable .btn-outline-success:hover {
  background: rgba(32, 201, 151, 0.12);
  border-color: #20c997 !important;
}
#exchangeTable .cell-actions {
  width: 1% !important;
  white-space: nowrap !important;
}
#exchangeTable .cell-gift {
  min-width: 120px;
}
#exchangeTable .cell-actions {
  min-width: 240px;
}
#exchangeTable .cell-status {
  min-width: 80px;
}
#exchangeTable .cell-time {
  min-width: 140px;
}
#exchangeTable .cell-express {
  min-width: 150px;
}
#exchangeTable .cell-remark {
  min-width: 100px;
}
.table thead {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(139, 92, 246, 0.08));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.table thead th {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tblr-body-color);
  border-bottom: 2px solid rgba(167, 139, 250, 0.2);
  background: transparent;
  padding: 0.95rem 1rem;
  letter-spacing: 0.3px;
  position: relative;
}
.table thead th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(167, 139, 250, 0.15) 20%,
    rgba(167, 139, 250, 0.15) 80%,
    transparent
  );
}
.table thead th:hover {
  background: rgba(167, 139, 250, 0.06);
}
.table tbody tr {
  transition: all 0.25s ease;
}
.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.04), rgba(139, 92, 246, 0.04));
  transform: translateX(3px);
  box-shadow: -3px 0 0 rgba(167, 139, 250, 0.3);
}
html[data-bs-theme="dark"] .table thead {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(139, 92, 246, 0.12));
}
html[data-bs-theme="dark"] .table thead th {
  border-bottom-color: rgba(167, 139, 250, 0.25);
}
html[data-bs-theme="dark"] .table thead th:not(:last-child)::after {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(167, 139, 250, 0.2) 20%,
    rgba(167, 139, 250, 0.2) 80%,
    transparent
  );
}
@media (max-width: 768px) {
  .table thead th {
    font-size: 0.88rem;
    padding: 0.75rem 0.75rem;
  }
  .table tbody td {
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
  }
  .table thead th:not(:last-child)::after {
    display: none;
  }
  .table tbody tr:hover {
    transform: none;
    box-shadow: none;
  }
}
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: var(--weak-bg);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.8), rgba(139, 92, 246, 0.8));
}
#reissueTableWrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
#reissueTableWrap:empty {
  display: none;
}
#reissueTable {
  width: max-content !important;
  min-width: 960px;
  table-layout: auto;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}
#reissueTable thead th,
#reissueTable tbody td {
  white-space: nowrap !important;
  vertical-align: middle;
}
#reissueTable td * {
  white-space: inherit;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#reissueTable .cell-gift {
  width: 1% !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#reissueTable .cell-actions {
  width: 1% !important;
  text-align: left !important;
}
#reissueTable .cell-status {
  width: 1% !important;
}
#reissueTable .cell-time {
  width: 1% !important;
}
#reissueTable .cell-reason {
  width: 1% !important;
  max-width: 300px;
}
#reissueTable .cell-express {
  width: 1% !important;
}
#reissueTable .table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: center;
}
#reissueTable .cell-reason {
  line-height: 1.4;
}
#reissueTable .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
#reissueTableWrap::-webkit-scrollbar {
  height: 8px;
}
#reissueTableWrap::-webkit-scrollbar-track {
  background: var(--weak-bg);
  border-radius: 4px;
}
#reissueTableWrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  border-radius: 4px;
}
#reissueTableWrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.8), rgba(139, 92, 246, 0.8));
}
@media (max-width: 768px) {
  #reissueTable {
    min-width: 900px !important;
  }
  #reissueTable .table-actions {
    gap: 0.4rem;
  }
  #reissueTable .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
  }
}
@media (max-width: 576px) {
  #reissueTable {
    min-width: 840px !important;
  }
  #reissueTable .table-actions {
    gap: 0.35rem;
  }
  #reissueTable .btn-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
  }
}
#reissueTable {
  width: 100% !important;
  table-layout: fixed;
  min-width: 0 !important;
}
#reissueTable th,
#reissueTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#reissueTable .cell-gift {
  width: 140px !important;
}
#reissueTable .cell-actions {
  width: 200px !important;
}
#reissueTable .cell-status {
  width: 100px !important;
}
#reissueTable .cell-time {
  width: 160px !important;
}
#reissueTable .cell-express {
  width: 200px !important;
}
#reissueTable .cell-reason {
  width: auto !important;
}
@media (max-width: 768px) {
  #reissueTable {
    min-width: 900px !important;
  }
}
@media (max-width: 576px) {
  #reissueTable {
    min-width: 840px !important;
  }
}
.push-setting-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--tblr-bg-surface-tertiary);
  border: 2px solid var(--tblr-border-color);
  transition: all 0.3s ease;
}
.push-setting-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.15);
  transform: translateY(-2px);
}
.push-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
}
.push-info {
  flex: 1;
}
.push-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tblr-body-color);
}
.push-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tblr-secondary);
}
.push-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
}
.push-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.push-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.push-toggle input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
.push-toggle input:not(:checked) + .toggle-slider {
  background: #9ca3af;
}
.push-toggle.loading {
  pointer-events: none;
  opacity: 0.6;
}
.push-toggle.loading .toggle-slider:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .push-setting-card {
    flex-direction: column;
    text-align: center;
  }
  .push-info {
    order: 2;
  }
  .push-toggle {
    order: 3;
    margin-top: 0.5rem;
  }
}
.gift-large-image {
  max-width: 90vw !important;
  max-height: 90vh !important;
  object-fit: contain;
  border-radius: 8px;
}
.nav-tabs--centered .nav-link {
  min-width: 90px;
  text-align: center;
}
@media (max-width: 576px) {
  .nav-tabs--centered {
    justify-content: center;
  }
  .nav-tabs--centered .nav-link {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }
}
.email-card {
  animation: fadeInUp 0.4s ease;
  max-width: 100%;
}
@media (min-width: 992px) {
  .email-card {
    max-width: 900px;
    margin: 0 auto;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.email-icon {
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
  transition: transform 0.3s ease;
}
.email-icon:hover {
  transform: scale(1.05);
}
#tab-email .btn {
  white-space: nowrap;
}
#emailManageContent .empty {
  padding: 3rem 1rem;
}
#emailManageContent .empty-icon {
  margin-bottom: 1rem;
  color: var(--tblr-muted);
}
#emailManageContent .empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#emailManageContent .empty-subtitle {
  color: var(--tblr-muted);
  margin-bottom: 1rem;
}
.virtual-gift-ready {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}
html[data-bs-theme="dark"] .virtual-gift-ready {
  background: rgba(14, 165, 233, 0.1);
  border-left-color: #38bdf8;
}
.virtual-gift-ready strong {
  color: #0369a1;
}
html[data-bs-theme="dark"] .virtual-gift-ready strong {
  color: #38bdf8;
}
.virtual-gift-ready ul {
  margin: 8px 0 0 20px;
  color: #334155;
}
html[data-bs-theme="dark"] .virtual-gift-ready ul {
  color: rgba(255, 255, 255, 0.85);
}
.virtual-gift-preparing {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}
html[data-bs-theme="dark"] .virtual-gift-preparing {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #fbbf24;
}
.virtual-gift-preparing strong {
  color: #92400e;
}
html[data-bs-theme="dark"] .virtual-gift-preparing strong {
  color: #fbbf24;
}
.virtual-gift-preparing ul {
  margin: 8px 0 0 20px;
  color: #451a03;
}
html[data-bs-theme="dark"] .virtual-gift-preparing ul {
  color: rgba(255, 255, 255, 0.85);
}
.virtual-gift-hint {
  color: #64748b;
  font-size: 13px;
}
html[data-bs-theme="dark"] .virtual-gift-hint {
  color: rgba(255, 255, 255, 0.65);
}
.email-info-alert {
  background: rgba(255, 255, 255, 0.6);
  border: none;
}
html[data-bs-theme="dark"] .email-info-alert {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.email-info-alert ul {
  padding-left: 20px;
  color: inherit;
}
html[data-bs-theme="dark"] .email-info-alert ul {
  color: rgba(255, 255, 255, 0.85);
}
.email-dialog-usage {
  margin: 8px 0 0 20px;
  font-size: 12px;
  line-height: 1.6;
}
html[data-bs-theme="dark"] .email-dialog-usage {
  color: rgba(255, 255, 255, 0.85);
}
.info-box-blue {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 12px;
  border-radius: 4px;
}
html[data-bs-theme="dark"] .info-box-blue {
  background: rgba(14, 165, 233, 0.1);
  border-left-color: #38bdf8;
}
.info-box-yellow {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px;
  border-radius: 4px;
}
html[data-bs-theme="dark"] .info-box-yellow {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #fbbf24;
}
.info-box-blue strong,
.info-box-yellow strong {
  display: block;
  margin-bottom: 4px;
}
html[data-bs-theme="dark"] .info-box-blue strong {
  color: #38bdf8;
}
html[data-bs-theme="dark"] .info-box-yellow strong {
  color: #fbbf24;
}
.swal2-html-container ul {
  text-align: left;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
html[data-bs-theme="dark"] .swal2-html-container {
  color: rgba(255, 255, 255, 0.9) !important;
}
html[data-bs-theme="dark"] .swal2-html-container ul {
  color: rgba(255, 255, 255, 0.85);
}
html[data-bs-theme="dark"] .swal2-html-container p {
  color: rgba(255, 255, 255, 0.85);
}
html[data-bs-theme="dark"] .addr-item {
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-bs-theme="dark"] .addr-item:hover {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}
html[data-bs-theme="dark"] .form-label {
  color: rgba(255, 255, 255, 0.9);
}
html[data-bs-theme="dark"] .form-text {
  color: rgba(255, 255, 255, 0.65);
}
html[data-bs-theme="dark"] .gift-large-image {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
html[data-bs-theme="dark"] #reissueTable tbody tr:hover {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.08), rgba(139, 92, 246, 0.08));
}
html[data-bs-theme="dark"] #collectTaskContainer .card {
  background: var(--panel-bg);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-bs-theme="dark"] #messageContainer .card {
  background: var(--panel-bg);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-bs-theme="dark"] .news-meta {
  color: rgba(255, 255, 255, 0.6);
}
html[data-bs-theme="dark"] .news-text {
  color: rgba(255, 255, 255, 0.7);
}
.pagination-info {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  color: var(--tblr-secondary);
  font-size: 0.875rem;
}
html[data-bs-theme="dark"] .pagination-info {
  color: rgba(255, 255, 255, 0.7);
}
.pagination-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  color: var(--tblr-secondary);
}
html[data-bs-theme="dark"] .pagination-dots {
  color: rgba(255, 255, 255, 0.5);
}
html[data-bs-theme="dark"] .empty-icon {
  color: rgba(255, 255, 255, 0.4);
}
html[data-bs-theme="dark"] .empty-title {
  color: rgba(255, 255, 255, 0.9);
}
html[data-bs-theme="dark"] .empty-subtitle {
  color: rgba(255, 255, 255, 0.6);
}
html[data-bs-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
html[data-bs-theme="dark"] .alert-info {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
html[data-bs-theme="dark"] .badge.bg-blue {
  background: #4f7bff !important;
}
html[data-bs-theme="dark"] .badge.bg-red {
  background: #ff4757 !important;
}
html[data-bs-theme="dark"] .badge.bg-purple {
  background: #a55eea !important;
}
.express-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
html[data-bs-theme="dark"] .express-item input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
html[data-bs-theme="dark"] .express-item input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
html[data-bs-theme="dark"] [style*="background:#f8f9fa"] {
  background: rgba(255, 255, 255, 0.05) !important;
}
html[data-bs-theme="dark"] [style*="background:#f0f9ff"] {
  background: rgba(14, 165, 233, 0.1) !important;
}
html[data-bs-theme="dark"] [style*="background:#fef3c7"] {
  background: rgba(245, 158, 11, 0.12) !important;
}
html[data-bs-theme="dark"] [style*="color:#64748b"] {
  color: rgba(255, 255, 255, 0.65) !important;
}
html[data-bs-theme="dark"] [style*="color:#334155"] {
  color: rgba(255, 255, 255, 0.85) !important;
}
html[data-bs-theme="dark"] [style*="color:#0369a1"] {
  color: #38bdf8 !important;
}
html[data-bs-theme="dark"] [style*="color:#92400e"] {
  color: #fbbf24 !important;
}
html[data-bs-theme="dark"] [style*="color:#451a03"] {
  color: rgba(255, 255, 255, 0.85) !important;
}
.inbox-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #e53935;
  border-radius: 9px;
  vertical-align: middle;
}
.conversation-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tblr-border-color);
  cursor: pointer;
  transition: background 0.15s;
}
.conversation-item:hover {
  background: var(--tblr-bg-surface-secondary);
}
.conversation-item.conversation-unread {
  background: rgba(167, 139, 250, 0.08);
  border-left: 3px solid #a78bfa;
}
.conversation-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.conversation-subject {
  font-weight: 600;
  font-size: 15px;
  color: var(--tblr-body-color);
}
.conversation-preview {
  font-size: 13px;
  color: var(--tblr-secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}
.conversation-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tblr-muted);
}
.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.message-item {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 85%;
  align-items: flex-start;
}
.message-item.message-left {
  margin-right: auto;
  flex-direction: row;
}
.message-item.message-right {
  margin-left: auto;
  flex-direction: row-reverse;
}
.message-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.message-item.message-right .message-content {
  text-align: right;
}
.message-sender {
  font-size: 12px;
  color: var(--tblr-muted);
  margin-bottom: 4px;
}
.message-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
  overflow-wrap: break-word;
}
.message-bubble-admin {
  background: var(--tblr-bg-surface-secondary);
  color: var(--tblr-body-color);
  border-bottom-left-radius: 4px;
}
.message-bubble-user {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.message-text {
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.message-attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.message-image {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: contain;
  display: block;
}
.message-image:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .message-item {
    max-width: 90%;
    gap: 8px;
  }
  .message-avatar {
    width: 32px;
    height: 32px;
  }
  .message-bubble {
    padding: 8px 12px;
    font-size: 13px;
  }
  .message-image {
    max-height: 200px;
  }
}
@media (max-width: 576px) {
  .message-item {
    max-width: 95%;
    gap: 6px;
  }
  .message-avatar {
    width: 28px;
    height: 28px;
  }
  .message-bubble {
    padding: 8px 10px;
    font-size: 13px;
  }
  .message-sender {
    font-size: 11px;
  }
  .message-image {
    max-height: 180px;
    border-radius: 6px;
  }
}
.image-preview-container {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--tblr-border-color);
}
.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.image-preview-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}
html[data-bs-theme="dark"] .image-preview-item {
  border-color: rgba(255, 255, 255, 0.15);
}
html[data-bs-theme="dark"] .image-preview-remove {
  background: rgba(255, 255, 255, 0.15);
}
html[data-bs-theme="dark"] .image-preview-remove:hover {
  background: rgba(255, 255, 255, 0.25);
}
#conversationMessages {
  position: relative;
  scroll-behavior: smooth;
  padding: 1rem;
}
#conversationMessages::-webkit-scrollbar {
  width: 6px;
}
#conversationMessages::-webkit-scrollbar-track {
  background: transparent;
}
#conversationMessages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
#conversationMessages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
html[data-bs-theme="dark"] #conversationMessages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}
html[data-bs-theme="dark"] #conversationMessages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
#replyArea .input-group textarea {
  resize: none;
  min-height: 42px;
}
#btnSendReply {
  padding: 0 16px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px !important;
}
#replyArea .input-group {
  gap: 8px;
}
#replyArea .btn-outline-secondary {
  padding: 0 12px;
}
.notice-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tblr-border-color);
  cursor: pointer;
  transition: background 0.15s;
}
.notice-item:hover {
  background: var(--tblr-bg-surface-secondary);
}
.notice-item.notice-unread {
  background: rgba(255, 152, 0, 0.08);
  border-left: 3px solid #ff9800;
}
.notice-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.notice-icon {
  font-size: 16px;
}
.notice-title {
  font-weight: 600;
  font-size: 15px;
}
.notice-time {
  font-size: 12px;
  color: var(--tblr-muted);
}
.notice-content {
  font-size: 13px;
  color: var(--tblr-secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nav-tabs-alt {
  border-bottom: 1px solid var(--tblr-border-color);
  padding: 0 16px;
}
.nav-tabs-alt .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  color: var(--tblr-secondary-color);
}
.nav-tabs-alt .nav-link.active {
  color: #a78bfa;
  border-bottom-color: #a78bfa;
  background: transparent;
}
.nav-tabs-alt .nav-link:hover:not(.active) {
  border-bottom-color: var(--tblr-border-color);
}
[data-bs-theme="dark"] .alert-success {
  background-color: rgba(40, 167, 69, 0.15);
  border-color: rgba(40, 167, 69, 0.3);
  color: #4ade80;
}
[data-bs-theme="dark"] .alert-secondary {
  background-color: rgba(108, 117, 125, 0.15);
  border-color: rgba(108, 117, 125, 0.3);
  color: #94a3b8;
}
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.strength-bar i {
  height: 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}
html[data-bs-theme="dark"] .strength-bar i {
  background: rgba(255, 255, 255, 0.16);
}
.strength-1 i:nth-child(1),
.strength-2 i:nth-child(-n + 2),
.strength-3 i:nth-child(-n + 3),
.strength-4 i:nth-child(-n + 4) {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)) !important;
}
html[data-bs-theme="dark"] .strength-1 i:nth-child(1),
html[data-bs-theme="dark"] .strength-2 i:nth-child(-n + 2),
html[data-bs-theme="dark"] .strength-3 i:nth-child(-n + 3),
html[data-bs-theme="dark"] .strength-4 i:nth-child(-n + 4) {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)) !important;
}
#conversationMessages {
  height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.4) !important;
  border-radius: var(--radius, 14px) !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
.swal2-styled.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5) !important;
}
.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5) !important;
}
.swal2-styled.swal2-cancel {
  border-radius: var(--radius, 14px) !important;
}
.swal2-styled.swal2-deny {
  border-radius: var(--radius, 14px) !important;
}
.alert-info {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(139, 92, 246, 0.12)) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  color: #6d28d9 !important;
  border-radius: var(--radius, 14px) !important;
}
.alert-info .alert-link {
  color: #5b21b6 !important;
}
html[data-bs-theme="dark"] .alert-info {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.15)) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
  color: #c4b5fd !important;
}
html[data-bs-theme="dark"] .alert-info .alert-link {
  color: #a78bfa !important;
}
.btn-outline-primary {
  border: 1px solid #a78bfa !important;
  color: #8b5cf6 !important;
  background: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(167, 139, 250, 0.15) !important;
  border-color: #8b5cf6 !important;
  color: #7c3aed !important;
}
html[data-bs-theme="dark"] .btn-outline-primary:hover,
html[data-bs-theme="dark"] .btn-outline-primary:focus {
  background: rgba(167, 139, 250, 0.2) !important;
  color: #c4b5fd !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(108, 117, 125, 0.12) !important;
  color: #495057 !important;
}
html[data-bs-theme="dark"] .btn-outline-secondary:hover,
html[data-bs-theme="dark"] .btn-outline-secondary:focus {
  background: rgba(108, 117, 125, 0.2) !important;
  color: #adb5bd !important;
}
.btn-outline-info {
  border: 1px solid rgba(167, 139, 250, 0.5) !important;
  color: #8b5cf6 !important;
}
.btn-outline-info:hover,
.btn-outline-info:focus {
  background: rgba(167, 139, 250, 0.12) !important;
  border-color: #a78bfa !important;
  color: #7c3aed !important;
}
html[data-bs-theme="dark"] .btn-outline-info:hover,
html[data-bs-theme="dark"] .btn-outline-info:focus {
  background: rgba(167, 139, 250, 0.2) !important;
  color: #c4b5fd !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background: rgba(32, 201, 151, 0.12) !important;
  color: #0f9d6e !important;
}
html[data-bs-theme="dark"] .btn-outline-success:hover,
html[data-bs-theme="dark"] .btn-outline-success:focus {
  background: rgba(32, 201, 151, 0.2) !important;
  color: #34d399 !important;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus {
  background: rgba(255, 193, 7, 0.12) !important;
  color: #9a6700 !important;
}
html[data-bs-theme="dark"] .btn-outline-warning:hover,
html[data-bs-theme="dark"] .btn-outline-warning:focus {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #fbbf24 !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: rgba(220, 53, 69, 0.12) !important;
  color: #b02a37 !important;
}
html[data-bs-theme="dark"] .btn-outline-danger:hover,
html[data-bs-theme="dark"] .btn-outline-danger:focus {
  background: rgba(220, 53, 69, 0.2) !important;
  color: #f87171 !important;
}
.btn-link {
  color: #8b5cf6 !important;
}
.btn-link:hover {
  color: #7c3aed !important;
}
html[data-bs-theme="dark"] .btn-link {
  color: #a78bfa !important;
}
html[data-bs-theme="dark"] .btn-link:hover {
  color: #c4b5fd !important;
}
.table-actions .btn-outline-primary,
.table-actions .btn-outline-info,
.table-actions .btn-outline-secondary,
.table-actions .btn-outline-success,
.table-actions .btn-outline-warning,
.table-actions .btn-outline-danger {
  transition: all 0.2s ease !important;
}
.form-control:focus,
.form-select:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25) !important;
}
.form-check-input:checked {
  background-color: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
}
.form-check-input:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25) !important;
}
.page-link {
  color: #8b5cf6 !important;
}
.page-link:hover {
  color: #7c3aed !important;
  background: rgba(167, 139, 250, 0.1) !important;
}
.page-item.active .page-link {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
  border-color: #8b5cf6 !important;
  color: #fff !important;
}
.progress-bar {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
}
.spinner-border {
  color: #8b5cf6 !important;
}
.spinner-grow {
  color: #8b5cf6 !important;
}
.badge.bg-primary,
.badge.bg-info {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
}
.dropdown-item.active,
.dropdown-item:active {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
  color: #fff !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(167, 139, 250, 0.12) !important;
  color: #7c3aed !important;
}
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus {
  background: rgba(167, 139, 250, 0.15) !important;
  color: #c4b5fd !important;
}