/* ============================================
   JOKER BURGER - ACCOUNT PAGE
   ============================================ */

.account-section {
    padding: 3rem 0 5rem;
    background: #faf9f7;
}

.account-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---- GUEST: LOGIN / REGISTER ---- */
.account-guest-wrap {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.account-guest-intro {
    color: #555;
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.account-guest-intro a {
    color: #EB4800;
    font-weight: 600;
    text-decoration: none;
}

.account-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.account-tab {
    flex: 1;
    background: none;
    border: none;
    padding: .8rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .03em;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.account-tab.active {
    color: #EB4800;
    border-color: #EB4800;
}

.account-tab-panel { display: none; }
.account-tab-panel.active { display: block; }

.account-form-error {
    color: #e53e3e;
    font-size: .85rem;
    min-height: 1.2em;
    margin-bottom: .5rem;
}

.account-form-success {
    color: #2f9e44;
    font-size: .85rem;
    min-height: 1.2em;
    margin-bottom: .5rem;
    opacity: 0;
    transition: opacity .2s;
}
.account-form-success.visible { opacity: 1; }

.account-submit {
    width: 100%;
    margin-top: .25rem;
}

.account-hint {
    color: #999;
    font-size: .76rem;
    display: block;
    margin-top: .25rem;
}

/* ---- DASHBOARD ---- */
.account-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #EB4800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.account-welcome h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.account-welcome p {
    color: #888;
    font-size: .85rem;
}

.btn-logout {
    border: 1.5px solid #ddd;
    color: #555;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.btn-logout:hover { border-color: #EB4800; color: #EB4800; }

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.account-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.account-card-wide { grid-column: 1 / -1; }

.account-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: .25rem;
}

.account-card-sub {
    color: #888;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.account-empty-text {
    color: #999;
    font-size: .88rem;
}

/* Reorder row */
.reorder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff8f4;
    border: 1px solid #ffe1cf;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.reorder-info { display: flex; flex-direction: column; gap: .15rem; }
.reorder-info strong { color: #1a1a1a; font-size: .95rem; }
.reorder-info span { color: #888; font-size: .8rem; }

/* Favorites */
.favorites-list { display: flex; flex-direction: column; gap: .75rem; }

.favorite-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: .75rem;
}
.favorite-row:last-child { border-bottom: none; padding-bottom: 0; }

.favorite-row img {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.favorite-info { flex: 1; display: flex; flex-direction: column; }
.favorite-info strong { font-size: .9rem; color: #1a1a1a; }
.favorite-info span { font-size: .82rem; color: #EB4800; font-weight: 600; }

/* Order history */
.order-history-list { display: flex; flex-direction: column; gap: 1rem; }

.order-history-row {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.order-history-main {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.order-history-main strong { color: #1a1a1a; font-size: .95rem; }

.order-history-status {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .55rem;
    border-radius: 20px;
    background: #eee;
    color: #666;
    letter-spacing: .03em;
}
.status-nieuw { background: #fff3e0; color: #e67700; }
.status-bezig { background: #e3f2fd; color: #1565c0; }
.status-klaar, .status-geleverd { background: #e8f5e9; color: #2e7d32; }
.status-geannuleerd { background: #fdecea; color: #c62828; }

.order-history-date { color: #aaa; font-size: .78rem; margin-left: auto; }

.order-history-items {
    color: #777;
    font-size: .85rem;
    line-height: 1.5;
    margin-bottom: .6rem;
}

.order-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-history-total {
    font-weight: 700;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-header-row { flex-direction: column; align-items: flex-start; }
}

.pay-betaald { background: #e8f5e9; color: #2e7d32; }
.pay-open { background: #fff3e0; color: #e67700; }
.pay-mislukt, .pay-verlopen, .pay-geannuleerd { background: #fdecea; color: #c62828; }
