:root {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(32, 231, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.12), transparent 24%),
    #08111f;
}

.desktop-only {
  display: none;
}

@media (max-width: 999px) {
  .app-shell {
    display: none;
  }

  .desktop-only {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #08111f;
  }
}

.login-bg,
.employee-bg {
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(14, 35, 62, 0.9)),
    radial-gradient(circle at top left, rgba(32, 231, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 209, 102, 0.12), transparent 34%);
}

.login-bg::before,
.employee-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(32, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.shadow-cyan {
  box-shadow: 0 0 28px rgba(32, 231, 255, 0.24);
}

.shadow-soft {
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

.stat-card,
.admin-card {
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 31, 51, 0.88), rgba(2, 8, 23, 0.74));
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.stat-card p,
.admin-card p {
  color: rgb(148, 163, 184);
  font-size: 13px;
}

.stat-card strong,
.admin-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.lottery-stage {
  position: relative;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(15, 31, 51, 0.86), rgba(2, 8, 23, 0.78)),
    radial-gradient(circle at 50% 50%, rgba(32, 231, 255, 0.12), transparent 60%);
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

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

.lottery-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(8, 145, 178, 0.16), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 50% 15%, rgba(125, 211, 252, 0.28), transparent 42%);
  color: rgb(207, 250, 254);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08), 0 0 12px rgba(32, 231, 255, 0.08);
}

.lottery-cell:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow: 0 0 22px rgba(32, 231, 255, 0.28), inset 0 0 22px rgba(34, 211, 238, 0.14);
}

.lottery-cell:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.cell-front,
.cell-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.cell-back {
  transform: rotateY(180deg);
  color: rgb(255, 209, 102);
  font-size: 22px;
}

.lottery-cell.flipping {
  animation: flipCell 0.76s ease both;
  border-color: rgba(255, 209, 102, 0.9);
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.36), inset 0 0 26px rgba(255, 209, 102, 0.18);
}

.lottery-cell.revealed {
  transform: none;
  cursor: default;
}

.lottery-cell.revealed .cell-front {
  display: none;
}

.lottery-cell.revealed .cell-back {
  transform: none;
  font-size: 18px;
  font-weight: 900;
}

.lottery-cell.revealed.mega-prize {
  border-color: rgba(255, 244, 188, 0.98);
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.55), inset 0 0 24px rgba(250, 204, 21, 0.2);
}

.lottery-grid.shuffling {
  position: relative;
}

.lottery-grid.shuffling::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 244, 188, 0.8), rgba(250, 204, 21, 0.22), transparent 70%);
  filter: blur(2px);
  animation: shuffleGlow 1.45s ease-in-out both;
}

.lottery-cell.shuffle-in {
  z-index: 5;
  animation: shuffleGather 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--shuffle-delay, 0ms);
}

.lottery-cell.shuffle-out {
  z-index: 4;
  animation: shuffleSpread 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--shuffle-delay, 0ms);
}

@keyframes flipCell {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(90deg) scale(1.12); }
  100% { transform: rotateY(180deg) scale(1.05); }
}

@keyframes shuffleGather {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  45% {
    opacity: 0.95;
    transform: translate(var(--scatter-x), var(--scatter-y)) rotate(160deg) scale(0.92);
  }
  100% {
    opacity: 0.18;
    transform: translate(calc(var(--scatter-x) * 4), calc(var(--scatter-y) * 4)) rotate(540deg) scale(0.18);
  }
}

@keyframes shuffleSpread {
  0% {
    opacity: 0.16;
    transform: translate(calc(var(--scatter-x) * 4), calc(var(--scatter-y) * 4)) rotate(-360deg) scale(0.18);
  }
  55% {
    opacity: 1;
    transform: translate(calc(var(--scatter-x) * -0.35), calc(var(--scatter-y) * -0.35)) rotate(16deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes shuffleGlow {
  0% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  45% { opacity: 1; transform: scale(2.4) rotate(180deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(360deg); }
}

.record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  padding: 12px;
}

.record-row span {
  color: rgb(203, 213, 225);
  font-size: 14px;
}

.record-row strong {
  color: rgb(255, 209, 102);
}

.record-row em {
  grid-column: 1 / 3;
  color: rgb(100, 116, 139);
  font-size: 12px;
  font-style: normal;
}

.winner-marquee {
  height: 260px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.winner-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: winnerScroll 18s linear infinite;
}

.winner-marquee:hover .winner-track {
  animation-play-state: paused;
}

.public-record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(15, 23, 42, 0.76)),
    rgba(15, 23, 42, 0.72);
  padding: 12px;
}

.public-record-row span {
  color: rgb(226, 232, 240);
  font-size: 14px;
  font-weight: 700;
}

.public-record-row strong {
  color: rgb(255, 209, 102);
  font-size: 14px;
}

.public-record-row em {
  grid-column: 1 / 3;
  color: rgb(100, 116, 139);
  font-size: 12px;
  font-style: normal;
}

@keyframes winnerScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.empty-record,
.empty-admin {
  border: 1px dashed rgba(100, 116, 139, 0.5);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: rgb(100, 116, 139);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal-mask.hidden {
  display: none;
}

.prize-panel {
  min-width: 420px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  padding: 36px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 209, 102, 0.18), 0 30px 90px rgba(0, 0, 0, 0.48);
  animation: popPrize 0.36s ease both;
}

.prize-panel.mega {
  animation: popPrize 0.36s ease both, megaPulse 1s ease-in-out 2;
}

@keyframes popPrize {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes megaPulse {
  0%, 100% { box-shadow: 0 0 80px rgba(255, 209, 102, 0.18), 0 30px 90px rgba(0, 0, 0, 0.48); }
  50% { box-shadow: 0 0 120px rgba(255, 209, 102, 0.46), 0 30px 110px rgba(0, 0, 0, 0.62); }
}

.admin-nav {
  display: block;
  border-radius: 10px;
  padding: 11px 14px;
  color: rgb(148, 163, 184);
  transition: 0.18s ease;
}

.admin-nav:hover,
.admin-nav.active {
  background: rgba(34, 211, 238, 0.1);
  color: rgb(207, 250, 254);
}

.admin-panel {
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  padding: 20px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.panel-title {
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: rgb(148, 163, 184);
  font-size: 13px;
}

.form-input,
.mini-input {
  width: 100%;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.64);
  padding: 10px 12px;
  color: white;
  outline: none;
}

.mini-input {
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
}

.form-input:focus,
.mini-input:focus {
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.btn-primary,
.btn-secondary,
.btn-mini {
  display: inline-block;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn-primary {
  background: rgb(103, 232, 249);
  color: rgb(2, 6, 23);
}

.btn-primary:hover {
  background: rgb(165, 243, 252);
}

.btn-secondary,
.btn-mini {
  border: 1px solid rgb(71, 85, 105);
  background: rgba(15, 23, 42, 0.84);
  color: rgb(226, 232, 240);
}

.btn-secondary:hover,
.btn-mini:hover {
  border-color: rgba(103, 232, 249, 0.7);
  color: rgb(207, 250, 254);
}

.btn-mini {
  padding: 6px 9px;
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table th {
  background: rgba(2, 6, 23, 0.62);
  color: rgb(148, 163, 184);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(51, 65, 85, 0.74);
  padding: 12px;
  vertical-align: top;
}

.admin-table td {
  color: rgb(226, 232, 240);
  font-size: 14px;
}

.choice-card,
.switch-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.48);
  padding: 14px;
  color: rgb(226, 232, 240);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.pending {
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.12);
  color: rgb(255, 209, 102);
}

.status-badge.approved {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: rgb(167, 243, 208);
}

.status-badge.rejected {
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.12);
  color: rgb(254, 205, 211);
}

/* Festive employee draw theme */
body:has(.festive-page) {
  background: #7f1116;
}

.festive-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 219, 122, 0.24), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(255, 245, 180, 0.18), transparent 22%),
    linear-gradient(135deg, #7f1116 0%, #b91c1c 42%, #7f1116 100%);
}

.festive-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255, 215, 128, 0.2) 0 2px, transparent 3px),
    linear-gradient(45deg, rgba(255, 234, 169, 0.06) 25%, transparent 25%, transparent 75%, rgba(255, 234, 169, 0.06) 75%),
    linear-gradient(45deg, rgba(255, 234, 169, 0.06) 25%, transparent 25%, transparent 75%, rgba(255, 234, 169, 0.06) 75%);
  background-position: 0 0, 0 0, 18px 18px;
  background-size: 36px 36px;
  opacity: 0.85;
}

.festive-page::after {
  content: "业 绩 爆 爆 爆";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  color: rgba(255, 238, 180, 0.13);
  font-size: 92px;
  font-weight: 900;
  letter-spacing: 36px;
  white-space: nowrap;
  pointer-events: none;
}

.festive-page > * {
  position: relative;
  z-index: 1;
}

.festive-title {
  text-shadow: 0 3px 0 rgba(120, 30, 18, 0.75), 0 0 26px rgba(255, 215, 128, 0.28);
}

.shadow-gold {
  box-shadow: 0 10px 26px rgba(255, 196, 87, 0.28);
}

.festive-stat {
  border: 1px solid rgba(255, 220, 143, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 247, 205, 0.96), rgba(255, 219, 127, 0.92)),
    #facc15;
  color: #7f1d1d;
  box-shadow: 0 14px 32px rgba(80, 12, 12, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.festive-stat p {
  color: #991b1b;
  font-weight: 700;
}

.festive-stat strong {
  color: #7f1d1d;
  font-size: 25px;
}

.festive-stage {
  border: 2px solid rgba(255, 220, 143, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.94), rgba(255, 232, 165, 0.9)),
    #fde68a;
  box-shadow: 0 24px 70px rgba(80, 12, 12, 0.36), inset 0 0 0 6px rgba(185, 28, 28, 0.12);
}

.festive-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 800;
}

.festive-stage-head strong {
  border-radius: 999px;
  background: #991b1b;
  color: #fde68a;
  padding: 8px 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 143, 0.45);
}

.reveal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid rgba(153, 27, 27, 0.22);
  border-radius: 14px;
  background: rgba(153, 27, 27, 0.08);
  padding: 14px 16px;
  color: #7f1d1d;
}

.reveal-actions.hidden {
  display: none;
}

.reveal-actions strong {
  display: block;
  font-size: 15px;
  color: #7f1d1d;
}

.reveal-actions span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: rgba(127, 29, 29, 0.72);
}

.reveal-actions button {
  flex: 0 0 auto;
  border-radius: 10px;
  background: #991b1b;
  color: #fde68a;
  padding: 10px 18px;
  font-weight: 800;
  transition: 0.18s ease;
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.22);
}

.reveal-actions button:hover:not(:disabled) {
  background: #7f1d1d;
  transform: translateY(-1px);
}

.reveal-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.festive-cell {
  border: 1px solid rgba(255, 238, 170, 0.76);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 244, 188, 0.42), transparent 28%),
    linear-gradient(155deg, #dc2626, #991b1b 72%);
  color: #fde68a;
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.festive-cell:hover:not(:disabled) {
  border-color: #fef3c7;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.52), 0 10px 22px rgba(127, 29, 29, 0.32);
}

.festive-cell .cell-front {
  flex-direction: column;
  gap: 2px;
}

.festive-cell .cell-front em {
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.festive-cell .cell-front small {
  font-size: 11px;
  color: rgba(254, 243, 199, 0.82);
}

.festive-cell .cell-back {
  color: #fef3c7;
  font-weight: 900;
}

.festive-side-panel {
  border: 1px solid rgba(255, 220, 143, 0.45);
  background:
    linear-gradient(160deg, rgba(127, 29, 29, 0.92), rgba(153, 27, 27, 0.88)),
    #7f1d1d;
}

.festive-side-panel .record-row,
.festive-side-panel .public-record-row {
  border-color: rgba(255, 220, 143, 0.28);
  background: rgba(255, 247, 205, 0.12);
}

.festive-side-panel .record-row span,
.festive-side-panel .public-record-row span {
  color: #fef3c7;
}

.festive-side-panel .record-row strong,
.festive-side-panel .public-record-row strong {
  color: #facc15;
}

.festive-side-panel .record-row em,
.festive-side-panel .public-record-row em {
  color: rgba(254, 243, 199, 0.62);
}

.festive-prize-panel {
  border: 2px solid rgba(255, 220, 143, 0.7);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 161, 0.32), transparent 46%),
    linear-gradient(145deg, #991b1b, #7f1d1d);
  box-shadow: 0 0 90px rgba(250, 204, 21, 0.32), 0 30px 90px rgba(80, 12, 12, 0.54);
}

.withdraw-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(127, 29, 29, 0.95), rgba(153, 27, 27, 0.9));
}

.withdraw-open-btn,
.withdraw-submit-btn,
.withdraw-cancel-btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 900;
  transition: 0.18s ease;
}

.account-security-btn {
  border: 1px solid rgba(255, 220, 143, 0.5);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.45);
  padding: 9px 14px;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 800;
  transition: 0.18s ease;
}

.account-security-btn:hover {
  background: #fde68a;
  color: #7f1d1d;
  transform: translateY(-1px);
}

.withdraw-open-btn,
.withdraw-submit-btn {
  background: #fde68a;
  color: #7f1d1d;
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.2);
}

.withdraw-open-btn:hover,
.withdraw-submit-btn:hover:not(:disabled) {
  background: #fef3c7;
  transform: translateY(-1px);
}

.withdraw-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.withdraw-cancel-btn {
  border: 1px solid rgba(255, 220, 143, 0.45);
  background: rgba(127, 29, 29, 0.6);
  color: #fef3c7;
}

.withdraw-mini-stat {
  border: 1px solid rgba(255, 220, 143, 0.24);
  border-radius: 12px;
  background: rgba(255, 247, 205, 0.1);
  padding: 10px 8px;
}

.withdraw-mini-stat span {
  display: block;
  color: rgba(254, 243, 199, 0.72);
  font-size: 12px;
}

.withdraw-mini-stat strong {
  display: block;
  margin-top: 5px;
  color: #facc15;
  font-size: 15px;
}

.withdraw-modal-panel {
  width: 420px;
  border: 2px solid rgba(255, 220, 143, 0.7);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 161, 0.28), transparent 46%),
    linear-gradient(145deg, #991b1b, #7f1d1d);
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 90px rgba(250, 204, 21, 0.26), 0 30px 90px rgba(80, 12, 12, 0.54);
}

.password-modal-panel {
  width: 440px;
}

.withdraw-input {
  margin-top: 8px;
  width: 100%;
  border: 1px solid rgba(255, 220, 143, 0.48);
  border-radius: 12px;
  background: rgba(255, 247, 205, 0.12);
  padding: 13px 14px;
  color: #fef3c7;
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

.withdraw-input:focus {
  border-color: #fde68a;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.withdraw-error {
  border: 1px solid rgba(254, 205, 211, 0.4);
  background: rgba(127, 29, 29, 0.58);
  color: #fecdd3;
}

.withdraw-success {
  border: 1px solid rgba(254, 243, 199, 0.45);
  background: rgba(250, 204, 21, 0.14);
  color: #fef3c7;
}

.withdraw-record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  border: 1px solid rgba(255, 220, 143, 0.2);
  border-radius: 10px;
  background: rgba(255, 247, 205, 0.08);
  padding: 8px 10px;
}

.withdraw-record-row span {
  color: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.withdraw-record-row strong {
  font-size: 12px;
}

.withdraw-record-row em {
  grid-column: 1 / 3;
  color: rgba(254, 243, 199, 0.58);
  font-size: 11px;
  font-style: normal;
}

.withdraw-status-pending {
  color: #facc15;
}

.withdraw-status-approved {
  color: #bbf7d0;
}

.withdraw-status-rejected {
  color: #fecdd3;
}

.withdraw-empty {
  border: 1px dashed rgba(255, 220, 143, 0.24);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: rgba(254, 243, 199, 0.62);
  font-size: 12px;
}

.portal-card {
  position: relative;
  min-height: 260px;
  border: 2px solid rgba(255, 220, 143, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(250, 204, 21, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(153, 27, 27, 0.92), rgba(127, 29, 29, 0.96));
  padding: 32px;
  color: #fef3c7;
  box-shadow: 0 24px 70px rgba(80, 12, 12, 0.32);
  overflow: hidden;
  transition: 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(80, 12, 12, 0.42);
}

.portal-card p {
  color: rgba(254, 243, 199, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portal-card h2 {
  margin-top: 18px;
  color: #fff7d6;
  font-size: 34px;
  font-weight: 900;
}

.portal-card span {
  display: block;
  margin-top: 16px;
  color: rgba(254, 243, 199, 0.72);
}

.portal-card strong {
  position: absolute;
  right: 28px;
  bottom: 26px;
  border-radius: 999px;
  background: #fde68a;
  padding: 10px 20px;
  color: #7f1d1d;
}

.portal-withdraw-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid rgba(255, 220, 143, 0.52);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(127, 29, 29, 0.94), rgba(153, 27, 27, 0.9));
  padding: 24px;
  box-shadow: 0 24px 70px rgba(80, 12, 12, 0.28);
}

.portal-withdraw-card p {
  color: rgba(254, 243, 199, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.portal-withdraw-card h2 {
  margin-top: 8px;
  color: #fff7d6;
  font-size: 26px;
  font-weight: 900;
}

.portal-withdraw-card span {
  display: block;
  margin-top: 8px;
  color: rgba(254, 243, 199, 0.7);
  font-size: 13px;
}

.performance-panel {
  border: 2px solid rgba(255, 220, 143, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.15), transparent 36%),
    linear-gradient(160deg, rgba(127, 29, 29, 0.94), rgba(153, 27, 27, 0.88));
  padding: 24px;
  box-shadow: 0 24px 70px rgba(80, 12, 12, 0.28);
}

.performance-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.performance-stage {
  position: relative;
  border: 1px solid rgba(255, 220, 143, 0.2);
  border-radius: 14px;
  background: rgba(255, 247, 205, 0.08);
  padding: 14px;
  color: rgba(254, 243, 199, 0.68);
}

.performance-stage span,
.performance-stage strong,
.performance-stage em {
  display: block;
}

.performance-stage span {
  font-size: 13px;
  font-weight: 900;
}

.performance-stage strong {
  margin-top: 8px;
  color: #facc15;
  font-size: 20px;
  font-weight: 900;
}

.performance-stage em {
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
}

.performance-stage.claimable {
  border-color: rgba(250, 204, 21, 0.58);
  background: rgba(250, 204, 21, 0.16);
  color: #fef3c7;
}

.performance-stage.claimed {
  border-color: rgba(187, 247, 208, 0.36);
  background: rgba(22, 101, 52, 0.18);
  color: #dcfce7;
}

.performance-update-time {
  border: 1px solid rgba(255, 220, 143, 0.25);
  border-radius: 999px;
  background: rgba(255, 247, 205, 0.1);
  padding: 8px 12px;
  color: rgba(254, 243, 199, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.performance-next-box {
  border: 1px solid rgba(255, 220, 143, 0.28);
  border-radius: 16px;
  background: rgba(255, 247, 205, 0.1);
  padding: 16px;
}

.performance-next-box span {
  color: rgba(254, 243, 199, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.performance-next-box strong {
  display: block;
  margin-top: 4px;
  color: #fff7d6;
  font-size: 24px;
  font-weight: 900;
}

.performance-next-box p {
  color: rgba(254, 243, 199, 0.78);
  font-size: 16px;
  font-weight: 800;
}

.performance-next-box b {
  color: #facc15;
  font-size: 22px;
}

.performance-progress {
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 143, 0.22);
  border-radius: 999px;
  background: rgba(80, 12, 12, 0.36);
}

.performance-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #fde68a);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.36);
  transition: width 0.4s ease;
}

.stage-claim-btn {
  margin-top: 12px;
  width: 100%;
  border-radius: 10px;
  background: #fde68a;
  padding: 8px 10px;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 900;
  transition: 0.18s ease;
}

.stage-claim-btn:hover:not(:disabled) {
  background: #fef3c7;
  transform: translateY(-1px);
}

.stage-claim-btn:disabled {
  cursor: not-allowed;
}

.stage-claim-btn.claimed {
  background: rgba(187, 247, 208, 0.16);
  color: #dcfce7;
}

.stage-claim-btn.locked {
  border: 1px solid rgba(255, 220, 143, 0.18);
  background: rgba(80, 12, 12, 0.24);
  color: rgba(254, 243, 199, 0.48);
}

.performance-rank-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 220, 143, 0.2);
  border-radius: 12px;
  background: rgba(255, 247, 205, 0.08);
  padding: 10px 12px;
}

.performance-rank-row.top-rank {
  border-color: rgba(250, 204, 21, 0.44);
  background: rgba(250, 204, 21, 0.14);
}

.performance-rank-marquee {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.performance-rank-track {
  display: grid;
  gap: 10px;
  animation: performanceRankRoll 18s linear infinite;
}

.performance-rank-marquee:hover .performance-rank-track {
  animation-play-state: paused;
}

.performance-rank-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
  font-weight: 900;
}

.performance-rank-row strong,
.performance-rank-row b {
  color: #fef3c7;
}

.performance-rank-row em {
  display: block;
  margin-top: 3px;
  color: rgba(254, 243, 199, 0.58);
  font-size: 11px;
  font-style: normal;
}

.scrollable-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.55) rgba(127, 29, 29, 0.28);
}

.scrollable-list::-webkit-scrollbar {
  width: 7px;
}

.scrollable-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.28);
}

.scrollable-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.58);
}

@keyframes performanceRankRoll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

/* Festive admin console theme */
body:has(.admin-shell-festive) {
  background: #fff7df;
}

.admin-shell-festive {
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7df 0%, #fee7b0 48%, #fff7df 100%);
  color: #7f1d1d;
}

.admin-shell-festive aside {
  border-right: 1px solid rgba(255, 220, 143, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.16), transparent 36%),
    linear-gradient(180deg, #7f1d1d, #991b1b 62%, #6f1717);
  box-shadow: 10px 0 34px rgba(127, 29, 29, 0.18);
}

.admin-shell-festive aside .text-lg {
  color: #fef3c7;
}

.admin-shell-festive aside .text-slate-500,
.admin-shell-festive aside .text-slate-300 {
  color: rgba(254, 243, 199, 0.68);
}

.admin-shell-festive .admin-nav {
  color: rgba(254, 243, 199, 0.76);
}

.admin-shell-festive .admin-nav:hover,
.admin-shell-festive .admin-nav.active {
  background: rgba(254, 243, 199, 0.14);
  color: #fef3c7;
  box-shadow: inset 3px 0 0 #facc15;
}

.admin-shell-festive aside .rounded-xl {
  border-color: rgba(255, 220, 143, 0.32);
  background: rgba(127, 29, 29, 0.55);
}

.admin-shell-festive section.flex-1 {
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 38, 38, 0.08), transparent 32%),
    transparent;
}

.admin-shell-festive header .tracking-\[0\.3em\] {
  color: rgba(153, 27, 27, 0.62);
}

.admin-shell-festive header h1 {
  color: #7f1d1d;
}

.admin-shell-festive header .rounded-lg {
  border-color: rgba(153, 27, 27, 0.16);
  background: rgba(255, 247, 205, 0.72);
  color: #991b1b;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(153, 27, 27, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 205, 0.78);
  padding: 6px 8px 6px 16px;
  color: #7f1d1d;
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.1);
  white-space: nowrap;
}

.admin-topbar-name {
  font-weight: 900;
}

.admin-topbar-account,
.admin-topbar-date {
  color: rgba(127, 29, 29, 0.62);
  font-size: 12px;
}

.admin-topbar-role {
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.1);
  padding: 5px 10px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

.admin-topbar-logout {
  border-radius: 999px;
  background: #991b1b;
  padding: 8px 14px;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.admin-topbar-logout:hover {
  background: #7f1d1d;
}

.admin-shell-festive .admin-card,
.admin-shell-festive .admin-panel {
  border: 1px solid rgba(153, 27, 27, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.9)),
    #fef3c7;
  color: #7f1d1d;
  box-shadow: 0 18px 45px rgba(127, 29, 29, 0.12);
}

.admin-shell-festive .admin-card p {
  color: rgba(127, 29, 29, 0.68);
}

.admin-shell-festive .admin-card strong,
.admin-shell-festive .panel-title {
  color: #7f1d1d;
}

.admin-shell-festive .form-label {
  color: rgba(127, 29, 29, 0.68);
}

.admin-shell-festive .form-input,
.admin-shell-festive .mini-input {
  border-color: rgba(153, 27, 27, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #7f1d1d;
}

.admin-shell-festive .form-input:focus,
.admin-shell-festive .mini-input:focus {
  border-color: rgba(185, 28, 28, 0.48);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.admin-shell-festive .btn-primary {
  background: #991b1b;
  color: #fef3c7;
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.18);
}

.admin-shell-festive .btn-primary:hover {
  background: #7f1d1d;
}

.admin-shell-festive .btn-secondary,
.admin-shell-festive .btn-mini {
  border-color: rgba(153, 27, 27, 0.2);
  background: rgba(255, 247, 205, 0.72);
  color: #991b1b;
}

.admin-shell-festive .btn-secondary:hover,
.admin-shell-festive .btn-mini:hover {
  border-color: rgba(153, 27, 27, 0.45);
  color: #7f1d1d;
}

.admin-shell-festive .btn-mini.active {
  background: #991b1b;
  border-color: #991b1b;
  color: #fef3c7;
}

.admin-shell-festive .btn-mini.danger {
  background: rgba(127, 29, 29, 0.94);
  border-color: rgba(127, 29, 29, 0.94);
  color: #fff7ed;
}

.admin-shell-festive .btn-mini.danger:hover {
  background: #5f1111;
  color: #fff7ed;
}

.admin-shell-festive .admin-table th {
  background: rgba(153, 27, 27, 0.08);
  color: rgba(127, 29, 29, 0.74);
}

.admin-shell-festive .admin-table th,
.admin-shell-festive .admin-table td {
  border-bottom-color: rgba(153, 27, 27, 0.12);
}

.admin-shell-festive .admin-table td {
  color: #7f1d1d;
}

.admin-shell-festive .choice-card,
.admin-shell-festive .switch-card {
  border-color: rgba(153, 27, 27, 0.16);
  background: rgba(255, 255, 255, 0.52);
  color: #7f1d1d;
}

.admin-shell-festive .empty-admin,
.admin-shell-festive .text-slate-500 {
  color: rgba(127, 29, 29, 0.58);
}

.admin-shell-festive .text-slate-400,
.admin-shell-festive .text-slate-300,
.admin-shell-festive .text-slate-500 {
  color: rgba(127, 29, 29, 0.62);
}

.admin-shell-festive .text-cyan-100,
.admin-shell-festive .text-cyan-200,
.admin-shell-festive .text-goldGlow {
  color: #b45309;
}

.admin-shell-festive [class*="bg-slate-950"],
.admin-shell-festive [class*="bg-slate-900/75"] {
  border-color: rgba(255, 220, 143, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(153, 27, 27, 0.78)) !important;
  color: #fef3c7 !important;
}

.admin-shell-festive [class*="bg-slate-950"] [class*="text-slate"],
.admin-shell-festive [class*="bg-slate-900/75"] [class*="text-slate"] {
  color: rgba(254, 243, 199, 0.78) !important;
}

.admin-shell-festive [class*="bg-slate-950"] strong,
.admin-shell-festive [class*="bg-slate-900/75"] strong,
.admin-shell-festive [class*="bg-slate-950"] .font-semibold,
.admin-shell-festive [class*="bg-slate-900/75"] .font-semibold {
  color: #fff7d6 !important;
}

.admin-shell-festive [class*="bg-slate-950"] [class*="text-cyan"],
.admin-shell-festive [class*="bg-slate-900/75"] [class*="text-cyan"],
.admin-shell-festive [class*="bg-slate-950"] [class*="text-goldGlow"],
.admin-shell-festive [class*="bg-slate-900/75"] [class*="text-goldGlow"] {
  color: #fde68a !important;
}

.admin-readonly-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 150px;
  border: 1px solid rgba(153, 27, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 205, 0.68);
  padding: 5px 11px;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.admin-status-pill.is-active {
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
}

.admin-status-pill.is-disabled {
  background: rgba(127, 29, 29, 0.1);
  color: #991b1b;
}

.employee-money-stack {
  display: grid;
  gap: 4px;
  min-width: 120px;
  color: rgba(127, 29, 29, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.employee-money-stack span,
.employee-money-stack em {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-style: normal;
}

.employee-money-stack strong {
  color: #7f1d1d;
  font-weight: 900;
}

.employee-money-stack em {
  color: #b45309;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-modal-root.hidden {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 13, 13, 0.46);
  backdrop-filter: blur(5px);
}

.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 92vw);
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.2), transparent 32%),
    linear-gradient(180deg, #fff7df, #fee7b0);
  box-shadow: 0 26px 80px rgba(127, 29, 29, 0.26);
  padding: 24px;
  color: #7f1d1d;
  animation: adminModalIn 0.18s ease-out;
}

.admin-modal-title {
  color: #7f1d1d;
  font-size: 20px;
  font-weight: 900;
}

.admin-modal-desc,
.admin-modal-note {
  margin-top: 6px;
  color: rgba(127, 29, 29, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

.admin-modal-note {
  border: 1px solid rgba(153, 27, 27, 0.12);
  border-radius: 10px;
  background: rgba(255, 247, 205, 0.56);
  padding: 10px 12px;
}

.admin-modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(153, 27, 27, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: #991b1b;
  font-size: 22px;
  line-height: 1;
}

.admin-modal-close:hover {
  background: rgba(153, 27, 27, 0.1);
}

.performance-rule-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(153, 27, 27, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
  padding: 9px 10px;
}

.performance-rule-row span {
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 900;
}

.ledger-amount {
  font-weight: 900;
}

.ledger-amount.income,
.ledger-amount.release {
  color: #166534 !important;
}

.ledger-amount.expense {
  color: #991b1b !important;
}

.approval-detail-card {
  border: 1px solid rgba(153, 27, 27, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  padding: 16px;
}

.approval-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.approval-detail-head h2 {
  color: #7f1d1d;
  font-size: 18px;
  font-weight: 900;
}

.approval-detail-head p {
  margin-top: 6px;
  color: rgba(127, 29, 29, 0.64);
  font-size: 13px;
}

.approval-action-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 320px;
}

.approval-detail-card summary {
  cursor: pointer;
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
