:root {
  --bg: #070608;
  --surface: rgba(28, 28, 40, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --text: #f0f1f7;
  --muted: #9aa3bd;
  --usdt: #34d399;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 24, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.landing-logo svg {
  color: var(--accent);
}

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

.btn-console {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.btn-console:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.landing-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.landing-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.landing-section {
  padding: 0 24px 48px;
}

.landing-section-title {
  max-width: 1100px;
  margin: 0 auto 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

@media (min-width: 900px) {
  .tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-card {
  position: relative;
  padding: 22px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tier-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 8px 36px rgba(91, 33, 182, 0.25);
}

.tier-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tier-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tier-card-points {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.tier-card-points span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.tier-card-usdt {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--usdt);
}

.tier-card-desc {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.tier-card-custom-input {
  margin-top: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.tier-card-custom-input:focus {
  outline: none;
  border-color: var(--accent);
}

.tier-card.is-hidden {
  display: none;
}

.recharge-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.recharge-panel h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.recharge-panel > .sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.rate-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(167, 139, 250, 0.28);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.rate-line strong {
  font-family: var(--mono);
  color: var(--usdt);
}

.addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.addr-box {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text);
  line-height: 1.5;
}

.btn-copy-addr {
  flex-shrink: 0;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-copy-addr:hover {
  opacity: 0.92;
}

.btn-copy-addr:active {
  transform: scale(0.98);
}

.order-strip {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
}

.order-strip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.order-strip-text {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}

.btn-order-copy {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-order-copy:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--muted);
}

.recharge-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.landing-foot {
  padding: 32px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 18px;
  border-radius: 8px;
  background: #1a1f2e;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 100;
  pointer-events: none;
}

.toast.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
