.page-user {
    color: #07163c;
}

.user-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.user-hero,
.account-card,
.history-panel {
    border: 1px solid rgba(17, 38, 76, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 252, 0.94);
    box-shadow: 0 16px 36px rgba(3, 12, 38, 0.12);
}

.user-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(18px, 3vw, 30px);
}

.eyebrow {
    margin: 0 0 8px;
    color: #214a86;
    font-size: 13px;
    font-weight: 700;
}

.user-hero h1,
.history-panel h2 {
    margin: 0;
    color: #07163c;
    line-height: 1.15;
}

.user-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
}

.hero-subtitle {
    margin: 10px 0 0;
    color: #647086;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ghost-btn,
.danger-btn,
.text-link {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ghost-btn {
    border: 1px solid rgba(33, 74, 134, 0.22);
    background: #fff;
    color: #07163c;
}

.danger-btn {
    border: 1px solid rgba(139, 63, 70, 0.22);
    background: #8b3f46;
    color: #fff;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-card {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.card-label {
    color: #647086;
    font-size: 13px;
    font-weight: 700;
}

.account-card strong {
    font-size: clamp(22px, 2.4vw, 32px);
}

.account-card small {
    color: #647086;
    line-height: 1.5;
}

.history-panel {
    padding: clamp(16px, 2.4vw, 24px);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.text-link {
    color: #214a86;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.history-card {
    min-width: 0;
    border: 1px solid rgba(17, 38, 76, 0.12);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.history-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e7eef2;
}

.history-meta {
    padding: 10px;
}

.history-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.history-meta small {
    display: block;
    margin-top: 4px;
    color: #647086;
}

.empty-state {
    padding: 22px;
    border: 1px dashed rgba(33, 74, 134, 0.22);
    border-radius: 7px;
    color: #647086;
    text-align: center;
}

@media (max-width: 780px) {
    .user-hero,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .user-actions {
        justify-content: stretch;
    }

    .user-actions > * {
        flex: 1 1 140px;
        text-align: center;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
