@import url('./pages.css');

.profile-layout { display: flex; align-items: flex-start; gap: 34px; }
.profile-sidebar { width: 300px; flex: 0 0 auto; position: sticky; top: 105px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.profile-avatar { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--paper); background: var(--primary); border-radius: 50%; font-weight: 700; }
.profile-sidebar h2 { font-size: 1.25rem; font-weight: 700; }
.profile-sidebar > p { font-size: .84rem; }
.profile-sidebar dl { margin: 28px 0; }
.profile-sidebar dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-sidebar dt { color: var(--ink-soft); font-size: .72rem; }
.profile-sidebar dd { margin: 4px 0 0; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-main { flex: 1; display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 36px; color: var(--paper); background: var(--primary); border-radius: var(--radius-large); }
.plan-card h2 { font-size: 2.2rem; font-weight: 700; }
.plan-card p { color: rgba(255,255,255,.62); }
.plan-status { display: flex; align-items: center; gap: 20px; }
.plan-status > span { padding: 6px 10px; color: #bce9d8; background: rgba(80,190,150,.16); border-radius: 20px; font-size: .72rem; font-weight: 700; }
.plan-status strong { font-size: 1.5rem; font-weight: 700; }
.plan-status small { display: block; color: rgba(255,255,255,.5); font-size: .65rem; }
.profile-section { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.profile-section-heading h2 { font-size: 1.55rem; font-weight: 700; }
.profile-listings { display: flex; flex-direction: column; }
.profile-listings article { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.profile-listings img { width: 84px; height: 70px; object-fit: cover; border-radius: 10px; }
.profile-listings article > div:nth-child(2) { flex: 1; }
.profile-listings article > div > span { color: var(--success); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.profile-listings h3 { margin: 3px 0; font-size: 1rem; font-weight: 700; }
.profile-listings p { font-size: .76rem; }
.listing-actions { display: flex; gap: 12px; }
.listing-actions a, .listing-actions button { color: var(--primary); background: transparent; font-size: .8rem; font-weight: 700; }
.listing-actions button { color: #a74436; }
.profile-message { color: var(--success); font-size: .84rem; font-weight: 700; }
.transactions { overflow-x: auto; }
.transactions > div { min-width: 620px; display: flex; align-items: center; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.transactions span { flex: 1; font-size: .8rem; }
.transactions strong { width: 80px; text-align: right; font-weight: 700; }
.transaction-head { color: var(--ink-soft); font-weight: 700; }
.status-success { color: var(--success); font-weight: 700; }
@media (max-width: 900px) {
    .profile-layout { flex-direction: column; }
    .profile-sidebar { width: 100%; position: static; }
    .profile-main { width: 100%; }
    .plan-card, .plan-status { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .profile-section { padding: 22px; }
    .profile-listings article { align-items: flex-start; flex-wrap: wrap; }
    .listing-actions { width: 100%; padding-left: 102px; }
}
