:root {
  color-scheme: light;
  --blue-900: #102451;
  --blue-800: #173a78;
  --blue-700: #1557d8;
  --blue-600: #1b70ff;
  --blue-500: #2d7cff;
  --blue-300: #83b9ff;
  --blue-100: #e9f4ff;
  --cyan-500: #00a8ff;
  --orange-600: #d53b00;
  --orange-500: #ff6a21;
  --orange-100: #fff0e6;
  --gold-500: #ffc247;
  --green-600: #11a67a;
  --red-600: #db334d;
  --ink: #102451;
  --ink-soft: #51647f;
  --muted: #71839a;
  --line: #d9e6f6;
  --line-strong: #b8d1f5;
  --surface: #ffffff;
  --surface-blue: #f4f9ff;
  --surface-soft: #f8fbff;
  --canvas: #edf6ff;
  --shadow-soft: 0 20px 54px rgba(22, 79, 172, 0.14);
  --shadow-card: 0 12px 30px rgba(22, 79, 172, 0.1);
  --radius: 8px;
  --max: 1180px;
  font-family:
    "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(97, 177, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #f9fcff 0%, #edf6ff 46%, #f8fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(45, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 124, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 300px;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(45, 124, 255, 0.16), transparent 54%),
    radial-gradient(ellipse at 82% 100%, rgba(0, 168, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.share-card-probe {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(45, 124, 255, 0.13);
  background: #fff;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(166, 201, 244, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(17, 55, 120, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark strong {
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  height: 100%;
  color: var(--blue-900);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  color: #182a52;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-600);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.user-chip,
.button-link,
.hero-estimate-form button,
.selector-form button,
.auth-card button[type="submit"],
.admin-gate button,
.admin-actions button,
.pay-actions button,
.payment-confirm-button,
.account-small-button,
.inline-button,
.recharge-package,
.account-form button,
.feedback-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(29, 104, 242, 0.23);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.user-chip:hover,
.button-link:hover,
.hero-estimate-form button:hover,
.selector-form button:hover,
.auth-card button[type="submit"]:hover,
.admin-gate button:hover,
.admin-actions button:hover,
.pay-actions button:hover,
.payment-confirm-button:hover,
.account-small-button:hover,
.inline-button:hover,
.account-form button:hover,
.feedback-form button:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 34px rgba(0, 142, 255, 0.22);
}

.secondary,
.ghost-link-like,
.secondary-inline,
.result-actions button,
.feedback-form button.secondary,
.admin-actions button.secondary {
  background: #fff;
  color: var(--blue-700);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 18px rgba(22, 79, 172, 0.08);
}

.secondary:hover,
.ghost-link-like:hover,
.secondary-inline:hover,
.result-actions button:hover,
.feedback-form button.secondary:hover,
.admin-actions button.secondary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-color: transparent;
}

.button-link {
  padding: 0 20px;
}

.user-chip {
  padding: 0 18px;
  border: 1px solid rgba(45, 124, 255, 0.2);
  background: #fff;
  color: var(--blue-700);
  box-shadow: none;
}

.view {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.workbench-view {
  position: relative;
  width: 100%;
}

.home-clouds {
  display: none;
}

.workbench-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(var(--max), calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 82px) 0 34px;
}

.workbench-hero::before {
  content: "";
  position: absolute;
  inset: 24px -28px auto;
  z-index: -1;
  height: 520px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 28px 80px rgba(29, 112, 255, 0.08);
}

.hero-content {
  align-self: center;
  position: relative;
  padding: 16px 0 0;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--blue-700);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-badge {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(45, 124, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(22, 79, 172, 0.08);
}

.hero-badge::before,
.hero-badge::after {
  display: none;
}

.hero-content h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(52px, 6vw, 76px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content h1 span {
  color: var(--blue-600);
}

.hero-copy {
  max-width: 520px;
  margin: 22px 0 26px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.75;
}

.hero-estimate-form,
.selector-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  max-width: 470px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid rgba(45, 124, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.hero-estimate-form input,
.selector-form input {
  min-height: 60px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  box-shadow: none;
}

.hero-estimate-form input:focus,
.selector-form input:focus {
  box-shadow: none;
}

.hero-estimate-form button,
.selector-form button {
  min-width: 168px;
  padding: 0 22px;
}

.hero-estimate-form button:hover,
.selector-form button:hover {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 18px 34px rgba(213, 59, 0, 0.24);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin: 18px 0 0;
}

.hero-trust-row span,
.hero-trust-row a,
.market-page-note span,
.bottom-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 700;
}

.hero-trust-row span::before,
.hero-trust-row a::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.status-line {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.estimate-preview {
  position: relative;
  align-self: center;
  min-height: 500px;
  padding: 34px;
  border: 1px solid rgba(92, 155, 236, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)),
    radial-gradient(circle at 80% 8%, rgba(45, 124, 255, 0.12), transparent 34%);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.estimate-preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(45, 124, 255, 0.1);
  border-radius: var(--radius);
  pointer-events: none;
}

.estimate-preview::after {
  display: none;
}

.preview-frame-corner {
  display: none;
}

.preview-head,
.preview-price-row,
.preview-verdict-row,
.preview-body-grid,
.unlock-bar {
  position: relative;
  z-index: 1;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--blue-900);
}

.preview-head b {
  font-size: 22px;
}

.preview-head span {
  color: var(--muted);
  font-weight: 700;
}

.preview-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.preview-price-row strong {
  white-space: nowrap;
  color: var(--blue-600);
  font-size: clamp(32px, 2.75vw, 40px);
  line-height: 1;
}

.preview-price-row div {
  min-width: 148px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.preview-price-row div span,
.preview-price-row div b {
  display: block;
}

.preview-price-row div span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
}

.preview-price-row div b {
  color: var(--blue-700);
  font-size: 20px;
}

.preview-verdict-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.preview-verdict-row b {
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 24px;
}

.preview-verdict-row span {
  color: var(--orange-600);
  font-weight: 800;
}

.preview-body-grid {
  display: grid;
  grid-template-columns: 136px minmax(130px, 1fr) 180px;
  gap: 24px;
  align-items: center;
}

.value-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--blue-600) 0 36%, #6da7ff 36% 64%, var(--orange-500) 64% 88%, #b8d7ff 88% 100%);
  box-shadow: 0 12px 24px rgba(45, 124, 255, 0.18);
  display: grid;
  place-items: center;
}

.value-donut span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.value-legend {
  display: grid;
  gap: 13px;
}

.value-legend label {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--blue-800);
  font-weight: 700;
}

.value-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-600);
}

.value-legend label:nth-child(2) i {
  background: #6da7ff;
}

.value-legend label:nth-child(3) i {
  background: var(--orange-500);
}

.value-legend label:nth-child(4) i {
  background: #b8d7ff;
}

.lock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lock-grid div {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--blue-800);
  font-weight: 800;
}

.lock-grid b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, #8ca4c9, #637ca8);
}

.lock-grid span {
  font-size: 14px;
}

.unlock-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid rgba(255, 106, 33, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 240, 230, 0.95), rgba(255, 248, 235, 0.95));
}

.unlock-bar span {
  color: var(--orange-600);
  font-weight: 800;
}

.unlock-bar a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(213, 59, 0, 0.22);
  transition: transform 0.18s ease;
}

.unlock-bar a:hover {
  transform: translateY(-2px) scale(1.01);
}

.estimate-picker,
.home-section,
.result-stack,
.market-view,
.content-page,
.account-view,
.admin-view {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.estimate-picker {
  padding: 20px 0 46px;
}

.ornament-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 24px;
  text-align: center;
}

.ornament-title h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(28px, 3vw, 36px);
}

.ornament-title span {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 124, 255, 0.28));
  opacity: 1;
}

.ornament-title span:first-child {
  transform: rotate(180deg);
}

.picker-panel {
  overflow: hidden;
  border: 1px solid rgba(45, 124, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.estimate-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.estimate-tabs button {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(248, 251, 255, 0.82);
  color: var(--blue-800);
  border-right: 1px solid var(--line);
  font-size: 19px;
  font-weight: 900;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.estimate-tabs button:last-child {
  border-right: 0;
}

.estimate-tabs button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  font-size: 16px;
}

.estimate-tabs button:hover,
.estimate-tabs button.active {
  background: #fff;
  color: var(--blue-600);
  box-shadow: inset 0 3px 0 var(--blue-600);
}

.picker-content {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  padding: 30px 38px;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.92));
}

.picker-copy {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.picker-copy h3 {
  margin: 0 0 16px;
  color: var(--blue-900);
  font-size: 24px;
}

.picker-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}

.picker-copy li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-copy li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.54);
}

.selector-form {
  max-width: none;
  margin-left: auto;
}

.result-stack {
  display: grid;
  gap: 24px;
}

.home-section {
  padding: 48px 0;
}

.workflow-grid,
.feature-grid,
.plan-grid,
.points-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.workflow-grid article,
.feature-grid article,
.plan-grid article,
.points-faq-grid article,
.sample-main-card,
.paywall-compare,
.report-module-grid article,
.rules-card,
.account-panel,
.admin-gate,
.result-card {
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.workflow-grid article {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: center;
  padding: 22px;
}

.workflow-grid article span {
  grid-row: span 2;
  color: var(--blue-600);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.workflow-grid article h3,
.feature-grid article h3,
.plan-grid article h3,
.points-faq-grid article b,
.report-module-grid article b {
  margin: 0;
  color: var(--blue-900);
  font-size: 19px;
}

.workflow-grid article p,
.feature-grid article p,
.plan-grid article p,
.points-faq-grid article span,
.report-module-grid article span {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 24px;
}

.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  background: #eef6ff url("/assets/icons/icon_factor_detail.png") center / 44px 44px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(45, 124, 255, 0.12);
}

.feature-grid article:nth-child(2) .feature-icon {
  background-image: url("/assets/icons/icon_similar_compare.png");
}

.feature-grid article:nth-child(3) .feature-icon {
  background-image: url("/assets/icons/icon_trade_advisor.png");
}

.bottom-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 26px;
  border: 1px solid rgba(45, 124, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.bottom-proof span {
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  min-height: 56px;
}

.bottom-proof span:last-child {
  border-right: 0;
}

.site-disclaimer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 44px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 70px 0 28px;
}

.section-head h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head span {
  display: block;
  max-width: 740px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.market-page-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.market-status {
  min-height: 28px;
  margin: 0 0 10px;
}

.market-result {
  padding-bottom: 56px;
}

.market-tools {
  display: grid;
  grid-template-columns: 1fr;
  margin: 18px 0 14px;
}

.market-tools label {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.market-tools span {
  color: var(--blue-800);
  font-weight: 800;
}

.market-tools input {
  min-height: 52px;
  padding: 0 16px;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 16px;
  margin: 20px 0 14px;
}

.market-toolbar-tabs {
  margin: 0;
}

.market-search-field {
  display: block;
}

.market-search-field input {
  min-height: 46px;
  padding: 0 16px;
  border-color: var(--ps-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(27, 112, 255, 0.08);
}

.market-clear-search {
  width: fit-content;
}

.market-table-card .rules-card-head {
  display: none;
}

.market-table-card {
  margin-top: 0;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.tab-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-800);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(22, 79, 172, 0.08);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.tab-button:hover,
.tab-button.active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
}

.rules-card {
  overflow: hidden;
  margin: 18px 0;
}

.rules-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #f3f8ff);
}

.rules-card-head h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 24px;
}

.rules-card-head span,
.table-note {
  color: var(--muted);
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f4f9ff;
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 900;
}

.data-table tr:hover td {
  background: rgba(233, 244, 255, 0.52);
}

.trend {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-weight: 900;
}

.trend-up {
  color: var(--red-600);
  background: rgba(219, 51, 77, 0.08);
}

.trend-down {
  color: var(--green-600);
  background: rgba(17, 166, 122, 0.08);
}

.trend-flat {
  color: var(--muted);
  background: #eef3f9;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius);
  background: #eef6ff;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.pending {
  background: #fff4e8;
  color: var(--orange-600);
}

.status-pill.submitted {
  background: #eef7ff;
  color: var(--blue-700);
}

.status-pill.paid {
  background: #ecfbf6;
  color: var(--green-600);
}

.status-pill.rejected {
  background: #fff0f2;
  color: var(--red-600);
}

.muted {
  color: var(--muted);
}

.auth-view {
  padding: 56px 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  min-height: 600px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.auth-story {
  position: relative;
  padding: clamp(34px, 5vw, 60px);
  background:
    linear-gradient(150deg, rgba(230, 244, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("/assets/decorations/mountain_bg_left_panel.png") left bottom / 420px auto no-repeat;
}

.auth-logo {
  width: min(330px, 80%);
  height: auto;
  margin-bottom: 28px;
}

.auth-story h1,
.auth-card h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.auth-story p,
.auth-card p {
  max-width: 520px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.auth-benefits span {
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-800);
  font-weight: 800;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f9ff;
}

.auth-switch button {
  min-height: 44px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue-800);
  font-weight: 900;
}

.auth-switch button.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 79, 172, 0.08);
}

.login-form,
.account-form,
.feedback-form {
  display: grid;
  gap: 14px;
}

.login-form input,
.account-form input,
.feedback-form input {
  min-height: 52px;
  padding: 0 16px;
}

.login-form button {
  margin-top: 4px;
}

.result-card {
  padding: 26px;
  margin: 14px 0 28px;
  overflow: hidden;
}

.result-head,
.detail-block-head,
.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-head p {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-weight: 900;
}

.result-head h2,
.detail-block-head h3,
.account-panel-head h2 {
  margin: 0;
  color: var(--blue-900);
}

.result-actions,
.pay-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.result-actions button,
.pay-actions button,
.admin-actions button {
  min-height: 40px;
  padding: 0 14px;
}

.verdict {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--orange-100);
  color: var(--orange-600);
  font-weight: 900;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.price-cell,
.mini-cell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.price-cell b,
.mini-cell b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.price-cell strong {
  display: block;
  color: var(--blue-600);
  font-size: 26px;
  line-height: 1.2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chips span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 800;
}

.paywall {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 106, 33, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff7ef, #fff);
}

.paywall b,
.paywall span {
  display: block;
}

.paywall b {
  margin-bottom: 6px;
  color: var(--orange-600);
}

.paywall span {
  color: var(--ink-soft);
}

.pay-actions button,
.button-link[href="#/points"],
.unlock-bar a {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
}

.detail-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.report-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 20px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.report-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-section h4 {
  margin: 0 0 14px;
  color: var(--blue-900);
}

.asset-list,
.factor-list {
  display: grid;
  gap: 10px;
}

.asset-item,
.factor-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.asset-item strong,
.asset-item span,
.factor-item strong,
.factor-item span {
  display: block;
}

.asset-item span,
.factor-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.factor-item {
  position: relative;
  overflow: hidden;
}

.factor-bar {
  height: 7px;
  margin-top: 10px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--blue-600) var(--factor, 0%), #e7eef8 var(--factor, 0%));
}

.role-report {
  display: grid;
  gap: 20px;
}

.role-report-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(45, 124, 255, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f3f8ff);
  overflow: hidden;
}

.role-report-head p {
  margin: 0 0 7px;
  color: var(--blue-600);
  font-weight: 900;
}

.role-report-head h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(22px, 2vw, 30px);
}

.role-report-head span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
}

.role-report-head b {
  color: var(--blue-600);
  font-size: clamp(28px, 3vw, 42px);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.role-report-brand {
  position: absolute;
  right: 16px;
  bottom: -18px;
  width: 112px;
  opacity: 0.08;
  pointer-events: none;
}

.role-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: start;
}

.role-report-layout main,
.report-side-summary {
  display: grid;
  gap: 16px;
}

.report-price-hero,
.report-detail-card,
.report-analysis-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(31, 107, 255, 0.06);
  overflow: hidden;
}

.report-price-hero::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 74px;
  height: 74px;
  background: url("/assets/icons/icon_smart_estimate.png") center / contain no-repeat;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.report-price-hero > * {
  position: relative;
  z-index: 1;
}

.report-side-summary .report-analysis-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 62px;
  height: 62px;
  background: url("/assets/icons/icon_report_detail.png") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.report-side-summary .report-analysis-card:nth-child(2)::after {
  background-image: url("/assets/icons/icon_factor_detail.png");
}

.report-side-summary .report-analysis-card:nth-child(3)::after {
  background-image: url("/assets/icons/icon_trade_advisor.png");
}

.report-side-summary .report-analysis-card:nth-child(4)::after {
  background-image: url("/assets/icons/icon_similar_compare.png");
}

.report-analysis-card > * {
  position: relative;
  z-index: 1;
}

.report-price-hero span,
.report-detail-card h4 span {
  color: var(--blue-600);
  font-weight: 900;
}

.report-price-hero strong {
  display: block;
  margin: 10px 0;
  color: var(--blue-600);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.report-price-hero em {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 900;
}

.report-detail-card h4,
.report-analysis-card h4 {
  margin: 0 0 14px;
  color: var(--blue-900);
}

.report-detail-card h4 span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.report-info-row {
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.report-info-row span,
.report-info-row em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.report-info-row b {
  display: block;
  margin-top: 5px;
  color: var(--blue-900);
  line-height: 1.35;
}

.report-info-row em {
  margin-top: 3px;
}

.report-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-two-cols > div > b {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
}

.report-data-table {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.report-data-table > b,
.report-data-table > span {
  min-width: 0;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.report-data-table > b {
  background: #eef6ff;
  color: var(--blue-900);
}

.report-data-table > span {
  color: var(--ink-soft);
  background: #fff;
}

.report-analysis-card > strong {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-600);
  font-size: 34px;
  line-height: 1.1;
}

.report-analysis-card > strong span {
  color: var(--orange-600);
  font-size: 18px;
}

.report-breakdown,
.report-advice-list,
.report-audit-list {
  display: grid;
  gap: 10px;
}

.report-advice-list article,
.report-audit-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.report-advice-list article.primary {
  border-color: rgba(255, 138, 43, 0.42);
  background: linear-gradient(135deg, #fff7ef, #fff);
}

.report-advice-list b,
.report-advice-list span {
  display: block;
}

.report-advice-list b {
  color: var(--blue-900);
}

.report-advice-list span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.report-audit-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.report-audit-list article.good {
  background: #f0fbf7;
}

.report-audit-list article.warn {
  background: #fff8ef;
}

.report-audit-list span {
  color: var(--muted);
  font-size: 13px;
}

.report-audit-list em {
  color: var(--blue-600);
  font-style: normal;
  font-weight: 900;
}

.download-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 27, 70, 0.42);
}

.download-preview-card {
  width: min(920px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(45, 124, 255, 0.24);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 27, 70, 0.28);
  overflow: hidden;
}

.download-preview-head,
.download-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.download-preview-head b,
.download-preview-head span {
  display: block;
}

.download-preview-head b {
  color: var(--blue-900);
  font-size: 18px;
}

.download-preview-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.download-preview-body {
  max-height: 68vh;
  padding: 16px;
  overflow: auto;
  background: #edf6ff;
}

.download-preview-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.download-preview-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(31, 107, 255, 0.2);
}

.report-disclaimer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .role-report-head,
  .role-report-layout,
  .report-two-cols {
    grid-template-columns: 1fr;
  }

  .role-report-head {
    display: grid;
  }

  .role-report-head b {
    white-space: normal;
  }

  .report-info-grid {
    grid-template-columns: 1fr;
  }

  .report-data-table {
    grid-template-columns: repeat(var(--cols), minmax(150px, 1fr));
    overflow-x: auto;
  }
}

.feedback-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.sample-report-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 24px;
}

.report-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 0.85fr;
  gap: 24px;
  align-items: start;
}

.report-paper,
.report-side-panel,
.points-summary-card,
.points-faq-list article,
.paywall-compare {
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.report-paper {
  padding: 28px;
}

.report-paper-head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.report-paper-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.report-paper-head span,
.report-price-band label,
.decision-card span,
.points-summary-card span {
  color: var(--blue-600);
  font-weight: 900;
}

.report-paper-head h2 {
  margin: 5px 0 0;
  color: var(--blue-900);
  font-size: 24px;
}

.report-paper-head b {
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--orange-100);
  color: var(--orange-600);
}

.report-price-band {
  margin: 22px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff7ff, #fff);
}

.report-price-band strong {
  display: block;
  margin: 10px 0;
  color: var(--blue-600);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.05;
}

.report-price-band span {
  color: var(--orange-600);
  font-weight: 900;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.report-kpi-grid article,
.sample-detail-table div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-kpi-grid span,
.sample-detail-table span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.report-kpi-grid b {
  display: block;
  margin: 8px 0;
  color: var(--blue-700);
  font-size: 30px;
}

.report-kpi-grid em {
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
}

.sample-detail-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.sample-detail-table b {
  display: block;
  margin-top: 8px;
  color: var(--blue-900);
  line-height: 1.55;
}

.report-side-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.decision-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ef, #fff);
  border: 1px solid rgba(255, 106, 33, 0.22);
}

.decision-card strong {
  display: block;
  margin: 10px 0;
  color: var(--orange-600);
  font-size: 24px;
  line-height: 1.28;
}

.decision-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.sample-main-card,
.paywall-compare {
  padding: 28px;
}

.sample-main-card span,
.plan-grid span {
  color: var(--blue-600);
  font-weight: 900;
}

.sample-main-card strong {
  display: block;
  margin: 12px 0;
  color: var(--blue-600);
  font-size: clamp(34px, 4vw, 54px);
}

.value-mix {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.value-mix label,
.paywall-compare div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.paywall-compare h3 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-size: 24px;
}

.report-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.report-module-grid article {
  padding: 20px;
}

.points-plan {
  padding-top: 0;
}

.points-faq-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.points-pricing-shell {
  display: block;
}

.points-summary-card {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.points-summary-card strong {
  display: block;
  margin: 12px 0;
  color: var(--orange-600);
  font-size: 42px;
  line-height: 1.05;
}

.points-summary-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.points-faq-list {
  display: grid;
  gap: 14px;
}

.points-faq-list article {
  padding: 22px 24px;
}

.points-faq-list b,
.points-faq-list span {
  display: block;
}

.points-faq-list b {
  color: var(--blue-900);
  font-size: 20px;
}

.points-faq-list span {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.points-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.points-package-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 288px;
  padding: 24px;
  border: 1px solid rgba(27, 112, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
  box-shadow: 0 18px 46px rgba(22, 79, 172, 0.1);
  overflow: hidden;
}

.points-package-card.recommended {
  border-color: rgba(27, 112, 255, 0.62);
  background:
    radial-gradient(circle at 84% 12%, rgba(45, 124, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #fff, #f3f8ff);
  box-shadow: 0 24px 60px rgba(27, 112, 255, 0.2);
}

.points-package-card.recommended::before {
  content: "";
  position: absolute;
  right: -34px;
  top: 70px;
  width: 124px;
  height: 124px;
  background: url("/assets/decorations/coin_decoration.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.points-package-icon {
  position: absolute;
  right: 16px;
  bottom: 68px;
  z-index: 0;
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: 0.16;
  filter: saturate(0.95);
  pointer-events: none;
}

.points-package-card.recommended .points-package-icon {
  opacity: 0.2;
}

.points-package-card > *:not(.points-package-icon) {
  position: relative;
  z-index: 1;
}

.points-package-card em,
.recharge-package em {
  justify-self: start;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0e8;
  color: var(--orange-600);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.points-package-card em {
  background: #eaf3ff;
  color: var(--ps-blue);
}

.points-package-card.recommended em {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--ps-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 112, 255, 0.22);
}

.points-package-card h2 {
  margin: 0 0 14px;
  color: var(--ps-blue-dark);
  font-size: 23px;
}

.points-package-card strong {
  color: var(--ps-blue);
  font-size: clamp(42px, 4vw, 52px);
  line-height: 1;
}

.points-package-meta {
  display: grid;
  gap: 6px;
  margin: 16px 0 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(27, 112, 255, 0.12);
  border-bottom: 1px solid rgba(27, 112, 255, 0.12);
}

.points-package-meta b,
.points-package-meta span {
  display: block;
}

.points-package-meta b {
  color: var(--blue-900);
  font-size: 18px;
}

.points-package-meta span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.points-package-card p {
  margin: 12px 0 18px;
  color: #51647f;
  line-height: 1.55;
}

.points-package-card a {
  align-self: end;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--ps-blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(27, 112, 255, 0.18);
}

.points-package-card.recommended a {
  background: linear-gradient(135deg, var(--ps-blue), #165fe8);
  box-shadow: 0 18px 38px rgba(27, 112, 255, 0.26);
}

.points-purchase-note {
  position: relative;
  margin-top: 18px;
  padding: 18px 20px 18px 76px;
  border: 1px solid rgba(27, 112, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(22, 79, 172, 0.06);
}

.points-purchase-note::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  background: url("/assets/icons/icon_trade_advisor.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 16px rgba(27, 112, 255, 0.14));
}

.points-purchase-note b,
.points-purchase-note span {
  display: block;
}

.points-purchase-note b {
  margin-bottom: 6px;
  color: var(--ps-blue-dark);
  font-size: 18px;
}

.points-purchase-note span {
  color: var(--ink-soft);
  line-height: 1.65;
}

.points-flow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.points-flow-row article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(27, 112, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(22, 79, 172, 0.07);
}

.points-flow-row b {
  color: var(--ps-blue);
  font-size: 28px;
  line-height: 1;
}

.points-flow-row span {
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.55;
}

.points-flow-row span strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-900);
  font-size: 16px;
}

.points-faq-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.plan-grid article,
.points-faq-grid article {
  padding: 24px;
}

.plan-grid b {
  display: block;
  margin: 10px 0;
  color: var(--orange-600);
  font-size: 30px;
}

.points-flow {
  margin-top: 24px;
}

.points-faq-grid {
  margin-top: 24px;
}

.account-view {
  padding: 34px 0 0;
}

.account-workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-sidebar,
.account-panel,
.account-login-required,
.account-loading {
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(234, 243, 255, 0.95), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: var(--shadow-card);
}

.account-sidebar {
  position: sticky;
  top: 94px;
  padding: 12px;
  overflow: hidden;
}

.account-sidebar::before {
  content: "";
  display: block;
  height: 4px;
  margin: -12px -12px 12px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500), var(--orange-500));
}

.account-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #eef7ff);
}

.account-profile-mini img,
.account-identity-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.account-profile-mini b,
.account-profile-mini span,
.account-identity-card strong,
.account-identity-card span {
  display: block;
}

.account-profile-mini span,
.account-identity-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-point-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.account-point-mini a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.account-point-mini span,
.account-point-mini em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.account-point-mini b {
  display: block;
  margin: 5px 0;
  color: var(--orange-600);
  font-size: 26px;
}

.account-menu {
  display: grid;
  gap: 16px;
  padding: 10px 4px 14px;
}

.account-menu-group {
  display: grid;
  gap: 6px;
}

.account-menu-group > span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-menu a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--blue-900);
  font-weight: 800;
  background: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.account-menu a:hover,
.account-menu a.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tab) 26%, white);
  background: linear-gradient(90deg, var(--tab-soft), #fff);
  box-shadow: 0 10px 20px rgba(22, 79, 172, 0.08);
}

.account-menu a.active {
  box-shadow:
    inset 4px 0 0 var(--tab),
    0 10px 22px rgba(22, 79, 172, 0.1);
}

.account-menu a span,
.account-menu a b,
.account-menu a em {
  display: block;
}

.account-menu a b {
  font-size: 15px;
}

.account-menu a em {
  display: none;
}

.account-menu-icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tab), color-mix(in srgb, var(--tab) 65%, white));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--tab) 18%, transparent);
}

.account-menu-icon::before,
.account-menu-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
}

.account-menu-icon::before {
  width: 12px;
  height: 3px;
  left: 7px;
  top: 8px;
  border-radius: 4px;
}

.account-menu-icon::after {
  width: 8px;
  height: 8px;
  left: 9px;
  bottom: 6px;
  border-radius: 50%;
}

.account-primary-cta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(29, 104, 242, 0.18);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.account-primary-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
}

.account-logout-action {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.account-main {
  display: grid;
  gap: 18px;
}

.account-panel {
  padding: 24px;
}

.account-hero-panel {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 194, 71, 0.16), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(131, 185, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #fff, #eef7ff);
  box-shadow: var(--shadow-card);
}

.account-hero-panel span {
  color: var(--blue-600);
  font-weight: 900;
}

.account-hero-panel h1 {
  margin: 6px 0;
  color: var(--blue-900);
  font-size: 36px;
  line-height: 1.05;
}

.account-hero-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.account-hero-panel a {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(29, 104, 242, 0.2);
}

.account-panel-head {
  margin-bottom: 20px;
}

.account-identity-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff, #f4f9ff);
}

.account-identity-card a {
  display: inline-flex;
  margin: 6px 0 0;
  color: var(--orange-600);
  font-size: 14px;
  font-weight: 800;
}

.account-field-grid,
.account-setting-grid,
.account-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.account-field-grid article,
.account-setting-grid article,
.account-reference-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.account-field-grid span,
.account-setting-grid span,
.account-reference-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.account-field-grid b,
.account-setting-grid b,
.account-reference-grid b {
  color: var(--blue-900);
  font-size: 24px;
}

.account-field-grid em {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.account-panel-lead {
  margin: -4px 0 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.empty-state-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 22px;
  border: 1px solid rgba(27, 112, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96));
}

.empty-state-card b {
  color: var(--ps-blue-dark);
  font-size: 19px;
}

.empty-state-card span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.empty-state-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ps-blue);
  color: #fff;
  font-weight: 900;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-800);
  font-weight: 800;
}

.recharge-simple-panel {
  padding: 24px;
}

.recharge-simple-panel .account-panel-head {
  margin-bottom: 16px;
}

.recharge-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recharge-package {
  min-height: 176px;
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--blue-900);
  border: 1px solid var(--line);
  box-shadow: none;
}

.recharge-package strong {
  color: var(--ps-blue);
  font-size: 38px;
  line-height: 1;
}

.recharge-package span {
  color: var(--blue-900);
  font-weight: 900;
}

.recharge-package i {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 900;
}

.recharge-package.recommended {
  border-color: rgba(213, 59, 0, 0.28);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 194, 71, 0.18), transparent 34%),
    #fff;
}

.recharge-package.active {
  border-color: rgba(27, 112, 255, 0.48);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 194, 71, 0.14), transparent 34%),
    linear-gradient(180deg, #fff, #edf6ff);
}

.recharge-package:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 112, 255, 0.42);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 194, 71, 0.16), transparent 34%),
    linear-gradient(180deg, #fff, #f4f9ff);
  box-shadow: 0 18px 34px rgba(27, 112, 255, 0.12);
}

.recharge-package:hover em {
  background: #eaf3ff;
  color: var(--blue-700);
}

.recharge-package:hover strong,
.recharge-package:hover span,
.recharge-package:hover i {
  color: inherit;
}

.recharge-package:hover strong {
  color: var(--ps-blue);
}

.recharge-package:hover i {
  color: var(--orange-600);
}

.recharge-flow-panel {
  padding: 22px 24px;
}

.recharge-flow-panel .account-panel-head {
  margin-bottom: 14px;
}

.recharge-flow-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recharge-flow-compact article {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.recharge-flow-compact b {
  grid-row: span 2;
  color: var(--blue-600);
  font-size: 28px;
  line-height: 1;
}

.recharge-flow-compact strong {
  color: var(--blue-900);
  font-size: 17px;
}

.recharge-flow-compact span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 36, 81, 0.36);
  backdrop-filter: blur(8px);
}

.payment-modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(27, 112, 255, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 36, 81, 0.24);
}

.payment-modal-card.submitted {
  width: min(480px, 100%);
  background: linear-gradient(180deg, #fff, #f2fff9);
}

.payment-modal-card.submitted span {
  color: var(--green-600);
  font-weight: 900;
}

.payment-modal-card.submitted h3 {
  margin: 6px 0;
  color: var(--blue-900);
  font-size: 26px;
}

.payment-modal-card.submitted p {
  color: var(--ink-soft);
}

.payment-modal-card.submitted strong {
  color: var(--green-600);
}

.payment-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}

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

.payment-modal-head span {
  color: var(--blue-600);
  font-weight: 900;
}

.payment-modal-head h3 {
  margin: 4px 0 4px;
  color: var(--blue-900);
  font-size: 28px;
}

.payment-modal-head p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.payment-modal-head strong {
  color: var(--orange-600);
  font-size: 38px;
  line-height: 1;
}

.payment-modal-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.payment-modal-qr {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  text-align: center;
}

.payment-modal-qr b {
  color: var(--blue-900);
  font-size: 18px;
}

.payment-modal-qr img {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 6px;
  background: #fff;
}

.payment-modal-qr span {
  color: var(--ink-soft);
  font-size: 13px;
}

.payment-confirm-button {
  width: 100%;
  max-width: 220px;
  min-height: 40px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 12px 24px rgba(213, 59, 0, 0.18);
}

.payment-after-tip {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(213, 59, 0, 0.18);
  border-radius: var(--radius);
  background: #fff8f2;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .recharge-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .payment-modal-qr-grid,
  .recharge-flow-compact,
  .recharge-packages {
    grid-template-columns: 1fr;
  }

  .payment-modal-head {
    display: grid;
  }
}

.account-empty-state,
.account-login-required,
.account-loading {
  padding: 34px;
  text-align: center;
}

.account-footer {
  display: none;
}

.account-dashboard-shell {
  display: grid;
  gap: 20px;
}

.account-command-center {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--account-accent, var(--blue-600)) 14%, transparent), transparent 30%),
    url("/assets/decorations/mountain_bg_right_panel.png") right bottom / 370px auto no-repeat,
    linear-gradient(135deg, #fff, #eef7ff);
  box-shadow: var(--shadow-card);
}

.account-command-center::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 82px;
  height: 52px;
  pointer-events: none;
  background: url("/assets/decorations/cloud_corner_ornament.png") center / contain no-repeat;
  opacity: 0.52;
}

.account-command-copy,
.account-command-stats,
.account-command-actions {
  position: relative;
  z-index: 1;
}

.account-command-copy img {
  width: 138px;
  height: auto;
  margin-bottom: 14px;
}

.account-command-copy span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--account-accent, var(--blue-600)) 26%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--account-soft, #eaf3ff) 70%, white);
  color: var(--account-accent, var(--blue-600));
  font-size: 13px;
  font-weight: 900;
}

.account-command-copy h1 {
  margin: 10px 0 8px;
  color: var(--blue-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.account-command-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.account-command-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.account-command-stats article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(45, 124, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(22, 79, 172, 0.08);
  backdrop-filter: blur(8px);
}

.account-command-stats span,
.account-command-stats b {
  display: block;
}

.account-command-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-command-stats b {
  margin-top: 12px;
  color: var(--account-accent, var(--blue-700));
  font-size: 34px;
  line-height: 1;
}

.account-command-actions {
  display: grid;
  gap: 10px;
  min-width: 132px;
}

.account-command-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 900;
}

.account-command-actions a:first-child {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 14px 26px rgba(29, 104, 242, 0.2);
}

.account-command-actions a:last-child {
  border: 1px solid rgba(45, 124, 255, 0.2);
  background: #fff;
  color: var(--blue-700);
}

.account-workspace {
  grid-template-columns: 264px minmax(0, 1fr);
}

.account-sidebar {
  border-color: rgba(45, 124, 255, 0.16);
  background:
    radial-gradient(circle at 88% 0%, rgba(234, 243, 255, 0.95), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.97));
}

.account-profile-mini {
  border-color: rgba(45, 124, 255, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 194, 71, 0.16), transparent 32%),
    linear-gradient(135deg, #fff, #eef7ff);
}

.account-profile-mini b {
  color: var(--blue-900);
}

.account-point-mini a {
  border-color: rgba(45, 124, 255, 0.14);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 20px rgba(22, 79, 172, 0.05);
}

.account-panel {
  border-color: rgba(45, 124, 255, 0.16);
  background:
    radial-gradient(circle at 96% 0%, rgba(234, 243, 255, 0.86), transparent 30%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.account-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 16px;
}

.account-balance-card,
.account-dashboard-tile,
.account-shortcut-card {
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 14px 28px rgba(22, 79, 172, 0.07);
}

.account-balance-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  min-height: 188px;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 194, 71, 0.18), transparent 30%),
    linear-gradient(135deg, #eff7ff, #fff);
}

.account-balance-card span,
.account-balance-card strong,
.account-balance-card p {
  display: block;
}

.account-balance-card span {
  color: var(--blue-600);
  font-weight: 900;
}

.account-balance-card strong {
  margin-top: 10px;
  color: var(--ps-blue);
  font-size: clamp(58px, 8vw, 86px);
  line-height: 0.92;
}

.account-balance-card p {
  max-width: 430px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.account-balance-card a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(213, 59, 0, 0.16);
}

.account-identity-card {
  align-items: center;
  border-color: rgba(45, 124, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 243, 255, 0.92), transparent 36%),
    linear-gradient(180deg, #fff, #f7fbff);
}

.account-identity-card em {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.account-dashboard-tile {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 18px;
}

.account-dashboard-tile::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--metric, var(--blue-600)) 14%, transparent);
}

.account-dashboard-tile span,
.account-dashboard-tile b,
.account-dashboard-tile em {
  display: block;
}

.account-dashboard-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-dashboard-tile b {
  margin-top: 12px;
  color: var(--metric, var(--blue-700));
  font-size: 34px;
  line-height: 1;
}

.account-dashboard-tile em {
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
}

.account-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.account-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
}

.account-shortcut-card b,
.account-shortcut-card span {
  display: block;
}

.account-shortcut-card b {
  color: var(--blue-900);
  font-size: 18px;
}

.account-shortcut-card span {
  margin-top: 7px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.account-shortcut-card a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--metric, var(--blue-600)) 12%, white);
  color: var(--metric, var(--blue-700));
  font-weight: 900;
}

.admin-view {
  max-width: 1220px;
  padding: 28px 0 64px;
}

.admin-hero-head {
  position: relative;
  overflow: hidden;
  align-items: center;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 194, 71, 0.18), transparent 30%),
    url("/assets/decorations/mountain_bg_right_panel.png") right bottom / 360px auto no-repeat,
    linear-gradient(135deg, #fff, #eef7ff);
  box-shadow: var(--shadow-card);
}

.admin-hero-head::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 14px;
  width: 88px;
  height: 56px;
  pointer-events: none;
  background: url("/assets/decorations/cloud_corner_ornament.png") center / contain no-repeat;
  opacity: 0.56;
}

.admin-hero-head > div:first-child {
  position: relative;
  z-index: 1;
}

.admin-hero-head img {
  width: 132px;
  height: auto;
  margin-bottom: 14px;
}

.admin-hero-head h1 {
  margin: 4px 0 10px;
  color: var(--blue-900);
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: 0;
}

.admin-hero-head span {
  max-width: 580px;
  color: var(--ink-soft);
}

.admin-actions {
  position: relative;
  z-index: 2;
  padding: 8px;
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(22, 79, 172, 0.08);
}

.admin-actions button {
  min-height: 42px;
  padding: 0 16px;
}

.admin-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: var(--shadow-card);
}

.admin-gate input {
  min-height: 48px;
  padding: 0 14px;
}

.admin-gate button {
  padding: 0 20px;
}

.admin-result {
  display: grid;
  gap: 18px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 0;
}

.admin-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 16%, var(--metric-glow, rgba(45, 124, 255, 0.16)), transparent 32%),
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: var(--shadow-card);
}

.admin-metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--metric, var(--blue-600)) 16%, transparent);
}

.admin-metric-card span,
.admin-metric-card strong,
.admin-metric-card em {
  display: block;
}

.admin-metric-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.admin-metric-card strong {
  margin-top: 14px;
  color: var(--metric, var(--blue-700));
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.admin-metric-card em {
  margin-top: 12px;
  color: var(--ink-soft);
  font-style: normal;
}

.tone-blue {
  --metric: var(--blue-700);
  --metric-glow: rgba(45, 124, 255, 0.16);
}

.tone-orange {
  --metric: var(--orange-600);
  --metric-glow: rgba(255, 168, 43, 0.2);
}

.tone-green {
  --metric: var(--green-600);
  --metric-glow: rgba(16, 163, 127, 0.16);
}

.tone-cyan {
  --metric: var(--cyan-500);
  --metric-glow: rgba(0, 168, 255, 0.16);
}

.admin-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
  align-items: start;
}

.admin-record-grid {
  display: grid;
  gap: 18px;
}

.admin-section-card {
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98));
  box-shadow: var(--shadow-card);
}

.admin-section-card .rules-card-head,
.admin-record-grid .rules-card .rules-card-head {
  align-items: center;
  padding: 20px 22px;
  border-bottom-color: rgba(45, 124, 255, 0.14);
  background:
    radial-gradient(circle at 96% 10%, rgba(234, 243, 255, 0.95), transparent 32%),
    linear-gradient(90deg, #fff, #f7fbff);
}

.admin-section-kicker {
  margin: 0 0 6px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
}

.admin-section-card .rules-card-head h2,
.admin-record-grid .rules-card-head h2 {
  font-size: 22px;
}

.point-admin,
.editor-grid {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(45, 124, 255, 0.12);
}

.point-admin {
  grid-template-columns: minmax(180px, 1.25fr) 120px minmax(180px, 1fr) auto;
  align-items: center;
  background: linear-gradient(90deg, #f7fbff, #fff);
}

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

.admin-table-stack {
  display: grid;
  gap: 18px;
  padding: 0 0 18px;
}

.admin-table-stack h3 {
  margin: 18px 22px 10px;
  color: var(--blue-900);
  font-size: 16px;
}

.admin-view .table-scroll {
  border-top: 1px solid rgba(45, 124, 255, 0.08);
}

.admin-view .data-table th {
  background: #f2f7ff;
  color: var(--blue-900);
}

.admin-view .data-table td {
  color: var(--ink-soft);
}

.admin-view .data-table tr:hover td {
  background: rgba(45, 124, 255, 0.06);
}

.admin-view textarea {
  min-height: 360px;
  padding: 16px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--blue-900);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.admin-view .status-line {
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 12px;
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-800);
  box-shadow: 0 10px 22px rgba(22, 79, 172, 0.07);
}

.admin-record-grid > .rules-card {
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-card);
}

.admin-audit-card .inline-button,
.admin-user-card .inline-button {
  min-width: 78px;
}

.rule-input {
  min-height: 42px;
  padding: 0 12px;
}

.inline-link {
  color: var(--blue-700);
  font-weight: 900;
}

.inline-button,
.secondary-inline {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-weight: 800;
}

.system-status.ok {
  background: #ecfbf6;
  color: var(--green-600);
}

.system-status.warn {
  background: #fff4e8;
  color: var(--orange-600);
}

.export-stage {
  position: fixed;
  inset: -200vh auto auto -200vw;
  width: 900px;
  background: #fff;
}

/* Refined public-page visual system: lighter PlayStation-like spacing and fewer decorative layers. */
body {
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 44%, #fbfdff 100%);
}

body::before {
  display: none;
}

body::after {
  height: 220px;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(27, 112, 255, 0.1), transparent 54%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 168, 255, 0.08), transparent 48%);
}

.app-topbar {
  height: 72px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.main-nav {
  gap: 52px;
}

.main-nav a {
  font-size: 16px;
}

.workbench-hero {
  grid-template-columns: minmax(0, 680px);
  justify-content: start;
  gap: 0;
  min-height: 0;
  padding: 72px 0 40px;
}

.workbench-hero::before {
  inset: 0 calc(50% - 50vw) auto;
  height: 100%;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(237, 246, 255, 0.62)),
    url("/assets/decorations/mountain_bg_right_panel.png") right bottom / 420px auto no-repeat;
  box-shadow: none;
}

.hero-content {
  padding: 0;
}

.hero-badge {
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.hero-content h1 {
  max-width: 520px;
  font-size: 68px;
  line-height: 1.06;
  font-weight: 850;
}

.hero-copy {
  max-width: 520px;
  margin: 20px 0 24px;
  color: #40536f;
  font-size: 19px;
  line-height: 1.75;
}

.hero-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  width: auto;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid rgba(45, 124, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.hero-mode-tabs button {
  min-height: 38px;
  min-width: 92px;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
}

.hero-mode-tabs button span {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.hero-mode-tabs button:hover,
.hero-mode-tabs button.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 104, 242, 0.18);
  transform: none;
}

.hero-estimate-form {
  max-width: 560px;
  min-height: 68px;
  padding: 6px;
  border-color: rgba(27, 112, 255, 0.24);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(29, 104, 242, 0.13);
}

.hero-estimate-form input {
  min-height: 56px;
  padding: 0 18px;
}

.hero-estimate-form button {
  min-width: 170px;
  min-height: 56px;
}

.hero-trust-row {
  max-width: 560px;
  margin-top: 14px;
}

.hero-trust-row span,
.hero-trust-row a {
  min-height: 32px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.home-report-preview {
  min-height: 0;
  align-self: center;
  padding: 28px;
  border-color: rgba(27, 112, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 64px rgba(27, 112, 255, 0.14);
}

.home-report-preview::before {
  inset: 10px;
  border-color: rgba(27, 112, 255, 0.08);
}

.home-report-preview .preview-head b {
  font-size: 19px;
}

.home-report-preview .preview-price-row {
  align-items: stretch;
  margin-top: 22px;
}

.home-report-preview .preview-price-row strong {
  font-size: 38px;
  letter-spacing: 0;
}

.home-report-preview .preview-price-row div {
  min-width: 124px;
  padding: 15px;
}

.home-report-preview .preview-verdict-row {
  gap: 12px;
  margin: 20px 0 16px;
  padding-bottom: 16px;
}

.home-report-preview .preview-verdict-row b {
  font-size: 18px;
}

.home-preview-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.home-preview-list label {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.home-preview-list label:last-child {
  border-bottom: 0;
}

.home-preview-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-preview-list b {
  color: var(--blue-900);
  font-size: 14px;
  line-height: 1.55;
}

.result-stack {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.site-disclaimer {
  padding-top: 16px;
}

.section-head {
  padding: 56px 0 18px;
}

.section-head h1 {
  font-size: 56px;
  font-weight: 850;
}

.section-head span {
  max-width: 620px;
  font-size: 17px;
}

.market-page-note {
  display: none;
}

.market-tools {
  margin: 4px 0 18px;
}

.market-tools label {
  grid-template-columns: 96px minmax(0, 1fr);
  max-width: 760px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 112, 255, 0.08);
}

.market-tools span {
  justify-content: center;
  padding-left: 8px;
}

.market-tools input {
  min-height: 50px;
}

.tab-row {
  margin: 14px 0 18px;
}

.tab-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: none;
}

.rules-card {
  border-radius: 10px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
}

.level-69 {
  background: #edf6ff;
  color: #1b70ff;
}

.level-89 {
  background: #f0f4ff;
  color: #4a6cff;
}

.level-109 {
  background: #eafaf5;
  color: #0b8c69;
}

.level-129 {
  background: #fff7e8;
  color: #c87900;
}

.level-159 {
  background: #fff0e8;
  color: #d53b00;
}

.level-175 {
  background: #f2edff;
  color: #7056df;
}

.level-other {
  background: #f3f6fb;
  color: #51647f;
}

.asset-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-weight: 900;
}

.asset-type-costume {
  background: #edf6ff;
  color: #1b70ff;
}

.asset-type-mount {
  background: #fff7e8;
  color: #c87900;
}

.asset-type-gold {
  background: linear-gradient(135deg, #fff4c2, #ffd166);
  color: #8a4b00;
  box-shadow: inset 0 0 0 1px rgba(255, 194, 71, 0.52);
}

.asset-type-combo {
  background: #f2edff;
  color: #7056df;
}

.asset-type-id {
  background: #eafaf5;
  color: #0b8c69;
}

.asset-type-asset {
  background: #f3f6fb;
  color: #51647f;
}

.sample-report {
  padding-top: 12px;
}

.report-preview-layout {
  gap: 28px;
}

.report-paper,
.report-side-panel {
  box-shadow: 0 18px 46px rgba(27, 112, 255, 0.11);
}

.report-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.report-module-grid article {
  position: relative;
  min-height: 150px;
  padding: 24px 22px 22px;
  overflow: hidden;
}

.report-module-grid article::before {
  content: "01";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-weight: 900;
}

.report-module-grid article:nth-child(2)::before {
  content: "02";
  background: linear-gradient(135deg, #00a8ff, #1b70ff);
}

.report-module-grid article:nth-child(3)::before {
  content: "03";
  background: linear-gradient(135deg, #ff9d2e, #d53b00);
}

.report-module-grid article:nth-child(4)::before {
  content: "04";
  background: linear-gradient(135deg, #10a37f, #1b70ff);
}

.report-module-grid article b {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.report-module-grid article span {
  display: block;
  line-height: 1.7;
}

.live-estimate-card {
  max-width: 960px;
  margin: 24px auto 34px;
  padding: 28px;
  border: 1px solid rgba(45, 124, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(27, 112, 255, 0.11);
  scroll-margin-top: 92px;
}

.live-card-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.live-card-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.live-card-head p {
  margin: 0 0 4px;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 900;
}

.live-card-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.live-estimate-card .price-grid {
  margin: 22px 0 16px;
}

.live-estimate-card .price-cell {
  padding: 22px;
  background: linear-gradient(135deg, #eff7ff, #fff);
}

.live-estimate-card .price-cell strong {
  color: var(--blue-600);
  font-size: 34px;
}

.live-estimate-card .chips span {
  border-color: rgba(27, 112, 255, 0.24);
  background: #eef6ff;
}

.result-attention {
  animation: resultAttention 1.4s ease;
}

@keyframes resultAttention {
  0% {
    border-color: rgba(213, 59, 0, 0.48);
    box-shadow:
      0 0 0 6px rgba(255, 130, 43, 0.18),
      0 22px 60px rgba(27, 112, 255, 0.16);
  }

  100% {
    border-color: rgba(45, 124, 255, 0.18);
    box-shadow: 0 18px 46px rgba(27, 112, 255, 0.11);
  }
}

/* Homepage should behave like the product itself: one full-screen estimate workbench. */
.workbench-view {
  min-height: calc(100vh - 72px);
}

.workbench-hero {
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - 156px);
  grid-template-columns: 1fr;
  justify-content: center;
  align-content: center;
  padding: 72px 0 60px;
}

.workbench-hero::before {
  inset: 0 calc(50% - 50vw);
  height: 100%;
}

.hero-content {
  width: 100%;
  max-width: 980px;
}

.hero-content h1 {
  max-width: 900px;
  font-size: 78px;
}

.hero-copy {
  max-width: 780px;
}

.hero-mode-tabs {
  width: min(100%, 720px);
  grid-template-columns: repeat(3, 1fr);
}

.hero-mode-tabs button {
  min-height: 46px;
  min-width: 0;
}

.hero-estimate-form {
  max-width: 920px;
  min-height: 78px;
}

.hero-estimate-form input {
  min-height: 66px;
  font-size: 17px;
}

.hero-estimate-form button {
  min-width: 220px;
  min-height: 66px;
}

.hero-trust-row {
  max-width: 920px;
}

@media (max-width: 1120px) {
  .app-topbar {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 26px;
  }

  .workbench-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .estimate-preview {
    max-width: 760px;
  }

  .preview-body-grid,
  .report-board,
  .report-preview-layout,
  .points-faq-shell,
  .points-pricing-shell,
  .sample-report-grid,
  .account-workspace {
    grid-template-columns: 1fr;
  }

  .points-summary-card {
    position: static;
  }

  .account-sidebar {
    position: static;
  }

  .report-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .points-package-grid,
  .points-faq-compact,
  .points-flow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-topbar {
    height: auto;
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 12px 18px;
    overflow: hidden;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
    gap: 22px;
    min-width: 0;
  }

  .main-nav a {
    height: 42px;
  }

  .top-actions {
    position: fixed;
    left: clamp(230px, 70vw, 278px);
    right: auto;
    top: 12px;
    z-index: 80;
    width: 102px;
    min-width: 0;
  }

  .top-actions .user-chip {
    width: 100%;
    padding: 0;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .home-clouds {
    inset: 110px 0 auto;
  }

  .workbench-hero,
  .estimate-picker,
  .home-section,
  .result-stack,
  .market-view,
  .content-page,
  .account-view,
  .admin-view,
  .site-disclaimer {
    width: min(100% - 28px, var(--max));
  }

  .workbench-hero {
    padding-top: 36px;
  }

  .workbench-hero::before {
    inset: 18px -14px auto;
    height: 720px;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-estimate-form,
  .selector-form,
  .unlock-bar,
  .paywall,
  .admin-gate,
  .market-tools label {
    grid-template-columns: 1fr;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-estimate-form button,
  .selector-form button {
    min-width: 0;
  }

  .estimate-preview {
    min-height: 0;
    padding: 24px;
  }

  .estimate-preview::after,
  .preview-frame-corner {
    display: none;
  }

  .preview-head {
    display: grid;
    gap: 6px;
  }

  .preview-price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-body-grid,
  .picker-content,
  .report-kpi-grid,
  .sample-detail-table,
  .workflow-grid,
  .feature-grid,
  .plan-grid,
  .points-faq-grid,
  .price-grid,
  .mini-grid,
  .bottom-proof,
  .account-field-grid,
  .account-setting-grid,
  .account-reference-grid,
  .recharge-packages,
  .admin-grid,
  .editor-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

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

  .picker-copy {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .estimate-tabs button {
    min-height: 64px;
    font-size: 16px;
  }

  .ornament-title span {
    display: none;
  }

  .bottom-proof span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bottom-proof span:last-child {
    border-bottom: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 42px;
  }

  .section-head h1 {
    font-size: 38px;
  }

  .report-module-grid {
    grid-template-columns: 1fr;
  }

  .points-package-grid,
  .points-faq-compact,
  .points-flow-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    background: linear-gradient(180deg, #f7fbff, #edf6ff);
  }

  .brand-mark strong {
    font-size: 20px;
  }

  .user-chip {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-badge {
    font-size: 13px;
    padding: 0 12px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-estimate-form,
  .selector-form {
    min-height: 0;
  }

  .hero-estimate-form input,
  .selector-form input {
    min-height: 52px;
  }

  .preview-price-row strong {
    font-size: 34px;
  }

  .estimate-tabs {
    grid-template-columns: 1fr;
  }

  .estimate-tabs button {
    justify-content: flex-start;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .workflow-grid article {
    grid-template-columns: 1fr;
  }

  .workflow-grid article span {
    grid-row: auto;
  }

  .feature-grid article {
    grid-template-columns: 1fr;
  }

  .result-card,
  .account-panel,
  .sample-main-card,
  .paywall-compare {
    padding: 18px;
  }

  .result-head,
  .detail-block-head,
  .account-panel-head {
    flex-direction: column;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  .workbench-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-report-preview {
    max-width: 620px;
    justify-self: center;
  }

  .hero-content h1 {
    font-size: 56px;
  }
}

@media (max-width: 820px) {
  .app-topbar {
    padding: 12px 16px;
  }

  .top-actions {
    position: static;
    width: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .top-actions .user-chip {
    width: auto;
    padding: 0 14px;
  }

  .workbench-hero {
    padding-top: 40px;
  }

  .workbench-hero::before {
    inset: 0 calc(50% - 50vw) auto;
    height: 100%;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .hero-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 520px;
  }

  .hero-mode-tabs button {
    justify-content: center;
    min-width: 0;
    border: 0;
  }

  .home-preview-list label,
  .market-tools label {
    grid-template-columns: 1fr;
  }

  .market-tools span {
    justify-content: flex-start;
  }

  .report-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-mode-tabs {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 999px;
  }

  .hero-mode-tabs button {
    justify-content: center;
    min-height: 40px;
    padding: 0 8px;
    border-bottom: 0;
    font-size: 13px;
  }

  .home-report-preview .preview-price-row strong {
    font-size: 32px;
  }

  .section-head h1 {
    font-size: 36px;
  }

  .report-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .workbench-hero {
    width: min(100% - 40px, var(--max));
    min-height: calc(100vh - 150px);
  }
}

@media (max-width: 820px) {
  .workbench-hero {
    min-height: auto;
    padding: 40px 0 34px;
  }

  .workbench-hero::before {
    inset: 0 calc(50% - 50vw);
    height: 100%;
  }

  .hero-estimate-form {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-estimate-form button {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .workbench-hero {
    width: min(100% - 28px, var(--max));
  }

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

  .hero-mode-tabs.estimate-tabs button {
    min-height: 40px;
    justify-content: center;
    padding: 0 8px;
    border: 0;
    font-size: 13px;
  }

  .hero-mode-tabs.estimate-tabs button span {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Final visual pass: light PlayStation-inspired channel surfaces. */
:root {
  --ps-canvas: #f5f9ff;
  --ps-canvas-2: #eaf4ff;
  --ps-surface: rgba(255, 255, 255, 0.92);
  --ps-surface-strong: #ffffff;
  --ps-border: rgba(45, 124, 255, 0.18);
  --ps-border-strong: rgba(45, 124, 255, 0.32);
  --ps-cyan: #00a8ff;
  --ps-blue: #1b70ff;
  --ps-blue-dark: #102451;
  --ps-shadow: 0 28px 72px rgba(27, 112, 255, 0.12);
  --ps-shadow-soft: 0 16px 38px rgba(27, 112, 255, 0.08);
  --workbench-width: 1080px;
}

body {
  background:
    linear-gradient(180deg, var(--ps-canvas) 0%, var(--ps-canvas-2) 58%, #f9fcff 100%);
}

body::after {
  height: 260px;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(0, 168, 255, 0.12), transparent 58%),
    radial-gradient(ellipse at 78% 100%, rgba(27, 112, 255, 0.1), transparent 54%);
}

.app-topbar {
  height: 76px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--ps-border);
  box-shadow: none;
}

.brand-mark {
  font-size: 24px;
  font-weight: 900;
}

.main-nav {
  gap: 48px;
  font-weight: 850;
}

.main-nav a {
  color: #142a5c;
}

.main-nav a::after {
  height: 3px;
  background: var(--ps-blue);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ps-blue);
  transform: none;
}

.user-chip,
.button-link,
.hero-estimate-form button,
.auth-card button[type="submit"],
.admin-gate button,
.admin-actions button,
.pay-actions button,
.account-small-button,
.inline-button,
.account-form button,
.feedback-form button {
  background: var(--ps-blue);
  box-shadow: 0 16px 34px rgba(27, 112, 255, 0.22);
}

.user-chip:hover,
.button-link:hover,
.hero-estimate-form button:hover,
.auth-card button[type="submit"]:hover,
.admin-gate button:hover,
.admin-actions button:hover,
.pay-actions button:hover,
.account-small-button:hover,
.inline-button:hover,
.account-form button:hover,
.feedback-form button:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--ps-cyan), var(--ps-blue));
  box-shadow: 0 20px 42px rgba(0, 168, 255, 0.24);
}

.user-chip {
  color: var(--ps-blue);
  background: #fff;
  box-shadow: none;
}

.workbench-view {
  min-height: calc(100vh - 76px);
}

.workbench-hero {
  width: min(var(--workbench-width), calc(100% - 64px));
  min-height: calc(100vh - 142px);
  padding: 56px 0;
}

.workbench-hero::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(235, 246, 255, 0.72)),
    radial-gradient(circle at 72% 18%, rgba(0, 168, 255, 0.14), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(27, 112, 255, 0.12), transparent 34%);
}

.hero-content {
  width: 100%;
  max-width: none;
  padding: 46px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(18px);
}

.result-stack {
  width: min(var(--workbench-width), calc(100% - 64px));
}

.live-estimate-card {
  width: 100%;
  max-width: none;
}

.hero-badge {
  color: var(--ps-blue);
  border-color: var(--ps-border-strong);
  background: #fff;
  box-shadow: none;
}

.hero-content h1 {
  max-width: 880px;
  color: var(--ps-blue-dark);
  font-size: 76px;
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy {
  max-width: 780px;
  color: #435b7d;
  font-size: 20px;
}

.hero-mode-tabs {
  margin-top: 26px;
  padding: 7px;
  border-radius: 8px;
  border-color: var(--ps-border);
  background: rgba(245, 249, 255, 0.9);
}

.hero-mode-tabs button {
  border-radius: 6px;
  color: #18315f;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.hero-mode-tabs button b {
  font-weight: 900;
}

.hero-mode-tabs button .mode-icon,
.hero-mode-tabs button img.mode-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(27, 112, 255, 0.14));
}

.hero-mode-tabs button:hover,
.hero-mode-tabs button.active {
  transform: scale(1.02);
  background: linear-gradient(135deg, var(--ps-cyan), var(--ps-blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 168, 255, 0.2);
}

.hero-mode-tabs button:hover .mode-icon,
.hero-mode-tabs button.active .mode-icon,
.hero-mode-tabs button:hover img.mode-icon,
.hero-mode-tabs button.active img.mode-icon {
  filter: drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18));
}

.hero-estimate-form {
  margin-top: 16px;
  border-color: var(--ps-border-strong);
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 112, 255, 0.16);
}

.hero-estimate-form input {
  color: var(--ps-blue-dark);
}

.hero-trust-row span,
.hero-trust-row a {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--ps-border);
}

.section-head h1,
.rules-card-head h2,
.result-head h2,
.report-paper-head h2,
.account-panel-head h2 {
  color: var(--ps-blue-dark);
  font-weight: 900;
}

.rules-card,
.report-paper,
.report-side-panel,
.points-summary-card,
.points-faq-list article,
.paywall-compare,
.account-sidebar,
.account-panel,
.account-login-required,
.account-loading,
.result-card,
.live-estimate-card {
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface);
  box-shadow: var(--ps-shadow-soft);
}

.rules-card-head {
  background: linear-gradient(90deg, #fff, #f4f9ff);
}

.price-cell,
.mini-cell,
.report-kpi-grid article,
.sample-detail-table div,
.account-field-grid article,
.account-setting-grid article,
.account-reference-grid article,
.recharge-package,
.asset-item,
.factor-item {
  border-color: var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface-strong);
}

.price-cell strong,
.report-price-band strong,
.live-estimate-card .price-cell strong {
  color: var(--ps-blue);
}

.tab-button {
  border: 1px solid var(--ps-border);
  background: #fff;
  box-shadow: none;
}

.tab-button:hover,
.tab-button.active {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, var(--ps-cyan), var(--ps-blue));
}

.market-tools label {
  border-color: var(--ps-border);
  box-shadow: var(--ps-shadow-soft);
}

.data-table th {
  background: #f2f7ff;
}

.data-table tr:hover td {
  background: rgba(0, 168, 255, 0.06);
}

.live-estimate-card,
.report-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
}

.live-card-head,
.report-paper-head {
  border-bottom-color: var(--ps-border);
}

.report-module-grid article {
  border-color: var(--ps-border);
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.report-module-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--ps-border-strong);
  box-shadow: 0 18px 38px rgba(0, 168, 255, 0.14);
}

.market-view .section-head {
  padding: 46px 0 18px;
}

.market-view .section-head h1 {
  font-size: 40px;
  line-height: 1.16;
}

.market-view .section-head span {
  max-width: 560px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.65;
}

.market-view .eyebrow {
  display: none;
}

@media (max-width: 820px) {
  .app-topbar {
    padding: 12px 16px;
  }

  .workbench-hero {
    width: min(100% - 28px, var(--workbench-width));
    padding: 34px 0;
  }

  .result-stack {
    width: min(100% - 28px, var(--workbench-width));
  }

  .hero-content {
    padding: 26px 18px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .market-view .section-head h1 {
    font-size: 32px;
  }

  .market-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .market-search-field {
    order: 2;
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-mode-tabs.estimate-tabs {
    border-radius: 8px;
  }
}

/* Keep the homepage banner and generated estimate cards on the same content rail. */
.workbench-hero,
.result-stack {
  width: min(var(--workbench-width), calc(100% - 64px));
}

.hero-content,
.live-estimate-card {
  width: 100%;
  max-width: none;
}

@media (max-width: 820px) {
  .workbench-hero,
  .result-stack {
    width: min(100% - 28px, var(--workbench-width));
  }
}

@media (max-width: 520px) {
  .hero-mode-tabs.estimate-tabs button .mode-icon,
  .hero-mode-tabs.estimate-tabs button img.mode-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

/* Sample report page: polished report preview, not a generic content block. */
#sampleReportView {
  background:
    radial-gradient(circle at 12% 4%, rgba(97, 177, 255, 0.22), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 194, 71, 0.14), transparent 24%);
}

#sampleReportView .section-head {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 18px;
}

#sampleReportView .section-head div {
  max-width: 760px;
}

#sampleReportView .section-head h1 {
  font-size: clamp(36px, 3.8vw, 48px);
  letter-spacing: 0;
}

#sampleReportView .section-head span {
  max-width: 720px;
  color: #425b7d;
  font-size: 16px;
}

.sample-report {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto 64px;
  padding: 0;
}

.report-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.report-showcase .report-paper,
.report-showcase .report-side-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 112, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 24px 70px rgba(22, 79, 172, 0.14);
}

.report-showcase .report-paper {
  padding: 24px;
}

.report-showcase .report-paper::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 190px;
  height: 142px;
  background: url("/assets/decorations/cloud_corner_ornament.png") center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.report-showcase .report-paper-head {
  position: relative;
  z-index: 1;
  grid-template-columns: 52px 1fr auto;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(27, 112, 255, 0.16);
}

.report-showcase .report-paper-head img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 12px 24px rgba(27, 112, 255, 0.16));
}

.report-showcase .report-paper-head h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.22;
}

.report-showcase .report-paper-head p {
  margin: 6px 0 0;
  color: #6380a6;
  font-size: 13px;
}

.report-showcase .report-paper-head b {
  border-radius: 8px;
  background: #fff0e8;
  color: var(--orange-600);
}

.report-showcase .report-price-band {
  position: relative;
  z-index: 1;
  margin: 20px 0;
  padding: 22px;
  border: 1px solid rgba(27, 112, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(237, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.report-showcase .report-price-band strong {
  margin: 8px 0 10px;
  font-size: clamp(34px, 3.8vw, 50px);
  letter-spacing: 0;
}

.report-showcase .report-price-band span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0e8;
}

.report-analysis-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.report-donut {
  width: 132px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#1b70ff 0 36%, #6aa6ff 36% 64%, #ff8a2a 64% 76%, #cfe1ff 76% 100%);
  box-shadow:
    inset 0 0 0 18px #fff,
    0 18px 34px rgba(27, 112, 255, 0.16);
}

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

.report-factor-list div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(27, 112, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.report-factor-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.report-factor-list span {
  color: #425b7d;
}

.report-factor-list b {
  color: var(--ps-blue);
  font-size: 16px;
}

.report-showcase .sample-detail-table {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.report-showcase .sample-detail-table div {
  min-height: 86px;
  border: 1px solid rgba(27, 112, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.report-showcase .report-side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.report-side-panel::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -24px;
  width: 150px;
  height: 120px;
  background: url("/assets/decorations/coin_decoration.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.report-showcase .decision-card {
  position: relative;
  border: 1px solid rgba(213, 59, 0, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ef, #fff);
}

.report-showcase .decision-card strong {
  margin: 8px 0 10px;
  font-size: 24px;
}

.report-showcase .decision-card p {
  font-size: 15px;
}

.report-showcase .paywall-compare {
  position: relative;
  flex: 1;
  border: 1px solid rgba(27, 112, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.report-showcase .paywall-compare h3 {
  font-size: 22px;
}

.report-showcase .paywall-compare div {
  padding: 13px 0;
}

.report-showcase .paywall-compare b {
  color: var(--ps-blue-dark);
}

.report-brief-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-brief-list div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(27, 112, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.report-brief-list span {
  display: block;
  color: #6380a6;
  font-size: 13px;
  font-weight: 800;
}

.report-brief-list b {
  display: block;
  margin-top: 8px;
  color: var(--ps-blue-dark);
  line-height: 1.55;
}

.report-brief-list p {
  margin: 8px 0 0;
  color: #51647f;
  font-size: 14px;
  line-height: 1.6;
}

.report-showcase .paywall-compare article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 112, 255, 0.14);
}

.report-showcase .paywall-compare article:last-child {
  border-bottom: 0;
}

.report-showcase .paywall-compare article img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(27, 112, 255, 0.14));
}

.report-showcase .paywall-compare article div {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.report-showcase .paywall-compare article b {
  display: block;
  margin-bottom: 4px;
  color: var(--ps-blue-dark);
  font-size: 16px;
}

.report-showcase .paywall-compare article span {
  display: block;
  color: #51647f;
  line-height: 1.55;
}

.report-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.report-flow-strip article {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(27, 112, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(22, 79, 172, 0.1);
}

.report-flow-strip img {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.report-flow-strip b {
  align-self: end;
  color: var(--ps-blue-dark);
  font-size: 21px;
}

.report-flow-strip span {
  color: #51647f;
  line-height: 1.65;
}

#sampleReportView .report-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

#sampleReportView .report-module-grid article {
  min-height: 188px;
  padding: 24px 22px;
  border: 1px solid rgba(27, 112, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.94));
  box-shadow: 0 16px 38px rgba(22, 79, 172, 0.1);
}

#sampleReportView .report-module-grid article::before {
  content: none;
}

#sampleReportView .report-module-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(27, 112, 255, 0.16));
}

#sampleReportView .report-module-grid article b {
  color: var(--ps-blue-dark);
}

#sampleReportView .report-module-grid article span {
  color: #51647f;
}

@media (max-width: 980px) {
  .report-showcase,
  .report-flow-strip,
  #sampleReportView .report-module-grid {
    grid-template-columns: 1fr;
  }

  .report-analysis-row {
    grid-template-columns: 1fr;
  }

  .report-donut {
    width: 140px;
  }
}

@media (max-width: 640px) {
  #sampleReportView .section-head,
  .sample-report {
    width: min(100% - 28px, 1080px);
  }

  #sampleReportView .section-head {
    padding-top: 32px;
  }

  #sampleReportView .section-head h1 {
    font-size: 36px;
  }

  .report-showcase .report-paper,
  .report-showcase .report-side-panel {
    padding: 18px;
  }

  .report-showcase .report-paper-head {
    grid-template-columns: 46px 1fr;
  }

  .report-showcase .report-paper-head b {
    justify-self: start;
    grid-column: 2;
  }

  .report-showcase .report-paper-head img {
    width: 44px;
    height: 44px;
  }

  .report-showcase .report-paper-head h2 {
    font-size: 20px;
  }

  .report-showcase .sample-detail-table {
    grid-template-columns: 1fr;
  }

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

  .report-flow-strip article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .report-flow-strip img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1120px) {
  .admin-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-ops-grid {
    grid-template-columns: 1fr;
  }

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

  .point-admin button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .admin-view {
    width: min(100% - 28px, 1220px);
    padding-top: 18px;
  }

  .admin-hero-head {
    align-items: flex-start;
    padding: 24px;
  }

  .admin-hero-head img {
    width: 112px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-overview-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-gate,
  .point-admin,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-metric-card {
    min-height: 116px;
  }

  .admin-metric-card strong {
    font-size: 34px;
  }
}

@media (max-width: 1120px) {
  .account-command-center {
    grid-template-columns: 1fr;
  }

  .account-command-stats,
  .account-command-actions {
    width: 100%;
  }

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

  .account-overview-layout,
  .account-dashboard-grid,
  .account-shortcut-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .account-command-center {
    min-height: 0;
    padding: 22px;
  }

  .account-command-copy img {
    width: 112px;
  }

  .account-command-stats {
    grid-template-columns: 1fr;
  }

  .account-command-stats article {
    min-height: 92px;
  }

  .account-command-actions,
  .account-point-mini,
  .account-overview-layout,
  .account-dashboard-grid,
  .account-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .account-balance-card,
  .account-shortcut-card {
    display: grid;
  }

  .account-balance-card a,
  .account-shortcut-card a {
    width: 100%;
  }
}

.account-view,
.admin-view {
  max-width: 1240px;
  padding: 30px 0 72px;
}

.account-result,
.admin-result {
  display: grid;
  gap: 18px;
}

.account-dashboard-shell {
  display: block;
}

.account-command-center {
  display: none;
}

.account-workspace {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-sidebar,
.account-panel,
.account-page-header,
.account-stat-card,
.admin-gate,
.admin-metric-card,
.admin-section-card,
.admin-record-grid > .rules-card {
  border: 1px solid #d6e6ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 107, 255, 0.06);
}

.account-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 16px;
  overflow: visible;
}

.account-sidebar::before,
.account-dashboard-tile::after,
.admin-metric-card::after {
  display: none;
}

.account-profile-mini {
  gap: 12px;
  padding: 4px 0 14px;
  border: 0;
  border-bottom: 1px solid #e3edfb;
  border-radius: 0;
  background: transparent;
}

.account-profile-mini img {
  width: 44px;
  height: 44px;
}

.account-profile-mini b {
  color: #0b1f4d;
  font-size: 16px;
}

.account-profile-mini span {
  max-width: 168px;
  overflow: hidden;
  color: #667899;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-point-mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.account-point-mini a {
  padding: 12px;
  border: 1px solid #d6e6ff;
  border-radius: 12px;
  background: #f8fbff;
}

.account-point-mini span {
  color: #667899;
  font-size: 12px;
}

.account-point-mini b {
  margin-top: 4px;
  color: #1f6bff;
  font-size: 24px;
  line-height: 1;
}

.account-point-mini em {
  display: none;
}

.account-primary-cta {
  min-height: 44px;
  margin: 0;
  border-radius: 10px;
  background: #1f6bff;
  box-shadow: none;
}

.account-primary-cta:hover {
  transform: none;
  background: #d53b00;
}

.account-menu {
  gap: 18px;
  padding: 0;
}

.account-menu-group {
  gap: 6px;
}

.account-menu-group > span {
  padding: 0 4px;
  color: #667899;
  font-size: 12px;
  font-weight: 800;
}

.account-menu a {
  min-height: 42px;
  gap: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #243b63;
  background: transparent;
  box-shadow: none;
}

.account-menu a:hover,
.account-menu a.active {
  transform: none;
  border-color: #cfe1ff;
  background: #eef6ff;
  box-shadow: inset 3px 0 0 #1f6bff;
}

.account-menu-icon {
  display: none;
}

.account-menu a b {
  font-size: 14px;
}

.account-logout-action {
  min-height: 40px;
  border: 1px solid #d6e6ff;
  border-radius: 10px;
  color: #667899;
  background: #fff;
  box-shadow: none;
}

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

.account-page-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.account-page-header h1 {
  margin: 0;
  color: #0b1f4d;
  font-size: 30px;
  line-height: 1.15;
}

.account-page-header p {
  margin: 8px 0 0;
  color: #667899;
  font-size: 14px;
  line-height: 1.55;
}

.account-page-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-panel {
  padding: 22px;
  background: #fff;
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.account-panel-head h2 {
  margin: 0;
  color: #0b1f4d;
  font-size: 20px;
}

.account-small-button,
.inline-button,
.empty-state-card a,
.account-balance-actions a,
.recharge-package small,
.admin-actions button,
.admin-gate button,
.account-form button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #1f6bff;
  border-radius: 9px;
  background: #1f6bff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.account-small-button.secondary,
.inline-button.secondary-inline,
.admin-actions button.secondary {
  background: #fff;
  color: #1f6bff;
}

.account-small-button:hover,
.inline-button:hover,
.empty-state-card a:hover,
.account-balance-actions a:hover,
.recharge-package:hover small,
.admin-actions button:hover,
.admin-gate button:hover,
.account-form button:hover {
  transform: none;
  border-color: #d53b00;
  background: #d53b00;
  color: #fff;
}

.account-overview-panel {
  padding: 0;
  overflow: hidden;
}

.account-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  background: linear-gradient(135deg, #fff, #f3f8ff);
}

.account-balance-row span {
  display: block;
  color: #667899;
  font-weight: 800;
}

.account-balance-row strong {
  display: block;
  margin-top: 8px;
  color: #1f6bff;
  font-size: 52px;
  line-height: 1;
}

.account-balance-row p {
  margin: 10px 0 0;
  color: #243b63;
}

.account-balance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.account-stat-card {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.account-stat-card span {
  color: #667899;
  font-size: 13px;
  font-weight: 800;
}

.account-stat-card strong {
  color: #1f6bff;
  font-size: 32px;
  line-height: 1;
}

.account-stat-card em {
  color: #667899;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}

.account-action-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 156px;
  padding: 18px;
  border: 1px solid #d6e6ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #243b63;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.account-action-card:hover {
  transform: translateY(-1px);
  border-color: #1f6bff;
  background: #fff;
}

.account-action-card b,
.account-action-card span,
.account-action-card em {
  display: block;
}

.account-action-card b {
  color: #0b1f4d;
  font-size: 17px;
}

.account-action-card span {
  margin-top: 6px;
  color: #667899;
  line-height: 1.55;
}

.account-action-card em {
  width: fit-content;
  color: #1f6bff;
  font-style: normal;
  font-weight: 900;
}

.account-quick-panel {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.account-quick-panel .account-panel-head {
  flex: 0 0 auto;
}

.account-quick-panel .account-action-grid {
  flex: 1;
}

.account-form {
  max-width: 720px;
}

.account-form input {
  min-height: 46px;
  border: 1px solid #d6e6ff;
  border-radius: 10px;
  background: #fff;
}

.recharge-simple-panel {
  padding: 24px;
}

.recharge-packages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.recharge-package {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 288px;
  align-content: stretch;
  justify-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(27, 112, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
  box-shadow: 0 18px 46px rgba(22, 79, 172, 0.1);
  text-align: left;
}

.recharge-package.recommended {
  border-color: rgba(27, 112, 255, 0.66);
  background:
    radial-gradient(circle at 84% 18%, rgba(45, 124, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #fff, #f3f8ff);
  box-shadow: 0 24px 60px rgba(27, 112, 255, 0.18);
}

.recharge-package.recommended::before {
  content: "";
  position: absolute;
  right: -34px;
  top: 72px;
  width: 124px;
  height: 124px;
  background: url("/assets/decorations/coin_decoration.png") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.recharge-package.active {
  border-color: #d53b00;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 138, 43, 0.12), transparent 34%),
    linear-gradient(180deg, #fff, #fff8f2);
}

.recharge-package:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 112, 255, 0.62);
  background:
    radial-gradient(circle at 84% 18%, rgba(45, 124, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 24px 56px rgba(31, 107, 255, 0.14);
}

.recharge-package-icon {
  position: absolute;
  right: 16px;
  bottom: 70px;
  z-index: 0;
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: 0.16;
  filter: saturate(0.95);
  pointer-events: none;
}

.recharge-package > *:not(.recharge-package-icon) {
  position: relative;
  z-index: 1;
}

.recharge-package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 42px;
  gap: 8px;
}

.recharge-package em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ps-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 112, 255, 0.22);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.recharge-package em.placeholder {
  display: none;
}

.recharge-package b {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ps-blue-dark);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.recharge-package strong,
.recharge-package:hover strong {
  margin-top: 12px;
  color: var(--ps-blue);
  font-size: clamp(42px, 4vw, 52px);
  line-height: 1;
}

.recharge-package-meta {
  display: grid;
  gap: 6px;
  margin: 16px 0 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(27, 112, 255, 0.12);
  border-bottom: 1px solid rgba(27, 112, 255, 0.12);
}

.recharge-package-meta b,
.recharge-package:hover .recharge-package-meta b {
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 900;
}

.recharge-package-meta i,
.recharge-package:hover .recharge-package-meta i {
  color: #d53b00;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.recharge-package p {
  margin: 12px 0 18px;
  color: #51647f;
  line-height: 1.55;
}

.recharge-package small {
  align-self: end;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--ps-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(27, 112, 255, 0.18);
}

.recharge-package.recommended small {
  background: linear-gradient(135deg, var(--ps-blue), #165fe8);
  box-shadow: 0 18px 38px rgba(27, 112, 255, 0.26);
}

.recharge-flow-panel {
  padding: 14px 18px;
}

.recharge-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  color: #243b63;
  font-size: 14px;
}

.recharge-stepper-title {
  flex: 0 0 auto;
  color: #667899;
  font-weight: 800;
}

.recharge-stepper b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(27, 112, 255, 0.14);
  border-radius: 999px;
  background: #f8fbff;
  color: #0b1f4d;
  font-weight: 900;
  white-space: nowrap;
}

.recharge-stepper b em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--ps-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.recharge-stepper i {
  width: auto;
  height: auto;
  background: transparent;
  color: #8ab6ff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.empty-state-card {
  padding: 28px;
  border: 1px dashed #cfe1ff;
  border-radius: 12px;
  background: #f8fbff;
}

.empty-state-card b {
  color: #0b1f4d;
  font-size: 18px;
}

.empty-state-card span {
  color: #667899;
}

.table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1f6bff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.paid {
  background: #e9fbf5;
  color: #10a97a;
}

.status-pill.pending,
.status-pill.submitted {
  background: #fff4e8;
  color: #d53b00;
}

.status-pill.rejected,
.status-pill.cancelled,
.status-pill.failed {
  background: #fff0f0;
  color: #e5484d;
}

.report-delta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.report-delta.positive {
  background: #e9fbf5;
  color: #10a97a;
}

.report-delta.negative {
  background: #eef6ff;
  color: #243b63;
}

.account-record-list {
  display: grid;
  gap: 12px;
}

.account-record-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d6e6ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 26px rgba(31, 107, 255, 0.05);
}

.account-record-card.important {
  border-color: rgba(31, 107, 255, 0.24);
  background:
    radial-gradient(circle at 96% 14%, rgba(31, 107, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.account-record-card.compact {
  gap: 10px;
}

.account-record-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.account-record-card header span,
.account-record-card header p,
.account-record-fields em {
  color: #667899;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.account-record-card h3 {
  margin: 4px 0;
  color: #0b1f4d;
  font-size: 18px;
  line-height: 1.25;
}

.account-record-card header p {
  margin: 0;
}

.account-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-record-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.account-record-fields span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3edfb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.account-record-fields em,
.account-record-fields b {
  display: block;
}

.account-record-fields b {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #0b1f4d;
  font-size: 14px;
  line-height: 1.35;
}

.data-table th {
  background: #f3f8ff;
  color: #243b63;
}

.data-table td {
  vertical-align: middle;
}

.admin-view .table-scroll {
  position: relative;
}

.admin-view .data-table th:last-child,
.admin-view .data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 120px;
  background: #fff;
  box-shadow: -12px 0 18px rgba(31, 107, 255, 0.08);
}

.admin-view .data-table th:last-child {
  z-index: 2;
  background: #f3f8ff;
}

.paged-table {
  display: grid;
  gap: 12px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  color: #667899;
  font-size: 13px;
}

.table-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination-actions span {
  min-width: 54px;
  color: #243b63;
  font-weight: 900;
  text-align: center;
}

.table-pagination-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d6e6ff;
  border-radius: 8px;
  background: #fff;
  color: #1f6bff;
  font-weight: 900;
  box-shadow: none;
}

.table-pagination-actions button:hover:not(:disabled) {
  border-color: #1f6bff;
  background: #eef6ff;
}

.table-pagination-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-view {
  display: grid;
  gap: 18px;
}

.admin-dashboard-shell {
  display: block;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
}

.admin-sidebar .account-profile-mini img {
  width: 42px;
  height: 42px;
}

.admin-sidebar .account-menu a em {
  display: block;
  margin-top: 2px;
  color: #667899;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

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

.admin-hero-head {
  min-height: auto;
  padding: 20px 22px;
  border: 1px solid #d6e6ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 107, 255, 0.06);
}

.admin-hero-head::after,
.admin-hero-head img {
  display: none;
}

.admin-hero-head h1 {
  margin: 0;
  color: #0b1f4d;
  font-size: 30px;
}

.admin-hero-head span {
  color: #667899;
  font-size: 14px;
}

.admin-actions {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-overview-grid {
  gap: 14px;
}

.admin-metric-card {
  min-height: 122px;
  padding: 18px;
}

.admin-metric-card span {
  color: #667899;
}

.admin-metric-card strong {
  color: #1f6bff;
  font-size: 34px;
}

.admin-metric-card em {
  color: #667899;
}

.admin-section-card,
.admin-record-grid > .rules-card {
  padding: 22px;
  background: #fff;
}

.admin-section-card .rules-card-head,
.admin-record-grid .rules-card .rules-card-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3edfb;
}

.admin-section-kicker {
  color: #1f6bff;
  letter-spacing: 0;
}

.admin-table-stack {
  gap: 16px;
}

.admin-main .rules-card {
  margin: 0;
}

.admin-main .point-admin {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e3edfb;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-main .point-admin input {
  min-height: 38px;
  padding: 0 10px;
}

.admin-main .point-admin button {
  min-height: 38px;
  white-space: nowrap;
}

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

.admin-view textarea,
.admin-gate input,
.point-admin input {
  border: 1px solid #d6e6ff;
  border-radius: 10px;
}

@media (max-width: 1180px) {
  .account-workspace,
  .admin-workspace {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .account-overview-grid,
  .account-record-fields,
  .recharge-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-main .point-admin {
    grid-template-columns: 1fr 100px;
  }

  .admin-main .point-admin input:first-child,
  .admin-main .point-admin input:nth-child(3),
  .admin-main .point-admin button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .account-workspace,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .account-sidebar,
  .admin-sidebar {
    position: static;
  }

  .account-menu {
    grid-template-columns: 1fr;
  }

  .account-page-header,
  .account-record-card header,
  .account-balance-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-page-actions,
  .account-record-actions,
  .account-balance-actions {
    justify-content: flex-start;
  }

  .account-page-actions a,
  .account-balance-actions a {
    width: 100%;
  }

  .recharge-stepper {
    display: grid;
  }

  .recharge-stepper i {
    display: none;
  }

  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .account-overview-grid,
  .account-record-fields,
  .recharge-packages,
  .account-point-mini {
    grid-template-columns: 1fr;
  }

  .account-page-header h1 {
    font-size: 26px;
  }

  .account-balance-row strong {
    font-size: 44px;
  }
}

/* Mobile UX pass: final overrides for real phone viewports. */
@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 54%, #f8fbff 100%);
  }

  body::before {
    background-size: 34px 34px;
    opacity: 0.5;
  }

  .app-topbar {
    height: auto;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px 8px;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand-mark {
    min-width: 0;
    max-width: calc(100vw - 136px);
    gap: 8px;
    font-size: 20px;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .brand-mark span,
  .brand-mark strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    position: absolute !important;
    top: 10px;
    right: 12px;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    width: 96px !important;
    min-width: 0 !important;
    max-width: 96px;
    overflow: visible;
  }

  .user-chip {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 118px;
    min-height: 34px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid var(--ps-border-strong);
    background: #fff;
    color: var(--ps-blue);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 4px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-width: 0;
    height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(45, 124, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #18315f;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    border-color: rgba(27, 112, 255, 0.48);
    background: #eaf3ff;
    color: var(--ps-blue);
  }

  .workbench-view {
    min-height: auto;
  }

  .workbench-hero,
  .result-stack,
  .market-view,
  .content-page,
  .account-view,
  .admin-view,
  .site-disclaimer {
    width: min(calc(100vw - 24px), var(--workbench-width)) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .workbench-hero {
    min-height: auto;
    padding: 18px 0 18px;
  }

  .workbench-hero::before {
    display: none;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100%;
    overflow: hidden;
    padding: 22px 16px;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(27, 112, 255, 0.1);
  }

  .hero-badge {
    max-width: 100%;
    min-height: 30px;
    line-height: 1.35;
    white-space: normal;
  }

  .hero-content h1 {
    margin-top: 18px;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-mode-tabs,
  .hero-mode-tabs.estimate-tabs {
    display: grid !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
  }

  .hero-mode-tabs button,
  .hero-mode-tabs.estimate-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    justify-content: center;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    overflow: hidden;
  }

  .hero-mode-tabs button b,
  .hero-mode-tabs.estimate-tabs button b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .hero-mode-tabs button .mode-icon,
  .hero-mode-tabs button img.mode-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .hero-estimate-form {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    overflow: hidden;
  }

  .hero-estimate-form input {
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-estimate-form button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 10px;
    padding-inline: 12px;
    white-space: normal;
  }

  .status-line {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.55;
  }

  .result-stack {
    margin-top: 0;
  }

  .live-estimate-card,
  .result-card {
    margin: 14px auto 24px;
    padding: 16px;
    border-radius: 12px;
    scroll-margin-top: 136px;
  }

  .live-card-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .live-card-head img {
    width: 40px;
    height: 40px;
  }

  .live-card-head h2 {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .live-card-head > :last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .price-grid,
  .mini-grid,
  .report-board,
  .role-report-layout,
  .role-report-head,
  .report-two-cols,
  .report-info-grid,
  .report-kpi-grid,
  .sample-detail-table {
    grid-template-columns: 1fr;
  }

  .price-cell,
  .live-estimate-card .price-cell {
    min-height: 0;
    padding: 16px;
  }

  .live-estimate-card .price-cell strong,
  .report-price-hero strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .chips {
    gap: 6px;
  }

  .chips span {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .unlock-bar,
  .paywall {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .unlock-bar a,
  .unlock-bar button,
  .paywall a,
  .paywall button,
  .inline-button,
  .account-small-button {
    width: 100%;
    justify-content: center;
  }

  .role-report-head {
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .role-report-head b {
    white-space: normal;
  }

  .report-detail-card,
  .report-analysis-card,
  .report-price-hero,
  .report-section {
    padding: 16px;
    border-radius: 12px;
  }

  .report-data-table {
    max-width: 100%;
    overflow-x: auto;
  }

  .report-audit-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-preview-backdrop,
  .payment-modal-backdrop {
    place-items: end center;
    padding: 12px;
  }

  .download-preview-card,
  .payment-modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .download-preview-head,
  .download-preview-actions,
  .payment-modal-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-preview-actions {
    justify-content: stretch;
  }

  .download-preview-actions a,
  .download-preview-actions button {
    width: 100%;
  }

  .payment-modal-head {
    padding-right: 44px;
  }

  .payment-modal-head strong {
    font-size: 34px;
  }

  .payment-modal-qr-grid {
    grid-template-columns: 1fr;
  }

  .payment-modal-qr img {
    width: min(240px, 78vw);
  }

  .account-view,
  .admin-view {
    padding-top: 18px;
  }

  .account-workspace,
  .admin-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-sidebar,
  .admin-sidebar {
    position: static;
    padding: 14px;
    border-radius: 14px;
  }

  .account-profile-mini {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .account-profile-mini span {
    max-width: 100%;
  }

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

  .account-primary-cta {
    min-height: 42px;
  }

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

  .account-menu-group {
    gap: 6px;
  }

  .account-menu-group > span {
    margin-top: 4px;
  }

  .account-menu a {
    min-height: 40px;
    padding: 0 10px;
  }

  .account-page-header,
  .account-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .account-page-header,
  .account-balance-row,
  .account-record-card header,
  .account-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-page-header h1 {
    font-size: 26px;
  }

  .account-page-actions,
  .account-record-actions,
  .account-balance-actions {
    justify-content: stretch;
  }

  .account-page-actions a,
  .account-record-actions a,
  .account-record-actions button,
  .account-balance-actions a {
    width: 100%;
  }

  .account-overview-grid,
  .account-action-grid,
  .account-record-fields,
  .admin-overview-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .account-record-card {
    padding: 14px;
  }

  .recharge-simple-panel {
    padding: 16px;
  }

  .recharge-packages {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recharge-package {
    min-height: 0;
    padding: 18px;
  }

  .recharge-package-head {
    min-height: 0;
    padding-right: 86px;
  }

  .recharge-package em {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
  }

  .recharge-package b {
    white-space: normal;
  }

  .recharge-package strong,
  .recharge-package:hover strong {
    font-size: 44px;
  }

  .recharge-package p {
    margin-bottom: 14px;
  }

  .recharge-package small {
    min-height: 42px;
  }

  .recharge-stepper {
    display: grid;
    gap: 8px;
  }

  .recharge-stepper-title {
    margin-bottom: 2px;
  }

  .recharge-stepper i {
    display: none;
  }

  .recharge-stepper b {
    justify-content: flex-start;
    width: 100%;
    border-radius: 10px;
  }

  .market-view .section-head,
  #sampleReportView .section-head,
  .points-hero-head {
    width: min(calc(100vw - 24px), var(--workbench-width)) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 0 14px;
  }

  .market-view .section-head h1,
  #sampleReportView .section-head h1,
  .points-hero-head h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .market-result,
  .market-status,
  .sample-report,
  .points-plan {
    width: min(calc(100vw - 24px), var(--workbench-width)) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .market-toolbar,
  .market-tools label,
  .market-search-field {
    grid-template-columns: 1fr;
  }

  .tab-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tab-row::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
  }

  .table-scroll {
    max-width: 100%;
    overflow-x: auto;
  }

  .data-table th,
  .data-table td {
    padding: 11px 10px;
    font-size: 13px;
  }

  .admin-hero-head {
    padding: 16px;
    border-radius: 14px;
  }

  .admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-gate {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-main .point-admin {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-topbar {
    padding-inline: 12px;
  }

  .brand-mark {
    max-width: 134px;
  }

  .main-nav a {
    height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .user-chip {
    max-width: 96px;
    padding: 0 9px;
  }

  .hero-content {
    padding: 20px 14px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 12vw, 40px);
  }

  .hero-mode-tabs button .mode-icon,
  .hero-mode-tabs button img.mode-icon {
    display: none;
  }

  .live-card-head h2 {
    font-size: 19px;
  }

  .live-estimate-card .price-cell strong,
  .report-price-hero strong {
    font-size: 30px;
  }

  .account-menu {
    grid-template-columns: 1fr;
  }

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

  .account-point-mini b {
    font-size: 22px;
  }

  .recharge-package-head {
    padding-right: 76px;
  }

  .recharge-package strong,
  .recharge-package:hover strong {
    font-size: 40px;
  }

  .payment-modal-card,
  .download-preview-card {
    max-height: calc(100vh - 18px);
  }
}

/* Mobile polish: navigation, auth priority, market card views, hover contrast. */
.user-chip:hover,
.button-link:hover,
.auth-card button[type="submit"]:hover {
  border-color: var(--ps-blue) !important;
  color: #fff !important;
  background: var(--ps-blue) !important;
  background-color: var(--ps-blue) !important;
  background-image: none !important;
}

.user-chip:hover *,
.button-link:hover * {
  color: #fff !important;
}

.market-mobile-list {
  display: none;
}

@media (max-width: 860px) {
  .app-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px 12px !important;
    overflow: visible !important;
  }

  .brand-mark {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: none !important;
  }

  .top-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: end !important;
  }

  .user-chip {
    width: auto !important;
    min-width: 76px !important;
    max-width: 128px !important;
    height: 36px !important;
    border-color: rgba(27, 112, 255, 0.42) !important;
    color: var(--ps-blue) !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(27, 112, 255, 0.1) !important;
  }

  .user-chip:hover {
    border-color: var(--ps-blue) !important;
    color: #fff !important;
    background: var(--ps-blue) !important;
    box-shadow: 0 12px 26px rgba(27, 112, 255, 0.2) !important;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .main-nav a {
    width: 100% !important;
    height: 36px !important;
    padding: 0 4px !important;
    justify-content: center !important;
    border-radius: 10px !important;
    border-color: rgba(27, 112, 255, 0.18) !important;
    color: #17305f !important;
    background: rgba(255, 255, 255, 0.86) !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #fff !important;
    border-color: var(--ps-blue) !important;
    background: var(--ps-blue) !important;
  }

  .auth-view {
    padding: 14px 12px 24px !important;
  }

  .auth-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  .auth-card {
    order: 1 !important;
    justify-content: flex-start !important;
    padding: 22px 18px 20px !important;
  }

  .auth-card h2 {
    font-size: clamp(26px, 8vw, 34px) !important;
  }

  .auth-card p {
    margin-bottom: 10px !important;
    line-height: 1.55 !important;
  }

  .auth-switch {
    margin: 14px 0 14px !important;
  }

  .login-form input {
    min-height: 48px !important;
  }

  .login-form button {
    min-height: 48px !important;
    color: #fff !important;
  }

  .login-form button:hover {
    color: #fff !important;
    background: var(--ps-blue) !important;
  }

  .auth-story {
    order: 2 !important;
    padding: 18px !important;
    border-top: 1px solid rgba(27, 112, 255, 0.12) !important;
    background:
      linear-gradient(180deg, rgba(244, 249, 255, 0.92), rgba(255, 255, 255, 0.92)),
      url("/assets/decorations/mountain_bg_left_panel.png") left bottom / 300px auto no-repeat !important;
  }

  .auth-logo {
    width: min(180px, 60vw) !important;
    margin-bottom: 10px !important;
  }

  .auth-story h1 {
    font-size: 22px !important;
  }

  .auth-story p {
    line-height: 1.55 !important;
  }

  .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .auth-benefits span {
    width: auto !important;
    padding: 9px 8px !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 12px !important;
  }

  .market-view .section-head {
    padding-top: 22px !important;
    padding-bottom: 10px !important;
  }

  .market-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(27, 112, 255, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 14px 36px rgba(27, 112, 255, 0.08) !important;
  }

  .market-search-field {
    order: -1 !important;
    width: 100% !important;
  }

  .market-search-field input {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  .market-toolbar-tabs,
  #roleMarketResult > .tab-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  #roleMarketResult > .tab-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 12px !important;
  }

  .tab-button {
    width: 100% !important;
    min-height: 38px !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .market-mobile-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .market-table-card {
    display: none !important;
  }

  .market-mobile-card {
    padding: 14px !important;
    border: 1px solid rgba(27, 112, 255, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 14px 34px rgba(27, 112, 255, 0.08) !important;
  }

  .market-mobile-card header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .market-mobile-card header div {
    min-width: 0 !important;
  }

  .market-mobile-card header span {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    color: #62759b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .market-mobile-card h3 {
    margin: 5px 0 0 !important;
    color: var(--ps-ink) !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  .market-mobile-card strong {
    flex: 0 0 auto !important;
    color: var(--ps-blue) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-align: right !important;
  }

  .market-mobile-meta {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-top: 4px !important;
    color: #62759b !important;
    font-size: 12px !important;
  }

  .market-mobile-trends {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 12px !important;
  }

  .market-mobile-trends > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    background: #f4f8ff !important;
    color: #63789e !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .market-mobile-sex {
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: var(--ps-blue) !important;
  }
}

@media (max-width: 520px) {
  .main-nav a {
    font-size: 12px !important;
  }

  .auth-story {
    display: none !important;
  }

  .market-toolbar-tabs,
  #roleMarketResult > .tab-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile account center: keep tabs and current page content in the first screen. */
@media (max-width: 860px) {
  .account-view {
    padding-top: 12px !important;
  }

  .account-view .account-workspace {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .account-view .account-sidebar {
    position: static !important;
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .account-view .account-profile-mini {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #e3edfb !important;
  }

  .account-view .account-profile-mini img {
    width: 34px !important;
    height: 34px !important;
  }

  .account-view .account-profile-mini b {
    font-size: 15px !important;
    line-height: 1.1 !important;
  }

  .account-view .account-profile-mini span {
    max-width: 100% !important;
    font-size: 12px !important;
  }

  .account-view .account-point-mini {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .account-view .account-point-mini a {
    min-height: 54px !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
  }

  .account-view .account-point-mini span {
    font-size: 12px !important;
  }

  .account-view .account-point-mini b {
    margin-top: 2px !important;
    font-size: 24px !important;
  }

  .account-view .account-primary-cta,
  .account-view .account-logout-action {
    display: none !important;
  }

  .account-view .account-menu {
    display: flex !important;
    gap: 8px !important;
    margin: 0 -2px !important;
    padding: 2px 2px 4px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .account-view .account-menu::-webkit-scrollbar {
    display: none !important;
  }

  .account-view .account-menu-group {
    display: contents !important;
  }

  .account-view .account-menu-group > span {
    display: none !important;
  }

  .account-view .account-menu a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border: 1px solid #d6e6ff !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #17305f !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  .account-view .account-menu a .account-menu-icon,
  .account-view .account-menu a em {
    display: none !important;
  }

  .account-view .account-menu a span {
    display: block !important;
  }

  .account-view .account-menu a:hover,
  .account-view .account-menu a.active {
    border-color: var(--ps-blue) !important;
    background: var(--ps-blue) !important;
    color: #fff !important;
  }

  .account-view .account-menu a b {
    font-size: 13px !important;
  }

  .account-view .account-main {
    gap: 10px !important;
  }

  .account-view .account-page-header {
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .account-view .account-page-header h1 {
    font-size: 24px !important;
  }

  .account-view .account-page-header p {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .account-view .account-panel {
    padding: 14px !important;
    border-radius: 14px !important;
  }
}
