.account-main { position: relative; z-index: 1; width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; flex: 1; }
.account-heading { margin-bottom: 28px; }
.account-heading h1 { font-size: 34px; margin-bottom: 7px; }
.account-heading p { color: var(--mf-text-muted); font-size: 14px; }
.account-card { background: rgba(16,10,14,.78); border: 1px solid rgba(255,43,91,.18); border-radius: 18px; padding: 25px; margin-bottom: 20px; backdrop-filter: blur(18px); box-shadow: 0 16px 45px rgba(0,0,0,.34); }
.account-summary { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.account-identity { display:flex; align-items:center; gap:18px; min-width:0; }
.account-avatar { width:76px; height:76px; border-radius:50%; display:flex; align-items:center; justify-content:center; overflow:hidden; flex:0 0 auto; background:linear-gradient(135deg,var(--mf-accent),var(--mf-accent-light)); border:2px solid rgba(255,43,91,.55); box-shadow:var(--mf-glow-sm); font-size:27px; font-weight:800; }
.account-avatar img { width:100%; height:100%; object-fit:cover; }
.account-name { font-size:21px; font-weight:800; margin-bottom:4px; }
.account-username { color:var(--mf-accent-light); font-size:13px; }
.account-email { color:#77778d; font-size:12px; margin-top:5px; word-break:break-all; }
.account-status { color:var(--mf-success); font-size:11px; font-weight:800; letter-spacing:1px; border:1px solid rgba(0,255,136,.25); background:rgba(0,255,136,.06); padding:6px 10px; border-radius:7px; }
.account-card-title { font-size:16px; font-weight:800; padding-bottom:16px; margin-bottom:19px; border-bottom:1px solid rgba(255,43,91,.12); }
.account-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.account-field { margin-bottom:16px; }
.account-field label { display:block; color:#aaaabc; font-size:12px; font-weight:600; margin-bottom:7px; }
.account-input { width:100%; padding:12px 14px; border-radius:10px; border:1px solid rgba(255,43,91,.17); background:rgba(255,255,255,.035); color:#fff; outline:none; user-select:text; }
.account-input:focus { border-color:var(--mf-accent); box-shadow:0 0 16px rgba(255,43,91,.12); }
.account-input[readonly] { color:#707084; cursor:not-allowed; }
.account-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:6px; }
.avatar-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:17px; }
.avatar-file { display:none; }
.account-message { display:none; margin:0 0 16px; padding:11px 13px; border-radius:9px; font-size:12px; }
.account-message.show { display:block; }
.account-message.error { background:rgba(255,52,80,.08); border:1px solid rgba(255,52,80,.25); color:#ff8296; }
.account-message.success { background:rgba(0,255,136,.07); border:1px solid rgba(0,255,136,.25); color:#71ffc0; }
.danger-action { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.danger-action p { color:#77778a; font-size:12.5px; margin-top:4px; }
.btn-danger { background:rgba(255,43,91,.08); color:#ff708f; border:1px solid rgba(255,43,91,.32); padding:11px 18px; border-radius:10px; cursor:pointer; font-weight:700; }
.btn-danger:hover { border-color:var(--mf-accent); background:rgba(255,43,91,.14); }
@media (max-width:700px){ .account-grid{grid-template-columns:1fr}.account-summary,.danger-action{align-items:flex-start;flex-direction:column}.account-actions{justify-content:stretch}.account-actions button{width:100%;justify-content:center} }


/* Store dashboard */
.account-store-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:20px; }
.store-stat-card { position:relative; overflow:hidden; min-height:118px; padding:20px; border-radius:16px; border:1px solid rgba(255,43,91,.15); background:linear-gradient(145deg,rgba(18,11,15,.86),rgba(10,7,9,.72)); box-shadow:0 14px 38px rgba(0,0,0,.28); }
.store-stat-card::after { content:''; position:absolute; width:100px; height:100px; right:-45px; top:-50px; border-radius:50%; background:rgba(255,43,91,.15); filter:blur(28px); }
.store-stat-card span { display:block; color:#8d8d9f; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.75px; }
.store-stat-card strong { display:block; margin:9px 0 5px; color:#fff; font-size:27px; line-height:1; }
.store-stat-card small { color:#666679; font-size:11px; }
.store-stat-highlight { border-color:rgba(255,43,91,.30); box-shadow:0 14px 38px rgba(0,0,0,.3),0 0 26px rgba(255,43,91,.08); }
.store-stat-highlight strong { color:var(--mf-accent-light); font-size:18px; letter-spacing:1.2px; margin-top:13px; }
.account-title-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-mini-link { color:var(--mf-accent-light); font-size:11px; text-decoration:none; font-weight:700; }
.account-mini-link:hover { color:#fff; }
.account-orders-list { display:flex; flex-direction:column; gap:10px; }
.account-empty { color:#747487; font-size:12px; line-height:1.6; padding:10px 2px 4px; }
.account-order-row { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 15px; border:1px solid rgba(255,43,91,.12); border-radius:11px; background:rgba(255,255,255,.025); }
.account-order-row strong { display:block; font-size:13px; color:#ededf2; margin-bottom:4px; }
.account-order-row span { color:#6f6f82; font-size:10.5px; }
.account-order-meta { display:flex; align-items:flex-end; flex-direction:column; gap:5px; }
.account-order-meta b { color:#d6d6df; font-size:11px; }
.order-status { padding:4px 7px; border-radius:6px; border:1px solid rgba(255,255,255,.08); font-weight:800; letter-spacing:.5px; }
.order-status.paid { color:#61e8ad; border-color:rgba(0,255,136,.2); background:rgba(0,255,136,.05); }
.order-status.pending { color:#f6ca72; border-color:rgba(246,202,114,.22); background:rgba(246,202,114,.05); }
.order-status.refunded,.order-status.canceled,.order-status.failed { color:#ff8296; border-color:rgba(255,43,91,.22); background:rgba(255,43,91,.05); }
@media(max-width:700px){.account-store-overview{grid-template-columns:1fr}.account-order-row{align-items:flex-start;flex-direction:column}.account-order-meta{align-items:flex-start}}


/* Stage 3 — commerce account */
.account-commerce-card { position:relative; overflow:hidden; }
.account-title-sub { display:block; margin-top:4px; color:#656579; font-size:10.5px; font-weight:500; }
.account-sync-badge { display:inline-flex; align-items:center; gap:7px; color:#7c7c90; font-size:9.5px; letter-spacing:.8px; font-weight:800; white-space:nowrap; }
.account-sync-badge i { width:6px; height:6px; border-radius:50%; background:var(--mf-success); box-shadow:0 0 9px rgba(0,255,136,.55); }

.account-products-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.owned-product-card { position:relative; isolation:isolate; overflow:hidden; min-height:220px; padding:20px; border:1px solid rgba(255,43,91,.19); border-radius:15px; background:linear-gradient(145deg,rgba(20,12,16,.92),rgba(9,6,8,.94)); box-shadow:0 18px 45px rgba(0,0,0,.3); }
.owned-product-glow { position:absolute; z-index:-1; width:170px; height:170px; right:-70px; top:-90px; border-radius:50%; background:rgba(255,43,91,.19); filter:blur(42px); }
.owned-product-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; }
.owned-product-icon,.order-product-mark { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#ff2b5b,#b90222); color:#fff; font-weight:900; box-shadow:0 0 18px rgba(255,43,91,.28); }
.owned-product-icon { width:38px; height:38px; border-radius:10px; font-size:15px; }
.owned-product-status { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:7px; color:#69edb3; border:1px solid rgba(0,255,136,.2); background:rgba(0,255,136,.05); font-size:9px; letter-spacing:.7px; font-weight:900; }
.owned-product-status i { width:5px; height:5px; border-radius:50%; background:#00ff88; box-shadow:0 0 8px #00ff88; }
.owned-product-card h3 { margin:0 0 4px; color:#f4f4f7; font-size:17px; }
.owned-product-card > p { margin:0 0 20px; color:var(--mf-accent-light); font-size:12px; font-weight:700; }
.owned-product-details { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:17px; padding-top:15px; border-top:1px solid rgba(255,43,91,.1); }
.owned-product-details span { min-width:0; }
.owned-product-details small { display:block; margin-bottom:4px; color:#626276; font-size:9px; text-transform:uppercase; letter-spacing:.6px; }
.owned-product-details b { display:block; overflow:hidden; text-overflow:ellipsis; color:#b9b9c6; font-size:10.5px; white-space:nowrap; }
.owned-product-action { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border:1px solid rgba(255,43,91,.17); border-radius:9px; color:#d7d7df; background:rgba(255,43,91,.035); text-decoration:none; font-size:10.5px; font-weight:700; transition:.25s ease; }
.owned-product-action:hover { color:#fff; border-color:rgba(255,43,91,.48); background:rgba(255,43,91,.09); box-shadow:0 0 18px rgba(255,43,91,.08); }
.owned-product-action span { color:var(--mf-accent); }

.account-empty-rich { grid-column:1/-1; display:flex; align-items:center; gap:15px; padding:20px; border:1px dashed rgba(255,43,91,.16); border-radius:12px; background:rgba(255,255,255,.018); }
.account-empty-rich .empty-icon { display:flex; width:42px; height:42px; flex:0 0 auto; align-items:center; justify-content:center; border-radius:11px; color:var(--mf-accent-light); background:rgba(255,43,91,.08); border:1px solid rgba(255,43,91,.16); font-weight:900; }
.account-empty-rich strong { display:block; margin-bottom:4px; color:#c8c8d2; font-size:12px; }
.account-empty-rich span { display:block; color:#68687b; font-size:10.5px; line-height:1.5; }

.order-main { display:flex; align-items:center; gap:12px; min-width:0; }
.order-product-mark { width:31px; height:31px; flex:0 0 auto; border-radius:8px; font-size:11px; }
.account-order-row { transition:border-color .22s ease,background .22s ease,transform .22s ease; }
.account-order-row:hover { transform:translateY(-1px); border-color:rgba(255,43,91,.24); background:rgba(255,43,91,.025); }

@media(max-width:760px){
  .account-products-grid{grid-template-columns:1fr}
  .account-title-row{align-items:flex-start}
}


/* Design v4 — Sora / reduced glow / cleaner customer dashboard */
.account-main { max-width: 1180px; }
.account-heading { margin-bottom:24px; }
.account-eyebrow {
  display:block;
  margin-bottom:7px;
  color:var(--mf-accent-light);
  font-size:9px;
  font-weight:600;
  letter-spacing:1.6px;
}
.account-heading h1 { font-size:31px; font-weight:600; letter-spacing:-1.2px; }
.account-heading p { font-size:11.5px; color:#747487; }

.account-card {
  background:linear-gradient(145deg,rgba(14,10,12,.88),rgba(9,7,8,.80));
  border-color:rgba(255,43,91,.12);
  box-shadow:0 15px 40px rgba(0,0,0,.25);
}
.account-summary { padding:22px 24px; }
.account-name { font-size:20px; font-weight:600; letter-spacing:-.5px; }
.account-card-title { font-weight:600; letter-spacing:-.3px; }

.account-store-overview { grid-template-columns:repeat(3,1fr); }
.store-stat-card {
  min-height:106px;
  padding:18px 19px;
  border-color:rgba(255,43,91,.11);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.store-stat-card::after { opacity:.45; }
.store-stat-card span { font-size:9px; font-weight:600; letter-spacing:.9px; }
.store-stat-card strong { font-size:24px; font-weight:600; letter-spacing:-.5px; }
.store-stat-card small { font-size:9.5px; }
.store-stat-highlight strong {
  color:#f3f3f7;
  font-size:16px;
  font-weight:600;
  letter-spacing:.25px;
  margin-top:12px;
}

.field-help {
  display:block;
  margin-top:7px;
  color:#666679;
  font-size:9.5px;
  line-height:1.45;
}
.field-help.locked { color:#a97984; }
.account-input:disabled {
  opacity:.62;
  cursor:not-allowed;
  color:#8b8b9a;
}

.owned-product-icon img,
.order-product-mark img,
.account-empty-rich .empty-icon img {
  width:68%;
  height:68%;
  object-fit:contain;
}
.owned-product-icon,
.order-product-mark {
  background:rgba(255,43,91,.08);
  border:1px solid rgba(255,43,91,.16);
  box-shadow:none;
}
.account-empty-rich .empty-icon {
  background:rgba(255,43,91,.04);
  box-shadow:none;
}

.owned-product-card {
  border-color:rgba(255,43,91,.13);
  box-shadow:0 15px 34px rgba(0,0,0,.24);
}
.owned-product-glow { opacity:.55; }
.account-order-row { border-color:rgba(255,43,91,.09); }

.btn-primary { box-shadow:0 0 15px rgba(255,43,91,.18); }
.btn-primary:hover { box-shadow:0 0 22px rgba(255,43,91,.28); }

@media(max-width:700px) {
  .account-heading h1 { font-size:27px; }
}
