/* USDT-TRX Dark Theme - Mobile First */
:root {
  --bg: #0a0e0d;
  --bg-elevated: #121816;
  --card: rgba(22, 32, 28, 0.85);
  --card-border: rgba(38, 161, 123, 0.15);
  --usdt-green: #26a17b;
  --usdt-green-dim: rgba(38, 161, 123, 0.25);
  --usdt-glow: rgba(38, 161, 123, 0.4);
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.3);
  --text: #e8f0ed;
  --text-muted: #8a9a94;
  --danger: #e74c5c;
  --warning: #f0ad4e;
  --success: #26a17b;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--usdt-green-dim), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 39, 0.06), transparent);
}

a {
  color: var(--usdt-green);
  text-decoration: none;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.app-main {
  padding: 16px;
  padding-bottom: calc(16px + var(--tabbar-h) + var(--safe-bottom));
}

.app-main.has-tabbar {
  padding-bottom: calc(16px + var(--tabbar-h) + var(--safe-bottom));
}

.app-main.no-tabbar {
  padding-bottom: 24px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: "";
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--usdt-green), transparent);
  border-radius: 2px;
}

/* Hero banner */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1a16 0%, #121816 50%, #0a1410 100%);
  border: 1px solid var(--card-border);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--usdt-glow), transparent);
  animation: shimmer 4s ease-in-out infinite;
  opacity: 0.15;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--text), var(--usdt-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
}

.hero-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  position: relative;
}

/* Form */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--usdt-green);
  box-shadow: 0 0 0 3px var(--usdt-green-dim);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.amount-input-wrap {
  position: relative;
}

.amount-input-wrap .form-input {
  font-size: 1.5rem;
  font-weight: 600;
  padding-right: 88px;
  color: var(--gold);
}

.amount-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  color: var(--usdt-green);
  font-weight: 600;
  font-size: 0.875rem;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.usdt-icon {
  width: 1.125em;
  height: 1.125em;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.value--usdt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.value--usdt .usdt-unit {
  font-weight: 600;
}

/* Rate info */
.rate-info {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.rate-row .value {
  color: var(--text);
  font-weight: 500;
}

.rate-row.highlight .value {
  color: var(--usdt-green);
  font-size: 1rem;
}

.rate-formula {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 4px;
  border-top: 1px dashed var(--card-border);
}

/* 充值档位 */
.tier-card {
  padding-bottom: 14px;
}

.tier-intro {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -4px 0 14px;
  line-height: 1.5;
}

.tier-ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tier-item.active {
  border-color: var(--usdt-green);
  background: rgba(38, 161, 123, 0.12);
  box-shadow: 0 0 16px var(--usdt-green-dim);
}

.tier-range {
  font-size: 0.875rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tier-item.active .tier-range {
  color: var(--usdt-green);
  font-weight: 600;
}

.tier-mult {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.tier-item.active .tier-mult {
  color: var(--usdt-green);
  text-shadow: 0 0 12px var(--usdt-glow);
}

.tier-example {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(38, 161, 123, 0.08), rgba(201, 162, 39, 0.08));
  border: 1px solid var(--card-border);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tier-example-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
}

.tier-example-text {
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.tier-example-text strong {
  color: var(--usdt-green);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #2ecc9a 0%, var(--usdt-green) 50%, #1e8a66 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--usdt-glow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--usdt-green);
  border: 1px solid var(--usdt-green);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, var(--gold));
  color: #0a0e0d;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  width: auto;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

.tag-pending { background: rgba(240, 173, 78, 0.2); color: var(--warning); }
.tag-paid { background: rgba(38, 161, 123, 0.2); color: var(--success); }
.tag-failed { background: rgba(231, 76, 92, 0.2); color: var(--danger); }
.tag-payout-pending { background: rgba(201, 162, 39, 0.2); color: var(--gold); }
.tag-payout-done { background: rgba(38, 161, 123, 0.2); color: var(--success); }

/* Order feed */
.order-feed {
  list-style: none;
}

.my-recent-orders__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -6px 0 12px;
  line-height: 1.45;
}

.order-feed-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.order-feed-item:last-child {
  border-bottom: none;
}

.order-feed-item.is-new {
  animation: order-feed-in 0.5s ease;
}

@keyframes order-feed-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(38, 161, 123, 0.12);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

.order-feed-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 4px;
}

.order-feed-row:last-child {
  margin-bottom: 0;
}

.order-feed-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-feed-value {
  font-size: 0.8125rem;
  color: var(--text);
  word-break: break-all;
}

.order-feed-value--amount {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-feed-value--hash {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
  color: var(--usdt-green);
  opacity: 0.92;
}

.order-feed-value--time {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* Tab bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: rgba(10, 14, 13, 0.95);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.tab-item.active {
  color: var(--usdt-green);
}

.tab-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--usdt-green);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 8px var(--usdt-glow);
}

.tab-icon svg {
  width: 22px;
  height: 22px;
}

.tab-label {
  font-size: 0.6875rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid var(--card-border);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

/* Intro · 平台优势 */
.intro-features {
  overflow: hidden;
}

.intro-features__lead {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -4px 0 16px;
  line-height: 1.5;
}

.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  text-align: left;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.feature-item:active {
  transform: scale(0.98);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 161, 123, 0.12);
  border: 1px solid rgba(38, 161, 123, 0.28);
  color: var(--usdt-green);
  box-shadow: 0 0 16px rgba(38, 161, 123, 0.12);
}

.feature-item__icon svg {
  width: 22px;
  height: 22px;
}

.feature-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.feature-item__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.feature-item__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.feature-item--coin .feature-item__icon {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.1);
}

.feature-item--speed .feature-item__icon {
  color: #5ec8f5;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.1);
}

.feature-item--shield .feature-item__icon {
  color: var(--usdt-green);
}

.feature-item--support .feature-item__icon {
  color: #a8c4ff;
  background: rgba(100, 149, 237, 0.1);
  border-color: rgba(100, 149, 237, 0.28);
}

.feature-item--agent .feature-item__icon {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
}

.feature-item--trust .feature-item__icon {
  color: #8edfc4;
  background: rgba(38, 161, 123, 0.15);
}

/* 客服项文案较长，占满一行更易读 */
.feature-item--support {
  grid-column: span 2;
}

@media (min-width: 520px) {
  .feature-item--support {
    grid-column: span 1;
  }
}

.company-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-quote {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--usdt-green);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--usdt-green);
}

.company-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Horizontal tabs */
.h-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.h-tab {
  flex: 1;
  min-width: max-content;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.h-tab.active {
  color: var(--usdt-green);
  font-weight: 600;
}

.h-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--usdt-green);
}

.tab-panel {
  display: none;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  min-height: 120px;
}

.tab-panel--rich {
  padding: 16px 4px 8px;
  text-align: left;
  min-height: auto;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.intro-prose {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.intro-prose p {
  margin-bottom: 12px;
}

.intro-prose p:last-child {
  margin-bottom: 0;
}

.intro-prose strong {
  color: var(--text);
  font-weight: 600;
}

.intro-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.intro-link-item:hover {
  border-color: rgba(38, 161, 123, 0.4);
  background: rgba(38, 161, 123, 0.08);
}

.intro-link-item__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-link-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.intro-link-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intro-link-item__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.intro-link-item__url {
  font-size: 0.75rem;
  color: var(--usdt-green);
}

.intro-link-item__arrow {
  color: var(--text-muted);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.intro-partners-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -6px 0 14px;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  width: 96px;
  height: 44px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}

/* My page */
.page-my .app-main {
  padding-top: 12px;
}

.my-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border-color: rgba(38, 161, 123, 0.22);
  background: linear-gradient(145deg, rgba(22, 40, 34, 0.95), rgba(14, 22, 20, 0.92));
}

.my-hero__glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--usdt-glow), transparent 68%);
  opacity: 0.45;
  pointer-events: none;
}

.my-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, var(--usdt-green) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}

.my-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.my-avatar {
  --avatar-hue: 160;
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.my-avatar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    var(--usdt-green),
    #3dd6a8,
    var(--gold),
    var(--usdt-green)
  );
  animation: avatar-ring-spin 8s linear infinite;
}

.my-avatar--agent .my-avatar__ring {
  background: conic-gradient(from 200deg, var(--gold), #f0d878, var(--usdt-green), var(--gold));
}

@keyframes avatar-ring-spin {
  to { transform: rotate(360deg); }
}

.my-avatar__face {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    hsl(var(--avatar-hue), 62%, 42%),
    hsl(calc(var(--avatar-hue) + 28), 55%, 28%)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.my-avatar__face::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 14px;
  right: 14px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.my-avatar__letter {
  position: relative;
  z-index: 1;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.my-hero__info {
  flex: 1;
  min-width: 0;
}

.my-hero__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-hero__badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(38, 161, 123, 0.18);
  color: var(--usdt-green);
  border: 1px solid rgba(38, 161, 123, 0.35);
}

.my-hero__badge.is-agent {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.4);
}

.my-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.my-hero__meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--usdt-green);
  opacity: 0.85;
}

.my-wallet {
  padding: 18px 16px;
}

.my-wallet__title,
.my-menu__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.my-wallet__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.my-wallet__divider {
  width: 1px;
  margin: 4px 12px;
  background: linear-gradient(180deg, transparent, var(--card-border), transparent);
}

.my-wallet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 6px;
}

.my-wallet__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.my-wallet__icon svg {
  width: 22px;
  height: 22px;
}

.my-wallet__icon--pending {
  background: rgba(38, 161, 123, 0.12);
  color: var(--usdt-green);
}

.my-wallet__icon--total {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

.my-wallet__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.my-wallet__value {
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.my-wallet__unit {
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.my-menu {
  padding: 16px 12px 12px;
}

.my-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.my-menu__item:hover,
.my-menu__item:active {
  background: rgba(38, 161, 123, 0.08);
}

.my-menu__item--danger {
  color: var(--danger);
}

.my-menu__item--danger:hover,
.my-menu__item--danger:active {
  background: rgba(231, 76, 92, 0.08);
}

.my-menu__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-menu__icon svg {
  width: 20px;
  height: 20px;
}

.my-menu__icon--orders { background: rgba(38, 161, 123, 0.14); color: var(--usdt-green); }
.my-menu__icon--agent { background: rgba(201, 162, 39, 0.14); color: var(--gold); }
.my-menu__icon--franchise { background: rgba(100, 149, 237, 0.14); color: #7eb8ff; }
.my-menu__icon--cs { background: rgba(56, 189, 248, 0.12); color: #5ec8f5; }
.my-menu__icon--pwd { background: rgba(168, 130, 255, 0.12); color: #c4a8ff; }
.my-menu__icon--logout { background: rgba(231, 76, 92, 0.12); color: var(--danger); }

.my-menu__text {
  flex: 1;
  text-align: left;
}

.my-menu__arrow {
  color: var(--text-muted);
  font-size: 1.125rem;
  opacity: 0.7;
}

/* Legacy profile / menu (other pages may still use) */
.profile-card {
  text-align: center;
  padding-top: 8px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--usdt-green-dim), var(--gold-dim));
  border: 2px solid var(--usdt-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--usdt-green);
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.profile-type {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
  background: var(--usdt-green-dim);
  color: var(--usdt-green);
}

.profile-type.agent {
  background: var(--gold-dim);
  color: var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat-box {
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.stat-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-box .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 4px;
}

.menu-list {
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item .arrow {
  color: var(--text-muted);
}

/* Order list */
.order-card {
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.order-no {
  font-size: 0.8125rem;
  font-family: monospace;
  color: var(--text-muted);
}

.order-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}

.order-meta .amount {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}

.order-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Pay page */
.pay-page {
  text-align: center;
}

.pay-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 50%;
}

.pay-row {
  margin-bottom: 16px;
  text-align: left;
}

.pay-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pay-value {
  font-size: 1rem;
  word-break: break-all;
}

.pay-value.large {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
}

.pay-address-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pay-address-wrap .pay-value {
  flex: 1;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 0.8125rem;
}

.countdown {
  font-size: 2rem;
  font-weight: 700;
  color: var(--usdt-green);
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}

.countdown.expired {
  color: var(--danger);
}

.pay-tip {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px;
  background: rgba(38, 161, 123, 0.08);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

/* Agent */
.invite-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px dashed var(--usdt-green);
  margin-bottom: 16px;
}

.invite-code {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  font-family: monospace;
}

.invite-list-item {
  padding: 14px;
  border-bottom: 1px solid var(--card-border);
}

.invite-list-item:last-child {
  border-bottom: none;
}

.invite-detail {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.invite-detail.open {
  display: block;
}

.invite-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-muted);
}

.invite-code--5 {
  font-size: 2rem;
  letter-spacing: 8px;
}

.invite-code-box--compact {
  margin-bottom: 0;
}

.commission-banner {
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 161, 123, 0.15), rgba(201, 162, 39, 0.1));
  border: 1px solid var(--card-border);
}

.commission-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.commission-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}

.commission-value span {
  font-size: 0.875rem;
  color: var(--usdt-green);
  font-weight: 600;
}

.withdraw-form {
  margin-top: 4px;
}

.empty-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 20px 0;
}

.record-list {
  list-style: none;
}

.record-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.record-item:last-child {
  border-bottom: none;
}

.record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.record-amount {
  font-weight: 600;
  color: var(--gold);
}

.record-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.record-addr {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
  font-family: monospace;
}

.invite-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.invite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.invite-table th,
.invite-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.invite-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.6875rem;
}

.invite-table td.text-gold {
  color: var(--gold);
  font-weight: 600;
}

@media (min-width: 768px) {
  .invite-table {
    font-size: 0.8125rem;
  }
}

/* Auth */
.auth-page {
  max-width: 400px;
  margin: 0 auto;
  padding-top: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--usdt-green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-back-home {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-back-home:hover {
  color: var(--usdt-green);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a9a94' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.menu-item-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.modal-confirm {
  border-radius: var(--radius-lg);
  max-width: 340px;
  margin: auto;
  transform: scale(0.95);
}

.modal-overlay.open .modal-confirm {
  transform: scale(1);
}

.modal-overlay.open .modal-confirm {
  transform: translateY(0);
}

.modal-confirm .confirm-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-overlay .modal {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
  }

  .modal-overlay.open .modal {
    transform: scale(1);
  }
}

.alert {
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.alert-error {
  background: rgba(231, 76, 92, 0.15);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 92, 0.3);
}

.alert-success {
  background: rgba(38, 161, 123, 0.15);
  color: var(--success);
  border: 1px solid var(--card-border);
}

.alert-warn {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(22, 32, 28, 0.95);
  border: 1px solid var(--usdt-green);
  border-radius: 24px;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 300;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-title-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.text-gold {
  color: var(--gold);
  font-weight: 600;
}

/* ========== 子页面（订单 / 加盟 / 改密） ========== */
.page-orders .app-main,
.page-franchise .app-main,
.page-password .app-main {
  position: relative;
}

.subpage-header {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 161, 123, 0.22);
  background: linear-gradient(145deg, rgba(18, 28, 26, 0.95), rgba(10, 16, 14, 0.92));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.subpage-header__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 14px;
}

.subpage-header__back:hover {
  color: var(--usdt-green);
}

.subpage-header__main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.subpage-header__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 161, 123, 0.12);
  border: 1px solid rgba(38, 161, 123, 0.3);
  color: var(--usdt-green);
}

.subpage-header__icon svg {
  width: 24px;
  height: 24px;
}

.subpage-header__icon--franchise {
  color: #7eb8ff;
  background: rgba(100, 149, 237, 0.12);
  border-color: rgba(100, 149, 237, 0.28);
}

.subpage-header__icon--password {
  color: #c4a8ff;
  background: rgba(168, 130, 255, 0.1);
  border-color: rgba(168, 130, 255, 0.28);
}

.subpage-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.subpage-header__desc {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sub-card {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 28, 26, 0.9), rgba(10, 16, 14, 0.94));
  border: 1px solid rgba(38, 161, 123, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.sub-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.sub-empty {
  text-align: center;
  padding: 36px 20px;
}

.sub-empty__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(38, 161, 123, 0.1);
  color: var(--usdt-green);
  margin-bottom: 14px;
}

.sub-empty__icon svg {
  width: 28px;
  height: 28px;
}

.sub-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.sub-empty__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.sub-empty__btn {
  margin-top: 18px;
  width: auto;
  min-width: 120px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-v2 {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
}

.order-card-v2__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.order-card-v2__badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 161, 123, 0.12);
  border: 1px solid rgba(38, 161, 123, 0.25);
  color: var(--usdt-green);
}

.order-card-v2__badge svg {
  width: 22px;
  height: 22px;
}

.order-card-v2__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.order-card-v2__amount span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--usdt-green);
}

.order-card-v2__no {
  margin-top: 4px;
  font-size: 0.75rem;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-muted);
  word-break: break-all;
}

.order-card-v2__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.order-card-v2__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-card-v2__meta dt {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.order-card-v2__meta dd {
  font-size: 0.8125rem;
  color: var(--text);
  margin: 0;
}

.order-card-v2__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.order-card-v2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-card-v2__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--usdt-green);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(38, 161, 123, 0.4);
  background: rgba(38, 161, 123, 0.1);
}

.order-card-v2__link:hover {
  background: rgba(38, 161, 123, 0.18);
}

.franchise-fee-banner {
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 161, 123, 0.14), rgba(201, 162, 39, 0.1));
  border: 1px solid rgba(38, 161, 123, 0.25);
}

.franchise-fee-banner--inline {
  margin-bottom: 14px;
}

.franchise-fee-banner__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.franchise-fee-banner__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.franchise-fee-banner__value small {
  font-size: 0.875rem;
  color: var(--usdt-green);
  font-weight: 600;
}

.franchise-perks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.franchise-perks li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.franchise-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--usdt-green);
  box-shadow: 0 0 6px var(--usdt-glow);
}

.pay-panel__row {
  margin-bottom: 0;
}

.pay-panel__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pay-panel__address {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pay-panel__address code {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.75rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
}

.pay-panel__tip {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(38, 161, 123, 0.08);
  border: 1px solid var(--card-border);
}

.security-tips {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--card-border);
}

.security-tips li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

.security-tips li:last-child {
  margin-bottom: 0;
}

.security-tips li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--usdt-green);
}

.sub-form__submit {
  margin-top: 6px;
}

.sub-input:focus {
  border-color: var(--usdt-green);
  box-shadow: 0 0 0 3px var(--usdt-green-dim);
}

.form-label__icon {
  margin-right: 4px;
}

.db-warn {
  background: rgba(231, 76, 92, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

/* ========== Home page · 区块链黑科技风 ========== */
body.page-home {
  min-height: 0;
  height: auto;
}

.page-home.app-shell {
  min-height: 0;
  height: auto;
}

.page-home .app-main {
  position: relative;
}

.page-home .app-main.has-tabbar,
.page-home .app-main.no-tabbar {
  padding-bottom: 48px;
}

.page-home .home-orders-panel {
  margin-bottom: 0;
}

.page-home .app-main > section,
.page-home .app-main > .db-warn {
  position: relative;
  z-index: 1;
}

.page-home .app-main > section:last-of-type {
  margin-bottom: 0;
}

.page-home .app-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(38, 161, 123, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 161, 123, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
}

/* 弹窗在 main 外渲染，关闭时不占文档流 */
#address-modal.modal-overlay {
  position: fixed;
  z-index: 200;
}

.text-green {
  color: var(--usdt-green);
}

/* Hero */
.home-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(38, 161, 123, 0.35);
  background:
    linear-gradient(160deg, rgba(8, 24, 20, 0.98) 0%, rgba(12, 18, 16, 0.95) 45%, rgba(6, 12, 10, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(38, 161, 123, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(38, 161, 123, 0.12);
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 161, 123, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 161, 123, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent);
}

.home-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--usdt-green), transparent);
  box-shadow: 0 0 12px var(--usdt-glow);
  animation: home-scan 4s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes home-scan {
  0%, 100% { top: 8%; opacity: 0; }
  10% { opacity: 0.8; }
  50% { top: 88%; opacity: 0.6; }
  90% { opacity: 0; }
}

.home-hero__chain {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  opacity: 0.55;
}

.home-hero__node {
  fill: var(--bg);
  stroke: var(--usdt-green);
  stroke-width: 1.5;
}

.home-hero__node--pulse {
  fill: rgba(38, 161, 123, 0.25);
  animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.6; r: 6; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px var(--usdt-green)); }
}

.home-hero__content {
  position: relative;
  z-index: 1;
}

.home-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--usdt-green);
  padding: 4px 10px;
  border: 1px solid rgba(38, 161, 123, 0.4);
  border-radius: 4px;
  background: rgba(38, 161, 123, 0.08);
  font-family: ui-monospace, Consolas, monospace;
}

.home-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--usdt-green);
  box-shadow: 0 0 8px var(--usdt-green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.home-hero__title {
  margin-top: 14px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(100deg, #fff 0%, var(--usdt-green) 55%, #7ee8c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(38, 161, 123, 0.3);
}

.home-hero__sub {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28em;
}

.home-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-hero__badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--usdt-green);
  border: 1px solid rgba(38, 161, 123, 0.35);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.home-hero__badge--gold {
  color: var(--gold);
  border-color: var(--gold-dim);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(38, 161, 123, 0.2);
}

.home-hero__stat {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(38, 161, 123, 0.12);
}

.home-hero__stat-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero__stat-value {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text);
}

/* Cyber cards */
.home-card {
  position: relative;
  border-color: rgba(38, 161, 123, 0.22);
  background: linear-gradient(180deg, rgba(18, 28, 24, 0.92), rgba(10, 16, 14, 0.95));
  box-shadow:
    0 0 0 1px rgba(38, 161, 123, 0.06) inset,
    var(--shadow);
}

.home-card__corners::before,
.home-card__corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--usdt-green);
  border-style: solid;
  opacity: 0.65;
  pointer-events: none;
}

.home-card__corners::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.home-card__corners::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

.home-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.home-card__head .card-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 140px;
}

.home-card__head .card-title::before {
  display: none;
}

.home-card__icon {
  font-size: 1.125rem;
  color: var(--usdt-green);
  text-shadow: 0 0 12px var(--usdt-glow);
  line-height: 1;
}

.home-card__chip {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--usdt-green);
  padding: 3px 8px;
  border: 1px solid rgba(38, 161, 123, 0.4);
  border-radius: 3px;
  font-family: ui-monospace, Consolas, monospace;
  opacity: 0.85;
}

.home-input {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(38, 161, 123, 0.25);
  font-family: ui-monospace, Consolas, monospace;
}

.home-input:focus {
  box-shadow: 0 0 0 3px var(--usdt-green-dim), 0 0 20px rgba(38, 161, 123, 0.15);
}

.home-rate-info {
  border: 1px solid rgba(38, 161, 123, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

.home-btn-glow {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.home-btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.page-home .tier-item {
  border-color: rgba(38, 161, 123, 0.15);
  background: rgba(0, 0, 0, 0.28);
}

.page-home .tier-item.active {
  box-shadow: 0 0 20px rgba(38, 161, 123, 0.2), inset 0 0 20px rgba(38, 161, 123, 0.05);
}

/* Recent orders panel */
.home-orders-panel {
  padding-bottom: 12px;
}

.home-orders__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.home-orders__head .home-card__head {
  margin-bottom: 0;
  flex: 1;
}

.home-orders__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff6b7a;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 122, 0.4);
  border-radius: 4px;
  background: rgba(255, 107, 122, 0.08);
  font-family: ui-monospace, Consolas, monospace;
  flex-shrink: 0;
}

.home-orders__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b7a;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.home-orders__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-family: ui-monospace, Consolas, monospace;
  opacity: 0.85;
}

.order-feed--home .order-feed-item {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: nowrap;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(38, 161, 123, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.order-feed--home .order-feed-item:last-child {
  margin-bottom: 0;
}

.order-feed--home .order-feed-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.order-feed--home .order-feed-field--hash {
  flex: 2 1 40%;
}

.order-feed--home .order-feed-field--time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.order-feed--home .order-feed-label {
  flex-shrink: 0;
}

.order-feed--home .order-feed-value--hash {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal--cyber {
  border: 1px solid rgba(38, 161, 123, 0.35);
  box-shadow: 0 0 40px rgba(38, 161, 123, 0.15);
}

.modal-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.5;
}

.modal--announcement .announcement-body {
  margin-bottom: 20px;
}

.modal--announcement .announcement-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
  text-align: left;
}

.modal--announcement .announcement-body p:last-child {
  margin-bottom: 0;
}

.announcement-tg {
  color: var(--usdt-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal--announcement .btn-block {
  width: 100%;
}

.home-announcement-modal {
  z-index: 250;
}

/* Desktop */
@media (min-width: 768px) {
  html { font-size: 17px; }
  .app-shell { max-width: 480px; }
  .app-main { padding: 20px; }
}

@media (min-width: 1024px) {
  .app-shell.intro-wide,
  .app-shell.orders-wide {
    max-width: 720px;
  }

  .company-section {
    flex-direction: row;
    align-items: flex-start;
  }

  .company-quote {
    flex: 1;
  }

  .company-desc {
    flex: 1.2;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .feature-item--support {
    grid-column: span 1;
  }
}
