:root {
  --pw-bg-1: #f3f8ff;
  --pw-bg-2: #e4f0ff;
  --pw-bg-3: #d8eaff;
  --pw-surface: rgba(255, 255, 255, 0.86);
  --pw-surface-strong: rgba(255, 255, 255, 0.94);
  --pw-text: #14233b;
  --pw-muted: #5f7596;
  --pw-primary: #2c7be5;
  --pw-primary-2: #1d5fc8;
  --pw-accent: #4b93ff;
  --pw-success: #24a56b;
  --pw-danger: #d33f6a;
  --pw-border: rgba(102, 154, 222, 0.34);
  --pw-shadow-soft: 0 12px 34px rgba(43, 97, 173, 0.14);
  --pw-shadow-strong: 0 18px 48px rgba(34, 84, 158, 0.2);
  --pw-radius: 16px;
}

html,
body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  color: var(--pw-text);
  background:
    radial-gradient(1200px 520px at -12% -18%, rgba(85, 152, 255, 0.24), transparent 60%),
    radial-gradient(1200px 520px at 120% -8%, rgba(62, 118, 220, 0.22), transparent 60%),
    radial-gradient(900px 420px at 50% 120%, rgba(127, 182, 255, 0.20), transparent 70%),
    linear-gradient(145deg, var(--pw-bg-1), var(--pw-bg-2) 45%, var(--pw-bg-3));
  font-family: "Source Han Sans SC", "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.12px;
}

body::before {
  content: none;
} 

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(73, 145, 255, 0.70) 0 10px, transparent 11px),
    radial-gradient(circle at 58px 18px, rgba(20, 52, 96, 0.72) 0 8px, transparent 9px),
    radial-gradient(circle at 98px 18px, rgba(155, 202, 255, 0.72) 0 10px, transparent 11px),
    radial-gradient(circle at 18px 58px, rgba(20, 52, 96, 0.68) 0 9px, transparent 10px),
    radial-gradient(circle at 58px 58px, rgba(73, 145, 255, 0.70) 0 11px, transparent 12px),
    radial-gradient(circle at 98px 58px, rgba(155, 202, 255, 0.68) 0 9px, transparent 10px),
    radial-gradient(circle at 18px 98px, rgba(155, 202, 255, 0.62) 0 10px, transparent 11px),
    radial-gradient(circle at 58px 98px, rgba(20, 52, 96, 0.66) 0 8px, transparent 9px),
    radial-gradient(circle at 98px 98px, rgba(73, 145, 255, 0.70) 0 10px, transparent 11px);
  background-size: 116px 116px;
  background-repeat: repeat;
  opacity: 0.26;
  z-index: -1;
}

.container,
.container-fluid {
  position: relative;
  z-index: 1;
  animation: pw-page-enter 0.35s ease-out;
}

.container {
  max-width: 100% !important;
  width: 100%;
  padding-left: clamp(14px, 2vw, 28px);
  padding-right: clamp(14px, 2vw, 28px);
}

@keyframes pw-page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  background: linear-gradient(160deg, var(--pw-surface-strong), var(--pw-surface));
  box-shadow: var(--pw-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card .card-header {
  background: transparent;
  border-bottom-color: rgba(118, 161, 220, 0.28);
  color: #294f85;
  font-weight: 700;
}

h3,
h4,
h5,
h6 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.small,
.text-secondary {
  color: var(--pw-muted) !important;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(50, 108, 189, 0.22);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-success {
  border: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pw-primary), var(--pw-primary-2));
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #2ec880, #1f9f63);
}

.btn-outline-primary {
  color: #245ea8;
  border-color: rgba(64, 121, 211, 0.55);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary {
  color: #3b5f8b;
  border-color: rgba(108, 146, 196, 0.50);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-danger {
  color: #2e5fa6;
  border-color: rgba(92, 132, 196, 0.58);
  background: rgba(255, 255, 255, 0.72);
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid rgba(111, 158, 219, 0.45);
  background: rgba(255, 255, 255, 0.86);
  color: var(--pw-text);
}

.form-control::placeholder,
.form-select::placeholder {
  color: #7d99bb;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(56, 119, 212, 0.70);
  box-shadow: 0 0 0 0.2rem rgba(56, 119, 212, 0.18);
  background: #fff;
}

.table {
  margin-bottom: 0;
  --bs-table-cell-padding-x: 0.9rem;
  --bs-table-cell-padding-y: 0.72rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-size: 0.95rem;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(232, 136, 182, 0.25);
  vertical-align: middle;
  padding: var(--bs-table-cell-padding-y) var(--bs-table-cell-padding-x);
}

.table thead th,
.table > :not(caption) > * > th {
  color: #214f8e;
  font-weight: 700;
  white-space: nowrap;
  text-align: left !important;
}

.table tbody tr:hover {
  background: rgba(90, 146, 224, 0.10);
}

.table tbody td,
.table > :not(caption) > * > td {
  text-align: left !important;
  line-height: 1.45;
  word-break: break-word;
}

.table .text-center,
.table td.text-center,
.table th.text-center {
  text-align: left !important;
}

.table td:last-child .btn,
.table td:last-child .btn-sm {
  margin-right: 4px;
}

.table-responsive {
  padding-left: 2px;
  padding-right: 2px;
}

.list-group-item {
  border-color: rgba(124, 163, 214, 0.45);
  background: rgba(255, 255, 255, 0.84);
}

.alert {
  border-radius: 12px;
  border: 1px solid transparent;
}

.alert-info {
  background: rgba(236, 246, 255, 0.92);
  border-color: rgba(124, 163, 214, 0.45);
  color: #2b568f;
}

.alert-danger {
  background: rgba(255, 238, 241, 0.92);
  border-color: rgba(223, 133, 157, 0.5);
  color: #af2d56;
}

.alert-success {
  background: rgba(236, 255, 245, 0.92);
  border-color: rgba(144, 216, 176, 0.55);
  color: #1f7d4f;
}

.badge,
.text-bg-primary {
  background: linear-gradient(135deg, #3a86eb, #255fbe) !important;
}

code {
  color: #265ea6;
}

.pw-notify-badge {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.35rem !important;
  height: 1.35rem !important;
  padding: 0 0.42rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #3c86ec, #1f65cc) !important;
  box-shadow: 0 8px 18px rgba(36, 103, 201, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  line-height: 1 !important;
}

.pw-notify-badge:empty {
  display: none !important;
}

@media (max-width: 992px) {
  .container,
  .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }

  h3 {
    font-size: 1.2rem;
  }
}









/* ===== Premium Layout & Motion Refinement ===== */
:root {
  --pw-ease: cubic-bezier(.2,.7,.2,1);
  --pw-glow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 12px 36px rgba(44, 96, 174, .16);
}

.container-fluid {
  max-width: min(1680px, 98vw);
  margin-inline: auto;
}

h3 {
  position: relative;
  color: #1f4f8f;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a9fff, #2b6ed6);
  box-shadow: 0 6px 16px rgba(54,110,200,.34);
}

.card {
  transition: transform .22s var(--pw-ease), box-shadow .22s var(--pw-ease), border-color .22s var(--pw-ease);
  box-shadow: var(--pw-glow), var(--pw-shadow-soft);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.62) inset, 0 18px 44px rgba(44, 96, 174, .2);
  border-color: rgba(99, 148, 219, .52);
}

.list-group-item {
  transition: transform .16s var(--pw-ease), box-shadow .16s var(--pw-ease), background .2s ease;
}

.list-group-item:hover {
  transform: translateX(3px);
  box-shadow: 0 8px 18px rgba(66, 118, 194, .18);
}

.list-group-item.active,
.list-group-item:focus-visible {
  background: linear-gradient(135deg, rgba(86, 148, 230, .17), rgba(60, 116, 200, .14));
  border-color: rgba(56, 119, 212, .55);
  color: #1f4f8f;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .36s var(--pw-ease);
}

.btn:hover::after {
  left: 130%;
}

.form-control,
.form-select {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-1px);
}

.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  background: rgba(236, 244, 255, 0.96);
  letter-spacing: .2px;
}

.table tbody tr {
  transition: background .16s ease, transform .16s var(--pw-ease);
}

.table tbody tr:hover {
  transform: translateX(2px);
}

.table tbody tr:nth-child(1) { animation: pw-row-in .28s var(--pw-ease) both; }
.table tbody tr:nth-child(2) { animation: pw-row-in .34s var(--pw-ease) both; }
.table tbody tr:nth-child(3) { animation: pw-row-in .40s var(--pw-ease) both; }
.table tbody tr:nth-child(4) { animation: pw-row-in .46s var(--pw-ease) both; }
.table tbody tr:nth-child(5) { animation: pw-row-in .52s var(--pw-ease) both; }

@keyframes pw-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pw-notify-badge {
  animation: pw-badge-pulse 1.8s ease-in-out infinite;
}

@keyframes pw-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(215, 56, 134, 0.34); }
  50% { transform: scale(1.06); box-shadow: 0 10px 24px rgba(215, 56, 134, 0.46); }
}

#pwToastStack .pw-toast-item {
  border-width: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pw-toast-drop .26s var(--pw-ease) both;
}

@keyframes pw-toast-drop {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.report-modal-card,
.claim-modal-card {
  border: 1px solid rgba(96, 147, 217, .36);
  background: linear-gradient(165deg, rgba(255,255,255,.95), rgba(244,249,255,.95));
  animation: pw-modal-in .2s var(--pw-ease) both;
}

@keyframes pw-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}






/* ===== Unified Hover Feedback For All Entrances ===== */
button,
.btn,
a.btn,
.list-group-item,
.page-link,
[role="button"],
input[type="submit"],
input[type="button"] {
  cursor: pointer;
  transition: transform .14s var(--pw-ease), box-shadow .14s var(--pw-ease), filter .14s ease, background-color .14s ease, border-color .14s ease;
}

button:hover,
.btn:hover,
a.btn:hover,
.list-group-item:hover,
.page-link:hover,
[role="button"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 10px 20px rgba(43, 97, 173, 0.18);
}

button:active,
.btn:active,
a.btn:active,
.page-link:active,
[role="button"]:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
}

button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible,
.list-group-item:focus-visible,
.page-link:focus-visible,
[role="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 2px solid rgba(44, 123, 229, 0.45);
  outline-offset: 2px;
}

.table td a[href]:not(.btn),
.table td button:not(.btn) {
  transition: color .14s ease, text-decoration-color .14s ease;
}

.table td a[href]:not(.btn):hover,
.table td button:not(.btn):hover {
  color: #1d5fc8;
  text-decoration: underline;
}
