.account-settings-page {
    max-width: 820px;
}

.account-settings-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 26px;
}

.account-settings-card h2 {
    margin: 0 0 18px;
    color: var(--blue);
}

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

.account-details-grid div {
    background: #fff8ef;
    border-radius: 14px;
    padding: 18px;
}

.account-details-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.account-details-grid strong {
    color: var(--blue);
    word-break: break-word;
}

.account-form {
    display: grid;
    gap: 22px;
}

.account-form label {
    font-size: 18px;
}

.account-form input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-shadow: 0 3px 9px rgba(0,0,0,.10);
    background: #fff;
    padding: 0 20px;
    box-sizing: border-box;
}

.danger-zone {
    border: 1px solid #ffd0cb;
    background: #fffafa;
}

.danger-zone p {
    color: #7a271a;
    line-height: 1.6;
}

.btn-danger {
    background: #b42318;
    color: #fff;
    box-shadow: 0 6px 18px rgba(180, 35, 24, .22);
}

.btn-danger:hover {
    filter: brightness(.96);
}

/*
 * Sidebar footer placement only.
 * Do not touch .shell, .shell-main or main page layout.
 */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.sidebar-nav {
    flex: 0 0 auto !important;
}

.sidebar-footer-actions {
    margin-top: auto !important;
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
}

.sidebar-footer-actions .sidebar-logout {
    margin-top: 0 !important;
    display: grid !important;
    width: 100% !important;
}

.sidebar-footer-actions .sidebar-logout .btn {
    width: 100% !important;
}

.sidebar-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--blue);
    border-radius: 14px;
    padding: 13px 14px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(143, 83, 39, .08);
}

.sidebar-account-link:hover,
.sidebar-account-link.is-active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

@media (max-width: 980px) {
    .sidebar {
        min-height: auto !important;
    }

    .sidebar-footer-actions {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .account-details-grid {
        grid-template-columns: 1fr;
    }

    .account-settings-card {
        padding: 22px;
    }
}
