/* Member portal — card styling aligned with MAUI HomePage visual language */
.member-portal-page {
    max-width: 100%;
    overflow-x: hidden;
}

.member-portal-placeholder {
    border-radius: 16px;
    background-color: var(--mud-palette-surface);
}

.member-portal-hero-surface {
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        var(--mud-palette-primary) 0%,
        var(--mud-palette-primary-darken) 100%
    );
    color: var(--mud-palette-primary-text);
}

.member-portal-hero-muted {
    opacity: 0.85;
}

.member-portal-hero-amount {
    color: var(--mud-palette-primary-text);
}

.member-portal-hero-divider {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.member-portal-hero-skeleton {
    border-radius: 20px;
}

.member-portal-quick-tile {
    border-radius: 16px;
    min-height: 88px;
    transition: box-shadow 0.2s ease;
}

.member-portal-quick-tile-link {
    display: block;
    min-height: 88px;
    text-decoration: none;
    color: inherit;
}

.member-portal-quick-link-icon {
    color: var(--mud-palette-secondary);
    font-size: 1.375rem;
}

.member-portal-quick-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-portal-activity-card {
    border-radius: 16px;
}

.member-portal-activity-skeleton {
    border-radius: 16px;
}

.member-portal-activity-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--mud-palette-success-hover);
}

.member-portal-amount {
    font-variant-numeric: tabular-nums;
}

.member-portal-card-clickable {
    cursor: pointer;
}

.member-portal-card-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-portal-see-more {
    min-height: 44px;
}

.member-portal-filter-card .mud-input-control {
    width: 100%;
}

.member-portal-filter-divider {
    border-color: var(--mud-palette-lines-default) !important;
    opacity: 0.7;
}

.member-portal-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-portal-filter-btn {
    min-height: 44px;
    text-transform: none !important;
    letter-spacing: normal;
    font-weight: 500;
}

@media (min-width: 600px) {
    .member-portal-filter-actions {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
    }

    .member-portal-filter-btn {
        min-width: 148px;
    }
}

@media (max-width: 599px) {
    .member-portal-filter-actions .member-portal-filter-btn {
        width: 100%;
    }
}

@media (max-width: 599px) {
    .member-portal-quick-links .mud-grid-item {
        padding: 4px;
    }

    .member-portal-quick-tile {
        min-height: 88px;
        padding: 12px 8px !important;
    }
}

@media (max-width: 599px) {
    .member-portal-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Profile page */
.member-portal-profile-hero .mud-typography-h4 {
    font-weight: 700;
}

.member-portal-profile-photo-avatar,
.shared-profile-photo-avatar {
    width: 96px !important;
    height: 96px !important;
    border-radius: 12px !important;
    border: 2px solid var(--mud-palette-lines-default);
}

.member-portal-profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mud-palette-success);
    display: inline-block;
}

.member-portal-profile-insights {
    border-radius: 16px;
    background-color: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
}

.member-portal-profile-doc-card {
    height: auto;
}

.member-portal-profile-doc-row {
    align-items: flex-start;
}

.member-portal-profile-doc-preview-btn {
    min-height: 36px;
    text-transform: none;
}
