* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-1: #06111f;
    --bg-2: #0b1728;
    --panel: rgba(14, 22, 38, 0.88);
    --panel-soft: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #9fb0c7;
    --green: #22c55e;
    --green-2: #16a34a;
    --cyan: #22d3ee;
    --orange: #ff8a00;
    --orange-2: #ff9f2f;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
body {
    font-family: Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 26%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
    padding: 14px 14px 108px;
}
.app-shell { width: 100%; max-width: 460px; margin: 0 auto; }
.top-bar {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 16px; border-radius: 24px; margin-bottom: 16px; overflow: hidden;
    background: linear-gradient(135deg, rgba(10,18,32,.90), rgba(14,24,40,.82));
    border: 1px solid rgba(255,255,255,0.10); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.top-bar-bg {
    position: absolute; inset: 0; border-radius: 24px;
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.20), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
    pointer-events: none;
}
.user-box { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 100%; }
.user-avatar-ring {
    width: 58px; height: 58px; border-radius: 50%; padding: 2px;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    box-shadow: 0 0 0 3px rgba(255,255,255,.04), 0 8px 20px rgba(34,211,238,.18);
    flex-shrink: 0;
}
.user-avatar, .avatar-fallback {
    width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.user-avatar { background: rgba(255,255,255,.08); }
.avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { font-size: 20px; font-weight: 700; color: white; background: linear-gradient(135deg, #0f172a, #1e293b); }
.user-meta { min-width: 0; flex: 1; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: #9be7f5; margin-bottom: 4px; }
.user-name { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.user-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 1.45; }
.user-username { color: #67e8f9; font-weight: 600; }
.user-id { color: rgba(255,255,255,0.72); }
.page-body { display: grid; gap: 16px; }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
    box-shadow: var(--shadow);
}
.hero-card {
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}
.hero-badge {
    display: inline-block; padding: 8px 12px; border-radius: 999px;
    background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.18);
    color: #cffafe; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.hero-title { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.hero-text { color: var(--muted); line-height: 1.75; font-size: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-title { font-size: 20px; font-weight: 700; }
.section-sub { font-size: 12px; color: var(--muted); }
.grid-2, .wallet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card, .wallet-card, .quick-link {
    background: var(--panel-soft); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 16px;
}
.stat-card small, .wallet-card small { color: var(--muted); display: block; margin-bottom: 8px; font-size: 12px; }
.stat-card strong, .wallet-card strong { font-size: 22px; display: block; }
.muted { color: var(--muted); line-height: 1.7; font-size: 14px; }
.quick-links { display: grid; gap: 12px; }
.quick-link { text-decoration: none; color: var(--text); }
.quick-link-title { font-weight: 700; margin-bottom: 6px; }
.quick-link-text { color: var(--muted); font-size: 13px; line-height: 1.6; }
.copy-btn, .action-btn, .ghost-btn {
    width: 100%; border: 0; padding: 16px 18px; border-radius: 18px; font-size: 16px; font-weight: 700; cursor: pointer; color: white;
}
.copy-btn { background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 14px 30px rgba(255,138,0,.22); }
.action-btn { background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 14px 30px rgba(34,197,94,.22); }
.ghost-btn { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ref-link {
    width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04); color: #fff; font-size: 14px; word-break: break-all;
}
.status-box { display: none; margin-top: 14px; padding: 13px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.status-success { display: block; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.22); color: #dcfce7; }
.status-error { display: block; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.22); color: #fecaca; }
.profile-box { display: grid; gap: 12px; }
.profile-row {
    display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.profile-label { color: var(--muted); font-size: 13px; }
.profile-value { font-size: 14px; font-weight: 700; text-align: right; word-break: break-word; }
.bottom-nav-wrap {
    position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
    width: calc(100% - 22px); max-width: 460px; z-index: 99;
}
.bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; border-radius: 24px;
    background: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.nav-btn {
    text-decoration: none; border-radius: 18px; padding: 10px 6px; min-height: 62px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px; color: #1f2937; transition: .2s ease;
}
.nav-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn span { font-size: 12px; font-weight: 700; line-height: 1; }
.nav-btn.active { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 8px 20px rgba(255,138,0,.30); }
@media (max-width: 420px) {
    body { padding-left: 10px; padding-right: 10px; }
    .user-name { font-size: 16px; }
    .hero-title { font-size: 26px; }
    .nav-btn span { font-size: 11px; }
}
