.storefront-account-page,
.auth-page {
    padding-top: 0.35rem;
}

.storefront-account-page .profile-hero-shell,
.storefront-account-page .profile-panel,
.storefront-account-page .profile-side-panel,
.auth-page .auth-panel {
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 244, 0.95));
    box-shadow: var(--store-shadow);
}

.storefront-account-page .profile-hero-shell,
.storefront-account-page .profile-panel,
.storefront-account-page .profile-side-panel,
.auth-page .auth-panel {
    padding: 1.15rem;
}

.storefront-account-page .profile-hero-shell {
    margin-bottom: 1rem;
}

.storefront-account-page .profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.storefront-account-page .profile-identity-card,
.storefront-account-page .profile-hero-stat,
.storefront-account-page .profile-side-panel__body,
.auth-page .auth-benefits {
    border-radius: 22px;
    border: 1px solid var(--store-line);
    background: #fff;
    box-shadow: var(--app-shadow-soft);
}

.storefront-account-page .profile-identity-card,
.storefront-account-page .profile-side-panel__body,
.auth-page .auth-benefits {
    padding: 1rem;
}

.storefront-account-page .profile-identity-card {
    display: grid;
    gap: 0.9rem;
}

.storefront-account-page .profile-identity-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.storefront-account-page .profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--store-accent) 0%, #0f766e 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.22);
}

.storefront-account-page .profile-avatar span {
    line-height: 1;
}

.storefront-account-page .profile-identity-name {
    margin: 0;
    color: var(--store-ink);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.storefront-account-page .profile-identity-email,
.storefront-account-page .profile-identity-note,
.storefront-account-page .profile-side-panel__body p,
.auth-page .auth-benefits li,
.auth-page .auth-panel__support {
    margin: 0;
    color: var(--store-muted);
    line-height: 1.75;
}

.storefront-account-page .profile-hero-actions,
.storefront-account-page .profile-panel__actions,
.auth-page .auth-panel form .d-grid,
.auth-page .auth-panel .auth-alt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.storefront-account-page .profile-hero-metrics {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-account-page .profile-hero-stat {
    padding: 0.95rem 1rem;
}

.storefront-account-page .profile-hero-stat span,
.storefront-account-page .profile-identity-kicker,
.storefront-account-page .profile-side-panel__body small {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--store-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.storefront-account-page .profile-hero-stat strong,
.storefront-account-page .profile-side-panel__body strong {
    color: var(--store-ink);
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.storefront-account-page .storefront-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 1rem;
}

.storefront-account-page .storefront-account-main,
.storefront-account-page .storefront-account-sidebar {
    display: grid;
    gap: 1rem;
}

.storefront-account-page .profile-panel,
.storefront-account-page .profile-side-panel {
    display: grid;
    gap: 1rem;
}

.storefront-account-page .profile-panel__head,
.storefront-account-page .profile-side-panel__head,
.auth-page .auth-panel__header {
    display: grid;
    gap: 0.45rem;
}

.storefront-account-page .profile-panel__head h2,
.storefront-account-page .profile-side-panel__head h2,
.auth-page .auth-panel__header h1,
.auth-page .auth-panel__header h2 {
    margin: 0;
    color: var(--store-ink);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.storefront-account-page .profile-panel__head p,
.storefront-account-page .profile-side-panel__head p,
.auth-page .auth-panel__header p {
    margin: 0;
    color: var(--store-muted);
    line-height: 1.75;
}

.storefront-account-page .profile-panel__kicker,
.storefront-account-page .profile-side-panel__kicker,
.auth-page .auth-panel__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--store-accent-soft);
    color: var(--store-accent);
    font-size: 0.76rem;
    font-weight: 800;
}

.storefront-account-page .profile-panel .info-list,
.storefront-account-page .profile-side-panel .info-list {
    display: grid;
    gap: 0.8rem;
}

.storefront-account-page .profile-panel .info-item,
.storefront-account-page .profile-side-panel .info-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--store-line);
}

.storefront-account-page .profile-panel .info-item:last-child,
.storefront-account-page .profile-side-panel .info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.storefront-account-page .profile-panel .label,
.storefront-account-page .profile-side-panel .label {
    color: var(--store-muted);
    font-size: 0.9rem;
}

.storefront-account-page .profile-panel .value,
.storefront-account-page .profile-side-panel .value {
    color: var(--store-ink);
    font-weight: 800;
    text-align: left;
}

.storefront-account-page .profile-currency-stack,
.storefront-account-page .password-form {
    display: grid;
    gap: 0.85rem;
}

.storefront-account-page .profile-password-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-account-page .profile-panel .form-input,
.storefront-account-page .profile-panel .form-control,
.storefront-account-page .profile-panel .form-select,
.auth-page .auth-panel .form-control {
    min-height: 52px;
    border-radius: 18px;
    border: 1px solid var(--store-line);
    background: #fff;
    box-shadow: none;
}

.storefront-account-page .profile-side-panel--logout form,
.auth-page .auth-panel form {
    margin: 0;
}

.auth-page .container {
    max-width: 560px;
}

.auth-page .auth-panel {
    display: grid;
    gap: 1rem;
}

.auth-page .auth-benefits {
    display: grid;
    gap: 0.65rem;
}

.auth-page .auth-benefits ul {
    margin: 0;
    padding-inline-start: 1rem;
    display: grid;
    gap: 0.45rem;
}

.auth-page .auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--store-muted);
    font-weight: 700;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--store-line);
}

.auth-page .auth-divider span {
    padding: 0 0.9rem;
}

.auth-page .btn-outline-dark {
    min-height: 52px;
    border-radius: 18px;
    border-color: var(--store-line);
    background: #fff;
    color: var(--store-ink);
}

.auth-page .text-center p,
.auth-page .text-center a,
.storefront-account-page .form-help,
.storefront-account-page .form-text {
    color: var(--store-muted);
}

@media (max-width: 991px) {
    .storefront-account-page .profile-hero-grid,
    .storefront-account-page .storefront-account-layout,
    .storefront-account-page .profile-hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .storefront-account-page .profile-hero-shell,
    .storefront-account-page .profile-panel,
    .storefront-account-page .profile-side-panel,
    .auth-page .auth-panel {
        padding: 1rem;
    }

    .storefront-account-page .profile-password-grid {
        grid-template-columns: 1fr;
    }

    .storefront-account-page .profile-hero-actions,
    .storefront-account-page .profile-panel__actions,
    .auth-page .auth-panel form .d-grid,
    .auth-page .auth-panel .auth-alt-actions {
        flex-direction: column;
    }

    .storefront-account-page .profile-hero-actions .btn,
    .storefront-account-page .profile-panel__actions .btn,
    .auth-page .auth-panel .btn {
        width: 100%;
    }
}
