/* Layout - topbar + main + bottom nav */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + var(--safe-top)) 14px 12px;
    margin: 0;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    border-top: none;
    border-left: none;
    border-right: none;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 8px 20px rgba(168,128,255,0.35);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b0d1a;
    text-transform: uppercase;
    font-size: 14px;
}
.topbar-meta { display: flex; flex-direction: column; min-width: 0; }
.topbar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-tier {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
}
.pill-icon {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.pill-icon-img { width: 17px; height: 17px; object-fit: contain; flex: 0 0 auto; }
.pill-energy .pill-icon { color: var(--energy); text-shadow: 0 0 8px rgba(98,240,176,0.6); }
.pill-coin .pill-icon { color: var(--coin); }
.pill-token .pill-icon { color: var(--token); }

.icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text-1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover, .icon-btn:active { transform: scale(0.96); }

/* Main content region */
.page-root {
    padding: 16px 14px calc(var(--nav-height) + var(--safe-bottom) + 40px);
    max-width: 640px;
    margin: 0 auto;
}
.page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: page-enter var(--dur) var(--ease-out);
}
@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.section-title h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
}
.section-title .section-hint {
    font-size: 12px;
    color: var(--text-3);
}
