:root {
  --bg-top: #dce9ff;
  --bg-bottom: #eef4ff;
  --primary: #3f82f8;
  --primary-deep: #2a63dc;
  --text-main: #21406f;
  --text-sub: #6983ac;
  --card-bg: rgba(255, 255, 255, 0.94);
  --shadow-soft: 0 18px 40px rgba(92, 129, 194, 0.16);
  --radius-lg: 28px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top center, rgba(123, 184, 255, 0.4), transparent 34%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 42%, #eaf1ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(6px);
}

body::before {
  width: 180px;
  height: 180px;
  top: 72px;
  left: -70px;
  background: rgba(120, 205, 255, 0.22);
}

body::after {
  width: 160px;
  height: 160px;
  top: 180px;
  right: -60px;
  background: rgba(145, 164, 255, 0.2);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  padding: 26px 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 239, 255, 0.88));
  border-radius: 0 0 26px 26px;
}

.hero-eyebrow,
.hero-meta p,
.score-desc,
.info-item-label,
.record-meta,
.risk-item p,
.profile-note,
.verify-desc,
.analysis-label,
.filter-tab,
.stats-header span,
.stats-cell {
  margin: 0;
}

.hero-copy h1 {
  margin: 4px 0 18px;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 1px;
  color: var(--primary-deep);
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: rgba(63, 130, 248, 0.82);
}

.hero-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.hero-illustration {
  display: grid;
  place-items: center;
}

.scan-card {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(202, 230, 255, 0.9)),
    linear-gradient(180deg, rgba(88, 164, 255, 0.4), rgba(44, 108, 222, 0.18));
  box-shadow:
    inset 0 -10px 22px rgba(86, 142, 255, 0.18),
    0 16px 32px rgba(77, 135, 228, 0.18);
}

.scan-card::before,
.scan-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.scan-card::before {
  width: 70px;
  height: 70px;
  right: 22px;
  top: 24px;
  border: 7px solid rgba(52, 124, 240, 0.88);
}

.scan-card::after {
  width: 44px;
  height: 12px;
  right: 10px;
  top: 85px;
  border-radius: 999px;
  transform: rotate(38deg);
  background: linear-gradient(90deg, rgba(55, 128, 244, 0.95), rgba(32, 222, 243, 0.8));
}

.scan-ring,
.scan-lens {
  position: absolute;
  border-radius: 50%;
}

.scan-ring {
  inset: 18px;
  border: 1px solid rgba(91, 160, 255, 0.2);
}

.scan-lens {
  width: 16px;
  height: 16px;
  left: 24px;
  top: 32px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #71d0ff 55%, #3d7bf1 100%);
  box-shadow: 0 0 0 8px rgba(100, 220, 255, 0.12);
}

.top-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 10px;
  margin-bottom: 10px;
  backdrop-filter: blur(18px);
}

.top-tabs::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #5f708f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.14);
}

.tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #5d9bff 0%, var(--primary-deep) 100%);
  box-shadow: 0 10px 24px rgba(63, 130, 248, 0.24);
}

.content-flow {
  display: grid;
  gap: 18px;
}

.section-card {
  padding: 18px 14px 16px;
  background: rgba(234, 241, 255, 0.72);
  border-radius: var(--radius-lg);
}

.section-title {
  position: relative;
  width: min(100%, 304px);
  margin: 0 auto 16px;
  padding: 13px 24px;
  border-radius: 999px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(180deg, #6aa9ff 0%, #3574ec 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.45),
    0 12px 22px rgba(63, 130, 248, 0.22);
}

.section-title::before,
.section-title::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.section-title::before {
  left: 18px;
}

.section-title::after {
  right: 18px;
}

.score-panel,
.profile-stack,
.loan-stack,
.record-list,
.risk-list {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.score-panel {
  padding: 20px 18px 22px;
}

.profile-stack,
.loan-stack {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.gauge-wrap {
  position: relative;
  width: min(100%, 290px);
  margin: 0 auto 12px;
}

.gauge {
  display: block;
  width: 100%;
  height: auto;
}

.gauge-track,
.gauge-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 12;
}

.gauge-track {
  stroke: rgba(92, 134, 205, 0.14);
}

.gauge-progress {
  stroke: var(--primary);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.7s ease;
}

.gauge-center {
  position: absolute;
  inset: auto 0 18px;
  text-align: center;
}

.score-value {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  color: var(--primary-deep);
}

.score-value span {
  font-size: 56px;
}

.score-label {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--text-sub);
}

.gauge-ticks text {
  fill: #9eacc6;
  font-size: 13px;
}

.score-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #536c92;
}

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

.info-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.92), rgba(248, 251, 255, 0.98));
}

.info-item-label {
  font-size: 14px;
  color: #8193b4;
}

.info-item-value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-all;
}

.verify-list,
.record-list,
.risk-list {
  display: grid;
  gap: 12px;
}

.verify-item,
.record-item,
.risk-item,
.loan-panel,
.analysis-item,
.trend-panel,
.stats-table {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(242, 247, 255, 0.98), rgba(228, 238, 255, 0.95));
}

.verify-item,
.record-item,
.risk-item,
.loan-panel {
  padding: 16px;
}

.verify-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #47d7bf 0%, #23beab 100%);
  box-shadow: 0 10px 18px rgba(35, 190, 171, 0.2);
}

.verify-title,
.record-title,
.risk-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text-main);
}

.verify-desc,
.record-meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.risk-item p,
.profile-note {
  font-size: 14px;
  line-height: 1.75;
  color: #5e7397;
}

.profile-note {
  padding: 4px 8px 0;
}

.subsection-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 10px 10px 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #70aefe 0%, #3d78ef 100%);
  box-shadow: 0 8px 18px rgba(62, 122, 239, 0.2);
}

.interpret-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #2f69df;
}

.interpret-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #40597f;
}

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

.analysis-item {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 16px;
  min-height: 108px;
}

.analysis-item::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  opacity: 0.26;
  transform: rotate(18deg);
}

.analysis-item.blue::after {
  background: linear-gradient(180deg, #a9c6ff 0%, #5f8fff 100%);
}

.analysis-item.orange::after {
  background: linear-gradient(180deg, #ffd7a6 0%, #ffae61 100%);
}

.analysis-item.purple::after {
  background: linear-gradient(180deg, #d9bcff 0%, #af7ef5 100%);
}

.analysis-item.cyan::after {
  background: linear-gradient(180deg, #a9f2ff 0%, #69d7ee 100%);
}

.analysis-label {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #627896;
}

.analysis-value {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  color: #202f4d;
}

.trend-panel {
  padding: 10px 12px 14px;
}

.amount-distribution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.donut-wrap {
  display: grid;
  place-items: center;
}

.donut-chart {
  --c1: #4f84f6;
  --c2: #27d3b9;
  --c3: #b964f3;
  --c4: #f3c334;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: conic-gradient(
    var(--c1) 0 25%,
    var(--c2) 25% 50%,
    var(--c3) 50% 75%,
    var(--c4) 75% 100%
  );
  position: relative;
  box-shadow: 0 14px 28px rgba(83, 118, 189, 0.16);
}

.donut-chart::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.1);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
  color: #274a84;
  z-index: 1;
}

.donut-legend {
  display: grid;
  gap: 10px;
}

.donut-legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #556f98;
}

.donut-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.donut-dot.blue {
  background: #4f84f6;
}

.donut-dot.green {
  background: #27d3b9;
}

.donut-dot.purple {
  background: #b964f3;
}

.donut-dot.yellow {
  background: #f3c334;
}

.donut-legend-value {
  font-weight: 700;
  color: #274a84;
}

.repayment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.repayment-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.12);
}

.repayment-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 24px;
}

.repayment-icon.green {
  background: rgba(84, 173, 153, 0.14);
  color: #3f8d7f;
}

.repayment-icon.red {
  background: rgba(199, 84, 102, 0.12);
  color: #b84a5a;
}

.repayment-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #566f97;
}

.repayment-card-value {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 800;
  color: #223d6b;
}

.repayment-details {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.repayment-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(112, 147, 214, 0.12);
}

.repayment-detail-label {
  font-size: 15px;
  color: #4b648c;
}

.repayment-detail-value {
  font-size: 18px;
  font-weight: 700;
  color: #24457c;
}

.overdue-overview {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.12);
}

.overdue-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 14px;
}

.overdue-row + .overdue-row {
  border-top: 1px solid rgba(112, 147, 214, 0.14);
}

.overdue-label {
  font-size: 15px;
  line-height: 1.55;
  color: #445e87;
}

.overdue-value {
  font-size: 18px;
  font-weight: 700;
  color: #284779;
  text-align: right;
}

.overdue-risk-table {
  overflow: visible;
  background: transparent;
}

.overdue-risk-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 141, 196, 0.45) transparent;
}

.overdue-risk-scroll::-webkit-scrollbar {
  height: 6px;
}

.overdue-risk-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.overdue-risk-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(111, 141, 196, 0.45);
}

.overdue-risk-header,
#overdueRiskTable {
  min-width: 420px;
}

.overdue-risk-header {
  grid-template-columns: 1fr 1fr 1fr 0.95fr;
  padding: 12px 16px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(122, 147, 200, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.overdue-risk-header span {
  text-align: center;
  line-height: 1.35;
}

#overdueRiskTable .overdue-risk-row {
  grid-template-columns: 1fr 1fr 1fr 0.95fr;
  padding: 18px 16px;
  min-height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
}

#overdueRiskTable .overdue-risk-row:nth-child(even) {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(242, 247, 255, 0.96));
}

#overdueRiskTable .stats-cell {
  text-align: center;
}

#overdueRiskTable .stats-cell:first-child {
  text-align: left;
}

#overdueRiskTable .stats-cell.value {
  font-size: 24px;
  font-weight: 600;
  color: #4d638c;
}

.risk-note {
  margin-top: 14px;
  padding: 0 4px;
}

.risk-note-title,
.risk-note-text {
  margin: 0;
}

.risk-note-title {
  font-size: 15px;
  font-weight: 700;
  color: #d4585d;
}

.risk-note-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #546b93;
}

.summary-pill {
  position: relative;
  width: min(100%, 292px);
  margin: 4px auto 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(180deg, #68a7ff 0%, #3c78ee 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 12px 22px rgba(63, 130, 248, 0.22);
}

.summary-pill::before,
.summary-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.summary-pill::before {
  left: 16px;
}

.summary-pill::after {
  right: 16px;
}

.risk-level-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.12);
}

.risk-level-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 14px;
}

.risk-level-row + .risk-level-row {
  border-top: 1px solid rgba(112, 147, 214, 0.14);
}

.risk-level-label {
  font-size: 15px;
  line-height: 1.55;
  color: #445e87;
}

.risk-level-value {
  font-size: 18px;
  font-weight: 700;
  color: #284779;
  text-align: right;
}

.summary-explain-card {
  padding: 4px 6px 0;
}

.summary-explain-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #4e658d;
}

.summary-explain-line + .summary-explain-line {
  margin-top: 6px;
}

.summary-explain-key {
  font-weight: 700;
  color: #243f6f;
}

.lawsuit-summary {
  padding-top: 2px;
}

.lawsuit-total {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  color: #334d7c;
}

.lawsuit-distribution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.lawsuit-donut {
  width: 168px;
  height: 168px;
  background: conic-gradient(
    #4f84f6 0 12.5%,
    #27d3b9 12.5% 25%,
    #b964f3 25% 37.5%,
    #f3c334 37.5% 50%,
    #5fd3ea 50% 62.5%,
    #f08a24 62.5% 75%,
    #8f6df2 75% 87.5%,
    #43c7c7 87.5% 100%
  );
}

.donut-dot.cyan {
  background: #5fd3ea;
}

.donut-dot.orange {
  background: #f08a24;
}

.donut-dot.violet {
  background: #8f6df2;
}

.donut-dot.teal {
  background: #43c7c7;
}

.empty-case-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px 10px;
}

.empty-case-icon {
  font-size: 44px;
  line-height: 1;
}

.empty-case-text {
  margin: 0;
  font-size: 16px;
  color: #536a92;
}

.case-record-item {
  padding: 14px 4px;
}

.case-record-item + .case-record-item {
  border-top: 1px solid rgba(112, 147, 214, 0.12);
}

.case-record-title,
.case-record-meta {
  margin: 0;
}

.case-record-title {
  font-size: 16px;
  line-height: 1.6;
  color: #294674;
}

.case-record-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #6c7f9f;
  word-break: break-all;
}

.trend-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 4px 4px 8px;
  font-size: 13px;
  color: #627896;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-blue {
  background: #436ff0;
}

.legend-green {
  background: #4fd6c2;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding: 20px 8px 8px;
  border-top: 2px solid rgba(123, 145, 192, 0.25);
  background:
    linear-gradient(to top, rgba(112, 143, 209, 0.15) 1px, transparent 1px) 0 100% / 100% 42px repeat-y;
}

.trend-group {
  display: grid;
  grid-template-rows: 150px auto auto;
  justify-items: center;
  gap: 8px;
}

.trend-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 150px;
}

.trend-bar {
  width: 16px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 8px 16px rgba(82, 115, 189, 0.16);
}

.trend-bar.blue {
  background: linear-gradient(180deg, #557fff 0%, #325ee0 100%);
}

.trend-bar.green {
  background: linear-gradient(180deg, #6be8d8 0%, #2fc1b1 100%);
}

.trend-values {
  font-size: 11px;
  color: #7c8dac;
}

.trend-label {
  font-size: 13px;
  color: #596f93;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 12px;
}

.filter-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #6a7ea4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(112, 147, 214, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.filter-tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #71adff 0%, #3a78ee 100%);
  box-shadow: 0 10px 18px rgba(62, 122, 239, 0.24);
  transform: translateY(-1px);
}

.filter-feedback {
  margin: -2px 0 12px;
  font-size: 13px;
  color: #7486a6;
}

.filter-feedback span {
  color: var(--primary-deep);
  font-weight: 700;
}

.stats-table {
  overflow: hidden;
}

.contract-stats-table {
  overflow: visible;
  background: transparent;
}

.contract-stats-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 141, 196, 0.45) transparent;
}

.contract-stats-scroll::-webkit-scrollbar {
  height: 6px;
}

.contract-stats-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.contract-stats-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(111, 141, 196, 0.45);
}

.stats-header,
.stats-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
}

.stats-header-wide,
.stats-row-wide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1fr 1fr;
  align-items: center;
}

.contract-stats-header,
#contractStatsTable {
  min-width: 440px;
}

.stats-header {
  padding: 14px 16px 12px;
  font-size: 14px;
  color: #6b7fa4;
  border-bottom: 1px solid rgba(112, 147, 214, 0.16);
}

.stats-body {
  display: grid;
}

.stats-row {
  position: relative;
  padding: 16px;
  min-height: 68px;
}

.stats-row + .stats-row {
  border-top: 1px solid rgba(112, 147, 214, 0.12);
}

.stats-row-wide {
  position: relative;
  padding: 16px;
  min-height: 68px;
}

.contract-stats-header {
  padding: 12px 18px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(122, 147, 200, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.contract-stats-header span {
  text-align: center;
}

.stats-row-wide + .stats-row-wide {
  border-top: 1px solid rgba(112, 147, 214, 0.12);
}

#contractStatsTable .stats-row-wide {
  padding: 18px 18px;
  min-height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
}

#contractStatsTable .stats-row-wide:nth-child(even) {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(242, 247, 255, 0.96));
}

#contractStatsTable .stats-cell {
  text-align: center;
}

#contractStatsTable .stats-cell:first-child {
  text-align: left;
}

#contractStatsTable .stats-cell.value {
  font-size: 24px;
  font-weight: 600;
  color: #4d638c;
}

.stats-row::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  opacity: 0.18;
}

.stats-row.type-bank::after {
  background: linear-gradient(180deg, #c9d7ff 0%, #81a0ff 100%);
}

.stats-row.type-online::after {
  background: linear-gradient(180deg, #baf1ff 0%, #66d8ef 100%);
}

.stats-row.type-weekend::after {
  background: linear-gradient(180deg, #ffe2b5 0%, #ffbd72 100%);
}

.stats-row.type-night::after {
  background: linear-gradient(180deg, #dfc8ff 0%, #b68cff 100%);
}

.stats-cell {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: #233e6c;
}

.stats-cell.value {
  font-size: 28px;
  font-weight: 700;
}

.record-list,
.risk-list {
  padding: 16px;
}

.floating-actions {
  position: fixed;
  right: max(calc((100vw - 430px) / 2 + 16px), 16px);
  bottom: 34px;
  display: grid;
  gap: 12px;
  z-index: 8;
}

.float-btn {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #33d4b4 0%, #1db8ae 100%);
  box-shadow: 0 14px 24px rgba(33, 173, 169, 0.28);
  font: inherit;
}

.float-btn:last-child {
  background: linear-gradient(180deg, #5ea7ff 0%, #3b79f4 100%);
  box-shadow: 0 14px 24px rgba(58, 120, 242, 0.28);
}

.float-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 380px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .info-item {
    grid-template-columns: 86px 1fr;
    gap: 10px;
  }

  .info-item-value {
    font-size: 16px;
  }

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

  .analysis-value {
    font-size: 40px;
  }

  .trend-chart {
    gap: 8px;
  }

  .stats-cell.value {
    font-size: 24px;
  }

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

  .amount-distribution {
    grid-template-columns: 1fr;
  }

  .repayment-cards {
    grid-template-columns: 1fr;
  }
}
