.points-shop-app {
  background:
    linear-gradient(135deg, rgba(255, 246, 232, 0.72) 0%, rgba(238, 245, 255, 0.9) 28%, rgba(247, 251, 255, 0.98) 62%, #ffffff 100%);
}

.active-menu {
  background: var(--blue-soft);
  color: var(--blue-deep) !important;
  font-weight: 800;
}

.points-top-actions {
  gap: 12px;
}

.points-top-actions .toolbar-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 800;
}

.points-top-actions svg,
.points-tabbar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.points-tabbar {
  gap: 8px;
  padding: 0 16px;
}

.points-tabbar .tab {
  height: 38px;
  padding: 0 13px;
  background: transparent;
  color: #64748b;
  font-weight: 700;
}

.points-tabbar .active-tab {
  background: #f1f5fb;
  color: var(--blue-ink);
}

.points-shop-page {
  min-height: calc(100vh - var(--app-chrome-height, 131px));
  padding: 24px 22px 72px;
}

.points-shop-shell {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  color: #111827;
}

.shop-view[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

.shop-heading,
.product-toolbar,
.sort-tabs,
.points-total,
.transfer-link,
.points-shortcuts,
.side-section-head,
.earn-row,
.back-link,
.detail-points,
.record-tabs,
.filter-actions,
.modal-actions,
.verify-tabs,
.code-row,
.rules-head,
.rules-table div {
  display: flex;
  align-items: center;
}

.shop-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.shop-kicker {
  display: block;
  margin-bottom: 5px;
  color: #f97316;
  font-size: 13px;
  font-weight: 900;
}

.shop-heading h1,
.detail-heading h1 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 950;
  white-space: nowrap;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(292px, 370px);
  gap: 16px;
  align-items: start;
}

.shop-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.category-panel,
.product-panel,
.points-card,
.earn-card,
.detail-balance-panel,
.detail-table-panel,
.exchange-filter-panel {
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.category-panel {
  display: grid;
  gap: 18px;
  padding: 18px 24px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96) 56%, rgba(255, 247, 237, 0.92)),
    #fff;
}

.category-tabs,
.sub-category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.category-tabs button,
.sub-category-tabs button,
.sort-tabs button,
.record-tabs button,
.points-shortcuts button,
.side-section-head button,
.back-link,
.transfer-link,
.ghost-action,
.primary-action,
.primary-pill {
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 850;
}

.category-tabs button {
  min-height: 26px;
  padding: 0;
  font-size: 15px;
}

.category-tabs button.active,
.record-tabs button.active,
.points-shortcuts button:hover,
.side-section-head button,
.transfer-link,
.back-link:hover {
  color: #2878ff;
}

.sub-category-tabs {
  padding: 16px 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 244, 251, 0.92), rgba(239, 246, 255, 0.92), rgba(255, 247, 237, 0.86));
}

.sub-category-tabs button {
  min-width: 84px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
}

.sub-category-tabs button.active {
  border-color: rgba(40, 120, 255, 0.2);
  background: #fff;
  color: #2878ff;
  box-shadow: 0 8px 18px rgba(40, 120, 255, 0.12);
}

.product-panel {
  min-height: 788px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px 24px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
    #fff;
}

.product-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.sort-tabs {
  gap: clamp(18px, 5vw, 58px);
  flex-wrap: wrap;
}

.sort-tabs button {
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.sort-tabs button.active {
  color: #2878ff;
}

.sort-icon {
  position: relative;
  width: 13px;
  height: 15px;
  flex: 0 0 auto;
  color: currentColor;
  opacity: 0.72;
}

.sort-icon::before,
.sort-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 6px;
  height: 6px;
  border-color: currentColor;
  border-style: solid;
}

.sort-icon::before {
  top: 1px;
  border-width: 2px 0 0 2px;
  transform: rotate(45deg);
}

.sort-icon::after {
  bottom: 1px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  align-content: start;
}

.product-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 14px 12px 12px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.96)),
    #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--product-accent, #2878ff), rgba(255, 149, 11, 0.72));
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--product-accent, #2878ff) 34%, #dbeafe);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.product-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-accent, #2878ff) 18%, #ffffff);
  color: var(--product-accent, #2878ff);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.08);
}

.product-title {
  overflow: hidden;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.product-image {
  position: relative;
  aspect-ratio: 1.42 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-accent, #2878ff) 12%, #ffffff), rgba(248, 250, 252, 0.98)),
    #fff;
  color: #64748b;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.13);
}

.product-card-link {
  width: 100%;
  cursor: pointer;
}

.product-image.has-photo {
  background: #fff;
}

.product-image img,
.detail-main-image img,
.detail-thumb img,
.story-image img,
.exchange-summary-image img {
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  object-fit: cover;
}

.product-image img,
.detail-main-image img,
.detail-thumb img,
.exchange-summary-image img {
  object-fit: contain;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.detail-main-image img {
  padding: 12px;
}

.story-image img {
  object-fit: cover;
}

.product-image.has-photo img {
  transition: transform 0.24s ease;
}

.product-card:hover .product-image.has-photo img {
  transform: scale(1.045);
}

.product-image svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  color: #2f3642;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.product-meta svg,
.coin-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cash-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #374151;
}

.cash-chip::before {
  content: "$";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.exchange-button {
  min-height: 43px;
  border: 0;
  border-radius: 8px;
  background: #2878ff;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(40, 120, 255, 0.18);
}

.exchange-button:hover,
.primary-action:hover,
.primary-pill:hover {
  background: #1f6bf0;
}

.product-detail-view {
  color: #2f3137;
}

.product-detail-hero,
.product-story-card {
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)),
    #fff;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 24px;
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.detail-main-image,
.detail-thumb,
.story-image,
.exchange-summary-image {
  display: grid;
  place-items: center;
  border: 1px solid #e6edf7;
  background: #f0f6ff;
  color: #2f3137;
  font-weight: 950;
}

.detail-main-image {
  overflow: hidden;
  aspect-ratio: 1.42 / 1;
  min-height: auto;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: 24px repeat(3, minmax(0, 1fr)) 24px;
  gap: 7px;
  align-items: stretch;
}

.detail-thumb,
.detail-thumb-arrow {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
}

.detail-thumb {
  overflow: hidden;
  border: 1px solid transparent;
}

.detail-thumb.active {
  border-color: #2878ff;
  box-shadow: 0 0 0 2px rgba(40, 120, 255, 0.12);
}

.detail-thumb-arrow {
  background: #eef4fb;
  color: #64748b;
  font-size: 18px;
}

.detail-buy-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px 22px;
  align-items: end;
}

.detail-buy-panel h2 {
  grid-column: 1 / -1;
  max-width: 860px;
  margin: 0 0 4px;
  color: #2f3137;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.24;
  font-weight: 950;
}

.detail-plan-list {
  display: grid;
  gap: 8px;
}

.detail-plan-row {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f3137;
  text-align: left;
}

.detail-plan-row span {
  color: #565d6a;
  font-size: 14px;
  font-weight: 500;
}

.detail-plan-row b {
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1;
  font-weight: 950;
}

.detail-plan-row small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 950;
}

.detail-plan-row.active b {
  color: #111827;
}

.detail-cash-label {
  margin-left: 10px;
}

.detail-exchange-button,
.modal-primary-wide {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2878ff;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.modal-primary-wide {
  width: 100%;
}

.detail-exchange-button:hover,
.modal-primary-wide:hover {
  background: #1f6bf0;
}

.modal-primary-wide:disabled,
.detail-exchange-button:disabled {
  background: #b7b7b7;
  cursor: not-allowed;
}

.product-story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 18px;
  margin-top: 16px;
  padding: 22px 24px;
}

.product-story-card p {
  margin: 0;
  color: #2f3137;
  font-size: 14px;
  line-height: 1.65;
}

.story-image {
  overflow: hidden;
  min-height: 154px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.detail-main-image.has-photo,
.detail-thumb.has-photo,
.story-image.has-photo,
.exchange-summary-image.has-photo {
  background: #fff;
  color: transparent;
}

.story-image-tall {
  min-height: 188px;
}

.shop-side {
  min-width: 0;
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--app-chrome-height, 131px) + 18px);
}

.points-card,
.earn-card {
  padding: 22px;
}

.points-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 232, 0.9) 48%, rgba(239, 246, 255, 0.96)),
    #fff;
}

.earn-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    #fff;
}

.points-card h2,
.earn-card h2 {
  margin: 0;
  color: #374151;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
}

.points-total {
  gap: 14px;
  margin-top: 28px;
}

.coin-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff950b;
  color: #fff;
}

.coin-icon.muted {
  width: 44px;
  height: 44px;
  background: transparent;
  color: #5f6368;
}

.coin-icon.muted svg {
  width: 30px;
  height: 30px;
}

.points-total strong {
  color: #2f3137;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
}

.transfer-link {
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  color: #2878ff;
  font-size: 15px;
}

.transfer-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(40, 120, 255, 0.14), rgba(40, 120, 255, 0.06));
  color: #2878ff;
  box-shadow: inset 0 0 0 1px rgba(40, 120, 255, 0.12);
}

.transfer-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.points-divider {
  height: 1px;
  margin: 18px 0;
  border-top: 1px dashed #9ca3af;
}

.points-shortcuts {
  gap: 24px;
}

.points-shortcuts button {
  padding: 0;
  font-size: 15px;
}

.side-section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.side-section-head button {
  padding: 0;
  font-size: 14px;
}

.earn-list {
  display: grid;
  gap: 10px;
}

.earn-row {
  min-height: 76px;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--earn-color, #2878ff) 13%, #ffffff), rgba(239, 246, 255, 0.92));
  color: #111827;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.earn-row:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--earn-color, #2878ff) 19%, #ffffff), rgba(235, 244, 255, 0.96));
}

.earn-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--earn-color, #2878ff);
}

.earn-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.earn-row b,
.earn-row span {
  display: block;
}

.earn-row b {
  color: #374151;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

.earn-row span {
  margin-top: 5px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
}

.earn-row small {
  display: block;
  margin-top: 4px;
  color: #2878ff;
  font-size: 13px;
  font-weight: 850;
}

.earn-arrow {
  margin-left: auto;
  color: #111827;
  font-size: 23px;
  font-weight: 900;
}

.back-link {
  width: fit-content;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
}

.back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.detail-heading {
  margin-bottom: 26px;
}

.detail-balance-panel {
  padding: 34px 42px;
  margin-bottom: 16px;
}

.detail-points {
  gap: 20px;
}

.detail-points span {
  display: block;
  color: #4b5563;
  font-size: 19px;
  font-weight: 850;
}

.detail-points strong {
  display: block;
  margin-top: 10px;
  color: #2f3137;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.primary-pill {
  min-height: 34px;
  margin-left: 6px;
  padding: 0 18px;
  border-radius: 999px;
  background: #2878ff;
  color: #fff;
  font-size: 17px;
}

.detail-table-panel {
  padding: 28px 28px 22px;
}

.record-tabs {
  gap: 34px;
  margin-bottom: 20px;
}

.record-tabs button {
  position: relative;
  min-height: 34px;
  padding: 0;
  font-size: 17px;
}

.record-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 5px;
  border-radius: 99px;
  background: #2878ff;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.records-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.records-table th,
.records-table td {
  height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid #e8eef7;
  color: #4b5563;
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
}

.records-table th {
  height: 54px;
  border-bottom: 0;
  background: #eef4fb;
  color: #4b5563;
  font-weight: 850;
}

.records-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.records-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.records-table td:last-child {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-positive {
  color: #111827;
  font-weight: 850;
}

.point-negative {
  color: #6b7280;
  font-weight: 850;
}

.exchange-filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 18px 28px;
  margin-bottom: 16px;
  padding: 18px 28px 20px;
}

.exchange-filter-panel label,
.form-block {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.exchange-filter-panel label span {
  color: #111827;
  font-weight: 900;
}

.exchange-filter-panel input,
.exchange-filter-panel select,
.form-block input,
.form-block select,
.form-block textarea,
.unit-input input,
.code-row input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.exchange-filter-panel input,
.exchange-filter-panel select,
.form-block input,
.form-block select,
.code-row input {
  padding: 0 13px;
}

.filter-actions {
  grid-column: 3 / 5;
  justify-content: flex-end;
  gap: 20px;
}

.ghost-action,
.primary-action {
  width: auto;
  min-width: 118px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 15px;
}

.ghost-action svg,
.primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-action {
  border-color: #2878ff;
  background: #2878ff;
  color: #fff;
}

.exchange-table {
  min-width: 1120px;
}

.exchange-table th,
.exchange-table td {
  padding: 0 12px;
  font-size: 14px;
}

.exchange-table td:nth-child(2),
.exchange-table td:nth-child(9) {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 24px;
  font-weight: 950;
}

.status-pending {
  color: #f59e0b;
}

.status-approved {
  color: #2878ff;
}

.status-rejected {
  color: #ef4444;
}

.status-cancelled {
  color: #6b7280;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.row-actions button {
  border: 0;
  background: transparent;
  color: #2878ff;
  font-weight: 850;
}

.row-actions button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.mall-pagination {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 0;
  padding: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mall-pagination.centered {
  width: fit-content;
  max-width: 100%;
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-buttons button,
.page-jump input {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  color: #4b5563;
  font-weight: 850;
}

.page-buttons button.active {
  border-color: #2878ff;
  background: #2878ff;
  color: #fff;
}

.page-buttons button:disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.page-ellipsis,
.page-total,
.page-jump {
  color: #4b5563;
  font-weight: 850;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-jump input {
  width: 58px;
  padding: 0 8px;
  text-align: center;
}

.page-confirm {
  min-width: 74px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #2878ff;
  color: #fff;
  font-weight: 950;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
}

.points-modal {
  position: relative;
  width: min(100%, 590px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.transfer-modal {
  padding: 28px 34px 30px;
}

.rules-modal {
  width: min(100%, 620px);
  padding: 28px 32px 34px;
}

.exchange-confirm-modal,
.cash-payment-modal {
  width: min(100%, 680px);
  min-height: 500px;
  padding: 34px 48px 44px;
  border-radius: 26px;
}

.points-modal h2 {
  margin: 0 48px 22px 0;
  color: #2f3137;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.exchange-confirm-modal h2,
.cash-payment-modal h2 {
  margin-bottom: 30px;
  font-size: 38px;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6b7280;
}

.modal-close svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.notice-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #2878ff;
  font-size: 14px;
}

.notice-line svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.form-block {
  margin-bottom: 14px;
}

.form-block strong,
.confirm-stack strong {
  color: #2f3137;
  font-size: 17px;
  font-weight: 950;
}

.form-block > span,
.confirm-stack p {
  color: #6b7280;
  font-size: 14px;
}

.form-block b {
  color: #2878ff;
  font-size: 20px;
}

.unit-input {
  position: relative;
}

.unit-input input {
  padding: 0 52px 0 13px;
}

.unit-input em {
  position: absolute;
  right: 14px;
  top: 50%;
  color: #374151;
  font-style: normal;
  transform: translateY(-50%);
}

.ratio-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 12px;
}

.ratio-buttons button {
  min-width: 76px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #4b5563;
  font-weight: 850;
}

.form-block textarea {
  min-height: 118px;
  padding: 13px;
  resize: none;
}

.form-block small {
  justify-self: end;
  margin-top: -30px;
  margin-right: 12px;
  color: #9ca3af;
  font-size: 14px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 18px;
  margin-top: 28px;
}

.exchange-confirm-modal .modal-actions,
.cash-payment-modal .modal-actions {
  margin-top: 34px;
}

.primary-action.modal-primary-wide {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  font-size: 19px;
}

.confirm-stack {
  display: grid;
  gap: 18px;
}

.exchange-modal-stack {
  display: grid;
  gap: 26px;
}

.exchange-modal-stack strong {
  display: block;
  margin-bottom: 10px;
  color: #2f3137;
  font-size: 21px;
  font-weight: 950;
}

.exchange-modal-stack p {
  margin: -4px 0 14px;
  color: #7b8190;
  font-size: 18px;
}

.exchange-product-summary {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
}

.exchange-summary-image {
  min-height: 136px;
  border-radius: 18px;
  font-size: 27px;
}

.exchange-product-summary h3 {
  margin: 0 0 26px;
  color: #2f3137;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 950;
}

.exchange-product-summary p {
  margin: 0;
  color: #636978;
  font-size: 20px;
}

.exchange-product-summary b {
  margin-left: 10px;
  color: #2f3137;
  font-size: 28px;
}

.exchange-product-summary span {
  color: #2f3137;
  font-weight: 850;
}

.exchange-plan-select,
.cash-account-select {
  width: 100%;
  height: 64px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  color: #4b5563;
  font: inherit;
  font-size: 22px;
}

.cash-amount-box {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-radius: 22px;
  background: #eef4fb;
  color: #2f3137;
}

.cash-amount-box span {
  font-size: 26px;
  font-weight: 950;
}

.cash-amount-box b {
  font-size: 32px;
  font-weight: 950;
}

.cash-amount-box small {
  margin-left: 2px;
  font-size: 20px;
}

.exchange-error {
  color: #f00;
  font-size: 22px;
  line-height: 1.8;
  font-weight: 950;
  text-align: center;
}

.confirm-box,
.confirm-user {
  margin-top: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #374151;
}

.confirm-box b {
  color: #2f3137;
  font-size: 20px;
}

.confirm-user {
  display: grid;
  gap: 8px;
}

.confirm-user b {
  color: #2f3137;
  font-size: 17px;
}

.confirm-user span {
  color: #4b5563;
}

.verify-tabs {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.verify-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #111827;
  font-weight: 850;
}

.verify-tabs button.active {
  border-color: #2878ff;
  color: #2878ff;
}

.verify-tabs span {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.verify-tabs button.active span {
  background: #2878ff;
  box-shadow: inset 0 0 0 4px var(--blue-soft);
}

.code-row {
  margin-top: 14px;
}

.code-row input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.code-row button {
  width: 112px;
  height: 42px;
  border: 1px solid #2878ff;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #2878ff;
  font-weight: 850;
}

.rules-table {
  display: grid;
  gap: 0;
  color: #4b5563;
  font-size: 15px;
}

.rules-table div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #d1d5db;
}

.rules-head {
  border-bottom: 0 !important;
  border-radius: 8px;
  background: var(--blue-soft);
}

.rules-table span {
  padding: 0 24px;
}

.rules-head span {
  color: #4b5563;
  font-weight: 850;
}

.shop-toast {
  position: fixed;
  z-index: 90;
  right: 28px;
  top: 188px;
  min-width: 300px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 22px 28px;
  border-radius: 14px;
  background: #fff;
  color: #2f3137;
  font-size: 25px;
  font-weight: 950;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shop-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.shop-toast::before {
  content: "✓";
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-right: 20px;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1080px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-buy-panel {
    grid-template-columns: minmax(0, 1fr) 148px;
  }

  .shop-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .points-shop-page {
    padding: 18px 14px 56px;
  }

  .shop-heading,
  .product-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-heading h1,
  .detail-heading h1 {
    font-size: 28px;
  }

  .product-panel,
  .category-panel,
  .detail-table-panel {
    padding: 18px 14px;
  }

  .product-detail-hero,
  .product-story-card {
    border-radius: 10px;
    padding: 18px 16px;
  }

  .detail-main-image {
    aspect-ratio: auto;
    min-height: 0;
    height: clamp(178px, 46vw, 220px);
  }

  .detail-thumbs {
    grid-template-columns: 22px repeat(3, minmax(0, 1fr)) 22px;
  }

  .detail-thumb,
  .detail-thumb-arrow {
    min-height: 50px;
  }

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

  .detail-exchange-button {
    width: 100%;
  }

  .detail-plan-row {
    display: grid;
    grid-template-columns: 34px 86px 30px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 6px;
  }

  .product-story-card {
    grid-template-columns: 1fr;
  }

  .detail-cash-label {
    margin-left: 0;
  }

  .story-image {
    min-height: 240px;
  }

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

  .sort-tabs {
    gap: 16px 24px;
  }

  .mall-pagination {
    flex-wrap: wrap;
  }

  .detail-balance-panel {
    padding: 24px 18px;
  }

  .detail-points {
    flex-wrap: wrap;
  }

  .exchange-filter-panel {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions button {
    flex: 1;
  }

  .records-table th,
  .records-table td {
    padding: 0 14px;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 18px 12px;
  }

  .transfer-modal,
  .rules-modal,
  .exchange-confirm-modal,
  .cash-payment-modal {
    padding: 24px 18px;
  }

  .modal-actions {
    gap: 10px;
  }

  .modal-actions button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .shop-side {
    grid-template-columns: 1fr;
  }

  .category-tabs,
  .sub-category-tabs,
  .record-tabs {
    gap: 12px 18px;
  }

  .sub-category-tabs button {
    min-width: 72px;
  }

  .points-card,
  .earn-card {
    padding: 18px;
  }

  .points-total strong {
    font-size: 28px;
  }

  .product-panel {
    min-height: auto;
  }

  .detail-main-image {
    height: 176px;
  }

  .detail-thumbs {
    grid-template-columns: 24px repeat(3, minmax(0, 1fr)) 24px;
    gap: 6px;
  }

  .detail-thumb,
  .detail-thumb-arrow {
    min-height: 46px;
  }

  .detail-buy-panel h2 {
    font-size: 24px;
  }

  .detail-plan-row b {
    font-size: 22px;
    white-space: nowrap;
  }

  .detail-plan-row span {
    font-size: 15px;
  }

  .detail-plan-row small {
    font-size: 14px;
  }

  .page-buttons {
    gap: 6px;
  }

  .page-buttons button,
  .page-jump input {
    width: 34px;
    height: 34px;
  }

  .page-total,
  .page-jump {
    font-size: 13px;
  }

  .points-modal h2 {
    font-size: 24px;
  }

  .exchange-confirm-modal h2,
  .cash-payment-modal h2 {
    font-size: 30px;
  }

  .exchange-product-summary {
    grid-template-columns: 1fr;
  }

  .exchange-summary-image {
    min-height: 180px;
  }

  .exchange-plan-select,
  .cash-account-select {
    height: 54px;
    font-size: 17px;
  }

  .cash-amount-box {
    min-height: 76px;
  }

  .exchange-error {
    font-size: 18px;
  }

  .ratio-buttons {
    flex-wrap: wrap;
  }

  .ratio-buttons button {
    flex: 1 1 42%;
  }

  .verify-tabs button {
    width: 100%;
    justify-content: center;
  }

  .rules-table {
    overflow-x: auto;
  }

  .rules-table div {
    min-width: 520px;
  }

  .shop-toast {
    left: 16px;
    right: 16px;
    top: 150px;
    min-width: 0;
    font-size: 20px;
  }
}

:root[data-theme="dark"] .points-shop-app {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

:root[data-theme="dark"] .points-shop-shell,
:root[data-theme="dark"] .shop-heading h1,
:root[data-theme="dark"] .detail-heading h1,
:root[data-theme="dark"] .detail-buy-panel h2,
:root[data-theme="dark"] .product-story-card p,
:root[data-theme="dark"] .exchange-modal-stack strong,
:root[data-theme="dark"] .exchange-confirm-modal h2,
:root[data-theme="dark"] .cash-payment-modal h2,
:root[data-theme="dark"] .exchange-product-summary h3,
:root[data-theme="dark"] .exchange-product-summary b,
:root[data-theme="dark"] .cash-amount-box,
:root[data-theme="dark"] .product-title,
:root[data-theme="dark"] .records-table td,
:root[data-theme="dark"] .exchange-filter-panel label span {
  color: #e5e7eb;
}

:root[data-theme="dark"] .category-panel,
:root[data-theme="dark"] .product-panel,
:root[data-theme="dark"] .points-card,
:root[data-theme="dark"] .earn-card,
:root[data-theme="dark"] .detail-balance-panel,
:root[data-theme="dark"] .detail-table-panel,
:root[data-theme="dark"] .exchange-filter-panel,
:root[data-theme="dark"] .product-detail-hero,
:root[data-theme="dark"] .product-story-card,
:root[data-theme="dark"] .points-modal,
:root[data-theme="dark"] .shop-toast {
  border-color: #243047;
  background: #111827;
}

:root[data-theme="dark"] .sub-category-tabs,
:root[data-theme="dark"] .earn-row,
:root[data-theme="dark"] .records-table th,
:root[data-theme="dark"] .confirm-box,
:root[data-theme="dark"] .confirm-user,
:root[data-theme="dark"] .notice-line,
:root[data-theme="dark"] .verify-tabs button,
:root[data-theme="dark"] .detail-main-image,
:root[data-theme="dark"] .detail-thumb,
:root[data-theme="dark"] .story-image,
:root[data-theme="dark"] .exchange-summary-image,
:root[data-theme="dark"] .cash-amount-box,
:root[data-theme="dark"] .product-card {
  background: #182235;
}

:root[data-theme="dark"] .product-image,
:root[data-theme="dark"] .product-detail-hero,
:root[data-theme="dark"] .product-story-card,
:root[data-theme="dark"] .exchange-product-summary,
:root[data-theme="dark"] .mall-pagination,
:root[data-theme="dark"] .ghost-action,
:root[data-theme="dark"] .exchange-plan-select,
:root[data-theme="dark"] .cash-account-select,
:root[data-theme="dark"] .exchange-filter-panel input,
:root[data-theme="dark"] .exchange-filter-panel select,
:root[data-theme="dark"] .form-block input,
:root[data-theme="dark"] .form-block select,
:root[data-theme="dark"] .form-block textarea,
:root[data-theme="dark"] .unit-input input,
:root[data-theme="dark"] .code-row input {
  border-color: #31415f;
  background: #0f172a;
  color: #e5e7eb;
}
