@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --pink: #ec4899;
  --bg: #e8ecf4;
  --text: #1e293b;
  --muted: #64748b;
  --glass: rgba(255,255,255,0.45);
  --glass-border: rgba(255,255,255,0.6);
  --font: "Inter", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpl-glass { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mesh-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(135deg, #e0e7ff, #fce7f3, #dbeafe); }
.mesh-bg__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6; animation: blob-move 20s ease-in-out infinite; }
.mesh-bg__blob--1 { width: 400px; height: 400px; background: var(--violet); top: -10%; left: -5%; }
.mesh-bg__blob--2 { width: 350px; height: 350px; background: var(--pink); bottom: 10%; right: -5%; animation-delay: -7s; }
.mesh-bg__blob--3 { width: 300px; height: 300px; background: var(--blue); top: 40%; left: 40%; animation-delay: -14s; }
@keyframes blob-move { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(30px, -20px); } 66% { transform: translate(-20px, 30px); } }

.page { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* Sidebar layout */
.glass-sidebar { width: 260px; flex-shrink: 0; padding: 24px 16px 24px 24px; position: sticky; top: 0; height: 100vh; display: none; }
.glass-sidebar__panel { height: 100%; padding: 28px 24px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--violet), var(--blue)); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; overflow: hidden; }
.brand__logo--image { background: #fff; padding: 4px; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.brand__name { font-weight: 700; font-size: 15px; }
.glass-sidebar__nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.glass-sidebar__nav a { padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.glass-sidebar__nav a:hover { background: rgba(255,255,255,.5); color: var(--text); }

.glass-main { flex: 1; min-width: 0; padding: 16px 16px 100px; max-width: 800px; margin: 0 auto; }
.glass-top { display: flex; justify-content: flex-end; padding: 8px 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 14px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; }
.btn--glass { background: rgba(255,255,255,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.7); color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.btn--glass:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,.2); background: rgba(255,255,255,0.7); }
.btn--lg { padding: 14px 28px; font-size: 15px; background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; border: none; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

/* Glass panels */
.glass-panel { margin-bottom: 20px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0,0,0,.06); overflow: hidden; }
.glass-panel--hero { margin-bottom: 24px; }
.glass-panel--cta { text-align: center; }
.glass-panel__inner { padding: 32px 28px; }
.glass-panel__inner--center { text-align: center; }
.glass-panel__inner--center h2 { margin: 0 0 8px; font-size: clamp(20px, 4vw, 26px); }
.glass-panel__inner--center p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

.glass-hero__badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(139,92,246,.15); color: var(--violet); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.glass-hero__title { font-size: clamp(26px, 5vw, 38px); font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
.glass-hero__title span { background: linear-gradient(135deg, var(--violet), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass-hero__desc { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.glass-hero__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.glass-hero__amount { padding: 16px 24px; border-radius: 16px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); }
.glass-hero__num { font-size: 32px; font-weight: 800; color: var(--violet); }
.glass-hero__unit { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.glass-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.glass-hero__chips span { padding: 5px 12px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.5); color: var(--muted); }

.glass-head span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.glass-head h2 { font-size: clamp(20px, 4vw, 26px); font-weight: 700; margin: 0 0 20px; }

/* Glass stepper */
.glass-stepper { display: flex; flex-direction: column; gap: 12px; }
.glass-stepper__item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); }
.glass-stepper__dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.glass-stepper__item h3 { margin: 0 0 2px; font-size: 15px; }
.glass-stepper__item p { margin: 0; font-size: 13px; color: var(--muted); }

/* Glass wallets */
.glass-wallets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wallet-item { padding: 20px 16px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); transition: transform .25s, box-shadow .25s; }
.wallet-item--link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(139,92,246,.15); }
.wallet-item__icon { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 10px; display: grid; place-items: center; overflow: hidden; }
.wallet-item__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.wallet-item__icon svg { width: 24px; height: 24px; }
.wallet-item__name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.wallet-item__note { font-size: 11px; color: var(--muted); }

.glass-note { display: flex; gap: 14px; margin-top: 20px; padding: 16px; border-radius: 14px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.15); }
.glass-note svg { width: 24px; color: var(--blue); flex-shrink: 0; }
.glass-note strong { display: block; font-size: 13px; margin-bottom: 2px; }
.glass-note p { margin: 0; font-size: 12px; color: var(--muted); }

/* Glass disclosure */
.glass-disclosure { display: flex; flex-direction: column; gap: 12px; }
.disclosure-card { padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); }
.disclosure-card--loading { opacity: .5; }
.disclosure-card--invalid { border-color: rgba(248,113,113,.4); }
.disclosure-card__label { font-size: 13px; font-weight: 600; color: var(--violet); margin-bottom: 4px; }
.disclosure-card__address { font-size: 10px; color: var(--muted); word-break: break-all; margin-bottom: 10px; font-family: monospace; }
.disclosure-card__usdt { font-size: 22px; font-weight: 800; color: var(--blue); }
.disclosure-card__delta { font-size: 11px; margin-left: 6px; }
.disclosure-card__delta.is-up { color: #16a34a; }
.disclosure-card__delta.is-down { color: #dc2626; }
.disclosure-card__trx { font-size: 12px; color: var(--muted); margin-top: 4px; }
.disclosure-card__link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--violet); font-weight: 500; }
.disclosure-meta { font-size: 12px; color: var(--muted); margin-top: 16px; }

.foot { padding: 24px 0; text-align: center; font-size: 12px; color: var(--muted); }
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.75); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.8); }
.mobile-bar .btn { width: 100%; }

@media (min-width: 960px) {
  .glass-sidebar { display: block; }
  .glass-top { display: none; }
  .glass-main { margin: 0; padding: 24px 24px 40px 0; max-width: none; }
}

@media (max-width: 480px) {
  .glass-wallets { grid-template-columns: 1fr; }
  .glass-hero__row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-bg__blob { animation: none; }
}
