.member-dashboard-page{padding:34px 0 70px}
.member-profile-hero{
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    padding:20px 22px;margin-bottom:14px;border:1px solid var(--line);border-radius:21px;
    background:
      radial-gradient(circle at 85% 15%,rgba(255,68,93,.11),transparent 28%),
      linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012))
}
.member-profile-main{display:flex;align-items:center;gap:15px;min-width:0}
.customer-avatar{
    width:54px;height:54px;border-radius:16px;display:grid;place-items:center;
    background:linear-gradient(135deg,var(--red),var(--red2));color:#fff;font-size:22px;font-weight:800;
    box-shadow:0 12px 30px rgba(255,68,93,.16)
}
.customer-avatar-xl{width:62px;height:62px;border-radius:18px;font-size:25px}
.member-profile-main h1{margin:3px 0 0;font-size:28px;letter-spacing:-.035em}
.member-profile-main p{margin:2px 0 0;color:var(--muted);font-size:12px}
.profile-shop-button{
    flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:43px;
    padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,var(--red),var(--red2));
    color:#fff;font-size:12px;font-weight:700;box-shadow:0 10px 28px rgba(255,68,93,.16)
}
.member-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.member-stats-grid article{
    padding:15px 16px;border:1px solid var(--line);border-radius:16px;
    background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015))
}
.member-stats-grid span,.member-stats-grid strong,.member-stats-grid small{display:block}
.member-stats-grid span{color:var(--muted);font-size:10px}.member-stats-grid strong{font-size:23px;margin:4px 0;letter-spacing:-.03em}.member-stats-grid small{font-size:9px;color:#6f7e93}
.member-dashboard-grid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}
.customer-card,.history-card{
    border:1px solid var(--line);border-radius:19px;background:rgba(255,255,255,.018);overflow:hidden
}
.member-profile-card{padding:17px;position:sticky;top:90px}
.profile-card-title{padding-bottom:14px;margin-bottom:5px;border-bottom:1px solid var(--line)}
.profile-card-title span,.profile-card-title strong{display:block}.profile-card-title span{font-size:9px;color:var(--muted);letter-spacing:.1em}.profile-card-title strong{font-size:17px;margin-top:2px}
.customer-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.customer-line span{color:var(--muted);font-size:10px}.customer-line strong{font-size:11px;text-align:right;overflow-wrap:anywhere}
.profile-help-links{display:flex;flex-direction:column;margin-top:9px}
.profile-help-links a{display:flex;justify-content:space-between;padding:9px 0;color:#dbe4ef;font-size:11px}
.profile-help-links a span{color:var(--muted)}
.profile-logout-form{padding-top:9px;margin-top:5px;border-top:1px solid var(--line)}
.profile-logout-form button{
    width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:transparent;
    color:#ff8999;font-size:11px;font-weight:700;cursor:pointer
}
.member-history-card{padding:17px}
.history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:12px}
.history-head h2{margin:2px 0 0;font-size:20px}.history-head p{margin:0;color:var(--muted);font-size:10px}
.member-order-list{display:flex;flex-direction:column;gap:8px}
.member-order-card{
    border:1px solid var(--line);border-radius:15px;overflow:hidden;background:rgba(255,255,255,.015)
}
.member-order-card[open]{border-color:rgba(255,68,93,.2);background:rgba(255,255,255,.022)}
.member-order-card summary{
    list-style:none;cursor:pointer;min-height:72px;display:flex;align-items:center;justify-content:space-between;
    gap:15px;padding:12px 13px
}
.member-order-card summary::-webkit-details-marker{display:none}
.member-order-summary{display:flex;align-items:center;gap:11px;min-width:0}
.member-order-game-icon{
    width:40px;height:40px;flex:0 0 40px;border-radius:11px;display:grid;place-items:center;
    background:linear-gradient(135deg,rgba(255,68,93,.16),rgba(95,116,255,.13));
    border:1px solid rgba(255,255,255,.06);font-weight:800
}
.order-game-title{min-width:0}.order-game-title strong,.order-game-title span,.order-game-title small{display:block}
.order-game-title strong{font-size:13px}.order-game-title span{font-size:9px;color:#aab6c6;margin-top:1px}.order-game-title small{font-size:9px;color:#6f7d92;margin-top:1px}
.order-summary-side{display:flex;align-items:center;gap:8px}
.member-order-price{font-size:13px}
.mini-order-status,.item-status{
    display:inline-flex;align-items:center;white-space:nowrap;padding:5px 8px;border-radius:999px;
    font-size:9px;font-weight:700
}
.mini-order-status.status-complete,.item-status.status-complete{background:rgba(45,210,137,.10);color:#70e8ae}
.mini-order-status.status-failed,.mini-order-status.status-partial_failed,.item-status.status-failed{background:rgba(255,68,93,.10);color:#ff8494}
.mini-order-status.status-processing,.mini-order-status.status-pending,.mini-order-status.status-manual_review,.item-status.status-processing,.item-status.status-queued{background:rgba(255,184,77,.10);color:#ffd08a}
.receipt-link{padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.035);color:#ff8795;font-size:9px;font-weight:700}
.order-chevron{color:#738097;transition:.15s}.member-order-card[open] .order-chevron{transform:rotate(180deg)}
.order-expand-body{padding:0 13px 13px;border-top:1px solid var(--line)}
.member-order-progress{padding:11px 0}
.member-order-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}
.member-order-progress strong,.member-order-progress span{font-size:9px}
.order-progress-track{height:5px;background:#202a3c;border-radius:999px;overflow:hidden}
.order-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--red),#ff768a)}
.member-order-items-head,.order-item-row{display:grid;grid-template-columns:minmax(0,1fr) 96px 104px;gap:10px;align-items:center}
.member-order-items-head{padding:7px 7px;color:#748197;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
.order-item-row{padding:10px 7px;border-top:1px solid rgba(255,255,255,.055)}
.member-pack-info{min-width:0;display:flex;align-items:center;gap:8px}
.member-pack-info>div{min-width:0}.member-pack-info strong,.member-pack-info small{display:block}
.member-pack-info strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-pack-info small{font-size:8px;color:var(--muted);margin-top:1px}
.pack-state-dot{flex:0 0 7px;width:7px;height:7px;border-radius:999px;background:#778399}
.pack-state-dot.state-complete{background:#36d795}.pack-state-dot.state-failed{background:#ff445d}.pack-state-dot.state-processing{background:#ffbd5b}
.item-price{text-align:right;font-size:11px;font-weight:700}
.item-status{justify-self:end}
.order-total-row{display:flex;justify-content:flex-end;align-items:center;gap:13px;padding:11px 7px 0;border-top:1px solid var(--line)}
.order-total-row span{font-size:9px;color:var(--muted)}.order-total-row strong{font-size:18px}
.member-empty-orders{min-height:270px;display:grid;place-items:center;align-content:center;text-align:center;gap:5px;color:var(--muted)}
.member-empty-orders>div{font-size:25px}.member-empty-orders strong{font-size:15px;color:#fff}.member-empty-orders span{font-size:10px;max-width:320px}
.member-empty-orders a{margin-top:7px;padding:8px 12px;border-radius:10px;background:linear-gradient(135deg,var(--red),var(--red2));color:#fff;font-size:10px;font-weight:700}
.member-pagination{margin-top:14px}
@media(max-width:1000px){.member-stats-grid{grid-template-columns:repeat(2,1fr)}.member-dashboard-grid{grid-template-columns:1fr}.member-profile-card{position:static}}
@media(max-width:700px){
    .member-dashboard-page{padding-top:20px}
    .member-profile-hero{align-items:flex-start;flex-direction:column}
    .profile-shop-button{width:100%}
    .history-head{align-items:flex-start;flex-direction:column}
    .member-order-card summary{align-items:flex-start;flex-direction:column}
    .order-summary-side{width:100%;flex-wrap:wrap}
    .member-order-items-head{display:none}
    .order-item-row{grid-template-columns:minmax(0,1fr) auto}
    .item-status{grid-column:1/-1;justify-self:start;margin-left:15px}
}
@media(max-width:520px){.member-stats-grid{grid-template-columns:1fr 1fr}.member-profile-main h1{font-size:23px}.customer-avatar-xl{width:52px;height:52px}}
