:root {
  --ink: #171a23;
  --muted: #707889;
  --faint: #a1a8b5;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --line: #edf0f5;
  --brand: #ff3f83;
  --brand-dark: #ef2e74;
  --brand-soft: #fff0f6;
  --cyan: #cffff8;
  --cyan-soft: #effcff;
  --gold: #ffb44f;
  --gold-soft: #fff6e7;
  --green: #12b979;
  --green-soft: #e9fbf4;
  --blue: #3578ff;
  --blue-soft: #edf5ff;
  --purple: #6b38ff;
  --radius: 8px;
  --shadow: 0 8px 22px rgba(31, 42, 68, 0.06);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-root {
  min-height: 100vh;
}

.platform-shell {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.platform-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 180px;
  padding: 18px 14px;
  background: #f2f4f8;
  border-right: 1px solid #edf0f5;
}

.platform-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 6px;
  color: #0e1118;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 2px solid #0e1118;
  border-radius: 50%;
  color: #f52f78;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.platform-logo strong,
.platform-logo em {
  display: block;
  line-height: 1.1;
}

.platform-logo strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-logo em {
  margin-top: 2px;
  color: #5d6370;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.sidebar-nav.compact {
  margin-top: 10px;
}

.sidebar-group-title {
  margin: 28px 0 2px 6px;
  color: #9299a8;
  font-size: 13px;
}

.sidebar-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #1d2430;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  color: #252b35;
}

.sidebar-item.active {
  background: #fff;
  box-shadow: 0 6px 14px rgba(31, 42, 68, 0.04);
}

.side-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 31px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: #ff4f8c;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
}

.side-badge.green {
  background: #15d486;
}

.upload-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  width: calc(100% - 12px);
  height: 40px;
  margin: 14px 6px 0;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(110deg, #ff4f8c 0 63%, #262736 63% 100%);
  box-shadow: 0 10px 18px rgba(255, 63, 131, 0.18);
}

.upload-button span {
  font-size: 13px;
  font-weight: 900;
}

.upload-button b {
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
}

.platform-main {
  min-width: 0;
  flex: 1;
  margin-left: 180px;
}

.platform-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px 0 38px;
  background: #fff;
}

.history-tools,
.topbar-actions,
.window-tools {
  display: flex;
  align-items: center;
}

.history-tools {
  gap: 15px;
  margin-right: 32px;
}

.top-icon,
.top-tool,
.window-tools button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #8f96a4;
}

.top-icon svg,
.window-tools svg {
  width: 19px;
  height: 19px;
}

.platform-search {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 40px;
  align-items: center;
  width: 360px;
  height: 44px;
  border: 2px solid #14161d;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff7fc, #f3ffff);
}

.platform-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.platform-search button svg {
  width: 13px;
  height: 13px;
}

.platform-search input {
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.platform-search input::placeholder {
  color: #8e95a4;
}

.platform-search > span {
  display: grid;
  place-items: center;
  color: #111827;
}

.platform-search > span svg {
  width: 22px;
  height: 22px;
}

.topbar-spacer {
  flex: 1;
}

.topbar-actions {
  gap: 16px;
  margin-right: 18px;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ffd4ea;
  border-radius: 50%;
  color: #ff4b91;
  background: #fff0fa;
  font-size: 20px;
  font-weight: 900;
}

.top-tool {
  color: #2f343d;
}

.top-tool.hot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(180deg, #ff6b9c, #ff3f83);
}

.window-tools {
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid #edf0f5;
}

.platform-content {
  width: min(1180px, calc(100vw - 220px));
  margin: 12px auto 48px;
}

.points-module {
  min-width: 0;
}

.module-title-row {
  margin: 0 0 12px;
}

.icon-tile,
.modal-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(180deg, #ff79a8, var(--brand));
}

.module-title-row h1,
.view-header h2,
.view-header p,
.section-heading h2,
.panel-title-row h2,
.panel-title-row p,
.benefit-card h3,
.benefit-card p,
.task-row h3,
.task-row p,
.record-row h3,
.record-row p,
.mini-row h3,
.mini-row p,
.order-row h3,
.order-row p,
.rule-card h2,
.rule-card p {
  margin: 0;
}

.module-title-row h1 {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.module-title-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.entry-button,
.ghost-button,
.secondary-button,
.primary-button,
.filter-chip,
.text-button,
.icon-button,
.icon-action,
.task-group-title,
.sidebar-item {
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.asset-head span,
.metric-block span,
.wallet-side span,
.drawer-action span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.left-column,
.main-column {
  display: grid;
  gap: 14px;
}

.asset-panel,
.expire-panel,
.checkin-panel,
.task-board,
.preview-panel,
.rule-preview,
.content-card,
.wallet-side,
.rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.asset-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 16px;
  border-color: #d6fbff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 63, 131, 0.2), transparent 28%),
    linear-gradient(120deg, #cffff8 0%, #fff0fa 100%);
}

.asset-panel::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.48);
  transform: rotate(18deg);
}

.asset-head,
.section-heading,
.panel-title-row,
.task-main,
.task-foot,
.benefit-top,
.benefit-meta div,
.expire-panel,
.rule-preview,
.record-row,
.mini-row,
.order-row,
.rule-line,
.drawer-action,
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-head,
.asset-number,
.asset-metrics {
  position: relative;
  z-index: 1;
}

.asset-head span {
  color: #3a4352;
}

.asset-number {
  display: block;
  margin-top: 16px;
  color: #ff2f79;
  font-size: 45px;
  line-height: 1;
  letter-spacing: 0;
}

.asset-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric-block {
  min-height: 62px;
  padding: 10px;
  border-radius: var(--radius);
  color: #1c2230;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.metric-block span {
  color: #6c7382;
}

.metric-block b {
  display: block;
  margin-top: 4px;
  color: var(--purple);
  font-size: 20px;
}

.metric-block.alert b {
  color: var(--brand);
}

.metric-block em {
  display: inline-flex;
  min-height: 17px;
  margin-top: 3px;
  padding: 0 6px;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.preview-panel,
.checkin-panel,
.task-board,
.content-card {
  padding: 14px;
}

.section-heading {
  min-height: 28px;
}

.section-heading h2,
.panel-title-row h2,
.view-header h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.home-nav-panel {
  display: grid;
  gap: 8px;
}

.home-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #303847;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.home-nav-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #ff5f98, #ff347d);
  box-shadow: 0 12px 22px rgba(255, 63, 131, 0.2);
}

.home-nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: var(--brand);
  background: var(--brand-soft);
}

.home-nav-item.active .home-nav-icon {
  color: var(--brand);
  background: #fff;
}

.home-nav-copy strong,
.home-nav-copy em {
  display: block;
}

.home-nav-copy strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.home-nav-copy em {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.68;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-nav-arrow {
  display: grid;
  place-items: center;
  opacity: 0.72;
}

.entry-button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #303847;
  background: #f8faff;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.entry-button svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.entry-button:hover,
.benefit-card:hover,
.icon-action:hover,
.task-group-title:hover,
.sidebar-item:hover {
  transform: translateY(-1px);
}

.expire-panel,
.rule-preview {
  padding: 13px;
}

.expire-panel h2,
.rule-preview h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.expire-panel p,
.rule-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.icon-tile.warn {
  color: var(--brand);
  background: var(--brand-soft);
}

.icon-tile.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-action,
.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: #657084;
  background: #f5f7fb;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--brand);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #ff609b 0%, var(--brand) 100%);
  box-shadow: 0 8px 18px rgba(255, 63, 131, 0.2);
}

.primary-button:disabled,
.ghost-button:disabled {
  color: #8f98a8;
  background: #e6ebf2;
  border-color: #e6ebf2;
  box-shadow: none;
}

.secondary-button {
  color: var(--brand);
  background: var(--brand-soft);
}

.ghost-button {
  color: #303847;
  border: 1px solid var(--line);
  background: #fff;
}

.small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.text-button {
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.text-button.pale {
  color: var(--brand);
}

.checkin-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.checkin-day {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 8px 4px;
  border-radius: var(--radius);
  color: #8b6b33;
  background: linear-gradient(180deg, #fffaf0, #ffefcf);
}

.checkin-day b,
.checkin-day em {
  display: block;
  line-height: 1.2;
}

.checkin-day b {
  font-size: 11px;
}

.checkin-day em {
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.checkin-day.done,
.checkin-day.today {
  color: #fff;
  background: linear-gradient(180deg, #ff86ad, var(--brand));
}

.checkin-day.today {
  box-shadow: 0 0 0 2px rgba(255, 63, 131, 0.16);
}

.progress-summary {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 11px;
  border-radius: var(--radius);
  background: #fff7fb;
}

.progress-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meter,
.task-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #edf1f6;
}

.meter span,
.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.task-groups {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.task-group {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.task-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.task-group-title {
  width: 100%;
  min-height: 28px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.task-group-title span {
  font-size: 14px;
  font-weight: 900;
}

.task-group-title em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.task-list,
.task-list-full {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

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

.task-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.task-main h3,
.record-row h3,
.mini-row h3,
.order-row h3 {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.task-main p,
.record-row p,
.mini-row p,
.order-row p,
.benefit-card p,
.view-header p,
.wallet-side p,
.rule-card p,
.drawer-hero p,
.notice-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.task-main strong {
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

.task-foot {
  align-items: center;
}

.earn-section,
.exchange-section {
  display: grid;
  gap: 10px;
}

.inline-section {
  display: grid;
  gap: 12px;
}

.inline-grid {
  margin-top: 0;
}

.inline-task-grid {
  margin-top: 0;
}

.inline-record-table {
  margin-top: 0;
}

.redeem-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  overflow: hidden;
  padding: 22px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.74), transparent 24%),
    linear-gradient(105deg, #fff0f7 0%, #d9fff9 52%, #fff5d9 100%);
  box-shadow: var(--shadow);
}

.earn-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  overflow: hidden;
  padding: 22px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(105deg, #fff4dc 0%, #ffe5ee 48%, #e6f9ff 100%);
  box-shadow: var(--shadow);
}

.redeem-banner::before {
  content: "";
  position: absolute;
  right: 142px;
  bottom: -46px;
  width: 160px;
  height: 160px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(18deg);
}

.earn-banner::before {
  content: "";
  position: absolute;
  right: 150px;
  bottom: -50px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.redeem-banner-copy,
.redeem-banner-visual,
.earn-banner-visual {
  position: relative;
  z-index: 1;
}

.redeem-banner-copy span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.redeem-banner-copy h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.redeem-banner-copy p {
  margin: 7px 0 0;
  color: #596274;
  font-size: 13px;
  font-weight: 800;
}

.redeem-banner-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 6px;
}

.earn-banner-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 6px;
}

.redeem-banner-visual span,
.earn-banner-visual span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 24px rgba(31, 42, 68, 0.12);
}

.banner-gift {
  background: linear-gradient(180deg, #ff74a6, var(--brand));
  transform: rotate(-8deg);
}

.banner-play {
  background: linear-gradient(180deg, #20c98a, var(--green));
  transform: translateY(14px) rotate(8deg);
}

.banner-vip {
  background: linear-gradient(180deg, #343946, #151922);
  transform: translateY(-8px) rotate(-4deg);
}

.banner-task {
  background: linear-gradient(180deg, #ff9b4a, #ff6b00);
  transform: rotate(-8deg);
}

.banner-coin {
  background: linear-gradient(180deg, #ff74a6, var(--brand));
  transform: translateY(14px) rotate(8deg);
}

.banner-check {
  background: linear-gradient(180deg, #20c98a, var(--green));
  transform: translateY(-8px) rotate(-4deg);
}

.banner-check svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
}

.task-board-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.task-board-summary h3 {
  margin: 0;
}

.task-board-summary h3 {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.benefit-grid {
  display: grid;
  gap: 10px;
}

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

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

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.benefit-card.type-vip::before {
  background: linear-gradient(90deg, #222633, var(--gold));
}

.benefit-card.type-play::before {
  background: linear-gradient(90deg, var(--green), #67dba8);
}

.benefit-card.disabled {
  opacity: 0.72;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(180deg, #ff79a8, var(--brand));
  font-size: 16px;
  font-weight: 900;
}

.type-vip .benefit-icon {
  background: linear-gradient(180deg, #343946, #151922);
}

.type-play .benefit-icon {
  background: linear-gradient(180deg, #20c98a, var(--green));
}

.benefit-icon.large {
  width: 58px;
  height: 58px;
  font-size: 24px;
}

.small-icon {
  width: 34px;
  height: 34px;
}

.benefit-card h3 {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.benefit-card p {
  margin-top: 5px;
}

.benefit-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: var(--radius);
  background: #fff5fa;
}

.type-vip .benefit-value {
  background: #f7f2e6;
}

.type-play .benefit-value {
  background: #effbf5;
}

.benefit-value strong {
  color: var(--brand);
  font-size: 19px;
  line-height: 1;
}

.type-vip .benefit-value strong {
  color: #6c4a11;
}

.type-play .benefit-value strong {
  color: var(--green);
}

.benefit-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.benefit-meta {
  display: grid;
  gap: 3px;
  margin: 10px 0;
}

.benefit-meta dt,
.benefit-meta dd {
  margin: 0;
  font-size: 12px;
}

.benefit-meta dt {
  color: var(--muted);
}

.benefit-meta dd {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.benefit-card .primary-button,
.benefit-card .ghost-button {
  width: 100%;
  margin-top: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f3f8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.good {
  color: var(--green);
  background: var(--green-soft);
}

.status-pill.warn {
  color: var(--brand);
  background: var(--brand-soft);
}

.mini-list,
.record-table,
.order-table {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-row,
.record-row,
.order-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.record-row strong.good,
.order-row strong.good {
  color: var(--green);
}

.record-row strong.warn,
.order-row strong.warn {
  color: var(--brand);
}

.record-row strong.muted {
  color: var(--muted);
}

.view-header {
  margin-bottom: 12px;
}

.view-header h2 {
  font-size: 24px;
}

.view-header p {
  margin-top: 5px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-action-row .filter-bar {
  min-width: 0;
}

.filter-chip {
  min-height: 31px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #596274;
  background: #f5f7fb;
  font-size: 13px;
  font-weight: 900;
}

.filter-chip.active {
  color: #fff;
  background: var(--brand);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.wallet-side {
  position: sticky;
  top: 72px;
  padding: 16px;
  border-color: #d6fbff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 63, 131, 0.2), transparent 28%),
    linear-gradient(120deg, #cffff8 0%, #fff0fa 100%);
}

.wallet-side span {
  color: #596274;
}

.wallet-side strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 38px;
  line-height: 1;
}

.wallet-side p {
  margin: 14px 0 0;
}

.catalog-main {
  display: grid;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(110px, 160px) minmax(120px, auto);
  justify-content: start;
}

.order-row > span:not(.benefit-icon) {
  color: var(--muted);
  font-size: 13px;
}

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

.rule-card {
  position: relative;
  min-height: 144px;
  padding: 18px;
}

.rule-dot {
  display: block;
  width: 32px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.rule-card h2 {
  font-size: 18px;
}

.rule-card p {
  margin-top: 8px;
  font-size: 13px;
}

.drawer-layer,
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 25, 36, 0.38);
}

.benefit-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px;
  background: #fff;
  box-shadow: -18px 0 42px rgba(31, 42, 68, 0.16);
}

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

.drawer-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.drawer-hero {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 63, 131, 0.22), transparent 26%),
    linear-gradient(120deg, #cffff8 0%, #fff0fa 100%);
}

.drawer-hero p {
  margin: 12px 0 0;
}

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

.drawer-metrics span {
  min-height: 54px;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.drawer-metrics b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.rule-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rule-line {
  min-height: 46px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.rule-line:last-child {
  border-bottom: 0;
}

.rule-line span {
  color: var(--muted);
  font-size: 13px;
}

.rule-line strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.notice-box {
  margin-top: 14px;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.notice-box strong {
  color: var(--brand);
}

.notice-box p {
  margin: 5px 0 0;
}

.drawer-action {
  margin-top: auto;
  padding-top: 18px;
}

.drawer-action strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.drawer-action .primary-button,
.drawer-action .ghost-button {
  min-width: 150px;
}

.modal-layer {
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 25, 36, 0.38);
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 60px rgba(31, 42, 68, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-symbol {
  margin: 0 auto 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.modal-symbol.success {
  color: var(--green);
  background: var(--green-soft);
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.modal-card p {
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.result-lines {
  display: grid;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

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

.modal-actions.single {
  grid-template-columns: 1fr;
}

.empty-state {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .platform-content {
    width: min(1040px, calc(100vw - 220px));
  }

  .dashboard-grid {
    grid-template-columns: 270px minmax(0, 1fr);
  }

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

@media (max-width: 1040px) {
  .platform-sidebar {
    width: 76px;
    padding: 14px 10px;
  }

  .platform-logo div,
  .sidebar-item span,
  .sidebar-group-title,
  .upload-button {
    display: none;
  }

  .sidebar-item {
    grid-template-columns: 1fr;
    place-items: center;
  }

  .platform-main {
    margin-left: 76px;
  }

  .platform-content {
    width: calc(100vw - 104px);
  }

  .platform-topbar {
    padding-left: 18px;
  }

  .dashboard-grid,
  .catalog-layout,
  .rules-grid {
    grid-template-columns: 1fr;
  }

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

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

  .wallet-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .platform-search {
    width: 100%;
  }

  .history-tools,
  .topbar-actions,
  .window-tools {
    display: none;
  }

  .platform-topbar {
    padding: 8px 14px;
  }

  .platform-content {
    width: calc(100vw - 96px);
  }

  .benefit-grid.compact,
  .benefit-grid.wide,
  .task-list,
  .task-list-full,
  .asset-metrics,
  .entry-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

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

  .order-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: flex-start;
  }

  .order-row > span:not(.benefit-icon),
  .order-row strong {
    grid-column: 2;
  }
}
