.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong) !important;
}
.stat-meta-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
}
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: #EFF6FF;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.stat-card:nth-child(1) .stat-icon {
  background: #EFF6FF;
  color: var(--accent-blue);
}
.stat-card:nth-child(2) .stat-icon {
  background: #F0FDF4;
  color: #16A34A;
}
.stat-card:nth-child(3) .stat-icon {
  background: #FAF5FF;
  color: #9333EA;
}
.stat-card:nth-child(4) .stat-icon {
  background: #FFFBEB;
  color: #D97706;
}
.panels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 992px) {
  .panels-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.panel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.panel-title-cyan,
.panel-title-pink {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.panel-title-cyan i,
.panel-title-pink i {
  color: var(--accent-blue);
  font-size: 14px;
}
.filter-btn {
  padding: 5px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-muted);
  background: #FFFFFF;
  transition: all 0.15s ease;
}
.filter-btn.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}
.filter-btn:not(.active):hover {
  background: #F8FAFC;
  color: var(--text-main);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  background: #F8FAFC;
}
tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-body);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: #F8FAFC;
}
.monthly-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.monthly-table-wrap::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
.monthly-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.monthly-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.monthly-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}
.reset-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.section-title i {
  color: var(--accent-blue);
  font-size: 16px;
}
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .tasks-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.task-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 20px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.task-card::before,
.task-card::after {
  display: none !important;
}
.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue-border) !important;
}
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.task-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.task-badge-coin {
  font-family: "JetBrains Mono", monospace;
  background: #F0FDF4;
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #16A34A;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  white-space: nowrap;
}
.badge-hot {
  position: absolute;
  top: 0;
  right: 16px;
  background: #DC2626;
  color: #FFFFFF;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.task-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.task-footer-info {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
}
.no-hover-scale-item {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm);
}
.milestone-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin: 35px 0 45px 0;
  border: none;
}
.milestone-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: none;
}
.m-point {
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.m-point:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.m-point.reached {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #EFF6FF;
  animation: none;
}
.m-point.claimed {
  background: #16A34A;
  border-color: #16A34A;
  color: #FFFFFF;
}
.m-point-label {
  position: absolute;
  top: -24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 600;
}
.m-point-prize {
  position: absolute;
  bottom: -24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  white-space: nowrap;
}
.gift-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 15px;
  max-width: 1000px;
}
@media (min-width: 768px) {
  .gift-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gift-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 360px;
}
.gift-icon-wrap {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--accent-blue);
}
.gift-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.gift-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.gift-progress {
  width: 100%;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.gift-progress-bar {
  height: 100%;
  background: var(--accent-blue);
  width: 0%;
  transition: width 0.3s ease;
}
.toplink-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 992px) {
  .toplink-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .toplink-left-col {
    flex: 1;
    position: sticky;
    top: 30px;
  }
  .rank-board-box {
    flex: 2;
  }
}
.rank-personal-box {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.rank-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}
.rank-stat {
  flex: 1;
  text-align: center;
}
.rank-stat p {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 600;
}
.rank-stat h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-main) !important;
}
.rank-stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border-color);
  opacity: 0.6;
}
.rank-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0;
}
.reward-prize-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}
.reward-prize-header i {
  color: #EAB308;
}
.rank-board-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.reward-prize-table {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px;
  margin-top: 6px;
}
.reward-prize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 8px 6px;
  font-family: "JetBrains Mono", monospace;
  text-align: center;
}
.reward-prize-item .rp-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
}
.reward-prize-item .rp-amount {
  font-weight: 700;
  color: #16A34A;
  font-size: 12.5px;
  white-space: nowrap;
}
.reward-prize-item.rp-top1 {
  border-color: rgba(234, 179, 8, 0.4);
}
.reward-prize-item.rp-top1 .rp-label {
  color: #EAB308;
}
.reward-prize-item.rp-top2 {
  border-color: rgba(148, 163, 184, 0.4);
}
.reward-prize-item.rp-top2 .rp-label {
  color: #94A3B8;
}
.reward-prize-item.rp-top3 {
  border-color: rgba(205, 127, 50, 0.4);
}
.reward-prize-item.rp-top3 .rp-label {
  color: #CD7F32;
}
.reward-rule-box {
  width: 100%;
  font-size: 13px;
  color: var(--text-sub);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
}
.reward-rule-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-sub);
}
.reward-rule-title {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reward-rule-title i {
  color: var(--accent-blue);
}
.lb-list {
  display: flex;
  flex-direction: column;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.lb-row:last-child {
  border-bottom: none;
}
.lb-row.is-me {
  background: var(--accent-blue-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-xs);
}
.lb-rank {
  flex: 0 0 32px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
}
.lb-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #EFF6FF;
  border: 1px solid var(--accent-blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
}
.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.lb-info {
  flex: 1 1 auto;
  min-width: 0;
}
.lb-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13.5px;
}
.lb-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.lb-prize {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
}
.rank-badge-1 {
  color: #D97706;
  font-weight: 800;
}
.rank-badge-2 {
  color: #64748B;
  font-weight: 800;
}
.rank-badge-3 {
  color: #B45309;
  font-weight: 800;
}
.rank-badge-other {
  color: var(--text-muted);
  font-weight: 600;
}
.toplink-podium-section {
  margin-bottom: 24px;
  width: 100%;
}
.toplink-podium-notice {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.toplink-podium-notice i {
  color: var(--accent-blue);
}
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 10px 10px 10px;
}
@media (max-width: 768px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 36px;
  }
  .podium-card-1 {
    order: 1;
    width: 100%;
    max-width: 320px;
  }
  .podium-card-2 {
    order: 2;
    width: 100%;
    max-width: 320px;
  }
  .podium-card-3 {
    order: 3;
    width: 100%;
    max-width: 320px;
  }
}
.podium-card {
  flex: 1;
  min-width: 0;
  max-width: 300px;
  border-radius: 18px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.podium-card:hover {
  transform: translateY(-6px);
}
.podium-card-1 {
  transform: translateY(-14px);
  border: 2px solid #eab308;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.28), 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 5;
}
.podium-card-1:hover {
  transform: translateY(-20px);
}
.podium-card-2 {
  border: 1.5px solid #cbd5e1;
  z-index: 4;
}
.podium-card-3 {
  border: 1.5px solid #fed7aa;
  z-index: 3;
}
body.theme-dark .podium-card,
html.theme-dark .podium-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
body.theme-dark .podium-card-1,
html.theme-dark .podium-card-1 {
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.35), 0 14px 30px rgba(0, 0, 0, 0.4);
}
body.theme-dark .podium-card-2,
html.theme-dark .podium-card-2 {
  border-color: rgba(148, 163, 184, 0.35);
}
body.theme-dark .podium-card-3,
html.theme-dark .podium-card-3 {
  border-color: rgba(251, 146, 60, 0.35);
}
.podium-crown-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}
.podium-crown-svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.podium-rank-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 9999px;
  color: #FFFFFF;
  margin-top: -6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}
.pill-gold {
  background: #ea580c;
  border: 1.5px solid #fef08a;
}
.podium-rank-corner-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  color: #FFFFFF;
  z-index: 15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.badge-rank-2 {
  background: #64748b;
  border: 1px solid #94a3b8;
}
.badge-rank-3 {
  background: #ea580c;
  border: 1px solid #fdba74;
}
.podium-banner {
  height: 110px;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podium-banner-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.podium-banner-edit-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 18;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.podium-banner-edit-btn:hover {
  background: rgba(99, 102, 241, 0.9);
  border-color: #818cf8;
  color: #ffffff;
  transform: scale(1.05);
}
.podium-avatar-area {
  position: relative;
  margin: -42px auto 8px auto;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.podium-avatar-area img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 3;
  position: relative;
  background: #1e293b;
}
.podium-avatar-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  background: #1e293b;
  z-index: 3;
  position: relative;
}
.avatar-border-1 {
  border: 3px solid #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.6);
}
.avatar-border-2 {
  border: 3px solid #818cf8;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
}
.avatar-border-3 {
  border: 3px solid #fdba74;
  box-shadow: 0 0 12px rgba(253, 186, 116, 0.4);
}
.podium-wings-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.podium-body {
  padding: 0 14px 16px 14px;
  border-radius: 0 0 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  position: relative;
  z-index: 2;
}
.podium-inner-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body.theme-dark .podium-inner-box,
html.theme-dark .podium-inner-box {
  background: #172033;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.podium-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.podium-username .podium-me-tag {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
}
body.theme-dark .podium-username .podium-me-tag,
html.theme-dark .podium-username .podium-me-tag {
  color: #67e8f9;
}
.podium-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.podium-tasks-count {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.podium-tasks-count strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}
.podium-badge-not-reached {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  white-space: nowrap;
}
body.theme-dark .podium-badge-not-reached,
html.theme-dark .podium-badge-not-reached {
  color: #f87171;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.podium-badge-reached {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  white-space: nowrap;
}
body.theme-dark .podium-badge-reached,
html.theme-dark .podium-badge-reached {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
}
.podium-prize-badge {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.podium-prize-badge span {
  background: #fef3c7;
  color: #b45309;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #fcd34d;
  letter-spacing: 0.3px;
}
body.theme-dark .podium-prize-badge span,
html.theme-dark .podium-prize-badge span {
  background: rgba(234, 179, 8, 0.16);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.3);
}
.withdraw-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 992px) {
  .withdraw-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .withdraw-layout > .withdraw-form-col {
    flex: 1;
  }
  .withdraw-layout > .withdraw-history-col {
    flex: 2;
  }
}
.withdraw-box,
.profile-box,
.password-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.amount-btn {
  font-family: "JetBrains Mono", monospace;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 5px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
}
.amount-btn:hover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-subtle);
}
.amount-btn.active {
  background: var(--accent-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-blue) !important;
}
.withdraw-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.withdraw-method-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.withdraw-method-tab:hover {
  background: #F8FAFC;
  color: var(--text-main);
}
.withdraw-method-tab.active {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.admin-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.admin-table th {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: #F8FAFC;
}
.action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-item:last-child {
  border-bottom: none;
}
.profile-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.profile-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
}
.danger-zone-box {
  background: #FFF5F5;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}
.danger-zone-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #DC2626;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.danger-zone-desc {
  font-size: 13px;
  color: #7F1D1D;
  line-height: 1.55;
  margin-bottom: 14px;
}
.clock-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.clock {
  display: flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.time-group {
  display: flex;
}
.time-unit {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 20px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.time-unit span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
}
.time-unit .current {
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.time-unit .next {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.time-unit.slide .current {
  transform: translateY(-100%);
}
.time-unit.slide .next {
  transform: translateY(0);
}
.colon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 3px;
}
.colon .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-blue);
}
.clock-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.swiss-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.swiss-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}
.noti-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #DC2626;
  color: #FFFFFF;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1px solid #FFFFFF;
}
.modal-overlay,
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content,
.custom-modal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.custom-modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.custom-modal-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}
.settings-trigger-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10002;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.settings-trigger-btn:hover {
  color: var(--text-main);
  transform: none !important;
  border-color: var(--border-dark);
}
.rule-status-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.rule-status-success {
  background: #F0FDF4;
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #16A34A;
}
.rule-status-warning {
  background: #FFFBEB;
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #D97706;
}
.rule-status-danger {
  background: #FEF2F2;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #DC2626;
}
html.theme-dark .rule-status-success,
body.theme-dark .rule-status-success {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #4ADE80 !important;
}
html.theme-dark .rule-status-warning,
body.theme-dark .rule-status-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #FBBF24 !important;
}
html.theme-dark .rule-status-danger,
body.theme-dark .rule-status-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #F87171 !important;
}
.floating-settings-panel {
  position: fixed;
  top: 64px;
  right: 18px;
  width: 300px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  z-index: 10001;
  box-shadow: var(--shadow-lg);
}
.setting-box {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.setting-box-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.switch-ui {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}
.switch-ui input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .2s;
  border-radius: 20px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .switch-slider {
  background-color: var(--accent-blue);
}
input:checked + .switch-slider:before {
  transform: translateX(16px);
}
.bg-custom-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.bg-btn-option {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-weight: 600;
}
.bg-btn-option:hover {
  background: #F1F5F9;
}
html.theme-dark,
body.theme-dark {
  --bg-body: #090D16;
  --bg-canvas: #0D1322;
  --bg-card: #111827;
  --bg-card-subtle: #162032;
  --bg-sidebar: #0C111D;
  --bg-input: #0F172A;
  --bg-dark-panel: #060911;
  --text-main: #F8FAFC;
  --text-body: #E2E8F0;
  --text-sub: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;
  --text-white: #FFFFFF;
  --accent-blue: #3B82F6;
  --accent-blue-hover: #60A5FA;
  --accent-blue-subtle: rgba(59, 130, 246, 0.12);
  --accent-blue-border: rgba(59, 130, 246, 0.35);
  --accent-lime: #CCFF00;
  --accent-lime-dot: #84CC16;
  --accent-lime-bg: rgba(204, 255, 0, 0.15);
  --accent-lime-border: rgba(132, 204, 22, 0.4);
  --color-success: #22C55E;
  --color-success-bg: rgba(34, 197, 94, 0.12);
  --color-warning: #F59E0B;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #EF4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --border-color: #1E293B;
  --border-subtle: #172033;
  --border-strong: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow: rgba(0, 0, 0, 0.4);
  background-color: var(--bg-body);
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px);
  color: var(--text-main);
}
html.theme-dark,
body.theme-dark {
  scrollbar-color: #334155 #0B1120;
}
html.theme-dark ::-webkit-scrollbar-track,
body.theme-dark ::-webkit-scrollbar-track {
  background: #0B1120;
}
html.theme-dark ::-webkit-scrollbar-thumb,
body.theme-dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
html.theme-dark ::-webkit-scrollbar-thumb:hover,
body.theme-dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
html.theme-dark body.opaque-cards,
body.theme-dark.opaque-cards {
  --bg-card: #111827;
  --bg-sidebar: #0C111D;
}
html.theme-dark .swiss-top-bar,
body.theme-dark .swiss-top-bar,
html.theme-dark .nav,
body.theme-dark .nav {
  background: rgba(13, 19, 34, 0.94) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
html.theme-dark .btn-outline,
body.theme-dark .btn-outline {
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-sub) !important;
  border: 1px solid var(--border-color);
}
html.theme-dark .btn-outline:hover,
body.theme-dark .btn-outline:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--border-strong);
  color: var(--text-main) !important;
}
html.theme-dark .btn-secondary,
body.theme-dark .btn-secondary {
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-sub) !important;
  border: 1px solid var(--border-color);
}
html.theme-dark .btn-secondary:hover,
body.theme-dark .btn-secondary:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--border-strong);
  color: var(--text-main) !important;
}
html.theme-dark .auth-box,
body.theme-dark .auth-box,
html.theme-dark .stat-card,
body.theme-dark .stat-card,
html.theme-dark .panel-card,
body.theme-dark .panel-card,
html.theme-dark .task-card,
body.theme-dark .task-card,
html.theme-dark .gift-card,
body.theme-dark .gift-card,
html.theme-dark .rank-personal-box,
body.theme-dark .rank-personal-box,
html.theme-dark .rank-board-box,
body.theme-dark .rank-board-box,
html.theme-dark .reward-rule-box,
body.theme-dark .reward-rule-box,
html.theme-dark .withdraw-box,
body.theme-dark .withdraw-box,
html.theme-dark .profile-box,
body.theme-dark .profile-box,
html.theme-dark .password-box,
body.theme-dark .password-box,
html.theme-dark .admin-table-wrap,
body.theme-dark .admin-table-wrap,
html.theme-dark .custom-modal-box,
body.theme-dark .custom-modal-box,
html.theme-dark .modal-content,
body.theme-dark .modal-content,
html.theme-dark .floating-settings-panel,
body.theme-dark .floating-settings-panel,
html.theme-dark .settings-trigger-btn,
body.theme-dark .settings-trigger-btn,
html.theme-dark .clock-card,
body.theme-dark .clock-card,
html.theme-dark .status-pill-badge,
body.theme-dark .status-pill-badge,
html.theme-dark .swiss-icon-btn,
body.theme-dark .swiss-icon-btn,
html.theme-dark .no-hover-scale-item,
body.theme-dark .no-hover-scale-item {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}
html.theme-dark .stat-card:nth-child(1) .stat-icon,
body.theme-dark .stat-card:nth-child(1) .stat-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}
html.theme-dark .stat-card:nth-child(2) .stat-icon,
body.theme-dark .stat-card:nth-child(2) .stat-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
}
html.theme-dark .stat-card:nth-child(3) .stat-icon,
body.theme-dark .stat-card:nth-child(3) .stat-icon {
  background: rgba(168, 85, 247, 0.12);
  color: #C084FC;
}
html.theme-dark .stat-card:nth-child(4) .stat-icon,
body.theme-dark .stat-card:nth-child(4) .stat-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
}
html.theme-dark .auth-input,
body.theme-dark .auth-input,
html.theme-dark .auth-input-sm,
body.theme-dark .auth-input-sm,
html.theme-dark select.auth-input-sm,
body.theme-dark select.auth-input-sm,
html.theme-dark input,
body.theme-dark input,
html.theme-dark select,
body.theme-dark select,
html.theme-dark textarea,
body.theme-dark textarea {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}
html.theme-dark select option,
body.theme-dark select option {
  background: #0F172A !important;
  color: #F8FAFC !important;
}
html.theme-dark .auth-input::placeholder,
body.theme-dark .auth-input::placeholder,
html.theme-dark .auth-input-sm::placeholder,
body.theme-dark .auth-input-sm::placeholder {
  color: #64748B;
}
html.theme-dark thead th,
body.theme-dark thead th,
html.theme-dark .admin-table th,
body.theme-dark .admin-table th {
  background: #0B1120 !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
html.theme-dark tbody td,
body.theme-dark tbody td,
html.theme-dark .admin-table td,
body.theme-dark .admin-table td {
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--text-body) !important;
}
html.theme-dark tbody tr:hover td,
body.theme-dark tbody tr:hover td,
html.theme-dark .admin-table tbody tr:hover td,
body.theme-dark .admin-table tbody tr:hover td {
  background: #172033 !important;
}
html.theme-dark .reward-prize-item,
body.theme-dark .reward-prize-item {
  background: #0B1120 !important;
}
html.theme-dark .reward-prize-item .rp-amount,
body.theme-dark .reward-prize-item .rp-amount {
  color: #22C55E !important;
}
html.theme-dark .rank-stat-divider,
body.theme-dark .rank-stat-divider {
  background: var(--border-color) !important;
}
html.theme-dark .amount-btn,
body.theme-dark .amount-btn {
  background: #111827;
  border-color: var(--border-color);
  color: var(--text-main);
}
html.theme-dark .amount-btn:hover,
body.theme-dark .amount-btn:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.12);
}
html.theme-dark .withdraw-method-tab,
body.theme-dark .withdraw-method-tab {
  background: #111827;
  border-color: var(--border-color);
  color: var(--text-sub);
}
html.theme-dark .withdraw-method-tab:hover,
body.theme-dark .withdraw-method-tab:hover {
  background: #1E293B;
  color: var(--text-main);
}
html.theme-dark .withdraw-method-tab.active,
body.theme-dark .withdraw-method-tab.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: #60A5FA;
}
html.theme-dark .sidebar-balance-box,
body.theme-dark .sidebar-balance-box {
  background: #0B1120;
  border-color: var(--border-color);
  color: var(--text-main);
}
html.theme-dark .avatar-box,
body.theme-dark .avatar-box {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue-border);
  color: #60A5FA;
}
html.theme-dark .menu-item:hover a,
body.theme-dark .menu-item:hover a,
html.theme-dark .dropdown-trigger:hover,
body.theme-dark .dropdown-trigger:hover,
html.theme-dark .menu-dropdown.active .dropdown-trigger,
body.theme-dark .menu-dropdown.active .dropdown-trigger {
  background: #172033;
  color: var(--text-main);
}
html.theme-dark .menu-item.active a,
body.theme-dark .menu-item.active a {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA !important;
  border-left: 3px solid #3B82F6;
}
html.theme-dark .submenu-item,
body.theme-dark .submenu-item {
  color: var(--text-muted);
}
html.theme-dark .submenu-item:hover,
body.theme-dark .submenu-item:hover,
html.theme-dark .submenu-item.active,
body.theme-dark .submenu-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}
html.theme-dark .filter-btn,
body.theme-dark .filter-btn {
  background: #111827;
  border-color: var(--border-color);
  color: var(--text-muted);
}
html.theme-dark .filter-btn:not(.active):hover,
body.theme-dark .filter-btn:not(.active):hover {
  background: #1E293B;
  color: var(--text-main);
}
html.theme-dark .danger-zone-box,
body.theme-dark .danger-zone-box {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}
html.theme-dark .danger-zone-desc,
body.theme-dark .danger-zone-desc {
  color: #F87171 !important;
}
html.theme-dark .setting-box,
body.theme-dark .setting-box {
  background: #0B1120 !important;
  border-color: var(--border-color) !important;
}
html.theme-dark .bg-btn-option,
body.theme-dark .bg-btn-option {
  background: #111827;
  border-color: var(--border-color);
  color: var(--text-main);
}
html.theme-dark .bg-btn-option:hover,
body.theme-dark .bg-btn-option:hover {
  background: #1E293B;
}
html.theme-dark .switch-slider,
body.theme-dark .switch-slider {
  background-color: #334155;
}
html.theme-dark .milestone-track,
body.theme-dark .milestone-track {
  background: #1E293B;
}
html.theme-dark .m-point,
body.theme-dark .m-point {
  background: #111827;
  border-color: #334155;
  color: var(--text-main);
}
html.theme-dark .gift-progress,
body.theme-dark .gift-progress {
  background: #0F172A;
  border-color: var(--border-color);
}
html.theme-dark .lb-avatar,
body.theme-dark .lb-avatar {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue-border);
  color: #60A5FA;
}
html.theme-dark .lb-row.is-me,
body.theme-dark .lb-row.is-me {
  background: rgba(59, 130, 246, 0.15);
  border-left: 3px solid #3B82F6;
}
html.theme-dark .profile-item,
body.theme-dark .profile-item {
  border-bottom: 1px solid var(--border-subtle);
}
html.theme-dark #mobileHamburgerBtn,
body.theme-dark #mobileHamburgerBtn {
  background: #111827 !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}
html.theme-dark .hero-metric-row,
body.theme-dark .hero-metric-row {
  border-top: 1px solid var(--border-color);
}
html.theme-dark .hero-metric-divider,
body.theme-dark .hero-metric-divider {
  background: var(--border-color);
}
.crop-window {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0B1120;
  border: 2px dashed var(--accent-blue);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-window:active {
  cursor: grabbing;
}
.crop-window img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
html.theme-dark .task-badge-coin,
body.theme-dark .task-badge-coin {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #4ADE80 !important;
}
html.theme-dark .no-hover-scale-item,
body.theme-dark .no-hover-scale-item {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}
html.theme-dark code,
body.theme-dark code {
  background: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}
html.theme-dark input[type=range],
body.theme-dark input[type=range] {
  accent-color: var(--accent-blue);
}
html.theme-dark .custom-modal-overlay,
body.theme-dark .custom-modal-overlay {
  background: rgba(4, 7, 14, 0.75) !important;
}
html.theme-dark .modal-overlay,
body.theme-dark .modal-overlay {
  background: rgba(4, 7, 14, 0.75) !important;
}
