/* =========================================================
   EDIUSFA — 15-ACCOUNT
   Page-specific styles for the account dashboard
   (Digikala-style two-column panel layout).
   -----------------------------------------------------------------
   Source of truth: ediusfa-account.html (ACCOUNT DASHBOARD block,
   lines 813–932)
   -----------------------------------------------------------------
   NOTE: The following rules live in earlier files and are NOT
   redefined here (no duplication):
     - .pdp-header, .pdp-breadcrumb-bar           (03-components.css, 04-header.css, 12-archive.css)
     - .header-search-toggle + comp-mobile-searchbar (04-header.css)
     - .comp-footer overrides                     (05-footer.css)
     - .mobile-sticky-nav + body padding-bottom   (05-footer.css)
     - .prod-thumb (gradient thumbnails for track-thumb)
     - .breadcrumb, .crumb-sep, .crumb-current    (03-components.css)
     - .price, .price-old, .badge                 (03-components.css)
     - .btn, .icon-btn                             (03-components.css)
   This file only adds styles UNIQUE to the account dashboard.
   -----------------------------------------------------------------

   @package    EdiusFA
   @subpackage assets/css
   @since      0.5.0
   @version    0.5.0
   ========================================================= */

/* Override .pdp-container max-width for this page (account uses a slightly
   narrower 1280px container vs the 1320px global default — matches the HTML
   prototype's ".pdp-container{max-width:1280px}" override). */
.pdp-container.panel-wrap,
.pdp-container.panel-wrap .pdp-breadcrumb-bar .pdp-container,
.panel-wrap{max-width:1280px;}

.panel-wrap{padding:22px 0 50px;}
.panel-layout{display:block;}
@media (min-width:900px){ .panel-layout{display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start;} .panel-sidebar{position:sticky; top:90px;} }

/* ---------- Profile card ---------- */
.profile-card{display:flex; align-items:center; gap:12px; background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); padding:16px; margin-bottom:14px;}
.profile-avatar{width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg, var(--cyan), var(--amber)); display:flex; align-items:center; justify-content:center; font-weight:800; color:var(--ink-on-accent); flex-shrink:0;}
.profile-info{flex:1; min-width:0;}
.profile-info h2{font-size:14.5px; font-weight:800; margin-bottom:3px;}
.profile-info span{font-size:11.5px; color:var(--ink-faint);}
.profile-edit{width:32px; height:32px; border-radius:9px; background:var(--bg-elevated-2); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--ink-dim);}
.profile-edit:hover{color:var(--cyan);}

/* ---------- Wallet strip ---------- */
.wallet-strip{display:flex; align-items:center; justify-content:space-between; background:linear-gradient(120deg, var(--cyan-700), var(--cyan-900)); border-radius:var(--radius-md); padding:15px 16px; margin-bottom:16px;}
.wallet-strip .lbl{font-size:11.5px; color:rgba(255,255,255,.75); margin-bottom:4px; display:block;}
.wallet-strip .amt{font-family:var(--font-mono); font-size:16px; font-weight:800; color:#fff;}
.wallet-strip a{font-size:11.5px; font-weight:700; color:var(--ink-on-accent); background:var(--amber); padding:8px 12px; border-radius:9px; white-space:nowrap;}

/* ---------- Sidebar full vertical menu ---------- */
.side-menu{background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; margin-bottom:14px;}
.side-menu .grp-title{font-size:11px; color:var(--ink-faint); font-weight:700; padding:12px 16px 6px; letter-spacing:.02em;}
.side-menu a{display:flex; align-items:center; gap:10px; padding:12px 16px; font-size:13px; color:var(--ink-dim); border-top:1px solid var(--line); transition:color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);}
.side-menu .grp-title + a{border-top:none;}
.side-menu a:hover{background:var(--bg-elevated-2); color:var(--ink);}
.side-menu a.is-active{color:var(--cyan); background:rgba(47,217,236,.06);}
.side-menu a svg{width:17px; height:17px; flex-shrink:0;}
.side-menu a .lbl{flex:1;}
.side-menu a .count{font-size:11px; color:var(--ink-faint); font-family:var(--font-mono);}
.side-menu a.is-active .count{color:var(--cyan);}
.side-menu a .chev{width:14px; height:14px; color:var(--ink-faint); flex-shrink:0;}
.side-menu a.logout{color:var(--danger);}
.side-menu a.logout svg{color:var(--danger);}

/* ---------- Quick access icon grid ---------- */
.quick-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px;}
@media (min-width:600px){ .quick-grid{grid-template-columns:repeat(6,1fr);} }
.quick-item{background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); padding:14px 6px; text-align:center; position:relative; transition:border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);}
.quick-item:hover{border-color:var(--line-cyan); transform:translateY(-2px);}
.quick-item .ic{width:38px; height:38px; border-radius:11px; background:var(--bg-elevated-2); display:flex; align-items:center; justify-content:center; margin:0 auto 8px;}
.quick-item .ic svg{color:var(--cyan);}
.quick-item span{font-size:11px; color:var(--ink-dim); display:block;}
.quick-item .dot-badge{position:absolute; top:8px; inset-inline-start:22px; background:var(--danger); color:#fff; font-size:10px; font-weight:700; min-width:16px; height:16px; border-radius:99px; display:flex; align-items:center; justify-content:center; padding:0 3px;}

/* ---------- Section head ---------- */
.panel-section-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;}
.panel-section-head h3{font-size:15px; font-weight:800;}
.panel-section-head a{font-size:12px; color:var(--cyan); font-weight:600;}

/* ---------- Order tracking card with step-progress (signature component) ---------- */
.track-card{background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); padding:18px; margin-bottom:14px;}
.track-head{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; gap:10px;}
.track-head h4{font-size:13.5px; font-weight:700; margin-bottom:4px;}
.track-head span{font-size:11px; color:var(--ink-faint); font-family:var(--font-mono);}
.track-thumb{width:36px; height:36px; border-radius:8px; flex-shrink:0;}

.steps{display:flex; align-items:center; margin:8px 0 16px;}
.step-dot{width:24px; height:24px; border-radius:50%; background:var(--bg-elevated-2); border:2px solid var(--line-strong); display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; z-index:2;}
.step-dot svg{width:11px; height:11px; color:#fff;}
.step-dot.done{background:var(--success); border-color:var(--success);}
.step-dot.current{background:var(--cyan); border-color:var(--cyan); box-shadow:0 0 0 4px rgba(47,217,236,.2);}
.step-line-track{flex:1; height:2px; background:var(--line-strong); margin:0 -1px; position:relative; z-index:1;}
.step-line-track.done{background:var(--success);}
.step-labels{display:flex; justify-content:space-between; margin-top:-4px;}
.step-labels span{font-size:10.5px; color:var(--ink-faint); text-align:center; flex:1;}
.step-labels span:first-child{text-align:right;}
.step-labels span:last-child{text-align:left;}
.step-labels span.done-lbl{color:var(--success);}
.step-labels span.current-lbl{color:var(--cyan); font-weight:700;}

.track-foot{display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid var(--line);}
.track-foot .price{font-family:var(--font-mono); font-weight:700; font-size:13.5px; color:var(--ink);}
.track-foot a{font-size:12px; color:var(--cyan); font-weight:600;}

/* ---------- Account info table ---------- */
.info-card{background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); padding:18px;}
.info-row{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px;}
.info-row:last-child{border-bottom:none;}
.info-row span:first-child{color:var(--ink-faint);}

/* ---------- Addresses ---------- */
.addr-card{background:var(--bg-elevated); border:1px solid var(--line); border-radius:var(--radius-md); padding:15px 16px; margin-bottom:10px; display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
.addr-card .badge-def{font-size:10.5px; font-weight:700; background:rgba(51,209,157,.12); color:var(--success); padding:2px 8px; border-radius:99px; margin-inline-start:6px;}
.addr-card h5{font-size:13px; font-weight:700; margin-bottom:6px;}
.addr-card p{font-size:12px; color:var(--ink-faint);}
.addr-card .edit-link{font-size:12px; color:var(--cyan); font-weight:600; white-space:nowrap;}




/* =========================================================
   v1.2.0 — Account dashboard motion & polish
   ========================================================= */
.panel-account, .account-shell {
  font-feature-settings: "ss01";
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 700px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 14px;
  background: var(--bg-elevated, #111826);
  border: 1px solid var(--line, rgba(234,241,250,.08));
  border-radius: var(--radius-md, 14px);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-dim, #8C9BB5);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, border-color .22s ease, color .22s ease;
}
.quick-item:hover {
  color: var(--cyan, #2FD9EC);
  border-color: var(--line-cyan, rgba(47,217,236,.35));
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(3,5,9,.42);
}
.quick-item .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,217,236,.16), rgba(237,168,62,.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan, #2FD9EC);
  animation: efAccIconFloat 2.6s ease-in-out infinite;
}
.quick-item:nth-child(odd) .ic { animation-delay: .15s; }
.quick-item:nth-child(3n) .ic { animation-delay: .3s; }
@keyframes efAccIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}
.quick-item .dot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--amber, #EDA83E);
  color: var(--ink-on-accent, #04141A);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  animation: efBadgePop 2s ease-in-out infinite;
}
@keyframes efBadgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.account-sidebar a {
  transition: background .18s ease, color .18s ease, padding-inline-start .18s ease;
  border-radius: 10px;
}
.account-sidebar a:hover,
.account-sidebar a.is-active {
  background: rgba(47,217,236,.1);
  color: var(--cyan, #2FD9EC);
  padding-inline-start: 14px;
}
.account-sidebar .nav-ic {
  transition: transform .2s ease;
}
.account-sidebar a:hover .nav-ic {
  transform: scale(1.1);
}
.order-card, .account-info-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.order-card:hover, .account-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3,5,9,.35);
}
@media (prefers-reduced-motion: reduce) {
  .quick-item .ic,
  .quick-item .dot-badge,
  .quick-item,
  .order-card {
    animation: none !important;
    transition: none !important;
  }
}
