/* Profile page */
.profile {
    --ring: rgba(255,255,255,0.08);
    --muted: rgba(255,255,255,0.6);
}

    .profile .shell {
        border-radius: 16px;
        overflow: hidden;
    }

    .profile .cover {
        height: 90px;
        border-radius: 16px 16px 0 0;
        background: radial-gradient(1200px 220px at 20% -10%, rgba(124,58,237,.35), transparent), radial-gradient(1200px 220px at 70% -20%, rgba(37,99,235,.30), transparent), linear-gradient(90deg, rgba(17,24,39,.8), rgba(17,24,39,.8));
        border-bottom: 1px solid var(--ring);
    }

    .profile .head {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: -36px;
        padding: 0 20px 18px;
    }

    .profile .avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg,#7c3aed,#2563eb);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
        box-shadow: 0 8px 22px rgba(0,0,0,.35);
        border: 3px solid #0f172a;
    }

    .profile .name {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .profile .sub {
        color: var(--muted);
        font-size: .9rem;
        margin-top: 2px;
    }

    .profile .chip {
        background: #111827;
        color: #e5e7eb;
        border: 1px solid var(--ring);
        padding: 3px 10px;
        border-radius: 9999px;
        font-size: .75rem;
        font-weight: 600;
    }

    .profile .grid {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(12, 1fr);
    }

    .profile .left {
        grid-column: span 7;
    }

    .profile .right {
        grid-column: span 5;
    }

@media (max-width: 900px) {
    .profile .left, .profile .right {
        grid-column: 1 / -1;
    }
}

.profile .cardish {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 16px 18px;
}

.profile dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 12px;
    column-gap: 18px;
}

.profile dt {
    color: var(--muted);
}

.profile dd {
    margin: 0;
}

.profile .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.profile .ic {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(124,58,237,.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Small utility */
.profile .sep-dashed {
    border-top: 1px dashed var(--ring);
    margin-top: 10px;
    padding-top: 10px;
}

/* balance details reveal */
.balance-details {
    transition: opacity .18s ease, transform .18s ease;
    opacity: 1;
    transform: translateY(0);
}

    .balance-details[hidden] {
        display: block !important; /* let it transition; visually hidden */
        opacity: 0;
        transform: translateY(-4px);
        height: 0;
        overflow: hidden;
    }