:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: #0b1728;
  --panel-2: #0f2138;
  --line: rgba(148, 163, 184, .18);
  --muted: #8da0b8;
  --text: #dce8f7;
  --soft: #b8c7dc;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #a78bfa;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, .07), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 31, .88);
  backdrop-filter: blur(18px);
}

.header-inner,
main,
.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(34, 211, 238, .5);
  border-radius: 7px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.brand-text {
  font-size: 13px;
  color: #e8f2ff;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}

.nav-link,
.ghost-btn,
.chip,
.pick-cta,
select,
.search-box {
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(59, 130, 246, .14);
  border-color: rgba(59, 130, 246, .22);
}

.nav-muted {
  color: #6f8198;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.ghost-btn {
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(15, 33, 56, .78);
  border-color: var(--line);
  cursor: pointer;
}

.ghost-btn:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, .36);
}

.page-title {
  padding: 34px 0 18px;
}

.page-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-title em {
  color: var(--cyan);
  font-style: normal;
}

.page-title p {
  margin: 12px 0 0;
  color: var(--muted);
}

.compare-panel,
.info-grid article,
.latest,
.rank-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 40, .86);
}

.compare-panel {
  padding: 14px;
  margin-bottom: 14px;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}

.compare-head strong {
  color: #fff;
}

.tag {
  padding: 2px 7px;
  border-radius: 6px;
  color: #06111f;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

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

.compare-card {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 33, 56, .92), rgba(8, 21, 38, .92));
}

.compare-card:hover {
  border-color: rgba(34, 211, 238, .35);
}

.compare-brand {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.compare-name {
  margin-top: 5px;
  color: #fff;
  font-weight: 750;
}

.compare-cta {
  margin-top: 10px;
  color: #93c5fd;
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  flex-wrap: wrap;
}

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

.chip {
  padding: 7px 12px;
  color: var(--soft);
  background: rgba(15, 33, 56, .86);
  border-color: var(--line);
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: #fff;
  background: rgba(59, 130, 246, .2);
  border-color: rgba(59, 130, 246, .38);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(15, 33, 56, .86);
  border-color: var(--line);
}

.search-box input {
  width: 170px;
  height: 34px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

select {
  height: 36px;
  padding: 0 10px;
  color: var(--soft);
  background: #0f2138;
  border-color: var(--line);
}

.pick-cta {
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(34, 211, 238, .08);
  border-color: rgba(34, 211, 238, .18);
}

.rank-table {
  overflow: hidden;
}

.table-header,
.card-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) 120px 110px 120px 70px 100px 62px 120px 78px 126px;
  gap: 10px;
  align-items: center;
}

.table-header {
  padding: 11px 14px;
  color: var(--muted);
  background: rgba(8, 21, 38, .96);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.center {
  text-align: center;
}

.card {
  border-bottom: 1px solid rgba(148, 163, 184, .11);
}

.card:hover {
  background: rgba(59, 130, 246, .05);
}

.card-row {
  min-height: 72px;
  padding: 11px 14px;
}

.provider-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fbff;
  font-weight: 760;
}

.rank-index {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 6px;
  color: #06111f;
  background: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.tier-s .rank-index {
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.provider-tags,
.price-tags,
.pay-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.provider-tags {
  margin-top: 6px;
}

.provider-tag,
.price-grade,
.pay-tag,
.topup-tag,
.bonus-tag,
.water-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.provider-tag {
  color: #93c5fd;
  background: rgba(59, 130, 246, .1);
}

.water-badge.clean {
  color: #86efac;
  background: rgba(34, 197, 94, .12);
}

.water-badge.suspect {
  color: #fbbf24;
  background: rgba(245, 158, 11, .13);
}

.water-badge.failed {
  color: #fca5a5;
  background: rgba(239, 68, 68, .14);
}

.water-badge.unverified {
  color: #93a4ba;
  background: rgba(148, 163, 184, .1);
}

.price-grade.low {
  color: #86efac;
  background: rgba(34, 197, 94, .13);
}

.price-grade.mid {
  color: #fcd34d;
  background: rgba(245, 158, 11, .13);
}

.price-grade.high {
  color: #fca5a5;
  background: rgba(239, 68, 68, .13);
}

.price-grade.best {
  outline: 1px solid rgba(250, 204, 21, .42);
}

.pay-tag {
  color: #c7d2fe;
  background: rgba(99, 102, 241, .14);
}

.topup-tag {
  color: #bae6fd;
  background: rgba(14, 165, 233, .12);
}

.bonus-tag {
  color: #f0abfc;
  background: rgba(217, 70, 239, .11);
}

.yes {
  color: #86efac;
}

.no,
.unknown {
  color: #7f8ea3;
}

.uptime {
  min-width: 0;
}

.uptime-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
}

.uptime-bar {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}

.uptime-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.visit-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.visit-btn,
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.visit-btn {
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.detail-btn {
  color: #cbd5e1;
  border: 1px solid var(--line);
  background: rgba(15, 33, 56, .78);
  cursor: pointer;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-grid article,
.latest {
  padding: 16px;
}

h2 {
  margin: 0 0 9px;
  font-size: 17px;
}

.info-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.latest {
  margin-top: 14px;
}

.latest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.latest-links a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--soft);
  background: rgba(15, 33, 56, .6);
}

.site-footer {
  padding: 28px 0 44px;
}

.content-page {
  width: min(880px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

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

.content-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.content-hero p {
  margin: 12px 0 0;
  color: var(--muted);
}

.article-panel,
.form-panel,
.verify-panel,
.price-wrap,
.provider-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 40, .86);
}

.article-panel {
  padding: 20px;
  margin: 14px 0;
}

.article-panel h2,
.provider-panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.article-panel h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.article-panel p,
.article-panel li {
  color: var(--soft);
}

.article-panel ul,
.article-panel ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.risk-grid,
.metric-grid,
.guide-grid,
.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.risk-card,
.metric-card,
.guide-card,
.similar-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 33, 56, .65);
}

.risk-card strong,
.metric-card strong,
.guide-card strong {
  display: block;
  color: #fff;
  margin-bottom: 7px;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: step;
  padding: 12px 12px 12px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 33, 56, .55);
  position: relative;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #06111f;
  background: var(--cyan);
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary-link,
.secondary-link,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 7px;
  font-weight: 750;
}

.primary-link,
.form-submit {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  cursor: pointer;
}

.secondary-link {
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(15, 33, 56, .8);
}

.channel-table,
.price-table,
.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.channel-table th,
.channel-table td,
.price-table th,
.price-table td,
.mini-table th,
.mini-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  text-align: left;
}

.channel-table th,
.price-table th,
.mini-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.fold {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 33, 56, .62);
}

.fold summary {
  cursor: pointer;
  padding: 14px;
  color: #fff;
  font-weight: 750;
}

.fold div {
  padding: 0 14px 14px;
  color: var(--soft);
}

.verify-panel,
.form-panel {
  padding: 18px;
}

.verify-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.radio-card {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 33, 56, .6);
  cursor: pointer;
}

.radio-card input {
  margin-right: 6px;
}

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

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.form-row label {
  color: var(--muted);
  font-size: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: rgba(6, 17, 31, .8);
  outline: 0;
}

.form-input {
  min-height: 38px;
  padding: 0 10px;
}

.form-textarea {
  min-height: 110px;
  padding: 10px;
  resize: vertical;
}

.status-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 7px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, .1);
}

.price-wrap {
  padding: 14px;
  overflow-x: auto;
}

.price-page .toolbar {
  margin-top: 8px;
}

.price-table {
  min-width: 900px;
}

.ptag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  margin: 2px;
  border-radius: 6px;
  color: #c4b5fd;
  background: rgba(167, 139, 250, .12);
  font-size: 12px;
}

.rec-badge {
  color: #fde68a;
}

.provider-page {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.crumb {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
}

.provider-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 23, 40, .86);
}

.provider-head h1 {
  margin: 0;
  font-size: 32px;
}

.provider-slug {
  color: var(--muted);
  margin-top: 5px;
}

.provider-panel {
  padding: 16px;
  margin-top: 14px;
}

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

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  margin: 5px 0 0;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .risk-grid,
  .metric-grid,
  .guide-grid,
  .similar-grid,
  .field-grid,
  .verify-tabs {
    grid-template-columns: 1fr;
  }

  .provider-head {
    display: block;
  }
}

/* Studio redesign: audit-board visual system */
:root {
  color-scheme: light;
  --bg: #f5f8f3;
  --paper: #fffdf8;
  --panel: #ffffff;
  --panel-2: #eef5f0;
  --line: rgba(31, 45, 41, .14);
  --line-strong: rgba(31, 45, 41, .24);
  --muted: #66746f;
  --text: #17231f;
  --soft: #384944;
  --blue: #2457d6;
  --cyan: #2a8191;
  --green: #2f7d55;
  --amber: #c47b1e;
  --red: #a83a42;
  --purple: #6f55b7;
  --ink: #17231f;
  --rail: #2f7d55;
  --radius: 8px;
}

body {
  background:
    linear-gradient(rgba(31, 45, 41, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 45, 41, .04) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(36, 87, 214, .08), transparent 30%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--text);
  font-family: "Aptos", "Inter", "Segoe UI", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 7px;
  z-index: 100;
  background: linear-gradient(180deg, var(--green), var(--blue) 46%, var(--amber));
}

.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset;
}

.header-inner,
main,
.site-footer {
  width: min(1240px, calc(100% - 32px));
}

.header-inner {
  min-height: 66px;
}

.brand {
  min-width: 178px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(36, 87, 214, .22);
}

.brand-text {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .06em;
}

.nav-link {
  color: var(--muted);
  padding: 8px 11px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #e7efe9;
  border-color: var(--line-strong);
}

.nav-muted {
  color: #7a6550;
}

.ghost-btn {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  color: var(--blue);
  border-color: rgba(36, 87, 214, .42);
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 38px 0 20px;
}

.page-title::after {
  content: "228 services / live price board";
  justify-self: end;
  align-self: center;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  color: var(--soft);
  background: var(--paper);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.page-title h1,
.content-hero h1,
.provider-head h1 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Microsoft YaHei", serif;
  font-weight: 760;
  letter-spacing: 0;
  color: var(--ink);
}

.page-title h1 {
  font-size: 38px;
}

.page-title em {
  color: var(--blue);
}

.page-title p,
.content-hero p,
.info-grid p,
.site-footer p,
.article-panel p,
.article-panel li {
  color: var(--muted);
}

.compare-panel,
.info-grid article,
.latest,
.rank-table,
.article-panel,
.form-panel,
.verify-panel,
.price-wrap,
.provider-panel,
.provider-head {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 50px rgba(31, 45, 41, .06);
}

.compare-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.compare-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

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

.compare-head strong {
  color: var(--ink);
}

.tag {
  color: var(--paper);
  background: var(--ink);
}

.compare-card {
  min-height: 96px;
  border-color: var(--line);
  background: #f9fbf7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset;
}

.compare-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 214, .45);
  box-shadow: 0 14px 30px rgba(36, 87, 214, .11);
}

.compare-brand,
.compare-cta {
  color: var(--blue);
}

.compare-name {
  color: var(--ink);
}

.toolbar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .78);
}

.toolbar-label {
  color: var(--soft);
  font-weight: 760;
}

.chip,
select,
.search-box,
.pick-cta {
  background: var(--panel);
  border-color: var(--line);
  color: var(--soft);
}

.chip:hover,
.chip.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.search-box input {
  color: var(--ink);
}

select {
  color: var(--ink);
}

.pick-cta {
  color: var(--blue);
  background: #edf3ff;
  border-color: rgba(36, 87, 214, .2);
}

.rank-table {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
}

.table-header {
  color: #53625d;
  background: #e9f0ea;
  border-bottom-color: var(--line-strong);
  font-weight: 760;
}

.card {
  position: relative;
  border-bottom-color: rgba(31, 45, 41, .1);
  background: rgba(255, 255, 255, .72);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #b9c5bf;
}

.card:hover {
  background: #fff;
}

.top-seat {
  background: linear-gradient(90deg, rgba(36, 87, 214, .08), rgba(255, 255, 255, .92) 34%);
}

.top-seat::before {
  width: 7px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.standard-seat:nth-child(n+12)::before {
  background: #cbd4cf;
}

.card-row {
  min-height: 78px;
}

.provider-link {
  color: var(--ink);
}

.rank-index {
  color: var(--paper);
  background: var(--soft);
  box-shadow: none;
}

.top-seat .rank-index {
  color: #fff;
  background: var(--blue);
  box-shadow: 3px 3px 0 rgba(47, 125, 85, .25);
}

.top-seat:nth-child(-n+3) .rank-index {
  background: var(--ink);
}

.provider-tag {
  color: #315846;
  background: #e4f1e8;
}

.water-badge.clean,
.price-grade.low,
.yes {
  color: #17643f;
  background: #e3f3e8;
}

.water-badge.suspect,
.price-grade.mid {
  color: #8a580f;
  background: #fff0d9;
}

.water-badge.failed,
.price-grade.high {
  color: #8f3038;
  background: #ffe8e8;
}

.water-badge.unverified,
.unknown,
.no {
  color: #6f7b77;
  background: #eef1ef;
}

.pay-tag {
  color: #344f99;
  background: #e8efff;
}

.topup-tag {
  color: #225969;
  background: #e3f4f6;
}

.bonus-tag {
  color: #70521c;
  background: #fff2d2;
}

.uptime-label {
  color: var(--soft);
}

.uptime-bar {
  background: #e5ebe7;
}

.uptime-fill {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.uptime.untested .uptime-fill {
  background: transparent;
}

.visit-btn {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(36, 87, 214, .18);
}

.visit-btn:hover {
  background: #1746bd;
}

.detail-btn {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
}

.detail-btn:hover {
  border-color: rgba(36, 87, 214, .45);
  color: var(--blue);
}

.info-grid article {
  position: relative;
  overflow: hidden;
}

.info-grid article::before,
.latest::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--blue);
}

.latest-links a {
  color: var(--soft);
  background: var(--panel);
  border-color: var(--line);
}

.content-page,
.provider-page {
  padding-top: 34px;
}

.content-hero {
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 18px;
}

.article-panel h2,
.provider-panel h2,
h2 {
  color: var(--ink);
}

.risk-card,
.metric-card,
.guide-card,
.similar-card,
.detail-item {
  border-color: var(--line);
  background: #fbfcf8;
}

.risk-card strong,
.metric-card strong,
.guide-card strong {
  color: var(--ink);
}

.step-list li {
  border-color: var(--line);
  background: #fbfcf8;
}

.step-list li::before {
  color: #fff;
  background: var(--blue);
}

.primary-link,
.form-submit {
  color: #fff;
  background: var(--blue);
}

.secondary-link {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-strong);
}

.channel-table th,
.channel-table td,
.price-table th,
.price-table td,
.mini-table th,
.mini-table td {
  border-bottom-color: rgba(31, 45, 41, .12);
}

.channel-table th,
.price-table th,
.mini-table th {
  color: var(--muted);
}

.fold {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, .92);
}

.fold summary {
  color: var(--ink);
}

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

.form-input,
.form-textarea {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}

.price-wrap {
  background: #fff;
}

.price-table {
  background: #fff;
}

.price-table tbody tr:hover,
.mini-table tbody tr:hover {
  background: #f5f8ff;
}

.ptag {
  color: #5a458f;
  background: #eee9fb;
}

.rec-badge {
  color: #8a580f;
}

.provider-head {
  background: linear-gradient(90deg, #fffdf8, #eef5f0);
}

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

.metric-card span,
.detail-item span {
  color: var(--muted);
}

dialog {
  color: var(--text);
  background: var(--paper);
}

dialog::backdrop {
  background: rgba(23, 35, 31, .45);
}

.dialog-close {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .compare-card,
  .card,
  .visit-btn,
  .detail-btn,
  .chip {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  }
}

@media (max-width: 980px) {
  .page-title {
    grid-template-columns: 1fr;
  }

  .page-title::after {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  body::before {
    width: 4px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    font-size: 13px;
  }

  .header-actions {
    justify-self: end;
    gap: 6px;
  }

  .ghost-btn {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    padding-bottom: 2px;
  }

  .nav-link {
    padding: 7px 9px;
    font-size: 12px;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .header-inner,
  main,
  .site-footer {
    width: min(100% - 22px, 1240px);
  }
}

dialog {
  width: min(620px, calc(100% - 28px));
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: var(--radius);
  color: var(--text);
  background: #09172a;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .5);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .62);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #cbd5e1;
  background: rgba(15, 33, 56, .8);
  cursor: pointer;
}

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

.detail-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 33, 56, .55);
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-item strong {
  display: block;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .search-box {
    margin-left: 0;
  }

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

  .table-header,
  .card-row {
    min-width: 1020px;
  }

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

@media (max-width: 620px) {
  .header-inner,
  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .page-title h1 {
    font-size: 26px;
  }

  .compare-grid,
  .info-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .search-box input {
    width: 130px;
  }
}
