*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --header-height: 82px;
}

html,
body {
    width: 100%;
    height: 100%; 
    margin: 0;
    padding: 0;
    font-family: 'Poppins', serif, sans-serif;
    background-color: rgba(218, 177, 218, 0.2);
}

body {
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
}

.main-content {
    flex: 1; /* main content grows to push footer down */
    display: flex;
    flex-direction: column;
}

/* === Accounts Grid === */
.accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: whitesmoke;
    border: 1px solid black;
    border-radius: 8px;
}

.account_edit {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes button to bottom */
    background-color: rgba(218, 177, 218, 0.5);
    border: 1px solid purple;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: fit-content;
    transition: background-color 0.2s ease;
}

.account_edit h3 {
    text-align: center;
}

.account_edit ul {
    padding-left: 1.2rem;
    margin: 1rem 0;
}

.account_edit li {
    font-size: 16px;
    margin-bottom: 1rem;
}

.account_edit:hover {
    background-color: white;
    color: purple;
}

.account_edit a {
    text-align: center;
    display: block;
    margin-top: auto; /* ensures button is at bottom */
}

.account_edit button {
    width: 100%;
    padding: 0.8rem;
    font-size: 16px;
    background-color: purple;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.account_edit button:hover {
    background-color: #5a005a;
}
/* === Responsive === */
@media (max-width: 768px) {
    .accounts {
        grid-template-columns: 1fr; /* stack cards on mobile */
    }
    .account_edit li {
        font-size: 15px;
    }
    .account_edit {
        padding: 1.2rem;
    }
}