:root {
  --bg: #eef4e6;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #66788a;
  --line: #dce4ec;
  --brand: #13795b;
  --brand-strong: #0e5f49;
  --gold: #d99a21;
  --red: #d83b3b;
  --blue: #2367c9;
  --shadow: 0 12px 28px rgba(23, 32, 42, .08);
  --max: 720px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    linear-gradient(rgba(238, 244, 230, .92), rgba(238, 244, 230, .92)),
    radial-gradient(circle at 10% 12%, rgba(19, 121, 91, .12), transparent 24%),
    radial-gradient(circle at 86% 4%, rgba(217, 154, 33, .14), transparent 22%),
    var(--bg);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  padding-bottom: 76px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-strong);
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.mobile-header, .app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 14px 8px;
}
.mobile-header p, .app-header p {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}
.mobile-header h1, .app-header h1 { margin: 0; font-size: 28px; }
.mobile-header a, .header-link {
  display: grid;
  place-items: center;
  min-width: 68px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-strong);
  font-weight: 800;
}

.mobile-shell, .app-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 12px 22px;
}
.page-panel { display: none; }
.page-panel.active { display: grid; gap: 14px; }

.banner-carousel {
  display: grid;
  gap: 10px;
}
.home-banner {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 188px;
  border-radius: 8px;
  background: #17202a;
  color: #fff;
  box-shadow: var(--shadow);
}
.home-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}
.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.68));
}
.home-banner span, .home-banner strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 18px;
  max-width: calc(100% - 36px);
}
.home-banner span { padding-top: 112px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.home-banner strong { margin-top: 4px; font-size: 25px; }
.empty-banner { padding: 18px; background: linear-gradient(135deg, #17202a, #13795b); }
.page-image {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 8px;
  background: #17202a;
  color: #fff;
  box-shadow: var(--shadow);
}
.page-image[hidden] { display: none; }
.page-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
}
.page-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.62));
}
.page-image strong {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 23px;
}

.login-panel, .bind-panel, .support-panel, .notice-panel, .leaderboard-panel, .wage-panel, .reward-panel, .rule-panel, .team-panel, .checkin-panel, .birthday-panel, .admin-tab, .admin-actions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.login-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.login-panel strong { display: block; margin-bottom: 4px; font-size: 18px; }
.login-panel span, .section-head span, .timeline span, .product-card p, .admin-actions span, .packet-meta {
  color: var(--muted);
  font-size: 13px;
}
.login-panel form, .form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.login-panel form {
  grid-template-columns: 1fr 1fr 1fr auto;
}
.login-panel form input[hidden] { display: none; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-tabs button {
  background: #f6f8fb;
  border: 1px solid var(--line);
  color: var(--muted);
}
.auth-tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.checkin-panel {
  display: grid;
  gap: 12px;
}
.checkin-calendar-panel[hidden] { display: none; }
.checkin-panel span, .birthday-claim span { color: var(--muted); font-size: 13px; }
.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.checkin-day {
  min-height: 62px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.checkin-day strong { font-size: 16px; }
.checkin-day span { font-size: 11px; text-align: center; line-height: 1.2; }
.checkin-day button {
  padding: 4px 7px;
  font-size: 11px;
  border-radius: 7px;
}
.checkin-day.signed {
  border-color: rgba(19, 121, 91, .35);
  background: #edf7f3;
}
.checkin-day.signed strong, .checkin-day.today strong { color: var(--brand-strong); }
.checkin-day.missed {
  opacity: .58;
  background: #f4f5f6;
}
.checkin-day.today {
  border-color: rgba(217, 154, 33, .55);
  background: #fff7e6;
}
.checkin-day.future span { color: #8a6a2a; }
.checkin-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.checkin-rewards article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.checkin-rewards b { color: var(--brand-strong); }
.checkin-rewards span { line-height: 1.35; }
.birthday-form, .birthday-claim {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}
.shipping-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shipping-form input:nth-child(3),
.shipping-form button {
  grid-column: 1 / -1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.summary-card {
  min-height: 98px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 121, 91, .96), rgba(23, 32, 42, .9));
  color: #fff;
  box-shadow: var(--shadow);
}
.summary-card.red { background: linear-gradient(135deg, rgba(216, 59, 59, .96), rgba(217, 154, 33, .9)); }
.summary-card span { display: block; margin-bottom: 10px; color: rgba(255,255,255,.82); font-size: 12px; }
.summary-card strong { display: block; overflow-wrap: anywhere; font-size: 24px; line-height: 1.1; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-grid button {
  min-height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-strong);
  box-shadow: 0 8px 18px rgba(23, 32, 42, .05);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.section-head.compact { margin-top: 4px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head button { background: var(--blue); }

.notice-list {
  max-height: 248px;
  overflow: hidden;
}
.notice-track {
  display: grid;
  gap: 8px;
}
.notice-list.rolling .notice-track {
  animation: noticeRoll 28s linear infinite;
}
.notice-list.rolling:hover .notice-track {
  animation-play-state: paused;
}
.notice-list article, .rule-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid var(--line);
}
.notice-list b, .rule-list b {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 8px;
  background: #fff3d8;
  color: #a0630b;
  font-size: 12px;
}
.notice-list span, .rule-list span { color: var(--ink); font-size: 14px; line-height: 1.45; }
@keyframes noticeRoll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.rule-list {
  display: grid;
  gap: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.team-grid article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.team-grid span { color: var(--muted); font-size: 13px; }
.team-grid strong { color: var(--brand-strong); font-size: 24px; }

.rank-tabs, .period-tabs {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.rank-tabs { grid-template-columns: repeat(3, 1fr); }
.period-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}
.rank-tabs button, .period-tabs button {
  background: #f6f8fb;
  border: 1px solid var(--line);
  color: var(--muted);
}
.rank-tabs button.active, .period-tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.rank-list, .wage-list {
  display: grid;
  gap: 8px;
}
.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.rank-row b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d83b3b;
  color: #fff;
}
.rank-row:nth-child(1) b { background: #d99a21; }
.rank-row:nth-child(2) b { background: #9aa4af; }
.rank-row:nth-child(3) b { background: #b76d32; }
.rank-row strong { display: block; margin-bottom: 3px; }
.rank-row span { color: var(--muted); font-size: 13px; }
.wage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wage-grid > article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}
.wage-grid > article > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}
.wage-row {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.wage-row:first-child { border-top: 0; padding-top: 0; }
.wage-row span { color: var(--muted); font-size: 13px; }
.wage-row b { color: var(--brand-strong); }

.personal-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.reward-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.reward-card strong { font-size: 16px; }
.reward-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.reward-card button { margin-top: 4px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(23, 32, 42, .05);
}
.platform-link-list {
  display: grid;
  gap: 10px;
}
.platform-link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 42, .05);
}
.platform-link-card strong { font-size: 17px; }
.platform-link-card span {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}
.platform-link-card em {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.product-card strong { display: block; margin-bottom: 8px; font-size: 17px; }
.product-card p { min-height: 38px; margin: 0 0 10px; line-height: 1.45; }
.product-card button { width: 100%; margin-top: 12px; }
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.product-meta b { color: var(--gold); font-size: 18px; }

.send-packet {
  display: grid;
  grid-template-columns: 1fr 92px 78px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.send-packet input:nth-child(4), .send-packet button { grid-column: 1 / -1; }
.packet-chat { display: grid; gap: 14px; }
.packet-message {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 32, 42, .08);
}
.packet-cover {
  position: relative;
  min-height: 168px;
  display: grid;
  align-items: end;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #241606, #8a1f1f 58%, #d99a21);
}
.packet-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}
.packet-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.68));
}
.packet-cover div { position: relative; z-index: 1; }
.packet-cover span { display: block; margin-bottom: 6px; font-size: 15px; }
.packet-cover strong { display: block; font-size: 21px; }
.packet-cover em { display: block; margin-top: 5px; color: rgba(255,255,255,.82); font-style: normal; font-size: 13px; }
.packet-message p { margin: 12px 14px 4px; font-size: 16px; }
.packet-meta { margin: 0 14px 10px; }
.packet-message button { margin: 0 14px 12px; width: calc(100% - 28px); background: var(--red); }
.claim-list {
  margin: 0;
  padding: 2px 14px 14px;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15px;
}
.claim-list li { display: flex; align-items: center; gap: 8px; color: #285d9f; }
.claim-list b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d83b3b;
  color: #ffd77a;
  font-size: 12px;
}
.claim-list li:nth-child(1) b { background: #d99a21; color: #fff; }
.claim-list li:nth-child(2) b { background: #9aa4af; color: #fff; }
.claim-list li:nth-child(3) b { background: #b76d32; color: #fff; }

.timeline, .chat-list { display: grid; gap: 8px; }
.timeline article, .chat-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}
.timeline strong { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.chat-item.agent { border-color: rgba(35, 103, 201, .35); background: #f3f7ff; }
.chat-item strong { display: block; margin-bottom: 4px; color: var(--brand-strong); }

.bottom-menu {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 64px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 22px rgba(23, 32, 42, .13);
}
.bottom-menu button {
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 2px;
  min-width: 0;
  white-space: nowrap;
  font-size: 15px;
}
.bottom-menu button.active { color: var(--brand-strong); background: #edf7f3; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #17202a;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 40;
}

.admin-body { padding-bottom: 0; background: #f5f7fb; }
.admin-shell, .app-shell { max-width: 1240px; display: grid; gap: 14px; }
.admin-header, .app-header { max-width: 1240px; }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.tabs button {
  flex: 0 0 auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-actions { display: flex; align-items: center; gap: 12px; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.editor-list, .table-list, .support-admin { display: grid; gap: 12px; }
.editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}
.compact-editor { box-shadow: none; background: #fff; }
.editor-card h3 { margin: 0 0 10px; font-size: 17px; }
.editor-grid, .rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.editor-grid label, .rule-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.editor-grid .wide { grid-column: span 2; }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}
.check-row input { width: 18px; min-height: 18px; }
.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}
.row-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.row-actions { display: flex; gap: 8px; }
.row-actions .reject { background: var(--red); }
.reply-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card:last-child { grid-column: 1 / -1; }
  .product-grid, .wage-grid, .personal-rewards, .team-grid, .editor-grid, .rule-grid { grid-template-columns: 1fr; }
  .login-panel form, .form-row, .shipping-form, .birthday-form, .birthday-claim, .reply-box { grid-template-columns: 1fr; }
  .checkin-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shipping-form input:nth-child(3), .shipping-form button { grid-column: auto; }
  .editor-grid .wide { grid-column: auto; }
  .row-card { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .summary-grid, .quick-grid, .send-packet { grid-template-columns: 1fr; }
  .summary-card:last-child, .send-packet input:nth-child(4), .send-packet button { grid-column: auto; }
}

.product-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  overflow: hidden;
}

.product-image-empty {
  place-items: center;
  background: #f4f1eb;
  color: var(--gold);
  font-size: 42px;
}

.product-image-admin {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.product-image-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f4f1eb;
  color: var(--muted);
  font-size: 13px;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-image-controls strong,
.product-image-controls .field-help {
  flex-basis: 100%;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.file-picker {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--brand);
  color: #fff !important;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.product-image-controls .secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.admin-auth {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 42, .08);
}

.auth-warning,
.auth-status {
  margin: 0 24px 18px;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-warning {
  border: 1px solid #e6bd72;
  background: #fff8e8;
  color: #745018;
}

.auth-status {
  min-height: 42px;
  border: 1px solid #cbd9e5;
  background: #f4f8fb;
  color: #31526e;
}

.auth-status:empty {
  display: none;
}

.auth-status[data-tone="error"] {
  border-color: #e2aaaa;
  background: #fff2f2;
  color: #a52828;
}

.admin-auth-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.6fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.admin-auth-panel strong,
.totp-setup-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 20px;
}

.admin-auth-panel span,
.totp-setup-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-auth-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}

#adminBootstrapView .admin-auth-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.totp-setup {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px 28px;
  align-items: center;
  padding: 24px;
}

.totp-setup img {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
}

.totp-setup code {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f7f9;
  font-size: 15px;
  letter-spacing: 1px;
  word-break: break-all;
}

.totp-setup form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-actions #adminIdentity {
  margin-left: auto;
  font-size: 13px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.permission-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.permission-option input,
.admin-active-toggle input {
  width: 18px;
  min-height: 18px;
}

.admin-active-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-account-card .row-actions {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .product-image-admin {
    grid-template-columns: 1fr;
  }

  .admin-auth-panel,
  .totp-setup {
    grid-template-columns: 1fr;
  }

  .admin-auth-form,
  #adminBootstrapView .admin-auth-form,
  .totp-setup form,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .totp-setup img {
    grid-column: 1;
    grid-row: auto;
    width: min(260px, 100%);
    height: auto;
  }

  .admin-actions #adminIdentity {
    width: 100%;
    margin-left: 0;
  }
}

/* Product-design refresh */
:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --ink: #18212a;
  --muted: #687789;
  --line: #d9e2df;
  --brand: #0f7a5f;
  --brand-strong: #075844;
  --gold: #c88a12;
  --red: #cf3f3f;
  --blue: #2e63bd;
  --shadow: 0 10px 24px rgba(24, 33, 42, .08);
  --max: 1120px;
}

body {
  background:
    linear-gradient(180deg, #edf5eb 0, #f7faf6 330px, #f4f7f3 100%);
  padding-bottom: 86px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 230px;
  background:
    linear-gradient(135deg, rgba(15, 122, 95, .18), rgba(200, 138, 18, .10) 52%, rgba(46, 99, 189, .10));
  pointer-events: none;
  z-index: -1;
}

.mobile-header {
  padding: 18px 18px 10px;
}

.mobile-header p {
  color: var(--gold);
  letter-spacing: 0;
}

.mobile-header h1 {
  font-size: 26px;
  line-height: 1.12;
}

.mobile-header a {
  min-width: 64px;
  height: 36px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
}

.mobile-shell {
  padding: 10px 16px 28px;
}

.page-panel.active {
  gap: 12px;
}

#page-home.active {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: start;
}

#homeBanners,
.login-panel,
.summary-grid,
.checkin-panel {
  grid-column: 1;
}

.notice-panel,
.leaderboard-panel,
.wage-panel {
  grid-column: 2;
}

#homeBanners { grid-row: 1; }
.login-panel { grid-row: 2; }
.summary-grid { grid-row: 3; }
.checkin-panel { grid-row: 4; }
.notice-panel { grid-row: 1; }
.leaderboard-panel { grid-row: 2 / span 2; }
.wage-panel { grid-row: 4; }

.home-banner,
.page-image {
  min-height: 214px;
  border-radius: 8px;
}

#homeBanners .home-banner {
  min-height: 363px;
}

.home-banner::after,
.page-image::after {
  background: linear-gradient(180deg, rgba(10, 18, 24, .08), rgba(10, 18, 24, .72));
}

.home-banner span {
  padding-top: 258px;
}

.home-banner strong {
  font-size: 28px;
  line-height: 1.1;
}

.login-panel,
.bind-panel,
.support-panel,
.notice-panel,
.leaderboard-panel,
.wage-panel,
.reward-panel,
.rule-panel,
.team-panel,
.checkin-panel,
.birthday-panel {
  border-color: rgba(15, 122, 95, .13);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.login-panel {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.login-panel > div:first-child {
  align-self: center;
}

.login-panel form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.login-panel form.register-mode {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
}

.auth-tabs {
  min-width: 164px;
  margin-left: auto;
}

.auth-tabs button,
.rank-tabs button,
.period-tabs button {
  min-height: 38px;
  padding: 8px 10px;
  box-shadow: none;
}

button {
  min-height: 40px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

input,
select,
textarea {
  min-height: 44px;
  border-color: #d7e0de;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 122, 95, .18);
  border-color: var(--brand);
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
  min-height: 106px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(135deg, #0f7a5f, #1f3440);
}

.summary-card.red {
  background: linear-gradient(135deg, #cf3f3f, #c88a12);
}

.summary-card strong {
  font-size: 26px;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.section-head span {
  text-align: right;
}

.checkin-panel {
  gap: 10px;
}

.secondary-btn {
  justify-self: start;
}

.checkin-calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.checkin-day {
  min-height: 66px;
  background: var(--surface-soft);
}

.checkin-day.signed {
  background: #edf8f3;
}

.checkin-rewards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notice-list {
  max-height: 304px;
}

.notice-list article,
.rule-list article {
  grid-template-columns: 54px 1fr;
  min-height: 46px;
  background: var(--surface-soft);
}

.notice-list b,
.rule-list b {
  background: #fff2d4;
  color: #8a5a08;
}

.rank-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-row {
  grid-template-columns: 38px 1fr;
  padding: 11px 12px;
  background: var(--surface-soft);
}

.rank-row b {
  width: 32px;
  height: 32px;
}

.wage-grid {
  grid-template-columns: 1fr;
}

.wage-grid > article {
  background: var(--surface-soft);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.platform-link-card,
.reward-card,
.timeline article,
.chat-item {
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(24, 33, 42, .05);
}

.product-card {
  display: grid;
  align-content: space-between;
  min-height: 210px;
}

.send-packet {
  grid-template-columns: minmax(170px, 1fr) 110px 90px;
  background: rgba(255, 255, 255, .94);
}

.packet-message {
  border-color: rgba(207, 63, 63, .18);
}

.packet-cover {
  min-height: 190px;
  background: linear-gradient(135deg, #4e1717, #cf3f3f 52%, #c88a12);
}

.packet-cover strong {
  font-size: 24px;
}

.claim-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.platform-link-card {
  min-height: 82px;
}

.team-grid,
.personal-rewards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottom-menu {
  width: min(calc(100% - 24px), 720px);
  bottom: 10px;
  min-height: 60px;
  border: 1px solid rgba(15, 122, 95, .16);
  border-radius: 8px;
  overflow: hidden;
}

.bottom-menu button {
  min-height: 58px;
  white-space: normal;
  line-height: 1.15;
  font-size: 13px;
}

.toast {
  bottom: 88px;
}

@media (max-width: 980px) {
  :root { --max: 760px; }

  #page-home.active {
    grid-template-columns: 1fr;
  }

  #homeBanners,
  .login-panel,
  .summary-grid,
  .checkin-panel,
  .notice-panel,
  .leaderboard-panel,
  .wage-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #homeBanners .home-banner {
    min-height: 214px;
  }

  .home-banner span {
    padding-top: 128px;
  }

  .checkin-rewards,
  .team-grid,
  .personal-rewards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mobile-header {
    padding-inline: 14px;
  }

  .mobile-shell {
    padding-inline: 12px;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }

  .auth-tabs {
    width: 100%;
    min-width: 0;
  }

  .login-panel form {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .product-grid,
  .wage-grid,
  .personal-rewards,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .summary-card:last-child {
    grid-column: auto;
  }

  .checkin-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkin-rewards {
    grid-template-columns: 1fr;
  }

  .claim-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .home-banner,
  .page-image {
    min-height: 184px;
  }

  .home-banner span {
    padding-top: 106px;
  }

  .rank-tabs,
  .period-tabs {
    grid-template-columns: 1fr;
  }

  .bottom-menu {
    width: 100%;
    bottom: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
  }
}

/* Admin category sidebar */
.admin-body {
  background: #f3f6f5;
}

.admin-header {
  padding: 18px 20px 10px;
}

.admin-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-inline: 20px;
}

.admin-shell > .login-panel {
  grid-column: 1 / -1;
}

#tokenForm {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.admin-shell > .tabs {
  position: sticky;
  top: 14px;
  grid-column: 1;
  grid-row: 2 / span 20;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-shell > .tabs .nav-group {
  margin: 8px 4px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-shell > .tabs .nav-group:first-child {
  margin-top: 0;
}

.admin-shell > .tabs button {
  width: 100%;
  justify-content: start;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
}

.admin-shell > .admin-actions,
.admin-shell > .admin-tab {
  grid-column: 2;
}

.admin-actions {
  position: sticky;
  top: 14px;
  z-index: 3;
  justify-content: space-between;
}

.admin-tab.active {
  padding: 16px;
}

.member-card {
  display: grid;
  gap: 14px;
}

.member-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.member-card-head h3 {
  margin: 0 0 4px;
}

.member-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.member-card-head strong {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 20px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .admin-shell > .login-panel,
  .admin-shell > .tabs,
  .admin-shell > .admin-actions,
  .admin-shell > .admin-tab {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-shell > .tabs {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-height: none;
  }

  .admin-shell > .tabs .nav-group {
    display: none;
  }

  .admin-shell > .tabs button {
    width: auto;
    flex: 0 0 auto;
    text-align: center;
  }

  .admin-actions {
    position: static;
  }

  .member-card-head {
    display: grid;
  }
}

/* Premium front-end redesign */
body:not(.admin-body) {
  --bg: #0e1517;
  --surface: rgba(255, 255, 255, .94);
  --surface-soft: rgba(248, 246, 239, .86);
  --ink: #172024;
  --muted: #6f7b7c;
  --line: rgba(196, 169, 103, .24);
  --brand: #0e6f5c;
  --brand-strong: #064b40;
  --gold: #caa45a;
  --red: #b8443f;
  --blue: #315f8f;
  --shadow: 0 18px 44px rgba(6, 12, 13, .18);
  background:
    radial-gradient(circle at 18% 0%, rgba(202, 164, 90, .24), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(14, 111, 92, .22), transparent 28%),
    linear-gradient(180deg, #10191b 0, #182325 340px, #44504b 470px, #eef1ea 620px, #f7f4ec 100%);
  color: var(--ink);
}

body:not(.admin-body)::before {
  height: 360px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .05), transparent 32%),
    linear-gradient(180deg, rgba(7, 12, 13, .62), rgba(7, 12, 13, .08));
}

body:not(.admin-body) .mobile-header {
  color: #f8f1df;
  padding-top: 24px;
}

body:not(.admin-body) .mobile-header p {
  color: var(--gold);
  font-size: 11px;
}

body:not(.admin-body) .mobile-header h1 {
  color: #fff8e8;
  font-weight: 900;
}

body:not(.admin-body) .mobile-header a {
  color: #fff5df;
  border-color: rgba(202, 164, 90, .32);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

body:not(.admin-body) .page-panel.active {
  animation: pageEnter .42s ease both;
}

body:not(.admin-body) .home-banner,
body:not(.admin-body) .page-image {
  border: 1px solid rgba(202, 164, 90, .34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

body:not(.admin-body) .home-banner img,
body:not(.admin-body) .page-image img {
  opacity: 1;
  transform: scale(1.02);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

body:not(.admin-body) .home-banner::before,
body:not(.admin-body) .page-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(202, 164, 90, .20), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .12), transparent 22%);
  pointer-events: none;
}

body:not(.admin-body) .home-banner::after,
body:not(.admin-body) .page-image::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 13, 15, .02), rgba(8, 13, 15, .60)),
    linear-gradient(90deg, rgba(8, 13, 15, .46), transparent 62%);
}

body:not(.admin-body) .home-banner span,
body:not(.admin-body) .home-banner strong,
body:not(.admin-body) .page-image strong {
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

body:not(.admin-body) .home-banner span {
  color: #ead8aa;
}

body:not(.admin-body) .home-banner strong,
body:not(.admin-body) .page-image strong {
  color: #fff6df;
}

body:not(.admin-body) .login-panel,
body:not(.admin-body) .bind-panel,
body:not(.admin-body) .support-panel,
body:not(.admin-body) .notice-panel,
body:not(.admin-body) .leaderboard-panel,
body:not(.admin-body) .wage-panel,
body:not(.admin-body) .reward-panel,
body:not(.admin-body) .rule-panel,
body:not(.admin-body) .team-panel,
body:not(.admin-body) .checkin-panel,
body:not(.admin-body) .birthday-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(202, 164, 90, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(250, 247, 238, .96));
  box-shadow:
    0 16px 38px rgba(19, 28, 29, .10),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

body:not(.admin-body) .login-panel::before,
body:not(.admin-body) .notice-panel::before,
body:not(.admin-body) .leaderboard-panel::before,
body:not(.admin-body) .checkin-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(202, 164, 90, .88), rgba(14, 111, 92, .7), transparent);
}

body:not(.admin-body) .section-head h2,
body:not(.admin-body) .login-panel strong,
body:not(.admin-body) .wage-grid > article > strong,
body:not(.admin-body) .product-card strong,
body:not(.admin-body) .platform-link-card strong {
  color: #142022;
  letter-spacing: 0;
}

body:not(.admin-body) button {
  background: linear-gradient(180deg, #137961, #075846);
  box-shadow:
    0 10px 20px rgba(7, 88, 70, .18),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

body:not(.admin-body) button:not(:disabled):hover {
  background: linear-gradient(180deg, #168c6d, #075846);
  box-shadow:
    0 14px 26px rgba(7, 88, 70, .23),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}

body:not(.admin-body) .secondary-btn,
body:not(.admin-body) .auth-tabs button,
body:not(.admin-body) .rank-tabs button,
body:not(.admin-body) .period-tabs button {
  color: #5f6568;
  border-color: rgba(30, 43, 45, .10);
  background: linear-gradient(180deg, #fff, #f1eee6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

body:not(.admin-body) .auth-tabs button.active,
body:not(.admin-body) .rank-tabs button.active,
body:not(.admin-body) .period-tabs button.active {
  color: #fff7df;
  border-color: rgba(202, 164, 90, .35);
  background: linear-gradient(180deg, #1a8068, #075846);
}

body:not(.admin-body) input,
body:not(.admin-body) select,
body:not(.admin-body) textarea {
  border-color: rgba(30, 43, 45, .12);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

body:not(.admin-body) input:focus,
body:not(.admin-body) select:focus,
body:not(.admin-body) textarea:focus {
  outline: 3px solid rgba(202, 164, 90, .20);
  border-color: rgba(202, 164, 90, .72);
}

body:not(.admin-body) .summary-card {
  overflow: hidden;
  border: 1px solid rgba(202, 164, 90, .22);
  background:
    linear-gradient(135deg, rgba(13, 82, 70, .98), rgba(16, 26, 30, .96));
  box-shadow: 0 18px 44px rgba(14, 24, 26, .20);
}

body:not(.admin-body) .summary-card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(202, 164, 90, .32), transparent 60%);
}

body:not(.admin-body) .summary-card.red {
  background:
    linear-gradient(135deg, rgba(150, 45, 42, .98), rgba(202, 164, 90, .92));
}

body:not(.admin-body) .summary-card span {
  color: rgba(255, 246, 223, .76);
}

body:not(.admin-body) .summary-card strong {
  color: #fff8e9;
}

body:not(.admin-body) .notice-list article,
body:not(.admin-body) .rule-list article,
body:not(.admin-body) .rank-row,
body:not(.admin-body) .wage-grid > article,
body:not(.admin-body) .checkin-rewards article,
body:not(.admin-body) .checkin-day {
  border-color: rgba(30, 43, 45, .08);
  background: rgba(255, 255, 255, .68);
}

body:not(.admin-body) .notice-list b,
body:not(.admin-body) .rule-list b {
  color: #755315;
  background: linear-gradient(180deg, #fff5d9, #f3dfaa);
}

body:not(.admin-body) .rank-row {
  transition: transform .18s ease, box-shadow .18s ease;
}

body:not(.admin-body) .rank-row:hover,
body:not(.admin-body) .product-card:hover,
body:not(.admin-body) .platform-link-card:hover,
body:not(.admin-body) .reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 28, 29, .12);
}

body:not(.admin-body) .rank-row b,
body:not(.admin-body) .claim-list b {
  background: linear-gradient(180deg, #b8443f, #7e2826);
}

body:not(.admin-body) .rank-row:nth-child(1) b,
body:not(.admin-body) .claim-list li:nth-child(1) b {
  background: linear-gradient(180deg, #e5bf6c, #a6741a);
}

body:not(.admin-body) .rank-row:nth-child(2) b,
body:not(.admin-body) .claim-list li:nth-child(2) b {
  background: linear-gradient(180deg, #b7bdc4, #727b84);
}

body:not(.admin-body) .rank-row:nth-child(3) b,
body:not(.admin-body) .claim-list li:nth-child(3) b {
  background: linear-gradient(180deg, #c88748, #8a4c22);
}

body:not(.admin-body) .product-card,
body:not(.admin-body) .platform-link-card,
body:not(.admin-body) .reward-card,
body:not(.admin-body) .timeline article,
body:not(.admin-body) .chat-item {
  border: 1px solid rgba(202, 164, 90, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 247, 239, .88));
  transition: transform .18s ease, box-shadow .18s ease;
}

body:not(.admin-body) .product-meta b,
body:not(.admin-body) .wage-row b,
body:not(.admin-body) .team-grid strong {
  color: #9a6c18;
}

body:not(.admin-body) .send-packet {
  border-color: rgba(202, 164, 90, .22);
  background: rgba(255, 255, 255, .86);
}

body:not(.admin-body) .packet-message {
  border: 1px solid rgba(202, 164, 90, .25);
  box-shadow: 0 18px 44px rgba(75, 28, 25, .14);
}

body:not(.admin-body) .packet-cover {
  background:
    linear-gradient(135deg, #291b16, #87302d 48%, #caa45a);
}

body:not(.admin-body) .packet-cover::after {
  background:
    linear-gradient(180deg, rgba(8, 13, 15, .08), rgba(8, 13, 15, .76)),
    linear-gradient(90deg, rgba(8, 13, 15, .48), transparent 72%);
}

body:not(.admin-body) .packet-message button {
  background: linear-gradient(180deg, #bd4741, #87302d);
}

body:not(.admin-body) .bottom-menu {
  border-color: rgba(202, 164, 90, .30);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 44px rgba(11, 18, 19, .18);
}

body:not(.admin-body) .bottom-menu button {
  color: #667174;
}

body:not(.admin-body) .bottom-menu button.active {
  color: #075846;
  background:
    linear-gradient(180deg, rgba(202, 164, 90, .16), rgba(14, 111, 92, .10));
}

body:not(.admin-body) .toast {
  background: rgba(17, 27, 29, .94);
  border: 1px solid rgba(202, 164, 90, .28);
}

/* Cleaner home composition and bottom navigation */
body:not(.admin-body) #page-home.active {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 88px;
}

body:not(.admin-body) #homeBanners,
body:not(.admin-body) .login-panel,
body:not(.admin-body) .summary-grid {
  grid-column: 1 / -1;
}

body:not(.admin-body) #homeBanners { grid-row: 1; }
body:not(.admin-body) .login-panel { grid-row: 2; }
body:not(.admin-body) .summary-grid { grid-row: 3; }
body:not(.admin-body) .notice-panel { grid-column: 1; grid-row: 4; }
body:not(.admin-body) .leaderboard-panel { grid-column: 2; grid-row: 4 / span 2; }
body:not(.admin-body) .checkin-panel { grid-column: 1; grid-row: 5; }
body:not(.admin-body) .wage-panel { grid-column: 1 / -1; grid-row: 6; }

body:not(.admin-body) #homeBanners .home-banner {
  min-height: 320px;
}

body:not(.admin-body) .home-banner span {
  padding-top: 220px;
}

body:not(.admin-body) .login-panel {
  align-items: center;
  padding: 16px;
}

body:not(.admin-body) .summary-grid {
  gap: 12px;
}

body:not(.admin-body) .summary-card {
  min-height: 118px;
  padding: 18px;
}

body:not(.admin-body) .bottom-menu {
  width: min(calc(100% - 32px), 680px);
  bottom: 14px;
  gap: 4px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(202, 164, 90, .28);
  border-radius: 999px;
  background: rgba(8, 35, 31, .92);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

body:not(.admin-body) .bottom-menu button {
  min-height: 46px;
  border-radius: 999px;
  color: rgba(255, 247, 224, .78);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

body:not(.admin-body) .bottom-menu button:not(.active):hover {
  color: #fff7df;
  background: rgba(255, 255, 255, .07);
}

body:not(.admin-body) .bottom-menu button.active {
  color: #063f36;
  background: linear-gradient(180deg, #fff9e9, #e8d9b3);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .82);
}

@media (max-width: 760px) {
  body:not(.admin-body) #page-home.active {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:not(.admin-body) #homeBanners,
  body:not(.admin-body) .login-panel,
  body:not(.admin-body) .summary-grid,
  body:not(.admin-body) .notice-panel,
  body:not(.admin-body) .leaderboard-panel,
  body:not(.admin-body) .checkin-panel,
  body:not(.admin-body) .wage-panel {
    grid-column: 1;
    grid-row: auto;
  }

  body:not(.admin-body) #homeBanners .home-banner {
    min-height: 214px;
  }

  body:not(.admin-body) .home-banner span {
    padding-top: 122px;
  }

  body:not(.admin-body) .summary-card {
    min-height: 104px;
  }

  body:not(.admin-body) .bottom-menu {
    width: calc(100% - 16px);
    bottom: 8px;
    min-height: 56px;
    padding: 5px;
  }

  body:not(.admin-body) .bottom-menu button {
    min-height: 44px;
    padding: 6px 2px;
    font-size: 12px;
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-10px, -4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) .page-panel.active,
  body:not(.admin-body) .home-banner img,
  body:not(.admin-body) .page-image img {
    animation: none;
  }

  body:not(.admin-body) button,
  body:not(.admin-body) .rank-row,
  body:not(.admin-body) .product-card,
  body:not(.admin-body) .platform-link-card,
  body:not(.admin-body) .reward-card {
    transition: none;
  }
}

@media (max-width: 760px) {
  body:not(.admin-body) {
    background:
      radial-gradient(circle at 20% 0%, rgba(202, 164, 90, .20), transparent 34%),
      linear-gradient(180deg, #10191b 0, #172224 250px, #4b554f 350px, #f5f1e7 460px, #f8f5ed 100%);
  }

  body:not(.admin-body) .mobile-header h1 {
    font-size: 24px;
  }

  body:not(.admin-body) .login-panel,
  body:not(.admin-body) .bind-panel,
  body:not(.admin-body) .support-panel,
  body:not(.admin-body) .notice-panel,
  body:not(.admin-body) .leaderboard-panel,
  body:not(.admin-body) .wage-panel,
  body:not(.admin-body) .reward-panel,
  body:not(.admin-body) .rule-panel,
  body:not(.admin-body) .team-panel,
  body:not(.admin-body) .checkin-panel,
  body:not(.admin-body) .birthday-panel {
    box-shadow: 0 12px 28px rgba(19, 28, 29, .09);
  }
}
