:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-2: #eef3f8;
  --text: #172033;
  --muted: #687386;
  --line: #d9e0ea;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #d89b2b;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #172033, #2563eb);
}

.brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.brand-subtitle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}

.button.primary,
.nav a.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.button.primary:hover,
.nav a.primary:hover {
  background: var(--primary-strong);
}

.button.ghost {
  background: transparent;
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.intro {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(216, 155, 43, 0.09)),
    #fff;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-panel {
  padding: 24px;
}

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

.panel-title h2,
.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #0f5132;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 760;
}

.badge.warning {
  color: #7c2d12;
  background: #ffedd5;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row dt {
  color: var(--muted);
}

.status-row dd {
  margin: 0;
  font-weight: 760;
  text-align: right;
}

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

.tile {
  padding: 22px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.tile p {
  margin: 0 0 18px;
  color: var(--muted);
}

.price {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 800;
}

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

.section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

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

.guide-step {
  padding: 18px;
}

.guide-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.guide-step h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
}

.support-link {
  padding: 18px;
}

.support-link strong {
  display: block;
  margin-bottom: 5px;
}

.support-link span {
  color: var(--muted);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px dashed #b9c4d2;
  border-radius: 8px;
  background: #fff;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(90deg, #172033 12px, transparent 12px) 0 0 / 32px 32px,
    linear-gradient(#172033 12px, transparent 12px) 0 0 / 32px 32px,
    #fff;
  box-shadow: inset 0 0 0 14px #fff;
  text-align: center;
  font-weight: 760;
}

.qr-image {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border-radius: 8px;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel-2);
  font-weight: 760;
}

.steps {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps li {
  margin: 8px 0;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.notice {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px;
  color: #1e3a8a;
  background: #eff6ff;
}

.notice.success {
  border-color: #bbf7d0;
  color: #14532d;
  background: #f0fdf4;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 840px) {
  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .payment-layout,
  .grid,
  .guide-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    padding: 24px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .main,
  .footer-inner {
    width: min(100% - 20px, 1120px);
  }

  .nav a,
  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .status-row dd {
    text-align: left;
  }
}
