* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; min-height: 100%; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Segoe UI, Roboto, sans-serif; color: #fff; }
body { background: #050816; }
#screen-dashboard { height: 100vh; min-height: 100vh; display: flex; flex-direction: column; }
.dashboard-wrap { width: 100%; height: 100%; min-height: 100%; display: flex; flex-direction: row; align-items: stretch; }
.dashboard-wrap > aside { flex-shrink: 0; }
.dashboard-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dashboard-main .modules-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.module-container { width: 100%; flex: 1 1 auto; min-height: 100%; overflow: visible; }
.hidden { display: none !important; }

@keyframes float-anim1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-anim2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes flow-path { to { stroke-dashoffset: -400; } }
@keyframes twinkle { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes pulse-glow { 0%,100% { filter: drop-shadow(0 0 4px rgba(100,200,255,.4)); } 50% { filter: drop-shadow(0 0 14px rgba(100,200,255,.9)); } }

/* 动态流动效果 */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

@keyframes light-sweep {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.flow-path {
  animation: flow-path 6s linear infinite;
}

.twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.float-anim1 {
  animation: float-anim1 4.2s ease-in-out infinite;
}

.float-anim2 {
  animation: float-anim2 4.8s ease-in-out infinite;
}

.dash-card {
  background: linear-gradient(180deg, rgba(22,32,60,.92) 0%, rgba(14,22,45,.92) 100%);
  border: 1px solid rgba(100,140,220,.18);
  border-radius: 14px;
}

.ring-progress text { fill: none; }

/* ============================================================ 登录页 v2 */

#screen-login>.lp-root {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.lp-left {
  width: 60%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30,86,192,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(45,123,255,.28) 0%, transparent 50%),
    linear-gradient(135deg, #050816 0%, #0a1128 50%, #060b1f 100%);
  background-size: 200% 200%;
  animation: gradient-flow 15s ease infinite;
  overflow: hidden;
}

.lp-right {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(30,86,192,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(45,123,255,.18) 0%, transparent 55%),
    linear-gradient(160deg, #080d1f 0%, #0b1430 50%, #070c1c 100%);
  background-size: 200% 200%;
  animation: gradient-flow 18s ease infinite;
  padding: 40px;
}

.lp-card {
  position: relative;
  aspect-ratio: 1 / 1.18;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(14px);
  background: rgba(11,23,55,.65);
  border: 1px solid rgba(100,160,255,.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(30,86,192,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* 卡片边框流光效果 */
.lp-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45,123,255,.6) 25%,
    rgba(110,231,218,.6) 50%,
    rgba(45,123,255,.6) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: border-flow 4s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.lp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(45,123,255,.1) 0%,
    transparent 50%,
    rgba(110,231,218,.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.lp-card-inner {
  position: relative;
  z-index: 2;
  padding: 16% 11%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lp-title {
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 2px;
  margin: 0 0 6px 0;
  text-align: center;
}

.lp-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8ea4c9;
  font-size: 12px;
  margin: 0 0 32px 0;
  letter-spacing: 1px;
}

.lp-subtitle::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142,164,201,.5));
}

.lp-subtitle::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(142,164,201,.5), transparent);
}

.lp-input-group {
  position: relative;
  margin-bottom: 18px;
}

.lp-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  background: rgba(8,14,35,.7);
  border: 1px solid rgba(100,160,255,.18);
  border-radius: 10px;
  color: #e8eefc;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.lp-input::placeholder {
  color: #8ea4c9;
}

.lp-input:focus {
  border-color: rgba(45,123,255,.55);
  box-shadow: 0 0 0 3px rgba(45,123,255,.12);
}

.lp-is-password {
  padding-right: 40px;
}

.lp-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b8ab8;
  pointer-events: none;
}

.lp-eye {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b8ab8;
  cursor: pointer;
  user-select: none;
}

.lp-eye:hover {
  color: #a8c0e6;
}

.lp-login-btn {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  background: linear-gradient(90deg, #1e56c0 0%, #2d7bff 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: filter .2s, transform .1s;
  box-shadow: 0 4px 20px rgba(45,123,255,.35);
}

.lp-login-btn:hover {
  filter: brightness(1.08);
}

.lp-login-btn:active {
  transform: translateY(1px);
}

.lp-panel {
  position: absolute;
  z-index: 3;
  background: rgba(11,23,55,.55);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}

.lp-panel-capital {
  width: 22%;
  height: 32%;
  top: 8%;
  left: 5%;
  border: 1px solid rgba(80,150,255,.35);
  box-shadow:
    0 0 24px rgba(45,123,255,.25),
    inset 0 0 20px rgba(45,123,255,.08);
  overflow: hidden;
}

.lp-panel-capital::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    rgba(45,123,255,.0) 0deg,
    rgba(45,123,255,.55) 90deg,
    rgba(30,86,192,.0) 180deg,
    rgba(91,160,255,.45) 270deg,
    rgba(45,123,255,.0) 360deg
  );
  mask: radial-gradient(circle, transparent 55%, #000 57%);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
  opacity: .6;
}

.lp-donut {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
}

.lp-panel-flow {
  width: 30%;
  height: 26%;
  left: 50%;
  transform: translateX(-50%);
  top: 6%;
  border: 1px solid rgba(20,220,200,.3);
  box-shadow:
    0 0 24px rgba(20,220,200,.18),
    inset 0 0 20px rgba(20,220,200,.06);
}

.lp-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-panel-income {
  width: 22%;
  height: 22%;
  right: 5%;
  top: 45%;
  transform: translateY(-50%);
  border: 1px solid rgba(110,130,180,.22);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp-income-in {
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 700;
}

.lp-income-out {
  color: #fca5a5;
  font-size: 22px;
  font-weight: 700;
}

.lp-city {
  position: absolute;
  width: 44%;
  height: 52%;
  bottom: 28%;
  left: 28%;
  z-index: 2;
}

.lp-base {
  position: absolute;
  inset: 0;
  perspective: 800px;
  transform-style: preserve-3d;
}

.lp-base::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 40%;
  transform: rotateX(58deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(100,160,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,160,255,.35) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid rgba(100,160,255,.5);
  box-shadow:
    0 0 30px rgba(100,160,255,.35),
    inset 0 0 40px rgba(100,160,255,.2);
}

.lp-tower {
  position: absolute;
  bottom: 38%;
  background: linear-gradient(180deg, rgba(60,110,200,.55) 0%, rgba(30,60,120,.7) 100%);
  border: 1px solid rgba(140,180,255,.5);
  box-shadow:
    0 0 16px rgba(100,160,255,.4),
    inset 0 0 10px rgba(200,220,255,.1);
}

.lp-tower.tl { left: 8%; width: 14%; height: 64%; }
.lp-tower.tm { left: 32%; width: 12%; height: 44%; }
.lp-tower.rm { right: 32%; width: 12%; height: 40%; }
.lp-tower.tr { right: 8%; width: 14%; height: 60%; }

.lp-spire {
  position: relative;
  width: 100%;
  height: 100%;
}

.lp-spire::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, #5ba0ff, transparent);
}

.lp-spire::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 16px #5ba0ff;
}

.lp-book {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 55%;
  aspect-ratio: 1 / 1.4;
  border-radius: 4px 10px 10px 4px;
  background:
    linear-gradient(145deg, #1a2a5a 0%, #0c1638 100%);
  box-shadow:
    0 8px 30px rgba(0,0,0,.5),
    inset 2px 0 0 rgba(212,175,55,.6);
  overflow: hidden;
}

.lp-book::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent);
}

.lp-book-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 6px;
  text-shadow: 0 0 8px rgba(212,175,55,.5);
  background: linear-gradient(145deg, #f5d77e 0%, #d4af37 50%, #a88728 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-book-divider {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.lp-book-pages {
  position: absolute;
  left: 4px;
  top: 10%;
  bottom: 10%;
  width: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 10px 0;
}

.lp-book-pages span {
  display: block;
  height: 1px;
  background: #c0c5d0;
}

.lp-book-pages span:nth-child(1) { opacity: .35; }
.lp-book-pages span:nth-child(2) { opacity: .28; }
.lp-book-pages span:nth-child(3) { opacity: .22; }

.lp-mini {
  position: absolute;
  background: rgba(12,22,52,.85);
  border: 1px solid rgba(140,180,255,.25);
  border-radius: 6px;
  color: #b8c8e6;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 10px;
  z-index: 3;
}

.lp-mini.cash {
  top: 12%;
  right: 12%;
}

.lp-mini.shop {
  bottom: 12%;
  left: 12%;
}

/* 金色流动效果 */
@keyframes gold-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gold-shimmer {
  0%, 100% { opacity: 0.6; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.3); }
}

@keyframes gold-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes gold-line-flow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.lp-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  z-index: 4;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(212,175,55,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 100%, rgba(245,215,126,.22) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(168,135,40,.25) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gold-flow 8s ease infinite;
  overflow: hidden;
}

.lp-ribbon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 35%, rgba(91,160,255,.12), transparent 45%);
  pointer-events: none;
}

.lp-left::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -180px;
  top: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,86,192,.22), transparent 65%);
  filter: blur(30px);
}

.lp-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(45,123,255,.06), transparent 60%);
  pointer-events: none;
}

.lp-card:hover {
  border-color: rgba(100,160,255,.35);
  box-shadow: 0 0 55px rgba(30,86,192,.35), inset 0 1px 0 rgba(255,255,255,.08);
}

.lp-input-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lp-login-btn:disabled {
  filter: grayscale(.4) brightness(.85);
  cursor: not-allowed;
  transform: none !important;
}

.lp-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.lp-city::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: radial-gradient(ellipse at 50% 80%, rgba(91,160,255,.15), transparent 60%);
  filter: blur(20px);
}

.lp-tower::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  bottom: 12%;
  background-image:
    linear-gradient(rgba(200,220,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,220,255,.35) 1px, transparent 1px);
  background-size: 6px 8px;
  opacity: .55;
}

.lp-book::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.25));
  border-radius: 0 10px 10px 0;
}

.lp-ribbon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  width: 70%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(212,175,55,.18), transparent 70%);
  filter: blur(16px);
}

.lp-ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent);
}

.lp-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, #2d7bff, transparent);
}

.lp-login-btn::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 10px rgba(255,255,255,.8);
}

.lp-card-inner::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.35), transparent);
}

.lp-panel::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(100,160,255,.6);
  border-left: 1px solid rgba(100,160,255,.6);
  border-radius: 2px 0 0 0;
}

.lp-mini::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  background: #5ba0ff;
  box-shadow: 0 0 6px #5ba0ff;
}

.lp-mini.cash::before { background: #6ee7b7; box-shadow: 0 0 6px #6ee7b7; }
.lp-mini.shop::before { background: #fca5a5; box-shadow: 0 0 6px #fca5a5; }

.lp-tower::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  pointer-events: none;
}

.lp-city::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.45), transparent);
}

.lp-income-in::before {
  content: "IN +";
  display: block;
  font-size: 10px;
  color: rgba(110,231,183,.55);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.lp-income-out::before {
  content: "OUT -";
  display: block;
  font-size: 10px;
  color: rgba(252,165,165,.55);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.lp-input:focus + .lp-input-icon {
  color: #a8c0e6;
}

.lp-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(91,160,255,.45);
  animation: lp-spin 18s linear infinite;
}

.lp-flow-svg path {
  stroke: rgba(20,220,200,.65);
  stroke-width: 1.5;
  fill: none;
}

.lp-base::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 3%;
  height: 34%;
  transform: rotateX(58deg);
  transform-origin: bottom center;
  background:
    radial-gradient(circle at 20% 30%, rgba(91,160,255,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(30,86,192,.2), transparent 40%);
  pointer-events: none;
}

.lp-panel-capital::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(91,160,255,.6);
  border-bottom: 1px solid rgba(91,160,255,.6);
  border-radius: 0 0 2px 0;
}

.lp-panel-flow::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(20,220,200,.55);
  border-bottom: 1px solid rgba(20,220,200,.55);
  border-radius: 0 0 2px 0;
}

.lp-panel-income::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(140,180,255,.45);
  border-bottom: 1px solid rgba(140,180,255,.45);
  border-radius: 0 0 2px 0;
}

@keyframes lp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lp-panel-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(168,192,230,.65);
}

.lp-panel-capital .lp-panel-label {
  color: rgba(140,180,255,.75);
}

.lp-panel-flow .lp-panel-label {
  color: rgba(110,231,218,.75);
}

.lp-panel-income .lp-panel-label {
  color: rgba(184,200,230,.7);
}

.lp-panel-value {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: #e8eefc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.lp-panel-capital .lp-panel-value {
  color: #7eb8ff;
  text-shadow: 0 0 10px rgba(91,160,255,.45);
}

.lp-panel-flow .lp-panel-value {
  color: #5eead4;
  text-shadow: 0 0 10px rgba(20,220,200,.4);
}

.lp-submit-wrap {
  position: relative;
  margin-top: 6px;
}

.lp-submit-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.22), transparent);
}

.lp-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 11px;
}

.lp-form-link {
  color: #6b8ab8;
  cursor: pointer;
  letter-spacing: 1px;
}

.lp-form-link:hover {
  color: #a8c0e6;
}

.lp-form-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8ea4c9;
  letter-spacing: 1px;
}

.lp-form-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(100,160,255,.35);
  background: rgba(8,14,35,.6);
  cursor: pointer;
  position: relative;
}

.lp-form-check.checked {
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  border-color: #2d7bff;
}

.lp-form-check.checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lp-logo-mark {
  position: absolute;
  top: 5%;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.lp-logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e56c0 0%, #2d7bff 100%);
  box-shadow: 0 4px 18px rgba(45,123,255,.45);
  position: relative;
}

.lp-logo-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.lp-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
}

.lp-logo-text span {
  background: linear-gradient(135deg, #5ba0ff 0%, #2d7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: glow-breathe 6s ease-in-out infinite;
}

.lp-glow-orb.a {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(45,123,255,.35), transparent 65%);
  animation-delay: 0s;
}

.lp-glow-orb.b {
  width: 260px;
  height: 260px;
  bottom: 12%;
  left: 18%;
  background: radial-gradient(circle, rgba(110,231,218,.22), transparent 65%);
  animation-delay: -2s;
}

.lp-glow-orb.c {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 42%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 65%);
  animation-delay: -4s;
}

.lp-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100,160,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,160,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.lp-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,160,255,.55), transparent);
  animation: lp-scan 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes lp-scan {
  0%, 100% { top: 10%; opacity: .2; }
  50% { top: 90%; opacity: .7; }
}

.lp-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7eb8ff;
  box-shadow: 0 0 8px #5ba0ff, 0 0 16px rgba(91,160,255,.5);
  animation: particle-float 8s ease-in-out infinite;
  opacity: 0;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translateY(-60px) translateX(30px); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-120px) translateX(-20px); opacity: 0; }
}

.lp-tower-glow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.7), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.lp-book-stamp {
  position: absolute;
  right: 10%;
  top: 18%;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,.8);
  font-size: 9px;
  letter-spacing: 1px;
  transform: rotate(-12deg);
  animation: gold-shimmer 5s ease-in-out infinite;
}

.lp-ribbon-glow {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5d77e;
  box-shadow:
    0 0 10px #f5d77e,
    0 0 24px rgba(212,175,55,.7);
  animation: gold-pulse 3s ease-in-out infinite;
}

.lp-ribbon-text {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  color: rgba(245,215,126,.7);
  font-size: 10px;
  letter-spacing: 4px;
  white-space: nowrap;
  animation: gold-shimmer 4s ease-in-out infinite;
}

.lp-ribbon-line {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.4), transparent);
  background-size: 200% 100%;
  animation: gold-flow 6s ease infinite;
}

/* SVG 金色流线动画 */
.lp-gold-line {
  animation: gold-line-flow 3s linear infinite;
}

.lp-gold-line-2 {
  animation: gold-line-flow 4s linear infinite;
  animation-direction: reverse;
}

/* SVG 金币闪烁动画 */
.lp-gold-coin {
  animation: gold-shimmer 3s ease-in-out infinite;
}

.lp-gold-coin:nth-child(2) { animation-delay: -0.5s; }
.lp-gold-coin:nth-child(3) { animation-delay: -1s; }
.lp-gold-coin:nth-child(4) { animation-delay: -1.5s; }
.lp-gold-coin:nth-child(5) { animation-delay: -2s; }
.lp-gold-coin:nth-child(6) { animation-delay: -2.5s; }

/* SVG 金色光点闪烁 */
.lp-gold-dot {
  animation: gold-pulse 2s ease-in-out infinite;
}

.lp-gold-dot:nth-child(7) { animation-delay: -0.3s; }
.lp-gold-dot:nth-child(8) { animation-delay: -0.7s; }
.lp-gold-dot:nth-child(9) { animation-delay: -1.1s; }
.lp-gold-dot:nth-child(10) { animation-delay: -1.5s; }
.lp-gold-dot:nth-child(11) { animation-delay: -1.9s; }

.lp-dot-row {
  display: flex;
  gap: 4px;
}

.lp-dot-row span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(140,180,255,.4);
}

.lp-dot-row span.on {
  background: #5ba0ff;
  box-shadow: 0 0 6px #5ba0ff;
}

.lp-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100,160,255,.14);
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  box-shadow: 0 0 8px rgba(45,123,255,.5);
}

.lp-brand-name {
  color: #cfdcf5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.lp-version-tag {
  color: #6b8ab8;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid rgba(100,160,255,.2);
  border-radius: 4px;
  background: rgba(45,123,255,.06);
}

.lp-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.5px;
  min-height: 18px;
  word-break: break-all;
  white-space: pre-wrap;
}
.lp-success {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.5px;
  min-height: 18px;
  word-break: break-all;
  white-space: pre-wrap;
}
.lp-error-tip {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(252,165,165,.1);
  border: 1px solid rgba(252,165,165,.25);
  color: #fca5a5;
  font-size: 12px;
  letter-spacing: 1px;
  display: none;
}

.lp-error-tip.show {
  display: block;
}

.lp-loading-dots {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

.lp-loading-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  animation: lp-blink 1s ease-in-out infinite;
}

.lp-loading-dots i:nth-child(2) { animation-delay: .2s; }
.lp-loading-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes lp-blink {
  0%, 100% { opacity: .3; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.05); }
}

.lp-tip-box {
  position: absolute;
  top: 4%;
  right: 4%;
  padding: 6px 10px;
  background: rgba(12,22,52,.7);
  border: 1px solid rgba(140,180,255,.22);
  border-radius: 6px;
  color: #8ea4c9;
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 6px #6ee7b7;
}

.lp-divider-v {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(100,160,255,.3), transparent);
}

.lp-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.lp-corner.tl {
  top: 6px;
  left: 6px;
  border-top: 1px solid rgba(91,160,255,.7);
  border-left: 1px solid rgba(91,160,255,.7);
}

.lp-corner.tr {
  top: 6px;
  right: 6px;
  border-top: 1px solid rgba(91,160,255,.7);
  border-right: 1px solid rgba(91,160,255,.7);
}

.lp-corner.bl {
  bottom: 6px;
  left: 6px;
  border-bottom: 1px solid rgba(91,160,255,.7);
  border-left: 1px solid rgba(91,160,255,.7);
}

.lp-corner.br {
  bottom: 6px;
  right: 6px;
  border-bottom: 1px solid rgba(91,160,255,.7);
  border-right: 1px solid rgba(91,160,255,.7);
}

.lp-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45,123,255,.14), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(212,175,55,.08), transparent 50%);
  pointer-events: none;
}

.lp-card-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg);
  animation: lp-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lp-shine {
  0%, 60%, 100% { left: -60%; }
  80% { left: 130%; }
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  background: rgba(45,123,255,.14);
  color: #7eb8ff;
  border: 1px solid rgba(45,123,255,.25);
}

.lp-badge.success {
  background: rgba(110,231,183,.12);
  color: #6ee7b7;
  border-color: rgba(110,231,183,.28);
}

.lp-badge.warn {
  background: rgba(252,165,165,.12);
  color: #fca5a5;
  border-color: rgba(252,165,165,.28);
}

.lp-badge.gold {
  background: rgba(212,175,55,.12);
  color: #e5c76c;
  border-color: rgba(212,175,55,.3);
}

.lp-col {
  display: flex;
  flex-direction: column;
}

.lp-col.gap-6 { gap: 6px; }
.lp-col.gap-8 { gap: 8px; }
.lp-col.gap-10 { gap: 10px; }
.lp-col.gap-12 { gap: 12px; }
.lp-col.gap-16 { gap: 16px; }

.lp-row {
  display: flex;
  align-items: center;
}

.lp-row.between { justify-content: space-between; }
.lp-row.center { justify-content: center; }
.lp-row.end { justify-content: flex-end; }
.lp-row.gap-6 { gap: 6px; }
.lp-row.gap-8 { gap: 8px; }
.lp-row.gap-10 { gap: 10px; }
.lp-row.gap-12 { gap: 12px; }

.lp-fill { flex: 1; }

.lp-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.lp-mask-fade {
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.lp-text-grad-blue {
  background: linear-gradient(135deg, #5ba0ff 0%, #2d7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-text-grad-gold {
  background: linear-gradient(135deg, #f5d77e 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-text-grad-mint {
  background: linear-gradient(135deg, #6ee7b7 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-shadow-blue {
  box-shadow: 0 0 24px rgba(45,123,255,.35), 0 4px 18px rgba(0,0,0,.35);
}

.lp-shadow-mint {
  box-shadow: 0 0 24px rgba(20,220,200,.3), 0 4px 18px rgba(0,0,0,.35);
}

.lp-shadow-gold {
  box-shadow: 0 0 24px rgba(212,175,55,.3), 0 4px 18px rgba(0,0,0,.35);
}

.lp-outline-glow {
  outline: 1px solid rgba(45,123,255,.45);
  outline-offset: 2px;
}

.lp-stripe-bg {
  background: repeating-linear-gradient(
    135deg,
    rgba(45,123,255,.05) 0,
    rgba(45,123,255,.05) 8px,
    transparent 8px,
    transparent 16px
  );
}

.lp-dot-bg {
  background-image: radial-gradient(rgba(100,160,255,.18) 1px, transparent 1px);
  background-size: 12px 12px;
}

.lp-radial-spot {
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(91,160,255,.22), transparent 40%);
}

.lp-hover-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}

.lp-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.lp-btn-outline {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(100,160,255,.35);
  color: #a8c0e6;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
}

.lp-btn-outline:hover {
  border-color: rgba(45,123,255,.65);
  color: #fff;
  background: rgba(45,123,255,.08);
}

.lp-btn-ghost {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #8ea4c9;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
}

.lp-btn-ghost:hover {
  background: rgba(100,160,255,.08);
  color: #cfdcf5;
}

.lp-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.25), transparent);
  margin: 14px 0;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.2);
  color: #b8c8e6;
  font-size: 11px;
  letter-spacing: 1px;
}

.lp-chip i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ba0ff;
  box-shadow: 0 0 6px #5ba0ff;
}

.lp-kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0;
  color: #cfdcf5;
  background: rgba(8,14,35,.85);
  border: 1px solid rgba(100,160,255,.25);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(100,160,255,.2);
}

.lp-tab {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px 8px 0 0;
  background: rgba(8,14,35,.55);
  border: 1px solid rgba(100,160,255,.18);
  border-bottom: none;
  color: #8ea4c9;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

.lp-tab.active {
  background: linear-gradient(180deg, rgba(45,123,255,.2), rgba(45,123,255,.05));
  color: #fff;
  border-color: rgba(45,123,255,.45);
}

.lp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border: 2px solid rgba(140,180,255,.35);
  box-shadow: 0 0 12px rgba(45,123,255,.35);
}

.lp-avatar-ring {
  position: relative;
}

.lp-avatar-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(91,160,255,.45);
  animation: lp-spin 12s linear infinite;
}

.lp-avatar-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(91,160,255,.25);
}

.lp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  background: rgba(45,123,255,.12);
  color: #7eb8ff;
}

.lp-tag.blue { background: rgba(45,123,255,.12); color: #7eb8ff; }
.lp-tag.green { background: rgba(110,231,183,.12); color: #6ee7b7; }
.lp-tag.red { background: rgba(252,165,165,.12); color: #fca5a5; }
.lp-tag.amber { background: rgba(251,191,36,.14); color: #fbbf24; }
.lp-tag.violet { background: rgba(167,139,250,.14); color: #a78bfa; }

.lp-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.lp-mono {
  font-family: ui-monospace, Consolas, "SF Mono", monospace;
}

.lp-no-select {
  user-select: none;
  -webkit-user-select: none;
}

.lp-scroll-y {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,160,255,.3) transparent;
}

.lp-scroll-y::-webkit-scrollbar {
  width: 6px;
}

.lp-scroll-y::-webkit-scrollbar-thumb {
  background: rgba(100,160,255,.25);
  border-radius: 3px;
}

.lp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 1px;
}

.lp-breadcrumb a {
  color: #a8c0e6;
  cursor: pointer;
}

.lp-breadcrumb a:hover { color: #fff; }

.lp-breadcrumb span.sep {
  color: rgba(100,160,255,.4);
}

.lp-progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(8,14,35,.7);
  overflow: hidden;
}

.lp-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #1e56c0, #2d7bff);
  box-shadow: 0 0 10px rgba(45,123,255,.5);
  transition: width .3s ease;
}

.lp-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: lp-shine 2s linear infinite;
}

.lp-skeleton {
  background: linear-gradient(90deg, rgba(100,160,255,.08) 0%, rgba(100,160,255,.18) 50%, rgba(100,160,255,.08) 100%);
  background-size: 200% 100%;
  animation: lp-skeleton 1.4s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes lp-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lp-tooltip {
  position: relative;
  cursor: help;
}

.lp-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(12,22,52,.95);
  border: 1px solid rgba(100,160,255,.25);
  color: #cfdcf5;
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
}

.lp-tooltip:hover::after {
  opacity: 1;
}

.lp-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(5,8,22,.72);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.lp-modal-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(22,32,60,.95), rgba(14,22,45,.95));
  border: 1px solid rgba(100,160,255,.22);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(45,123,255,.18);
  min-width: 320px;
  max-width: 90%;
  overflow: hidden;
}

.lp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(100,160,255,.14);
}

.lp-modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}

.lp-modal-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #8ea4c9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.lp-modal-close:hover {
  background: rgba(252,165,165,.12);
  color: #fca5a5;
}

.lp-modal-body {
  padding: 18px;
  color: #b8c8e6;
  font-size: 13px;
  line-height: 1.7;
}

.lp-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(100,160,255,.14);
  background: rgba(0,0,0,.2);
}

.lp-wave-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.lp-wave-bar i {
  display: block;
  width: 3px;
  background: linear-gradient(180deg, #5ba0ff, #1e56c0);
  border-radius: 1px;
  animation: lp-wave 1s ease-in-out infinite;
}

.lp-wave-bar i:nth-child(1) { animation-delay: 0s; height: 40%; }
.lp-wave-bar i:nth-child(2) { animation-delay: .1s; height: 80%; }
.lp-wave-bar i:nth-child(3) { animation-delay: .2s; height: 60%; }
.lp-wave-bar i:nth-child(4) { animation-delay: .3s; height: 90%; }
.lp-wave-bar i:nth-child(5) { animation-delay: .4s; height: 50%; }

@keyframes lp-wave {
  0%, 100% { transform: scaleY(.5); }
  50% { transform: scaleY(1); }
}

.lp-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(100,160,255,.2);
  border-top-color: #5ba0ff;
  animation: lp-spin .8s linear infinite;
}

.lp-spinner.lg { width: 28px; height: 28px; border-width: 3px; }
.lp-spinner.sm { width: 14px; height: 14px; border-width: 1.5px; }

.lp-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(8,14,35,.7);
  border: 1px solid rgba(100,160,255,.25);
  cursor: pointer;
  transition: all .25s;
}

.lp-switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8ea4c9;
  transition: all .25s;
}

.lp-switch.on {
  background: linear-gradient(90deg, #1e56c0, #2d7bff);
  border-color: #2d7bff;
}

.lp-switch.on::before {
  left: calc(100% - 16px);
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}

.lp-rate {
  display: inline-flex;
  gap: 4px;
}

.lp-rate i {
  display: block;
  width: 14px;
  height: 14px;
  background: rgba(140,160,200,.25);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.lp-rate i.on {
  background: linear-gradient(135deg, #f5d77e, #d4af37);
  box-shadow: 0 0 8px rgba(212,175,55,.5);
}

.lp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 2px;
  margin: 18px 0;
}

.lp-divider::before,
.lp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,160,255,.25));
}

.lp-divider::after {
  background: linear-gradient(90deg, rgba(100,160,255,.25), transparent);
}

.lp-stack {
  position: relative;
  display: inline-block;
}

.lp-stack > * {
  position: relative;
}

.lp-stack::before,
.lp-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  border: inherit;
  border-radius: inherit;
  z-index: -1;
}

.lp-stack::before { transform: translate(4px, 4px); opacity: .55; }
.lp-stack::after { transform: translate(8px, 8px); opacity: .3; }

.lp-watermark {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -30deg,
    transparent 0,
    transparent 80px,
    rgba(100,160,255,.035) 80px,
    rgba(100,160,255,.035) 81px
  );
  pointer-events: none;
}

.lp-grid-stack {
  display: grid;
  gap: 12px;
}

.lp-grid-stack.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-grid-stack.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid-stack.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lp-measure {
  position: absolute;
  pointer-events: none;
  color: rgba(100,160,255,.5);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0;
}

.lp-measure.h::before,
.lp-measure.h::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 1px;
  background: currentColor;
}

.lp-measure.h::before { left: 0; }
.lp-measure.h::after { right: 0; }

.lp-status-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-status-pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 0 rgba(110,231,183,.6);
  animation: lp-pulse-ring 1.6s ease-out infinite;
}

@keyframes lp-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(110,231,183,.6); }
  70% { box-shadow: 0 0 0 10px rgba(110,231,183,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,231,183,0); }
}

.lp-glass {
  background: rgba(11,23,55,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(100,160,255,.18);
}

.lp-glass.light {
  background: rgba(22,32,60,.4);
  border-color: rgba(140,180,255,.15);
}

.lp-glass.dark {
  background: rgba(6,11,30,.75);
  border-color: rgba(80,130,200,.2);
}

.lp-hitbox {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.lp-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lp-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.lp-debug-outline {
  outline: 1px dashed rgba(252,165,165,.45);
  outline-offset: -1px;
}

.lp-card-frame {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,32,60,.88), rgba(14,22,45,.88));
  border: 1px solid rgba(100,160,255,.18);
}

.lp-card-frame::before,
.lp-card-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(91,160,255,.6);
  border-style: solid;
  border-width: 0;
}

.lp-card-frame::before {
  top: 6px;
  left: 6px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.lp-card-frame::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.lp-hud-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ea4c9;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lp-hud-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid rgba(91,160,255,.55);
  border-radius: 2px;
  position: relative;
}

.lp-hud-label::after {
  content: "";
  flex: 0 0 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(91,160,255,.45), transparent);
}

.lp-tech-box {
  background: rgba(8,14,35,.65);
  border: 1px solid rgba(100,160,255,.2);
  border-radius: 8px;
  padding: 10px 12px;
  color: #cfdcf5;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.lp-tech-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(100,160,255,.06), transparent 50%);
  pointer-events: none;
}

.lp-stat-number {
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(91,160,255,.45);
}

.lp-stat-unit {
  color: #6b8ab8;
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 4px;
  font-weight: 400;
}

.lp-stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 6px;
}

.lp-stat-delta.up { color: #6ee7b7; }
.lp-stat-delta.down { color: #fca5a5; }

.lp-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30,86,192,.3), rgba(45,123,255,.15));
  border: 1px solid rgba(91,160,255,.3);
  color: #7eb8ff;
}

.lp-icon-wrap.mint {
  background: linear-gradient(135deg, rgba(20,184,166,.28), rgba(110,231,183,.12));
  border-color: rgba(20,220,200,.3);
  color: #5eead4;
}

.lp-icon-wrap.gold {
  background: linear-gradient(135deg, rgba(212,175,55,.28), rgba(245,215,126,.12));
  border-color: rgba(212,175,55,.3);
  color: #e5c76c;
}

.lp-icon-wrap.rose {
  background: linear-gradient(135deg, rgba(244,63,94,.25), rgba(252,165,165,.1));
  border-color: rgba(252,165,165,.3);
  color: #fca5a5;
}

.lp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: #8ea4c9;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
}

.lp-nav-item:hover {
  background: rgba(100,160,255,.08);
  color: #cfdcf5;
}

.lp-nav-item.active {
  background: linear-gradient(90deg, rgba(45,123,255,.22), rgba(45,123,255,.06));
  color: #fff;
  border: 1px solid rgba(45,123,255,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.lp-side-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, rgba(12,18,42,.92), rgba(8,14,35,.92));
  border-right: 1px solid rgba(100,160,255,.14);
  padding: 16px 12px;
  backdrop-filter: blur(6px);
}

.lp-side-pane.left { left: 0; }
.lp-side-pane.right {
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(100,160,255,.14);
}

.lp-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(12,18,42,.92), rgba(12,18,42,.72));
  border-bottom: 1px solid rgba(100,160,255,.14);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.lp-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(0deg, rgba(12,18,42,.92), rgba(12,18,42,.72));
  border-top: 1px solid rgba(100,160,255,.14);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.lp-status-text {
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-status-text::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 6px #6ee7b7;
}

.lp-clock-text {
  color: #cfdcf5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: ui-monospace, Consolas, monospace;
}

.lp-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}

.lp-data-row:hover {
  background: rgba(100,160,255,.06);
}

.lp-data-row + .lp-data-row {
  margin-top: 2px;
}

.lp-data-name {
  color: #b8c8e6;
  font-size: 12px;
  letter-spacing: 1px;
}

.lp-data-value {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, Consolas, monospace;
}

.lp-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.lp-legend-dot.blue { background: #5ba0ff; box-shadow: 0 0 6px #5ba0ff; }
.lp-legend-dot.mint { background: #5eead4; box-shadow: 0 0 6px #5eead4; }
.lp-legend-dot.gold { background: #e5c76c; box-shadow: 0 0 6px #e5c76c; }
.lp-legend-dot.rose { background: #fca5a5; box-shadow: 0 0 6px #fca5a5; }
.lp-legend-dot.violet { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; }
.lp-legend-dot.amber { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

.lp-search-box {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px 0 36px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.18);
  color: #e8eefc;
  font-size: 12px;
  position: relative;
}

.lp-search-box::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1.5px solid #6b8ab8;
  border-radius: 50%;
}

.lp-search-box::after {
  content: "";
  position: absolute;
  left: 23px;
  top: calc(50% + 4px);
  width: 6px;
  height: 1.5px;
  background: #6b8ab8;
  transform: rotate(45deg);
  transform-origin: left center;
}

.lp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.lp-table thead th {
  padding: 10px 12px;
  text-align: left;
  color: #8ea4c9;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 11px;
  border-bottom: 1px solid rgba(100,160,255,.14);
  background: rgba(8,14,35,.4);
}

.lp-table tbody td {
  padding: 10px 12px;
  color: #cfdcf5;
  border-bottom: 1px solid rgba(100,160,255,.06);
}

.lp-table tbody tr:hover td {
  background: rgba(100,160,255,.05);
}

.lp-tag-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 1px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.18);
  color: #b8c8e6;
}

.lp-tag-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ba0ff;
}

.lp-tag-dot.ok::before { background: #6ee7b7; }
.lp-tag-dot.warn::before { background: #fbbf24; }
.lp-tag-dot.bad::before { background: #fca5a5; }
.lp-tag-dot.info::before { background: #5ba0ff; }

.lp-widget {
  background: rgba(12,22,52,.72);
  border: 1px solid rgba(100,160,255,.18);
  border-radius: 12px;
  padding: 14px;
}

.lp-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lp-widget-title {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
}

.lp-widget-extra {
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}

.lp-widget-extra:hover { color: #a8c0e6; }

.lp-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}

.lp-list-row + .lp-list-row {
  border-top: 1px dashed rgba(100,160,255,.1);
}

.lp-list-label {
  color: #8ea4c9;
  font-size: 12px;
  letter-spacing: 1px;
}

.lp-list-val {
  color: #e8eefc;
  font-size: 12px;
  font-weight: 500;
}

.lp-bill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(100,160,255,.08);
}

.lp-bill-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.lp-bill-icon.in {
  background: rgba(110,231,183,.12);
  color: #6ee7b7;
  border: 1px solid rgba(110,231,183,.2);
}

.lp-bill-icon.out {
  background: rgba(252,165,165,.12);
  color: #fca5a5;
  border: 1px solid rgba(252,165,165,.2);
}

.lp-bill-meta {
  flex: 1;
  min-width: 0;
}

.lp-bill-title {
  color: #e8eefc;
  font-size: 13px;
  letter-spacing: 1px;
}

.lp-bill-sub {
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.lp-bill-amount {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}

.lp-bill-amount.in { color: #6ee7b7; }
.lp-bill-amount.out { color: #fca5a5; }

.lp-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1e56c0, #2d7bff);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: filter .15s;
}

.lp-btn:hover { filter: brightness(1.08); }
.lp-btn:active { transform: translateY(1px); }

.lp-btn.lg { height: 42px; font-size: 14px; padding: 0 22px; }
.lp-btn.sm { height: 30px; font-size: 12px; padding: 0 12px; }
.lp-btn.block { width: 100%; }

.lp-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(45,123,255,.12);
  border: 1px solid rgba(45,123,255,.25);
  color: #7eb8ff;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}

.lp-btn-mini:hover {
  background: rgba(45,123,255,.2);
  color: #fff;
}

.lp-input-field {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.2);
  color: #e8eefc;
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: all .15s;
}

.lp-input-field::placeholder { color: #6b8ab8; }

.lp-input-field:focus {
  border-color: rgba(45,123,255,.5);
  box-shadow: 0 0 0 3px rgba(45,123,255,.1);
}

.lp-textarea-field {
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.2);
  color: #e8eefc;
  font-size: 13px;
  outline: none;
  width: 100%;
  resize: vertical;
  line-height: 1.6;
}

.lp-textarea-field::placeholder { color: #6b8ab8; }

.lp-select-field {
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.2);
  color: #e8eefc;
  font-size: 13px;
  outline: none;
  width: 100%;
  cursor: pointer;
}

.lp-field-label {
  display: block;
  color: #8ea4c9;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.lp-field-required::after {
  content: " *";
  color: #fca5a5;
}

.lp-field-hint {
  margin-top: 6px;
  color: #6b8ab8;
  font-size: 10px;
  letter-spacing: 1px;
}

.lp-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.18);
  color: #b8c8e6;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .15s;
}

.lp-check-pill:hover {
  border-color: rgba(45,123,255,.4);
  color: #fff;
}

.lp-check-pill.on {
  background: rgba(45,123,255,.18);
  border-color: rgba(45,123,255,.5);
  color: #fff;
}

.lp-seg-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.18);
  gap: 2px;
}

.lp-seg-item {
  height: 28px;
  padding: 0 14px;
  border-radius: 6px;
  color: #8ea4c9;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all .15s;
}

.lp-seg-item:hover { color: #cfdcf5; }

.lp-seg-item.on {
  background: linear-gradient(90deg, #1e56c0, #2d7bff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45,123,255,.35);
}

.lp-slider {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(100,160,255,.18);
}

.lp-slider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #1e56c0, #2d7bff);
  box-shadow: 0 0 8px rgba(45,123,255,.5);
}

.lp-slider::after {
  content: "";
  position: absolute;
  left: 60%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2d7bff;
  box-shadow: 0 0 10px rgba(45,123,255,.6);
}

.lp-alert {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(100,160,255,.2);
  background: rgba(45,123,255,.08);
  color: #cfdcf5;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}

.lp-alert.info {
  border-color: rgba(45,123,255,.3);
  background: rgba(45,123,255,.08);
  color: #a8c0e6;
}

.lp-alert.success {
  border-color: rgba(110,231,183,.3);
  background: rgba(110,231,183,.08);
  color: #87e8c0;
}

.lp-alert.warn {
  border-color: rgba(251,191,36,.3);
  background: rgba(251,191,36,.08);
  color: #fbd47a;
}

.lp-alert.danger {
  border-color: rgba(252,165,165,.3);
  background: rgba(252,165,165,.08);
  color: #fcb5b5;
}

.lp-alert-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.lp-alert.info .lp-alert-icon {
  background: rgba(45,123,255,.22);
  color: #7eb8ff;
}

.lp-alert.success .lp-alert-icon {
  background: rgba(110,231,183,.22);
  color: #6ee7b7;
}

.lp-alert.warn .lp-alert-icon {
  background: rgba(251,191,36,.22);
  color: #fbbf24;
}

.lp-alert.danger .lp-alert-icon {
  background: rgba(252,165,165,.22);
  color: #fca5a5;
}

.lp-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid rgba(140,180,255,.3);
}

.lp-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid rgba(140,180,255,.35);
  box-shadow: 0 4px 18px rgba(45,123,255,.3);
}

.lp-avatar-xl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  border: 3px solid rgba(140,180,255,.4);
  box-shadow: 0 6px 24px rgba(45,123,255,.38);
}

.lp-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6b8ab8;
}

.lp-empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(100,160,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  opacity: .7;
}

.lp-empty-text {
  font-size: 12px;
  letter-spacing: 2px;
}

.lp-empty-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #556b94;
  letter-spacing: 1px;
}

.lp-spacer { flex: 1; }
.lp-space-2 { height: 8px; }
.lp-space-3 { height: 12px; }
.lp-space-4 { height: 16px; }
.lp-space-5 { height: 20px; }
.lp-space-6 { height: 24px; }

.lp-divide {
  height: 1px;
  background: rgba(100,160,255,.12);
  margin: 14px 0;
}

.lp-divide.dashed {
  background: none;
  border-top: 1px dashed rgba(100,160,255,.18);
}

.lp-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8c0e6;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 8px 0 10px;
}

.lp-group-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, #2d7bff, #1e56c0);
  border-radius: 2px;
}

.lp-balance-card {
  padding: 20px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(45,123,255,.25), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(212,175,55,.18), transparent 55%),
    linear-gradient(135deg, #162452 0%, #0c1638 100%);
  border: 1px solid rgba(100,160,255,.22);
  position: relative;
  overflow: hidden;
}

.lp-balance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(100,160,255,.1) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .6;
  pointer-events: none;
}

.lp-balance-label {
  color: #8ea4c9;
  font-size: 11px;
  letter-spacing: 2px;
}

.lp-balance-num {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 8px;
  font-family: ui-monospace, Consolas, monospace;
  text-shadow: 0 0 14px rgba(91,160,255,.45);
}

.lp-balance-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.lp-balance-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110,231,183,.12);
  color: #6ee7b7;
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid rgba(110,231,183,.25);
}

.lp-balance-chip.neg {
  background: rgba(252,165,165,.12);
  color: #fca5a5;
  border-color: rgba(252,165,165,.25);
}

.lp-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lp-cat-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(12,22,52,.6);
  border: 1px solid rgba(100,160,255,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s;
}

.lp-cat-cell:hover {
  border-color: rgba(45,123,255,.4);
  background: rgba(45,123,255,.08);
  transform: translateY(-1px);
}

.lp-cat-cell.on {
  background: rgba(45,123,255,.16);
  border-color: rgba(45,123,255,.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.lp-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.lp-cat-name {
  color: #b8c8e6;
  font-size: 11px;
  letter-spacing: 1px;
}

.lp-cat-cell.on .lp-cat-name { color: #fff; }

.lp-quick-amount {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.lp-quick-amount button {
  height: 34px;
  border-radius: 8px;
  background: rgba(8,14,35,.6);
  border: 1px solid rgba(100,160,255,.18);
  color: #cfdcf5;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: ui-monospace, Consolas, monospace;
  transition: all .15s;
}

.lp-quick-amount button:hover {
  border-color: rgba(45,123,255,.45);
  background: rgba(45,123,255,.1);
  color: #fff;
}

.lp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.lp-cal-head {
  text-align: center;
  color: #6b8ab8;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 0;
}

.lp-cal-cell {
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  color: #b8c8e6;
  font-size: 12px;
  cursor: pointer;
  transition: all .12s;
}

.lp-cal-cell:hover { background: rgba(100,160,255,.08); color: #fff; }

.lp-cal-cell.today {
  background: rgba(45,123,255,.15);
  color: #fff;
  font-weight: 700;
}

.lp-cal-cell.on {
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(45,123,255,.4);
}

.lp-cal-cell.other { color: #4e6188; }

.lp-timeline {
  position: relative;
  padding-left: 22px;
}

.lp-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(45,123,255,.5), rgba(45,123,255,.05));
  border-radius: 1px;
}

.lp-tl-item {
  position: relative;
  padding-bottom: 18px;
}

.lp-tl-item:last-child { padding-bottom: 0; }

.lp-tl-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #050816;
  border: 2px solid #5ba0ff;
  box-shadow: 0 0 8px rgba(91,160,255,.6);
}

.lp-tl-date {
  color: #6b8ab8;
  font-size: 11px;
  letter-spacing: 1px;
}

.lp-tl-body {
  margin-top: 4px;
  color: #cfdcf5;
  font-size: 12px;
  line-height: 1.7;
}

.lp-hex-badge {
  width: 30px;
  height: 34px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #1e56c0, #2d7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 12px rgba(45,123,255,.45);
}

.lp-box-a { position: relative; }
.lp-box-b { display: block; }
.lp-box-c { display: inline-block; }
.lp-box-d { width: 100%; }
.lp-box-e { height: 100%; }
.lp-box-f { width: 100%; height: 100%; }
.lp-flx { display: flex; }
.lp-flx-col { display: flex; flex-direction: column; }
.lp-flx-ctr { display: flex; align-items: center; justify-content: center; }
.lp-flx-end { display: flex; align-items: center; justify-content: flex-end; }
.lp-flx-btw { display: flex; align-items: center; justify-content: space-between; }
.lp-flx-start { display: flex; align-items: center; justify-content: flex-start; }
.lp-flx-wrap { display: flex; flex-wrap: wrap; }
.lp-al-ctr { align-items: center; }
.lp-al-start { align-items: flex-start; }
.lp-al-end { align-items: flex-end; }
.lp-jc-ctr { justify-content: center; }
.lp-jc-btw { justify-content: space-between; }
.lp-jc-end { justify-content: flex-end; }
.lp-jc-around { justify-content: space-around; }
.lp-gap-2 { gap: 8px; }
.lp-gap-3 { gap: 12px; }
.lp-gap-4 { gap: 16px; }
.lp-gap-5 { gap: 20px; }
.lp-mt-0 { margin-top: 0; }
.lp-mt-1 { margin-top: 4px; }
.lp-mt-2 { margin-top: 8px; }
.lp-mt-3 { margin-top: 12px; }
.lp-mt-4 { margin-top: 16px; }
.lp-mt-5 { margin-top: 20px; }
.lp-mt-6 { margin-top: 24px; }
.lp-mb-0 { margin-bottom: 0; }
.lp-mb-1 { margin-bottom: 4px; }
.lp-mb-2 { margin-bottom: 8px; }
.lp-mb-3 { margin-bottom: 12px; }
.lp-mb-4 { margin-bottom: 16px; }
.lp-mb-5 { margin-bottom: 20px; }
.lp-mb-6 { margin-bottom: 24px; }
.lp-ml-0 { margin-left: 0; }
.lp-ml-1 { margin-left: 4px; }
.lp-ml-2 { margin-left: 8px; }
.lp-ml-3 { margin-left: 12px; }
.lp-mr-0 { margin-right: 0; }
.lp-mr-1 { margin-right: 4px; }
.lp-mr-2 { margin-right: 8px; }
.lp-mr-3 { margin-right: 12px; }
.lp-pt-1 { padding-top: 4px; }
.lp-pt-2 { padding-top: 8px; }
.lp-pt-3 { padding-top: 12px; }
.lp-pb-1 { padding-bottom: 4px; }
.lp-pb-2 { padding-bottom: 8px; }
.lp-pb-3 { padding-bottom: 12px; }
.lp-px-0 { padding-left: 0; padding-right: 0; }
.lp-px-1 { padding-left: 4px; padding-right: 4px; }
.lp-px-2 { padding-left: 8px; padding-right: 8px; }
.lp-px-3 { padding-left: 12px; padding-right: 12px; }
.lp-py-1 { padding-top: 4px; padding-bottom: 4px; }
.lp-py-2 { padding-top: 8px; padding-bottom: 8px; }
.lp-py-3 { padding-top: 12px; padding-bottom: 12px; }
.lp-pad-1 { padding: 4px; }
.lp-pad-2 { padding: 8px; }
.lp-pad-3 { padding: 12px; }
.lp-pad-4 { padding: 16px; }
.lp-pad-5 { padding: 20px; }
.lp-text-left { text-align: left; }
.lp-text-right { text-align: right; }
.lp-text-center { text-align: center; }
.lp-text-justify { text-align: justify; }
.lp-font-xs { font-size: 10px; }
.lp-font-sm { font-size: 11px; }
.lp-font-md { font-size: 12px; }
.lp-font-base { font-size: 13px; }
.lp-font-lg { font-size: 14px; }
.lp-font-xl { font-size: 16px; }
.lp-font-2xl { font-size: 18px; }
.lp-font-3xl { font-size: 22px; }
.lp-font-4xl { font-size: 28px; }
.lp-font-5xl { font-size: 34px; }
.lp-weight-4 { font-weight: 400; }
.lp-weight-5 { font-weight: 500; }
.lp-weight-6 { font-weight: 600; }
.lp-weight-7 { font-weight: 700; }
.lp-ls-1 { letter-spacing: 1px; }
.lp-ls-2 { letter-spacing: 2px; }
.lp-ls-3 { letter-spacing: 3px; }
.lp-lh-tight { line-height: 1.3; }
.lp-lh-base { line-height: 1.6; }
.lp-lh-relax { line-height: 1.9; }
.lp-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-wrap-break { overflow-wrap: break-word; word-break: break-word; }
.lp-white-nw { white-space: nowrap; }
.lp-white-pre { white-space: pre; }
.lp-rounded-1 { border-radius: 4px; }
.lp-rounded-2 { border-radius: 6px; }
.lp-rounded-3 { border-radius: 8px; }
.lp-rounded-4 { border-radius: 10px; }
.lp-rounded-5 { border-radius: 12px; }
.lp-rounded-lg { border-radius: 14px; }
.lp-rounded-xl { border-radius: 18px; }
.lp-rounded-full { border-radius: 9999px; }
.lp-rounded-tl { border-top-left-radius: 0; }
.lp-rounded-tr { border-top-right-radius: 0; }
.lp-rounded-bl { border-bottom-left-radius: 0; }
.lp-rounded-br { border-bottom-right-radius: 0; }
.lp-border { border: 1px solid rgba(100,160,255,.18); }
.lp-border-b { border-bottom: 1px solid rgba(100,160,255,.12); }
.lp-border-t { border-top: 1px solid rgba(100,160,255,.12); }
.lp-border-l { border-left: 1px solid rgba(100,160,255,.12); }
.lp-border-r { border-right: 1px solid rgba(100,160,255,.12); }
.lp-border-0 { border: none; }
.lp-border-blue { border-color: rgba(45,123,255,.4); }
.lp-border-mint { border-color: rgba(20,220,200,.4); }
.lp-border-gold { border-color: rgba(212,175,55,.4); }
.lp-border-rose { border-color: rgba(252,165,165,.4); }
.lp-shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.lp-shadow-md { box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.lp-shadow-lg { box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.lp-shadow-none { box-shadow: none; }
.lp-op-30 { opacity: .3; }
.lp-op-50 { opacity: .5; }
.lp-op-70 { opacity: .7; }
.lp-op-80 { opacity: .8; }
.lp-op-100 { opacity: 1; }
.lp-blur-4 { filter: blur(4px); }
.lp-blur-8 { filter: blur(8px); }
.lp-blur-14 { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lp-grayscale { filter: grayscale(1); }
.lp-bright { filter: brightness(1.12); }
.lp-saturate { filter: saturate(1.2); }
.lp-cur-ptr { cursor: pointer; }
.lp-cur-default { cursor: default; }
.lp-cur-not { cursor: not-allowed; }
.lp-cur-move { cursor: move; }
.lp-pointer-none { pointer-events: none; }
.lp-pointer-auto { pointer-events: auto; }
.lp-vis { visibility: visible; }
.lp-hide { visibility: hidden; }
.lp-ovf-hide { overflow: hidden; }
.lp-ovf-auto { overflow: auto; }
.lp-ovf-scroll { overflow: scroll; }
.lp-ovf-x-hide { overflow-x: hidden; }
.lp-ovf-y-hide { overflow-y: hidden; }
.lp-scroll-x { overflow-x: auto; }
.lp-scroll-y { overflow-y: auto; }
.lp-pos-abs { position: absolute; }
.lp-pos-rel { position: relative; }
.lp-pos-fix { position: fixed; }
.lp-pos-sticky { position: sticky; }
.lp-top-0 { top: 0; }
.lp-bottom-0 { bottom: 0; }
.lp-left-0 { left: 0; }
.lp-right-0 { right: 0; }
.lp-inset-0 { inset: 0; }
.lp-z-1 { z-index: 1; }
.lp-z-2 { z-index: 2; }
.lp-z-3 { z-index: 3; }
.lp-z-5 { z-index: 5; }
.lp-z-10 { z-index: 10; }
.lp-z-50 { z-index: 50; }
.lp-z-100 { z-index: 100; }
.lp-z-max { z-index: 9999; }
.lp-col-white { color: #fff; }
.lp-col-blue { color: #7eb8ff; }
.lp-col-mint { color: #5eead4; }
.lp-col-gold { color: #e5c76c; }
.lp-col-rose { color: #fca5a5; }
.lp-col-gray { color: #8ea4c9; }
.lp-col-muted { color: #6b8ab8; }
.lp-col-sub { color: #b8c8e6; }
.lp-col-faint { color: #556b94; }
.lp-bg-white { background: #fff; }
.lp-bg-trans { background: transparent; }
.lp-bg-surface { background: rgba(12,22,52,.72); }
.lp-bg-panel { background: rgba(8,14,35,.6); }
.lp-bg-deep { background: rgba(6,11,30,.85); }
.lp-bg-blue-1 { background: rgba(45,123,255,.08); }
.lp-bg-blue-2 { background: rgba(45,123,255,.16); }
.lp-bg-mint-1 { background: rgba(20,220,200,.08); }
.lp-bg-mint-2 { background: rgba(20,220,200,.16); }
.lp-bg-gold-1 { background: rgba(212,175,55,.08); }
.lp-bg-gold-2 { background: rgba(212,175,55,.16); }
.lp-bg-rose-1 { background: rgba(252,165,165,.08); }
.lp-bg-rose-2 { background: rgba(252,165,165,.16); }
.lp-bg-violet-1 { background: rgba(167,139,250,.08); }
.lp-bg-violet-2 { background: rgba(167,139,250,.16); }
.lp-bg-amber-1 { background: rgba(251,191,36,.08); }
.lp-bg-amber-2 { background: rgba(251,191,36,.16); }
.lp-grow { flex-grow: 1; }
.lp-grow-0 { flex-grow: 0; }
.lp-shrink { flex-shrink: 1; }
.lp-shrink-0 { flex-shrink: 0; }
.lp-basis-0 { flex-basis: 0; }
.lp-basis-auto { flex-basis: auto; }
.lp-order-1 { order: 1; }
.lp-order-2 { order: 2; }
.lp-order-last { order: 9999; }
.lp-transition { transition: all .15s ease; }
.lp-transition-slow { transition: all .3s ease; }
.lp-transition-fast { transition: all .08s ease; }
.lp-transform { transform: translateZ(0); }
.lp-scale-on-hover:hover { transform: scale(1.02); }
.lp-rotate-minus { transform: rotate(-6deg); }
.lp-rotate-plus { transform: rotate(6deg); }
.lp-aspect-1 { aspect-ratio: 1; }
.lp-aspect-169 { aspect-ratio: 16 / 9; }
.lp-aspect-43 { aspect-ratio: 4 / 3; }
.lp-aspect-21 { aspect-ratio: 2 / 1; }
.lp-min-w-0 { min-width: 0; }
.lp-min-h-0 { min-height: 0; }
.lp-max-w-full { max-width: 100%; }
.lp-max-h-full { max-height: 100%; }
.lp-w-auto { width: auto; }
.lp-h-auto { height: auto; }
.lp-h-fit { height: fit-content; }
.lp-w-fit { width: fit-content; }
.lp-w-screen { width: 100vw; }
.lp-h-screen { height: 100vh; }
.lp-contain { contain: layout paint; }
.lp-isolate { isolation: isolate; }
.lp-will { will-change: transform, opacity; }
.lp-backface { backface-visibility: hidden; }

/* ============================================================
 * 登录页 v2 动态预留 keyframes
 * ============================================================ */
@keyframes lp-glow { 0%,100%{filter:brightness(1);opacity:.85;box-shadow:0 0 0 rgba(60,160,255,0) inset} 50%{filter:brightness(1.15);opacity:1;box-shadow:0 0 40px rgba(60,160,255,.35) inset} }
@keyframes lp-sweep { 0% {transform: translateX(-100%)} 100% {transform: translateX(100%)} }
@keyframes lp-float { 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }
.lp-anim-float { animation: lp-float 6s ease-in-out infinite alternate; will-change: transform; }
.lp-anim-float.lp-d1 { animation-delay: -1s; }
.lp-anim-float.lp-d2 { animation-delay: -2.5s; }
.lp-anim-float.lp-d3 { animation-delay: -4s; }
@keyframes lp-pulse-dot { 0%,100%{transform:scale(1);opacity:.75} 50%{transform:scale(1.5);opacity:1} }
.lp-anim-pulse { animation: lp-pulse-dot 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lp-anim-pulse.lp-d1 { animation-delay: -0.2s; }
.lp-anim-pulse.lp-d2 { animation-delay: -0.6s; }
.lp-anim-pulse.lp-d3 { animation-delay: -1.0s; }
.lp-anim-pulse.lp-d4 { animation-delay: -1.4s; }
.lp-anim-pulse.lp-d5 { animation-delay: -1.8s; }

/* ============================================================
 * 登录页 · 背景图替换模式（用户将来丢图到 images/login-bg.jpg 再启用）
 * 用法：给 <section id="screen-login" ...> 追加 class="bg-image-mode"（可叠加隐藏类）
 * ============================================================ */
#screen-login.bg-image-mode {
  min-height: 100vh;
  height: 100vh;
}
#screen-login.bg-image-mode > .lp-root {
  display: flex;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
}
#screen-login.bg-image-mode .lp-left {
  width: 60%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30,86,192,.28) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(45,123,255,.22) 0%, transparent 50%),
    linear-gradient(135deg, rgba(5,8,22,.85) 0%, rgba(10,17,40,.75) 50%, rgba(6,11,31,.85) 100%),
    url("../images/login-bg.jpg");
  background-size: 200% 200%, 200% 200%, 200% 200%, cover;
  background-position: 0% 50%, 100% 50%, 0% 50%, center center;
  background-repeat: no-repeat;
  animation: gradient-flow 15s ease infinite;
  overflow: hidden;
}
#screen-login.bg-image-mode .lp-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,8,24,.35), rgba(4,8,24,.45));
  pointer-events: none;
}
#screen-login.bg-image-mode .lp-right {
  width: 40%;
  padding: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  top: auto;
  right: auto;
}
#screen-login.bg-image-mode .lp-card {
  width: 100%;
  max-width: 420px;
}

/* ====== 独立隐藏类（可叠加到 #screen-login 上，默认模式 / bg-image-mode 都可用） ====== */
#screen-login.hide-3panels .lp-panel { display: none !important; }
#screen-login.hide-city     .lp-city  { display: none !important; }
#screen-login.hide-ribbon   .lp-ribbon{ display: none !important; }
#screen-login.hide-all-decor .lp-panel,
#screen-login.hide-all-decor .lp-city,
#screen-login.hide-all-decor .lp-ribbon { display: none !important; }

/* ====== bg-image-mode 下可选的 "居右 8% / 水平居中 / 居左 8%" 的玻璃卡位置切换 ====== */
#screen-login.bg-image-mode.card-center .lp-right {
  left: 50%; right: auto;
  transform: translate(-50%, -50%);
}

/* ==========================================================
   房东记账系统 - 通用模块样式 (2026-07 Task6 modules)
   ========================================================== */
.btn-primary, .btn-primary-sm, .btn-primary-outline,
.btn-ghost, .btn-ghost-sm, .btn-danger, .btn-danger-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; cursor: pointer; transition: all .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn-primary { height: 40px; padding: 0 16px; color: #fff;
  background: linear-gradient(135deg,#3b82f6,#6366f1);
  box-shadow: 0 4px 12px rgba(59,130,246,.28); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:disabled { filter: grayscale(.2) opacity(.55); cursor: not-allowed; transform: none; }
.btn-primary-sm { height: 32px; padding: 0 12px; color: #fff;
  background: linear-gradient(135deg,#3b82f6,#6366f1); font-size: 13px; }
.btn-primary-outline { height: 40px; padding: 0 16px;
  background: #fff; color: #3b82f6; border-color: #bfdbfe; }
.btn-primary-outline:hover { background: #eff6ff; }
.btn-ghost { height: 40px; padding: 0 16px; background: #fff; color: #475569;
  border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #f8fafc; color: #111827; }
.btn-ghost-sm { height: 32px; padding: 0 12px; background: #fff; color: #64748b;
  border: 1px solid #e2e8f0; font-size: 13px; border-radius: 8px; }
.btn-ghost-sm:hover { background: #f8fafc; }
.btn-ghost-sm:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { height: 40px; padding: 0 16px; color: #fff;
  background: linear-gradient(135deg,#ef4444,#b91c1c); }
.btn-danger:hover { filter: brightness(1.04); }
.btn-danger-outline { height: 40px; padding: 0 16px; color: #b91c1c;
  background: #fff; border: 1px solid #fecaca; }
.btn-danger-outline:hover { background: #fef2f2; }
.btn-link-edit, .btn-link-del {
  background: none; border: 0; padding: 0 6px; font-size: 13px; cursor: pointer;
}
.btn-link-edit { color: #2563eb; }
.btn-link-edit:hover { text-decoration: underline; }
.btn-link-del { color: #dc2626; }
.btn-link-del:hover { text-decoration: underline; }

.glass-card {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border: 1px solid #eef2f7; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  text-align: left; background: #f8fafc; color: #64748b;
  padding: 10px 12px; font-weight: 600;
  border-bottom: 1px solid #e2e8f0; position: sticky; top: 0;
}
.data-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9; color: #1e293b;
}
.data-table tbody tr:hover { background: #f8fafc; }
.data-table .tx-amt-in { color: #16a34a; text-align: right; }
.data-table .tx-amt-ex { color: #dc2626; text-align: right; }

/* 数据表格横滑容器（移动端必用，桌面端也兼容）*/
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}
.data-table-wrap > .data-table {
  min-width: 820px;
  width: max-content;
  white-space: nowrap;
}
.data-table-wrap::-webkit-scrollbar { height: 6px; }
.data-table-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.data-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.data-table-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.cat-pill, .tag-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: #e0e7ff; color: #4338ca;
}
.tag-pill.tag-bad    { background:#fee2e2; color:#b91c1c; }
.tag-pill.tag-warn   { background:#fef3c7; color:#b45309; }
.tag-pill.tag-accent { background:#ddd6fe; color:#5b21b6; }
.tag-pill.tag-ok     { background:#dcfce7; color:#166534; }

.empty-state { text-align: center; padding: 32px 12px; color: #64748b; }
.empty-state .empty-title { font-size: 16px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.empty-state .empty-desc { font-size: 13px; }

.stat-card {
  border-radius: 14px; padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.stat-card.st-pending { --c1:#4f46e5; --c2:#6366f1; }
.stat-card.st-overdue { --c1:#dc2626; --c2:#ef4444; }
.stat-card.st-due     { --c1:#d97706; --c2:#f59e0b; }
.stat-card.st-lease   { --c1:#7c3aed; --c2:#8b5cf6; }
.stat-card .stat-title { font-size: 12px; opacity: .92; }
.stat-card .stat-val   { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.stat-card .stat-sub   { font-size: 12px; opacity: .85; }

/* 收租提醒：小型统计卡片（租金/租期细分） */
.stat-card-mini {
  border-radius: 10px; padding: 10px 12px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 3px 8px rgba(15,23,42,.06);
  position: relative; overflow: visible;
}
.stat-card-mini .stat-title { font-size: 11px; opacity: .94; line-height: 1.3; }
.stat-card-mini .stat-val   { font-size: 20px; font-weight: 800; margin: 3px 0 0; }

/* 租金到期卡片配色 */
.stat-card-mini.st-rent-overdue { --c1:#b91c1c; --c2:#ef4444; }
.stat-card-mini.st-rent-today   { --c1:#c2410c; --c2:#f97316; }
.stat-card-mini.st-rent-3d      { --c1:#d97706; --c2:#f59e0b; }
.stat-card-mini.st-rent-7d      { --c1:#ca8a04; --c2:#eab308; }
.stat-card-mini.st-rent-15d     { --c1:#a16207; --c2:#ca8a04; }
.stat-card-mini.st-rent-30d     { --c1:#854d0e; --c2:#a16207; }

/* 租期到期卡片配色 */
.stat-card-mini.st-lease-expired { --c1:#7f1d1d; --c2:#b91c1c; }
.stat-card-mini.st-lease-today   { --c1:#581c87; --c2:#7c3aed; }
.stat-card-mini.st-lease-7d      { --c1:#6d28d9; --c2:#8b5cf6; }
.stat-card-mini.st-lease-30d     { --c1:#4338ca; --c2:#6366f1; }
.stat-card-mini.st-lease-90d     { --c1:#1d4ed8; --c2:#3b82f6; }
.stat-card-mini.st-lease-180d    { --c1:#0369a1; --c2:#0ea5e9; }
.stat-card-mini.st-lease-365d    { --c1:#0e7490; --c2:#06b6d4; }

/* 行内小标签（租金/租期状态） */
.tag-pill-sm {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* 租金标签颜色 */
.tag-pill-sm.tag-rent-normal  { background:#eff6ff; color:#1e40af; border-color:#bfdbfe; }
.tag-pill-sm.tag-rent-overdue { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.tag-pill-sm.tag-rent-today   { background:#fff7ed; color:#c2410c; border-color:#fed7aa; }
.tag-pill-sm.tag-rent-3d      { background:#fefce8; color:#a16207; border-color:#fde68a; }
.tag-pill-sm.tag-rent-7d      { background:#fefce8; color:#ca8a04; border-color:#fef08a; }
.tag-pill-sm.tag-rent-15d     { background:#fffbeb; color:#92400e; border-color:#fde68a; }
.tag-pill-sm.tag-rent-30d     { background:#fffbeb; color:#78350f; border-color:#fcd34d; }
/* 租期标签颜色 */
.tag-pill-sm.tag-lease-none    { background:#f1f5f9; color:#64748b; border-color:#e2e8f0; }
.tag-pill-sm.tag-lease-normal  { background:#f0fdf4; color:#166534; border-color:#bbf7d0; }
.tag-pill-sm.tag-lease-expired { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.tag-pill-sm.tag-lease-today   { background:#faf5ff; color:#6d28d9; border-color:#e9d5ff; }
.tag-pill-sm.tag-lease-7d      { background:#f5f3ff; color:#7c3aed; border-color:#ddd6fe; }
.tag-pill-sm.tag-lease-30d     { background:#eef2ff; color:#4338ca; border-color:#c7d2fe; }
.tag-pill-sm.tag-lease-90d     { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.tag-pill-sm.tag-lease-180d    { background:#f0f9ff; color:#0369a1; border-color:#bae6fd; }
.tag-pill-sm.tag-lease-365d    { background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.modal-card {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.3); overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
}
.modal-title { font-size: 16px; font-weight: 700; color: #111827; }
.modal-close {
  background: none; border: 0; font-size: 24px; line-height: 1;
  color: #64748b; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: #0f172a; }
.modal-body { padding: 18px 20px 8px; }
.modal-body label {
  display: block; font-size: 12px; font-weight: 600; color: #475569;
  margin-bottom: 6px;
}
.modal-body label .req { color: #dc2626; margin-left: 2px; }
.modal-body input, .modal-body select {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid #e2e8f0; background: #fff;
  font-size: 14px; color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.modal-body input:focus, .modal-body select:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.mcb-shell .mcb-toolbar { padding: 14px 16px; }
.mcb-shell select, .mcb-shell input {
  height: 34px; border-radius: 8px; border: 1px solid #e5e7eb;
  padding: 4px 8px; background: #fff; font-size: 13px;
}
.mcb-shell select:focus, .mcb-shell input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.chart-grid .chart-title, .glass-card .chart-title {
  font-weight: 700; color: #111827; font-size: 15px; margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 8px;
}
.chart-title .sub { font-size: 12px; font-weight: 500; color: #64748b; }
.card-report {
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px;
  padding: 16px; transition: box-shadow .15s, transform .15s;
}
.card-report:hover {
  box-shadow: 0 8px 20px rgba(15,23,42,.08); transform: translateY(-2px);
}
.card-report .rep-t { font-weight: 700; color: #0f172a; font-size: 15px; margin-bottom: 4px; }
.card-report .rep-d { color: #64748b; font-size: 13px; min-height: 36px; margin-bottom: 12px; }
.card-report .rep-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* 登录注册 Tab（login glass 卡内部，不影响外部 1:1 布局） */
.lp-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: -8px -28px 18px;
  border-bottom: 1px solid rgba(226,232,240,.55);
}
.lp-tabs .lp-tab {
  padding: 10px 12px; text-align: center; cursor: pointer;
  color: #64748b; font-weight: 600; font-size: 14px;
  position: relative; transition: color .15s;
}
.lp-tabs .lp-tab.active { color: #3b82f6; }
.lp-tabs .lp-tab.active::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg,#3b82f6,#8b5cf6);
}
.lp-tabs .lp-tab:hover { color: #1e40af; }

/* 适配小屏（移动端）让 Modal 不溢出 */
@media (max-width: 640px) {
  .stat-card .stat-val { font-size: 20px; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody td { padding: 8px 6px; }
  .mcb-shell select, .mcb-shell input { font-size: 12px; }
}

#screen-login.bg-image-mode.card-left .lp-right {
  right: auto;
  left: 6%;
  transform: translateY(-50%);
}

/* ============================================================
 * exact-align-v1：对齐用户本次提供的全景参考图（右侧玻璃卡像素级吻合）
 * 图片特征：左侧水晶城市+账本+3面板+金色光带 / 右侧 660px 深蓝半透明玻璃卡 距离右 88px
 * ============================================================ */
#screen-login.bg-image-mode.exact-align-v1 .lp-right { right: 88px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-card {
  width: 660px;
  max-width: 44vw;
  padding: 68px 64px 60px 64px;
  background: rgba(18, 30, 62, 0.32);
  border: 1px solid rgba(140, 180, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 10, 40, 0.35);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
#screen-login.bg-image-mode.exact-align-v1 .lp-title {
  font-size: 40px;
  letter-spacing: 4px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 38px;
  text-shadow: 0 2px 20px rgba(80,150,255,.45);
}
#screen-login.bg-image-mode.exact-align-v1 .lp-subtitle {
  font-size: 18px;
  color: rgba(200,215,245,.75);
  margin-bottom: 54px;
}
#screen-login.bg-image-mode.exact-align-v1 .lp-subtitle::before,
#screen-login.bg-image-mode.exact-align-v1 .lp-subtitle::after {
  width: 52px;
  top: 13px;
}
#screen-login.bg-image-mode.exact-align-v1 .lp-input-group { height: 60px; margin-bottom: 28px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-input-icon { width: 60px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-input-icon svg { width: 22px; height: 22px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-eye { width: 56px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-eye svg { width: 22px; height: 22px; }
#screen-login.bg-image-mode.exact-align-v1 .lp-input {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(140, 180, 255, 0.22);
  border-radius: 8px;
  padding-left: 60px;
  padding-right: 56px;
  font-size: 18px;
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#screen-login.bg-image-mode.exact-align-v1 .lp-input::placeholder {
  color: rgba(210,220,240,.55);
  font-size: 17px;
  letter-spacing: .5px;
}
#screen-login.bg-image-mode.exact-align-v1 .lp-input:focus {
  border-color: rgba(120, 180, 255, 0.65);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  outline: none;
}
#screen-login.bg-image-mode.exact-align-v1 .lp-login-btn {
  height: 60px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  margin-top: 8px;
}
#screen-login.bg-image-mode.exact-align-v1 .login-msg {
  margin-top: 22px;
  font-size: 16px;
}
/* 蒙版压浅，保留原图金色光带通透感 */
#screen-login.bg-image-mode.exact-align-v1 .lp-left::after {
  background: linear-gradient(135deg, rgba(4,8,24,.08), rgba(4,8,24,.18));
}

/* ==========================================================
   收租提醒模块 - 新建/编辑提醒 Modal 单行列布局
   ========================================================== */
.modal-back-btn {
  background: none; border: 0; padding: 4px;
  border-radius: 8px; color: #64748b; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-back-btn:hover { background: #f1f5f9; color: #0f172a; }
.modal-rent-header { gap: 10px; }
.modal-rent-header .modal-title { flex: 1; text-align: left; }

.rent-field-wrap { margin-bottom: 18px; }
.rent-field-wrap:last-of-type { margin-bottom: 10px; }
.rent-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.rent-label .req { color: #dc2626; margin-left: 2px; }

.rent-input {
  position: relative;
}
.rent-input > input {
  width: 100%; height: 42px;
  padding: 0 12px 0 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px; color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rent-input > input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background: #fafbff;
}
.rent-input-with-icon::before {
  content: "";
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  font-size: 16px; line-height: 18px; text-align: center;
  pointer-events: none; user-select: none;
  color: #94a3b8;
}
.rent-input-icon-room::before  { content: "🏠"; }
.rent-input-icon-money::before { content: "¥"; font-weight: 700; color: #16a34a; font-size: 16px; }
.rent-input-icon-date::before  { content: "📅"; }

.rent-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  padding-left: 2px;
}

.modal-rent-body { padding: 18px 20px 10px; }
.modal-rent-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex; justify-content: flex-end; gap: 10px;
}
.btn-rent-cancel, .btn-rent-save { min-width: 96px; }

/* ==========================================================
   收租提醒模块 - 导入区（双按钮 + 预览表）
   ========================================================== */
.rem-import-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(250,251,255,.96) 100%);
  border: 1px solid #e0e7ff;
}
.rem-import-title {
  font-size: 15px; font-weight: 700; color: #111827;
  display: flex; align-items: center; gap: 8px;
}
.rem-import-title::before {
  content: "📥"; font-size: 18px;
}

.btn-import-analyze {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, .3);
  transition: all .18s ease;
}
.btn-import-analyze:hover {
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, .38);
}

.btn-import-do {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, .28);
  transition: all .18s ease;
}
.btn-import-do:hover:not(:disabled) {
  filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .36);
}
.btn-import-do:disabled {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  box-shadow: none; cursor: not-allowed;
  filter: none; transform: none;
}

.r-import-table-wrap {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.r-import-table thead th {
  font-size: 12px; font-weight: 700;
  color: #475569;
  background: #f8fafc !important;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}
.r-import-table tbody td {
  font-size: 13px;
  color: #1e293b;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.r-import-table tbody tr:hover { background: #f8fafc; }
.r-import-table tbody tr td:first-child { font-weight: 700; color: #0f172a; }

@media (max-width: 640px) {
  .modal-rent-card { border-radius: 12px; }
  .rent-input > input { height: 40px; }
  .rem-import-title { font-size: 14px; }
  .btn-import-analyze, .btn-import-do { height: 38px; padding: 0 14px; font-size: 13px; }
}

/* ==========================================================
   收租提醒 - 强提醒样式（逾期/即将到期/租期结束）
   ========================================================== */
@keyframes rem-pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0); }
  50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
}
@keyframes rem-pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.0); }
  50% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18); }
}
@keyframes rem-pulse-purple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.0); }
  50% { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16); }
}
@keyframes rem-blink-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.12); }
}

.rem-alert-banner {
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 12px 18px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 60%, #fff7ed 100%);
  border: 1px solid #fecaca;
  border-left: 6px solid #dc2626;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.1);
  animation: rem-pulse-border 2.6s ease-in-out infinite;
}
.rem-alert-banner__total {
  display: flex; align-items: center; gap: 12px;
  padding-right: 16px; border-right: 1px dashed #fecdd3;
}
.rem-alert-banner__total .badge-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220,38,38,.35);
  animation: rem-blink-icon 1.8s ease-in-out infinite;
}
.rem-alert-banner__total .title { font-size: 13px; color: #6b7280; font-weight: 600; }
.rem-alert-banner__total .big-num { font-size: 26px; line-height: 1.1; color: #b91c1c; font-weight: 800; }
.rem-alert-banner__total .unit { font-size: 13px; color: #6b7280; margin-left: 4px; }

.rem-alert-banner__chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid #e5e7eb;
  cursor: pointer; transition: all .18s ease;
}
.rem-alert-banner__chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.rem-alert-banner__chip .chip-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.rem-alert-banner__chip .chip-val { font-size: 20px; font-weight: 800; line-height: 1.05; }
.rem-alert-banner__chip .chip-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.rem-alert-chip-red .chip-icon   { background: #fef2f2; color: #dc2626; }
.rem-alert-chip-red              { border-color: #fecaca; }
.rem-alert-chip-red .chip-val    { color: #b91c1c; }
.rem-alert-chip-orange .chip-icon{ background: #fff7ed; color: #ea580c; }
.rem-alert-chip-orange           { border-color: #fed7aa; }
.rem-alert-chip-orange .chip-val { color: #c2410c; }
.rem-alert-chip-purple .chip-icon{ background: #f5f3ff; color: #7c3aed; }
.rem-alert-chip-purple           { border-color: #ddd6fe; }
.rem-alert-chip-purple .chip-val { color: #6d28d9; }

/* 表格行强提醒样式：左边彩色条 + 背景色 + 动画 */
.data-table tbody tr.rem-row-overdue td:first-child { border-left: 5px solid #dc2626; }
.data-table tbody tr.rem-row-overdue td { background: linear-gradient(90deg, #fef2f2 0%, #fff 35%); }
.data-table tbody tr.rem-row-overdue { animation: rem-pulse-border 2.4s ease-in-out infinite; }

.data-table tbody tr.rem-row-due-soon td:first-child { border-left: 5px solid #ea580c; }
.data-table tbody tr.rem-row-due-soon td { background: linear-gradient(90deg, #fff7ed 0%, #fff 35%); }
.data-table tbody tr.rem-row-due-soon { animation: rem-pulse-orange 2.8s ease-in-out infinite; }

.data-table tbody tr.rem-row-lease-end td:first-child { border-left: 5px solid #7c3aed; }
.data-table tbody tr.rem-row-lease-end td { background: linear-gradient(90deg, #f5f3ff 0%, #fff 35%); }
.data-table tbody tr.rem-row-lease-end { animation: rem-pulse-purple 3.1s ease-in-out infinite; }

.data-table tbody tr.rem-row-overdue .tag-pill,
.data-table tbody tr.rem-row-due-soon .tag-pill,
.data-table tbody tr.rem-row-lease-end .tag-pill { animation: rem-blink-icon 2s ease-in-out infinite; }

/* 首页异常房间总览卡片样式 */
.dash-alert-card {
  background: linear-gradient(160deg, #fff 0%, #fff1f2 55%, #fff7ed 100%);
  border: 1px solid #fecaca;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dash-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.14);
}
.dash-alert-card__title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dash-alert-card__title {
  font-size: 17px; font-weight: 800; color: #7f1d1d;
  display: flex; align-items: center; gap: 8px;
}
.dash-alert-card__title .pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: rem-blink-icon 1.4s ease-in-out infinite;
}
.dash-alert-card__more { font-size: 12px; color: #9ca3af; }

.dash-alert-card__total {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid #fecdd3;
  margin-bottom: 14px;
}
.dash-alert-card__total .big {
  font-size: 34px; line-height: 1; font-weight: 800;
  background: linear-gradient(135deg, #dc2626, #c2410c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-alert-card__total .label {
  font-size: 13px; color: #6b7280; font-weight: 600; margin-top: 6px;
}
.dash-alert-card__total .icon-box {
  margin-left: auto;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
  animation: rem-blink-icon 1.9s ease-in-out infinite;
}

.dash-alert-card__breakdown {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.dash-alert-card__breakdown .break {
  background: #fff;
  border-radius: 10px; padding: 10px 10px 9px;
  border: 1px solid #f1f5f9;
}
.dash-alert-card__breakdown .break .num {
  font-size: 22px; font-weight: 800; line-height: 1.05;
}
.dash-alert-card__breakdown .break .name {
  font-size: 11.5px; color: #6b7280; margin-top: 3px;
}
.dash-alert-card__breakdown .b-red .num    { color: #b91c1c; }
.dash-alert-card__breakdown .b-orange .num { color: #c2410c; }
.dash-alert-card__breakdown .b-purple .num { color: #6d28d9; }
.dash-alert-card__breakdown .b-red          { border-color: #fee2e2; }
.dash-alert-card__breakdown .b-orange       { border-color: #ffedd5; }
.dash-alert-card__breakdown .b-purple       { border-color: #ede9fe; }

@media (max-width: 640px) {
  .rem-alert-banner {
    grid-template-columns: 1fr 1fr;
    padding: 12px; gap: 10px;
  }
  .rem-alert-banner__total { grid-column: 1 / 3; padding-right: 0; border-right: 0; border-bottom: 1px dashed #fecdd3; padding-bottom: 10px; }
  .dash-alert-card__breakdown { grid-template-columns: 1fr 1fr; }
  .dash-alert-card__total { padding: 8px 10px; }
  .dash-alert-card__total .big { font-size: 28px; }
}

/* ==========================================================
   感叹号强提醒标注（4 层）
   ========================================================== */
@keyframes excl-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-14deg) scale(1.08); }
  40% { transform: rotate(12deg) scale(1.08); }
  60% { transform: rotate(-9deg) scale(1.05); }
  80% { transform: rotate(7deg) scale(1.05); }
}
@keyframes excl-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* 1. 侧边栏菜单感叹号角标（收租提醒右侧）*/
.sb-exclaim {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 12px; font-weight: 800;
  line-height: 1;
  margin-left: auto;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
  animation: excl-pulse-ring 1.8s ease-out infinite, excl-shake 2.6s ease-in-out infinite;
  z-index: 2;
}
.sb-exclaim > .sb-excl-badge {
  font-size: 11.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 2. 状态卡片右上角感叹号角标 */
.stat-card { position: relative; overflow: visible; }
.st-exclaim {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  animation: excl-shake 2.2s ease-in-out infinite;
  z-index: 3;
}
.st-exclaim-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.st-exclaim-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.st-exclaim-purple { background: linear-gradient(135deg, #a855f7, #6d28d9); }

/* 3. 表格每行房间号前的感叹号图标 */
.excl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: #fff; font-size: 14px; font-weight: 900;
  margin-right: 6px;
  vertical-align: middle;
  animation: excl-shake 2s ease-in-out infinite;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.excl-icon.excl-red    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.excl-icon.excl-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.excl-icon.excl-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* 4. 异常标签前缀感叹号 */
.tag-excl { font-weight: 900; margin-right: 3px; }

/* 移动端：侧栏角标尺寸 */
@media (max-width: 640px) {
  .sb-exclaim { min-width: 18px; height: 18px; font-size: 11px; }
  .st-exclaim { width: 24px; height: 24px; font-size: 13px; }
  .excl-icon  { width: 20px; height: 20px; font-size: 13px; }
}

/* =========================================================
 *  登录页验证码（v1 captcha）
 * ========================================================= */
.lp-captcha-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
  width: 100%;
}
.lp-captcha-input-group {
  flex: 1 1 0;
  margin: 0;
}
.lp-captcha-icon svg { width: 18px; height: 18px; }
.lp-captcha-input {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.lp-captcha-img-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 168px;
  max-width: 180px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.lp-captcha-img-wrap:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
}
.lp-captcha-img-wrap:active { transform: translateY(0) scale(0.985); }
.lp-captcha-img {
  display: block;
  width: 160px;
  height: 52px;
  border-radius: 6px;
  object-fit: contain; /* 保持原始宽高比，禁止裁剪字符边缘 */
  object-position: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
}
.lp-captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lp-captcha-refresh svg { width: 12px; height: 12px; }
.lp-captcha-refresh:hover {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transform: translateY(-1px);
}
.lp-captcha-refresh:hover svg { animation: captcha-spin 0.8s ease-in-out; }
@keyframes captcha-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .lp-captcha-row { flex-direction: column; align-items: stretch; gap: 10px; margin: 10px 0 2px; }
  .lp-captcha-img-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 64px;
  }
  .lp-captcha-img {
    width: auto;
    height: 56px;              /* ≥ natural 52px，不再挤压字符 */
    min-width: 172px;
    max-width: 76%;
    object-fit: contain;       /* 保持 3.08:1 天然比例，空白白边填充不裁剪 */
    object-position: left center;
    border-radius: 8px;
  }
  .lp-captcha-input { height: 46px; font-size: 16px; letter-spacing: 3px; }
  .lp-captcha-refresh { font-size: 12px; padding: 5px 8px; }
}

/* ============================================================
   移动端全局适配（≤768px生效，不影响桌面端）
   ============================================================ */

/* ========== 1. 触控 & 滚动优化（P1-2） ========== */
@media (max-width: 768px) {
  html, body {
    /* 重要：不要用 manipulation，它会让子元素 pan-x 的手势抢占失效（Chromium 判纵向优先） */
    touch-action: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
  }
  * { -webkit-text-size-adjust: 100%; }
  .dashboard-main, .modules-wrap, .module-container, .glass-card, .page-content {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;                /* 外层纵向容器：明确手势按纵向识别 */
    overscroll-behavior-y: contain;     /* 拉到底不触发系统刷新/前进后退 */
  }
}

/* ========== 2. 登录页响应式（P0-1）≤768px ========== */
@media (max-width: 768px) {
  #screen-login>.lp-root {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-left {
    display: none;
  }
  .lp-right {
    width: 100%;
    height: 100%;
    padding: 16px 14px;
  }
  .lp-card {
    aspect-ratio: auto;
    max-width: 420px;
    width: 100%;
    min-height: 520px;
    height: auto;
  }
  .lp-card-inner {
    padding: 14% 9%;
    min-height: 520px;
  }
  .lp-title {
    font-size: 17px;
    letter-spacing: 1.5px;
  }
  .lp-subtitle {
    margin: 0 0 22px 0;
    font-size: 11px;
  }
  .lp-input-group {
    margin-bottom: 14px;
  }
  .lp-input {
    height: 44px;
    font-size: 15px;
  }
  .lp-login-btn {
    height: 46px;
    font-size: 15px;
    letter-spacing: 2px;
  }
  .lp-form-footer {
    margin-top: 14px;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lp-header-bar {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .lp-logo-mark {
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ========== 3. 侧边栏抽屉（P0-2）≤768px ========== */
@media (max-width: 768px) {
  .dashboard-wrap {
    position: relative;
  }
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    min-width: 0;
    max-width: 80vw;
    z-index: 35;
    transition: width .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, min-width .25s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
    padding-bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  #sidebar > * {
    min-width: 260px;
    opacity: 0;
    transition: opacity .12s ease;
  }
  #sidebar.mobile-open {
    width: 260px;
    min-width: 260px;
    box-shadow: 8px 0 30px rgba(0,0,0,.28);
  }
  #sidebar.mobile-open > * {
    opacity: 1;
  }
  /* 遮罩 */
  #mobile-menu-mask {
    z-index: 30;
    transition: opacity .2s;
    pointer-events: none; /* 未显示时不拦截任何点击 */
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0;
  }
  #mobile-menu-mask.show {
    opacity: 1;
    pointer-events: auto; /* 显示时才拦截点击 */
  }

  /* 纯 touch 设备（无 hover/无精准指针）：禁用 hover 伪类导致的「第一次点 hover，第二次才 click」死区 */
  @media (hover: none) and (pointer: coarse) {
    .data-table tbody tr:hover { background: transparent; }
    .menu-item:hover, .bottom-nav a:hover { background: transparent; color: inherit; }
    .btn-primary:hover, .btn-ghost:hover, .btn-danger:hover, .btn-primary-sm:hover, .btn-ghost-sm:hover,
    .btn-primary-outline:hover, .btn-danger-outline:hover { filter: none; transform: none; }
    .btn-primary:active, .btn-ghost:active, .btn-danger:active,
    .menu-item:active, .bottom-nav a:active { background: rgba(59,130,246,.12); transform: scale(0.98); }
  }
  /* IE/Safari 旧版 fallback：≤768px 一律禁用 hover 触发的两次点击 */
  .data-table tbody tr,
  .menu-item, .bottom-nav a {
    -webkit-tap-highlight-color: rgba(59,130,246,.12);
  }

  /* 给底部导航留出空间（放到最内层滚动区，避免卡片被遮）
     中心收租按钮 -mt-6 向上抬 24px + 圆高度 56px = 额外需要 80px 安全区，叠加底部导航 84px → 总 pb=120px */
  .dashboard-main {
    padding-bottom: 0;
  }
  .modules-wrap {
    padding-bottom: 120px;
  }
  .module-container {
    padding-bottom: 16px;
  }
  .module-container > div[id^="mod-"] {
    padding-bottom: 16px;
  }
  #trans-list {
    padding-bottom: 24px;
  }
  /* 中心收租按钮激活态（有高亮环） */
  .bottom-nav .bottom-nav-center-active .w-14.h-14.rounded-full {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 10px 24px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
  }
  /* 统计模块：移动端由 2 列改为 1 列，所有卡片独立成一行完整显示 */
  #mod-stats-content .chart-grid,
  #mod-stats-content > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* 欢迎条移动端间距调整 */
  .welcome-bar {
    margin: 4px 14px 14px !important;
    padding: 16px !important;
  }
  .welcome-bar .text-2xl {
    font-size: 18px;
    line-height: 1.35;
  }
  .welcome-bar .text-sm {
    font-size: 12px;
  }
  .welcome-bar > button {
    align-self: stretch;
    justify-content: center;
    padding: 9px 12px;
    min-height: 40px;
  }
  /* 统计卡片移动端紧凑 */
  #stats-row > div {
    padding: 14px !important;
  }
  #stats-row .text-gray-500 {
    font-size: 12px;
  }
  #stats-row .text-2xl {
    font-size: 17px;
  }
  .container.grid {
    padding: 0 14px 18px !important;
  }
  #quick-col .grid-cols-2 button {
    padding: 12px 6px;
  }
  #quick-col .w-12.h-12 {
    width: 44px;
    height: 44px;
  }
}

/* ========== 4. 超小屏进一步紧凑（≤480px） ========== */
@media (max-width: 480px) {
  .modules-wrap {
    --margins: 12px;
  }
  #stats-row {
    gap: 10px !important;
  }
  #stats-row > div {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  #stats-row .w-10.h-10 {
    width: 36px;
    height: 36px;
  }
  #stats-row .w-10.h-10 svg {
    width: 18px;
    height: 18px;
  }
  .grid.grid-cols-1.md\:grid-cols-3,
  .grid.grid-cols-1.md\:grid-cols-3.gap-5 {
    gap: 12px !important;
  }
  .grid.grid-cols-1.md\:grid-cols-3 > div {
    border-radius: 12px !important;
    padding: 14px !important;
    min-height: 280px !important;
  }
  .grid.grid-cols-1.md\:grid-cols-3 h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }
}

/* ========== 5. Modal 弹窗小屏全屏（P1-1）========== */
@media (max-width: 480px) {
  .modal-mask {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .modal-card,
  .lp-modal-box {
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    position: relative !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-head, .lp-modal-head {
    padding: 14px 14px 12px !important;
  }
  .modal-body, .lp-modal-body {
    padding: 12px 14px !important;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-foot, .lp-modal-foot {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    flex-wrap: wrap;
  }
  .modal-foot > button,
  .lp-modal-foot > button,
  .btn-rent-cancel, .btn-rent-save {
    flex: 1 1 0;
    min-width: 0 !important;
    height: 44px;
  }
}

/* ========== 6. 数据表格外层横滑容器（P1-1） ========== */
.data-table-wrap,
.r-import-table-wrap,
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  overscroll-behavior-x: contain;
  /* 关键：同时允许横+纵；外层纵向容器是 pan-y，这里明确列出来能让手势抢占更稳 */
  touch-action: pan-x pan-y;
  position: relative;
  z-index: 2;                            /* 触控命中：横滑容器优先于 glass/card 阴影层 */
}
.data-table-wrap::-webkit-scrollbar,
.r-import-table-wrap::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.data-table-wrap::-webkit-scrollbar-thumb,
.r-import-table-wrap::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(99,102,241,.25);
  border-radius: 3px;
}

/* ========== 7. 数据表格本身保留宽 + 触控尺寸提升（≤768px）========== */
@media (max-width: 768px) {
  .data-table,
  .r-import-table {
    min-width: 640px;
    width: max-content;
    table-layout: auto;
  }
  .data-table thead th,
  .data-table tbody td,
  .r-import-table thead th,
  .r-import-table tbody td {
    padding: 10px 12px !important;
    white-space: nowrap;
  }
  .data-table tbody td {
    vertical-align: middle;
  }
  .data-table button,
  .r-import-table button {
    min-height: 36px;
    min-width: 36px;
  }
  /* 横滑容器在移动端：绝对不要用负 margin！会让触摸命中跳出容器导致"滑不动" */
  .card-body,
  .list-wrap > div:last-child,
  .r-import-table-wrap,
  .data-table-wrap {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0;
  }
}

/* ========== 8. 底部导航安全区（iPhone 刘海屏）========== */
@media (max-width: 768px) {
  .bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .bottom-nav .grid-cols-5 > a {
    padding-top: 6px;
    padding-bottom: 2px;
  }
  .bottom-nav svg {
    width: 24px;
    height: 24px;
  }
}

/* ========== 9. 设置页手风琴（移动端折叠） ========== */
.accordion-card {
  width: 100%;
  margin-bottom: 12px;
  background: transparent;
  border-radius: 14px;
}
.accordion-card .accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(59, 130, 246, .12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow .2s ease, transform .15s ease;
}
.accordion-card .accordion-head:active {
  transform: scale(0.995);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}
.accordion-card .accordion-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}
.accordion-card .accordion-chev {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex: 0 0 auto;
  transition: transform .24s ease, color .2s ease;
}
.accordion-card.is-open .accordion-chev {
  transform: rotate(180deg);
  color: #3b82f6;
}
.accordion-card.is-open .accordion-head {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}
.accordion-card .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-card.is-open .accordion-body {
  max-height: 2400px;
}
.accordion-card .accordion-body > .glass-card {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 16px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-top: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.accordion-card.acc-danger .accordion-head {
  border-left: 4px solid #ef4444;
}

@media (min-width: 769px) {
  /* 桌面端：默认全部展开，隐藏箭头，头部点击禁用 */
  .accordion-card {
    margin-bottom: 14px;
  }
  .accordion-card .accordion-head {
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
    padding: 14px 20px;
  }
  .accordion-card .accordion-head:active {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .accordion-card .accordion-chev {
    display: none !important;
  }
  .accordion-card .accordion-body {
    max-height: none !important;
    overflow: visible !important;
  }
  .accordion-card .accordion-body > .glass-card {
    border-top: 0;
    padding: 18px 20px 20px;
  }
}

@media (max-width: 768px) {
  /* 移动端紧凑：头部更窄 */
  .accordion-card .accordion-head {
    padding: 13px 14px;
    border-radius: 12px;
  }
  .accordion-card .accordion-title {
    font-size: 14px;
  }
  .accordion-card .accordion-body > .glass-card {
    padding: 14px 14px 16px;
  }
  /* 移动端设置页表单单列（原 2 列 → 1 列），避免昵称/创建时间太宽挤压 */
  #mod-settings-content .accordion-body .glass-card > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-width: 100% !important;
  }
  #mod-settings-content .accordion-body input[id="set-del-pwd"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ========== 10. 移动端显示不全修复（统计分类占比 / 新加交易一半 / 新建提醒一半 / 首页近期+跳转后列表半截） ========== */
@media (max-width: 768px) {
  /* 1. 所有模块底部统一留足 184px 空间：避开底部导航 + 中间悬浮大收租按钮 + 刘海安全区 + 留白 */
  #mod-home-content,
  #mod-bills-content,
  #mod-reminders-content,
  #mod-stats-content,
  #mod-reports-content,
  #mod-admin-content,
  #mod-settings-content,
  .mcb-shell {
    padding-bottom: 184px !important;
    box-sizing: border-box;
  }

  /* 2. 统计页：2:1 网格（趋势+对比）以及 1:1 网格（收入+支出分类占比）手机端全部改单列，避免每列被压只剩一半宽导致图例/扇形显示不全 */
  #mod-stats-content .mcb-shell .chart-grid,
  #mod-stats-content .mcb-shell div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }

  /* 3. 图表容器 min-height 保证饼图/柱状/趋势图不会被 flex 挤压成 150px（缩小版：更紧凑） */
  #mod-stats-content .mcb-shell canvas {
    min-height: 250px !important;
  }
  #mod-stats-content .mcb-shell [style*="height:300px"],
  #mod-stats-content .mcb-shell [style*="height:320px"] {
    min-height: 290px !important;
    height: 290px !important;
  }
  /* 3.5 玻璃卡用 flex-col + overflow visible，padding 缩到 10px（给 canvas 留更多空间） */
  #mod-stats-content .mcb-shell .chart-grid > .glass-card,
  #mod-stats-content .mcb-shell div[style*="grid-template-columns:1fr 1fr"] > .glass-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* 4. 收租：4 列异常统计卡 → 手机改 2 列，避免每列文字挤 */
  .rem-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .rem-stats > [style*="grid-column:1/-1"] {
    grid-column: 1 / -1 !important;
  }

  /* 5. 收租/交易数据表外层：玻璃卡本身留 12px 左右内边距；横滑容器绝对不要用负 margin（会跳出触控命中） */
  #mod-bills-content #b-table-wrap,
  #mod-reminders-content #r-table-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #mod-bills-content .data-table-wrap,
  #mod-reminders-content .data-table-wrap,
  #mod-bills-content .r-import-table-wrap,
  #mod-reminders-content .r-import-table-wrap {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* 6. 首页近期交易列表：底部若被截，加内边距 + 最后一项保证不被大圆按钮遮 */
  #mod-home-content .trans-list-wrap,
  #mod-home-content #trans-list {
    padding-bottom: 8px;
  }
  #mod-home-content #trans-list > div:last-child {
    padding-bottom: 10px;
  }
  #mod-home-content .trans-col h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  /* 小桌面：统计 2 列依然保留，只是分类占比饼图外层缩一点防止横向溢出 */
  #mod-stats-content .mcb-shell [style*="height:300px"] {
    min-height: 280px;
  }
}

/* ========== 移动端统计（≤768px）—— 桌面左右并排 → 手机上下堆叠，高度自适应 ========== */
@media (max-width: 768px) {
  /* 1. 顶部时间范围条：允许换行不挤 */
  #mod-stats-content .mcb-shell .glass-card:first-child {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }
  #mod-stats-content .mcb-shell .glass-card:first-child #s-meta,
  #mod-stats-content .mcb-shell #s-meta {
    width: 100% !important;
    font-size: 12px !important;
    order: 99;
  }
  /* 2. 图表网格：桌面 2fr+1fr 并排 → 手机单列上下堆叠，每块独立一屏宽度 */
  #mod-stats-content .mcb-shell .chart-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 10px !important;
  }
  /* 3. 两个饼图：桌面 1fr+1fr 并排 → 手机单列堆叠 */
  #mod-stats-content .mcb-shell div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }
  /* 4. 每块玻璃卡 padding 缩到 10px；flex-col 让 canvas 外层被卡片完整包住不裁（缩小版） */
  #mod-stats-content .mcb-shell .chart-grid > .glass-card,
  #mod-stats-content .mcb-shell div[style*="grid-template-columns:1fr 1fr"] > .glass-card {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  /* 5. 图表 canvas 外层高度：桌面 320/300px → 手机 290px（缩小版：2 张 580px + 饼图 580px < 1600px） */
  #mod-stats-content .mcb-shell .chart-grid > .glass-card > div[style*="height:320px"],
  #mod-stats-content .mcb-shell div[style*="grid-template-columns:1fr 1fr"] > .glass-card > div[style*="height:300px"],
  #mod-stats-content .mcb-shell [style*="height:320px"],
  #mod-stats-content .mcb-shell [style*="height:300px"] {
    height: 290px !important;
    min-height: 290px !important;
  }
  /* 6. 标题 + 副标题缩到 13/12px，同一行不换行（省 18px 高度） */
  #mod-stats-content .chart-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #mod-stats-content .chart-title .sub {
    font-size: 12px !important;
    display: inline !important;
    margin-left: 6px !important;
  }
}

/* ============================================================
 *  登录页验证码 · 移动端 ≤768px（最后兜底，防止被前面未闭合的 @media 吞掉）
 * ============================================================ */
@media (max-width: 768px) {
  .lp-captcha-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 10px 0 2px !important;
  }
  .lp-captcha-img-wrap {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    min-height: 64px !important;
  }
  .lp-captcha-img {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 56px !important;
    min-height: 56px !important;
    min-width: 172px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    border-radius: 8px !important;
  }
  .lp-captcha-input {
    height: 46px !important;
    font-size: 16px !important;
    letter-spacing: 3px !important;
  }
  .lp-captcha-refresh {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }
}

/* ============================================================
 *  登录页验证码 · 桌面端 ≥769px（最后兜底重申，防止被前面 @media 嵌套吞掉）
 * ============================================================ */
@media (min-width: 769px) {
  .lp-captcha-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 12px 0 4px !important;
    width: 100% !important;
  }
  .lp-captcha-img-wrap {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 168px !important;
    max-width: 180px !important;
    min-height: 60px !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.72) !important;
    border: 1px solid rgba(148,163,184,.45) !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
    cursor: pointer !important;
  }
  .lp-captcha-img {
    display: block !important;
    width: 160px !important;
    height: 52px !important;
    min-height: 52px !important;
    min-width: 160px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 1px solid rgba(148,163,184,.3) !important;
    background: #fff !important;
  }
  .lp-captcha-input {
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    height: 40px !important;
    font-size: 14px !important;
  }
}

/* ============================================================
 *  收租提醒（Reminders）工具栏 · 桌面端 ≥769px
 * ============================================================ */
@media (min-width: 769px) {
  .rem-toolbar-card { padding: 12px 16px !important; }
  .rem-toolbar { flex-direction: column !important; gap: 12px !important; }
  .rem-filter-area {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .rem-filter-select, .rem-filter-input {
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    padding: 4px 8px !important;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 13px !important;
  }
  .rem-filter-input { min-width: 160px !important; }
  .rem-btn-search, .rem-btn-reset { height: 32px !important; }
  .rem-actions-area {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
}

/* ============================================================
 *  收租提醒（Reminders）工具栏 · 移动端 ≤768px（核心排版）
 * ============================================================ */
@media (max-width: 768px) {
  .rem-toolbar-card { padding: 10px 10px 12px !important; border-radius: 14px !important; }
  .rem-toolbar {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  /* 第一区：筛选控件 —— 两列等宽 Grid，顺序：状态+标签 / 房间号+关键词 / 查询+重置 */
  .rem-filter-area {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  .rem-filter-item {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    padding: 0 10px !important;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  select.rem-filter-select {
    background-image:
      linear-gradient(45deg, transparent 50%, #6b7280 50%),
      linear-gradient(135deg, #6b7280 50%, transparent 50%),
      linear-gradient(#fff, #fff) !important;
    background-position:
      calc(100% - 18px) calc(50% - 2px),
      calc(100% - 12px) calc(50% - 2px),
      100% 0 !important;
    background-size: 6px 6px, 6px 6px, 100% 100% !important;
    background-repeat: no-repeat !important;
    padding-right: 28px !important;
  }
  .rem-btn-search, .rem-btn-reset {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  /* 第二区：操作按钮 —— 两列 Grid（新建提醒、导出Excel、导出CSV、删除选中） */
  .rem-actions-area {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    width: 100% !important;
    justify-items: stretch !important;
  }
  .rem-actions-area > button {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 0 10px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 统计卡片 rem-stats 手机端改为 2×2 网格（原4列太挤） */
  .rem-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .rem-toolbar-card { padding: 8px 8px 10px !important; }
  .rem-filter-area { gap: 8px 6px !important; }
  .rem-filter-item, .rem-btn-search, .rem-btn-reset {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
  }
  .rem-actions-area { gap: 8px 6px !important; }
  .rem-actions-area > button {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
  .rem-stats { gap: 8px !important; }
}


/* 验证码样式 */
.lp-captcha-img {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(100,160,255,.2);
}
.lp-captcha-img:hover {
  border-color: rgba(45,123,255,.5);
}
.lp-captcha-input {
  padding-right: 140px;
}
.lp-refresh-captcha {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #6b8ab8;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-refresh-captcha:hover {
  color: #a8c0e6;
  background: rgba(100,160,255,.1);
}
