:root {
    --wallet-bg: #07111f;
    --wallet-surface: rgba(12, 24, 42, 0.86);
    --wallet-surface-strong: rgba(15, 32, 56, 0.96);
    --wallet-line: rgba(117, 249, 255, 0.16);
    --wallet-text: #eef7ff;
    --wallet-muted: #8da4bf;
    --wallet-accent: #37f3ff;
    --wallet-accent-2: #6dffb3;
    --wallet-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body.wallet-shell {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--wallet-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(55, 243, 255, 0.18), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(109, 255, 179, 0.12), transparent 28%),
        linear-gradient(180deg, #050b14 0%, #08111d 42%, #0b1424 100%);
}

.wallet-app-frame {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.wallet-hero,
.wallet-card,
.wallet-balance-card,
.wallet-mini-card {
    background: var(--wallet-surface);
    border: 1px solid var(--wallet-line);
    box-shadow: var(--wallet-shadow);
    backdrop-filter: blur(18px);
}

.wallet-hero,
.wallet-balance-card,
.wallet-card {
    border-radius: 28px;
}

.wallet-hero {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.wallet-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -30% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 243, 255, 0.25), transparent 70%);
}

.wallet-hero h1,
.wallet-topbar h1,
.wallet-balance-card h2,
.wallet-card h2,
.wallet-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 10px 0 0;
}

.wallet-hero h1 {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
    line-height: 0.98;
}

.wallet-hero p,
.wallet-card p,
.wallet-topbar p,
.wallet-status,
.wallet-mini-card span,
.wallet-inline-note span,
.wallet-feature-list,
.wallet-detail-list dt {
    color: var(--wallet-muted);
}

.wallet-chip,
.wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wallet-chip {
    background: rgba(55, 243, 255, 0.12);
    color: var(--wallet-accent);
}

.wallet-badge {
    background: rgba(109, 255, 179, 0.14);
    color: var(--wallet-accent-2);
}

.wallet-hero-stats,
.wallet-mini-grid,
.wallet-card-stack {
    display: grid;
    gap: 14px;
}

.wallet-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.wallet-hero-stats article,
.wallet-mini-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(117, 249, 255, 0.08);
}

.wallet-hero-stats strong,
.wallet-mini-card strong,
.wallet-inline-note strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.wallet-card-stack,
.wallet-mini-grid,
.wallet-dashboard-shell {
    margin-top: 16px;
}

.wallet-card {
    padding: 22px;
}

.wallet-card-primary {
    background: linear-gradient(180deg, rgba(11, 25, 43, 0.96), rgba(10, 19, 33, 0.92));
}

.wallet-card-secondary {
    background: linear-gradient(180deg, rgba(10, 21, 36, 0.94), rgba(8, 15, 28, 0.92));
}

.wallet-form,
.wallet-detail-list {
    display: grid;
    gap: 14px;
}

.wallet-field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.wallet-field input {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(117, 249, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--wallet-text);
    padding: 15px 16px;
    outline: none;
}

.wallet-field input:focus {
    border-color: rgba(55, 243, 255, 0.48);
    box-shadow: 0 0 0 4px rgba(55, 243, 255, 0.1);
}

.wallet-button,
.wallet-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.wallet-button {
    background: linear-gradient(135deg, var(--wallet-accent) 0%, #1bb8ff 100%);
    color: #03111c;
}

.wallet-link-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--wallet-text);
}

.wallet-inline-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.wallet-status {
    min-height: 22px;
    margin: 0;
    font-size: 0.92rem;
}

.wallet-dashboard-shell {
    display: grid;
    gap: 14px;
}

.wallet-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wallet-topbar h1 {
    font-size: 2rem;
}

.wallet-topbar p {
    margin: 8px 0 0;
    word-break: break-all;
}

.wallet-balance-card {
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wallet-balance-card h2 {
    font-size: 2rem;
}

.wallet-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-detail-list div {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-detail-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wallet-detail-list dd {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.wallet-feature-list {
    margin: 14px 0 0;
    padding-left: 18px;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .wallet-app-frame {
        padding: 16px 12px 24px;
    }

    .wallet-hero-stats,
    .wallet-mini-grid {
        grid-template-columns: 1fr;
    }

    .wallet-topbar,
    .wallet-balance-card,
    .wallet-inline-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-topbar .wallet-link-button {
        width: auto;
    }
}