.user-area{padding-top:20px;padding-bottom:70px;min-height:60vh}
.user-layout{display:grid;grid-template-columns:260px 1fr;gap:34px;align-items:start}
.user-aside{position:sticky;top:90px;display:flex;flex-direction:column;gap:14px;padding:22px 18px;border:1px solid #ececec;border-radius:12px;background:#fff;box-shadow:0 2px 10px #00000008}
.user-head{display:flex;align-items:center;gap:12px}
.user-head .avatar{width:48px;height:48px;background:var(--green);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font:800 16px/1 var(--heading)}
.user-head strong{font-size:15px;display:block}
.user-head small{font-size:11px;color:#777;letter-spacing:.04em;text-transform:uppercase}
.user-stats{display:flex;justify-content:space-between;padding:12px 14px;background:#f6fbf1;border-radius:8px;font-size:12px;color:#555}
.user-stats span{display:flex;align-items:center;gap:6px}
.user-stats strong{font-size:16px;color:var(--dark)}
.user-stats small{font-size:11px;text-transform:uppercase;color:#777;letter-spacing:.04em}
.user-aside nav{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.user-aside nav>a,.user-aside nav>div>button,.user-sign-out{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px 12px;border-radius:7px;font:600 14px/20px var(--body);color:#333;background:transparent;border:0;cursor:pointer;width:100%}
.user-aside nav>a:hover,.user-aside nav>div>button:hover{background:#f5f8f1}
.user-aside nav>a.is-active,.user-aside nav>div.open>button{background:var(--pale);color:var(--deep)}
.user-nav-group .user-sub{display:flex;flex-direction:column;padding:4px 0 8px 10px;gap:2px}
.user-nav-group .user-sub a{padding:7px 12px;border-radius:7px;font:500 13px/20px var(--body);color:#555}
.user-nav-group .user-sub a:hover{background:#f5f8f1;color:var(--deep)}
.user-nav-group .user-sub a.is-active{background:#eafbe3;color:var(--deep);font-weight:700}
.user-nav-group.open>button svg{transform:rotate(180deg)}
.user-nav-group>button svg{transition:transform .18s}
.user-sign-out{margin-top:14px;border-top:1px solid #eee;padding-top:14px;color:#c0392b}
.user-content{min-width:0}
.user-content h1{font:800 28px/1.2 var(--heading);margin:6px 0 20px}
.user-content h2{font:700 20px/1.3 var(--heading);margin:28px 0 12px}
.user-empty{text-align:center;padding:50px 16px;border:1px dashed #e2e4e1;border-radius:12px;background:#fcfdfa;margin-top:18px}
.user-empty.big{padding:60px 20px}
.user-empty.big>img{width:180px;height:auto;margin:0 auto 20px;opacity:.9}
.user-empty h1,.user-empty h2{margin:0 0 12px;font:700 22px/1.3 var(--heading)}
.user-empty.big h1{font-size:28px}
.user-empty p{color:#666;margin:0 auto 24px;max-width:460px;font-size:15px}
.user-empty>.button{display:inline-flex}
.user-inline-cta{display:flex;align-items:center;gap:22px;padding:24px;background:#f1fbe8;border-radius:12px;margin-top:22px}
.user-inline-cta>div{flex:1}
.user-inline-cta strong{display:block;font-size:17px;margin-bottom:4px}
.user-inline-cta p{margin:0;color:#555;font-size:14px}
.user-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.user-page-head h1{margin:0}
.user-table{overflow-x:auto;border:1px solid #ececec;border-radius:10px;margin-top:20px}
.user-table table{width:100%;border-collapse:collapse;font-size:14px}
.user-table th{background:#f6f8f3;text-align:left;padding:14px 18px;font:700 12px/18px var(--body);color:#555;text-transform:uppercase;letter-spacing:.06em}
.user-table td{padding:14px 18px;border-top:1px solid #efefef;color:#333}
.user-table td.empty-row{text-align:center;color:#888;padding:32px 18px}
.user-legend{display:flex;align-items:center;gap:10px;margin-top:14px;color:#777}
.user-legend .badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.user-legend .badge.active{background:#dff3e3;color:var(--deep)}
.user-legend .badge.canceled{background:#fde8e8;color:#b53a3a}
.user-profile{max-width:760px}
.user-profile h1{margin-bottom:4px}
.user-profile>p{color:#666;margin-bottom:22px}
.user-avatar-upload{display:flex;align-items:center;gap:18px;margin:18px 0 26px}
.user-avatar-upload .avatar.large{width:74px;height:74px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font:800 22px/1 var(--heading)}
.user-profile form .field{margin-bottom:16px}
.user-profile .two-grid{gap:18px 20px;margin-bottom:12px}
.user-marketing-opt{margin:22px 0}
.user-profile-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px}
.user-profile-actions>.button{min-width:180px}
.user-sub-section{margin-top:34px;padding-top:26px;border-top:1px solid #ececec}

@media(max-width:900px){
 .user-layout{grid-template-columns:1fr;gap:18px}
 .user-aside{position:static;flex-direction:column}
 .user-stats{max-width:none}
}
@media(max-width:600px){
 .user-area{padding-top:12px;padding-bottom:40px}
 .user-content h1{font-size:24px}
 .user-empty.big>img{width:140px}
 .user-profile .two-grid{grid-template-columns:1fr;gap:14px}
 .user-profile-actions{flex-direction:column;align-items:stretch}
 .user-profile-actions>.button{width:100%}
}
