:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #d2d2d7;
  --panel: rgba(255, 255, 255, 0.72);
  --white: #ffffff;
  --teal: #0071e3;
  --cyan: #2997ff;
  --coral: #86868b;
  --amber: #bf5af2;
  --deep: #000000;
  --blue: #0071e3;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  border-radius: 10px;
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.auth-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.auth-guest,
.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user span {
  max-width: 140px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-button:hover {
  transform: translateY(-1px);
}

.nav-button.ghost {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav-button.solid {
  color: var(--white);
  background: var(--blue);
}

.nav-button.withdraw {
  color: var(--white);
  background: #1d1d1f;
}

.nav-button.withdraw.disabled {
  color: #8e8e93;
  background: #e5e5ea;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 96px clamp(20px, 7vw, 92px) 62px;
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 113, 227, 0.13), transparent 34%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 58%, #ffffff 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 72%);
}

.hero-scene {
  position: absolute;
  inset: 72px 0 0;
  z-index: -1;
  overflow: hidden;
}

.mesh {
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(0, 113, 227, 0.13);
  border-radius: 32%;
  transform: rotate(16deg);
  filter: blur(0.3px);
}

.mesh::before,
.mesh::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 32%;
}

.mesh::after {
  inset: 28%;
  border-color: rgba(191, 90, 242, 0.12);
}

.mesh-one {
  right: -12vw;
  top: 2vh;
}

.mesh-two {
  left: -30vw;
  bottom: -30vw;
}

.route {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.5), transparent);
  opacity: 0.34;
  transform-origin: left center;
}

.route-a {
  width: 46vw;
  top: 31%;
  right: 13%;
  transform: rotate(-17deg);
}

.route-b {
  width: 38vw;
  top: 53%;
  left: 23%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.4), transparent);
}

.route-c {
  width: 32vw;
  bottom: 19%;
  right: 24%;
  transform: rotate(28deg);
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 12px 34px rgba(0, 113, 227, 0.22);
}

.node-a {
  top: 24%;
  right: 24%;
}

.node-b {
  top: 56%;
  left: 42%;
  background: var(--coral);
  box-shadow: 0 12px 34px rgba(134, 134, 139, 0.2);
}

.node-c {
  right: 42%;
  bottom: 21%;
  background: var(--cyan);
}

.node-d {
  left: 13%;
  top: 38%;
  background: var(--amber);
}

.data-panel {
  position: absolute;
  display: grid;
  gap: 7px;
  width: min(220px, 34vw);
  padding: 18px 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(22px);
}

.data-panel span,
.data-panel small {
  color: var(--muted);
  font-weight: 600;
}

.data-panel strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  font-weight: 700;
}

.panel-a {
  right: 8vw;
  top: 21%;
}

.panel-b {
  right: 25vw;
  bottom: 16%;
}

.panel-c {
  left: 9vw;
  top: 27%;
}

.hero-content {
  max-width: 920px;
  text-align: center;
}

.hero-showcase {
  display: grid;
  place-items: center;
  margin: clamp(34px, 5vw, 58px) auto 0;
}

.showcase-screen {
  width: min(860px, 100%);
  min-height: 320px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(22px);
}

.screen-toolbar {
  display: flex;
  gap: 8px;
  padding: 7px 10px 14px;
}

.screen-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d1d6;
}

.model-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.36), transparent 16%),
    radial-gradient(circle at 75% 26%, rgba(41, 151, 255, 0.74), transparent 24%),
    linear-gradient(135deg, #111112 0%, #2a2a2d 46%, #050505 100%);
  border-radius: 24px;
}

.model-preview::before,
.model-preview::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38%;
  transform: rotate(18deg);
}

.model-preview::before {
  left: -8%;
  bottom: -32%;
}

.model-preview::after {
  right: -10%;
  top: -30%;
}

.model-dot {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  backdrop-filter: blur(12px);
}

.model-dot::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--white);
}

.model-preview strong,
.model-preview small {
  position: relative;
  z-index: 1;
}

.model-preview strong {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
}

.model-preview small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.model-strip span {
  overflow: hidden;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(245, 245, 247, 0.86);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 auto 22px;
  max-width: 880px;
  font-size: clamp(50px, 8vw, 112px);
  line-height: 0.96;
  font-weight: 700;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.42;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: none;
}

.button.secondary {
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(0, 113, 227, 0.42);
}

.button.dark {
  color: var(--white);
  background: var(--blue);
  box-shadow: none;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: clamp(20px, 4vw, 44px) clamp(20px, 7vw, 92px);
  border-top: 0;
  border-bottom: 0;
  background: var(--white);
}

.feature-item {
  min-height: 138px;
  padding: 30px clamp(18px, 3vw, 36px);
  border-right: 0;
  background: var(--soft);
  border-radius: 26px;
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.feature-item strong {
  display: block;
  max-width: 210px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
}

.pricing-section {
  padding: clamp(72px, 9vw, 126px) clamp(20px, 7vw, 92px);
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2,
.connect-section h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 700;
}

.section-copy {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.price-card.highlighted {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 22px 70px rgba(0, 113, 227, 0.16);
}

.price-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  min-width: 0;
}

.price-top > div {
  min-width: 0;
}

.model-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.price-card h3 {
  margin-bottom: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 700;
}

.rate {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.rate.muted {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.price-main strong {
  font-size: clamp(40px, 3.4vw, 56px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
}

.price-main span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.price-list {
  display: grid;
  gap: 0;
  margin: 0;
  margin-top: auto;
}

.price-list div {
  display: grid;
  grid-template-columns: minmax(78px, 0.5fr) minmax(140px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.price-list dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.price-list dd {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
  text-align: right;
}

.connect-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(20px, 7vw, 92px) clamp(28px, 5vw, 56px);
  padding: clamp(42px, 6vw, 74px);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(41, 151, 255, 0.46), transparent 28%),
    linear-gradient(135deg, #1d1d1f, #050505);
  border-radius: 32px;
}

.connect-section .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal.active,
.console-modal.active,
.contact-modal.active {
  display: flex;
}

.auth-backdrop,
.console-backdrop,
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: saturate(180%) blur(18px);
}

.auth-dialog,
.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);
  backdrop-filter: saturate(180%) blur(20px);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-dialog h2 {
  margin: 0 42px 18px 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  font-weight: 700;
}

.contact-qq {
  margin: 0;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 42px 24px 0;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.auth-tab.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(27, 34, 45, 0.08);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 16px;
}

.auth-form h2 {
  margin-bottom: 4px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.auth-message[data-type="success"] {
  color: #008a7d;
}

.auth-message[data-type="error"] {
  color: #cf3e24;
}

.console-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.console-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);
  backdrop-filter: saturate(180%) blur(20px);
}

.console-heading {
  margin: 0 44px 24px 0;
}

.console-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  font-weight: 700;
}

.console-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
}

.console-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.console-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.console-tab.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(27, 34, 45, 0.08);
}

.console-panel {
  display: none;
  min-width: 0;
}

.console-panel.active {
  display: block;
}

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

.account-grid div {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.account-grid span,
.panel-toolbar p,
.empty-state,
.key-meta,
.records-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.account-grid strong {
  overflow: hidden;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-card {
  grid-column: 1 / -1;
}

.recharge-tip {
  margin: 0;
  padding: 12px 14px;
  color: #6e3d00;
  background: rgba(255, 204, 0, 0.16);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
}

.recharge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.balance-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.recharge-row input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  outline: none;
}

.recharge-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-toolbar h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
}

.panel-toolbar p {
  margin: 0;
}

.api-key-list {
  display: grid;
  gap: 12px;
}

.key-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.key-value {
  overflow: hidden;
  margin-bottom: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.small-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.small-button.danger {
  color: #cf3e24;
}

.records-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.records-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

.records-table th,
.records-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.records-table tbody tr:last-child td {
  border-bottom: 0;
}

.records-table td {
  font-size: 14px;
  font-weight: 600;
}

.empty-state {
  display: none;
  margin: 16px 0 0;
  padding: 18px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.empty-state.active {
  display: block;
}

.payment-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 113, 227, 0.16), transparent 38%),
    var(--soft);
}

.payment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
}

.payment-card {
  width: min(620px, 100%);
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.payment-brand {
  margin-bottom: 32px;
}

.payment-heading h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  font-weight: 700;
}

.payment-heading p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

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

.payment-summary div,
.expire-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.payment-summary span,
.expire-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.payment-summary strong,
.expire-panel strong {
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
  font-weight: 700;
}

.qr-panel {
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  padding: clamp(16px, 4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.qr-panel img {
  display: block;
  width: min(360px, 100%);
  height: auto;
  border-radius: 16px;
}

.expire-panel {
  margin-bottom: 20px;
  color: #6e3d00;
  background: rgba(255, 204, 0, 0.16);
  border-color: rgba(255, 204, 0, 0.3);
}

.payment-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav {
    display: none;
  }

  .auth-user span {
    max-width: 112px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 104px;
  }

  .panel-a {
    right: -18px;
    top: 18%;
  }

  .panel-b {
    right: 8vw;
    bottom: 10%;
  }

  .panel-c {
    display: none;
  }

  .feature-band,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .connect-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-copy {
    text-align: left;
  }

  .console-layout {
    grid-template-columns: 1fr;
  }

  .console-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .console-tab {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .auth-guest,
  .auth-user {
    gap: 8px;
  }

  .nav-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .auth-user span {
    max-width: 82px;
    font-size: 13px;
  }

  .auth-user {
    gap: 6px;
  }

  .hero {
    min-height: 84vh;
    padding-bottom: 52px;
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  .button {
    width: 100%;
  }

  .showcase-screen {
    min-height: 0;
    border-radius: 26px;
  }

  .model-preview {
    min-height: 178px;
    border-radius: 18px;
  }

  .model-strip {
    grid-template-columns: 1fr;
  }

  .data-panel {
    width: 170px;
    padding: 14px;
  }

  .panel-a {
    top: 12%;
    right: -42px;
  }

  .panel-b {
    display: none;
  }

  .route-a {
    width: 78vw;
    right: -8vw;
  }

  .route-b {
    width: 82vw;
    left: 5vw;
  }

  .price-top {
    flex-direction: column;
  }

  .price-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-list dd {
    text-align: left;
  }

  .auth-dialog {
    padding: 20px;
  }

  .auth-tabs {
    margin-right: 40px;
  }

  .console-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .console-layout,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .recharge-row {
    grid-template-columns: 1fr;
  }

  .balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .panel-toolbar,
  .key-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .key-actions {
    flex-wrap: wrap;
  }

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