/* ── Account Page ── */
.account-page {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 3rem);
}

.account-page h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.account-section {
    margin-bottom: 2.5rem;
}

.account-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* ── Profile Card ── */
.account-profile-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
}

.account-profile-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.account-profile-field {
    display: flex;
    flex-direction: column;
}

.account-profile-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
}

.account-profile-field span {
    font-size: 15px;
    font-weight: 500;
}

.account-profile-actions {
    display: flex;
    gap: 10px;
}

.account-profile-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.account-btn-edit {
    background: linear-gradient(135deg, #6ee7b7, #3fbcac, #3a7bd5, #3d3370);
    color: #fff;
}

.account-btn-clear {
    background: #f0f0f0;
    color: #666;
}

.account-btn-clear:hover {
    background: #e0e0e0;
}

/* ── Profile Form ── */
.account-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-form .full {
    grid-column: 1 / -1;
}

.account-form-field {
    display: flex;
    flex-direction: column;
}

.account-form-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
}

.account-form-field input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.account-form-field input:focus {
    outline: none;
    border-color: #3fbcac;
    box-shadow: 0 0 0 3px rgba(63, 188, 172, 0.1);
}

.account-form-submit {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6ee7b7, #3fbcac, #3a7bd5, #3d3370);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.account-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63, 188, 172, 0.25);
}

/* ── Order History ── */
.account-no-orders {
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

.account-order {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.account-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.15s;
}

.account-order-header:hover {
    background: #f0f1f3;
}

.account-order-id {
    font-size: 14px;
    font-weight: 700;
}

.account-order-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.account-order-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff3cd;
    color: #856404;
}

.account-order-body {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.account-order-body.open {
    max-height: 500px;
    padding: 16px 18px;
}

.account-order-items {
    list-style: none;
    margin-bottom: 12px;
}

.account-order-items li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.account-order-items li:last-child {
    border-bottom: none;
}

.account-order-shipping {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.account-order-total {
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    text-align: right;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .account-profile-info {
        grid-template-columns: 1fr;
    }
    .account-form {
        grid-template-columns: 1fr;
    }
    .account-form .full {
        grid-column: 1;
    }
    .account-order-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }
}
