/* ============================================================
   JadideShop — Customer dashboard (/account)
   Extends the tokens defined in style.css
   ============================================================ */

.acc-crumb { font-size: 12.5px; }
.acc-crumb a { color: var(--muted); text-decoration: none; }
.acc-crumb a:hover { color: var(--jp); }
.acc-crumb .breadcrumb-item.active { color: var(--ink); font-weight: 600; }
.acc-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--muted-2); }

/* ============ SIDEBAR ============ */
.acc-side { position: sticky; top: 92px; }
@media (max-width: 991.98px) { .acc-side { position: static; } }

.acc-id {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(150deg, #17203b, #101828); color: #fff;
  border-radius: 16px; padding: 18px; margin-bottom: 14px;
}
.acc-avatar, .acc-avatar-img { width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0; }
.acc-avatar {
  background: rgba(255,255,255,.14); display: flex; align-items: center;
  justify-content: center; font-size: 19px; font-weight: 800;
}
.acc-avatar-img { object-fit: cover; }
.acc-id-name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id-meta { margin: 2px 0 0; font-size: 12px; color: #b9c2d6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-nav {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.acc-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #4b5261;
  text-decoration: none; transition: background .15s, color .15s;
}
.acc-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.acc-nav-link:hover { background: #f1f4fa; color: var(--jp); }
.acc-nav-link.active { background: var(--jp-soft); color: var(--jp); }
.acc-nav-link.danger { color: var(--danger); }
.acc-nav-link.danger:hover { background: #fdeeec; color: var(--danger); }
.acc-nav-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.acc-count {
  margin-left: auto; background: #f1f3f8; color: var(--muted);
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px;
}
.acc-nav-link.active .acc-count { background: #fff; color: var(--jp); }
.acc-count.live { background: var(--jp); color: #fff; }

/* horizontal scroller on mobile */
@media (max-width: 991.98px) {
  .acc-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px; }
  .acc-nav-link { white-space: nowrap; }
  .acc-nav-sep { display: none; }
}

/* ============ HERO ============ */
.acc-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
}
.acc-hero-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.acc-hero-title { font-size: clamp(21px, 3vw, 27px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 5px; }
.acc-hero-sub { font-size: 13.5px; color: var(--muted); }

/* ============ STAT TILES ============ */
.acc-stat {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-decoration: none; color: var(--ink); transition: all .22s;
}
.acc-stat:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(16,24,40,.18); border-color: #d6dceb; color: var(--ink); }
.acc-stat-ico { font-size: 19px; line-height: 1; margin-bottom: 8px; }
.acc-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--jp); font-variant-numeric: tabular-nums; }
.acc-stat-label { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ============ SPEND STRIP ============ */
.acc-spend {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--dark-1); border-radius: 16px; padding: 20px 26px; color: #fff;
}
.acc-spend-label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #97a1b8; }
.acc-spend-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc-spend-value.alt { color: #ffc48a; }
.acc-spend-div { width: 1px; align-self: stretch; background: rgba(255,255,255,.12); }

/* ============ CARD SHELL ============ */
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.acc-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.acc-card-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.acc-card-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ============ ALERTS ============ */
.acc-alert { border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.acc-alert.ok { background: #e7f6ef; border-color: #b6e3cb; color: var(--ok); }
.acc-alert.err { background: #fdeeec; border-color: #f3c9c3; color: var(--danger); }

/* ============ STATUS BADGES ============ */
.acc-badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.acc-badge.ok   { background: #e7f6ef; color: var(--ok); }
.acc-badge.live { background: var(--jp-soft); color: var(--jp); }
.acc-badge.wait { background: #fdf3e2; color: var(--gold); }
.acc-badge.bad  { background: #fdeeec; color: var(--danger); }

/* ============ FILTER PILLS ============ */
.acc-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; }
.acc-filter {
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; transition: all .15s;
}
.acc-filter:hover { border-color: var(--jp); color: var(--jp); }
.acc-filter.active { background: var(--jp); border-color: var(--jp); color: #fff; }

/* ============ ORDER ROWS ============ */
.acc-order-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s;
}
.acc-order-row:last-of-type { border-bottom: 0; }
.acc-order-row:hover { background: #fafbfa; color: var(--ink); }
.acc-thumb {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; overflow: hidden; display: block;
  background: repeating-linear-gradient(45deg,#eef0f4,#eef0f4 9px,#e2e6ee 9px,#e2e6ee 18px);
}
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-order-main { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.acc-order-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.acc-order-extra { font-size: 11px; font-weight: 700; color: var(--jp); background: var(--jp-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.acc-order-meta { font-size: 12px; color: var(--muted); }
.acc-order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.acc-order-amt { font-size: 15px; font-weight: 800; color: var(--jp); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
  .acc-order-row { flex-wrap: wrap; }
  .acc-order-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ============ ORDER ITEMS ============ */
.acc-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-item-title { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.acc-item-title:hover { color: var(--jp); }
.acc-item-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.acc-item-amt { font-size: 14.5px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============ SUMMARY LIST ============ */
.acc-sum > div { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.acc-sum dt { font-weight: 500; color: var(--muted); margin: 0; }
.acc-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.acc-sum-total dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.acc-sum-total dd { font-size: 19px; font-weight: 800; color: var(--jp); }
.acc-address { font-size: 13.5px; line-height: 1.7; color: #4b5261; font-style: normal; }

/* ============ TIMELINE ============ */
.acc-timeline { list-style: none; margin: 0; padding: 4px 0 0; }
.acc-tl-step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.acc-tl-step:last-child { padding-bottom: 0; }
.acc-tl-step::before {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 4px;
  width: 2px; background: var(--line-2);
}
.acc-tl-step:last-child::before { display: none; }
.acc-tl-step.done::before { background: var(--jp); }
.acc-tl-mark {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; border: 2px solid var(--line-2);
  background: #fff; color: var(--muted-2);
}
.acc-tl-step.done .acc-tl-mark, .acc-tl-step.active .acc-tl-mark { background: var(--jp); border-color: var(--jp); color: #fff; }
.acc-tl-step.active .acc-tl-mark { animation: pulse 1.6s infinite; }
.acc-tl-body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.acc-tl-body strong { font-size: 14px; font-weight: 700; }
.acc-tl-step:not(.done):not(.active) .acc-tl-body strong { color: var(--muted-2); }
.acc-tl-body small { font-size: 12px; color: var(--muted); }

/* ============ EMPTY STATE ============ */
.acc-empty { text-align: center; padding: 44px 20px; }
.acc-empty-ico { font-size: 40px; line-height: 1; display: block; margin-bottom: 12px; }
.acc-empty-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.acc-empty-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }

/* ============ QUICK ACTIONS ============ */
.acc-quick {
  display: flex; align-items: center; gap: 13px; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; text-decoration: none; color: var(--ink); transition: all .22s;
}
.acc-quick:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(16,24,40,.16); border-color: #d6dceb; color: var(--ink); }
.acc-quick-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; font-size: 18px;
  background: var(--jp-soft); display: flex; align-items: center; justify-content: center;
}
.acc-quick strong { display: block; font-size: 14px; font-weight: 700; }
.acc-quick small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ============ PAGER ============ */
.acc-pager { margin-top: 18px; }
.acc-pager .pagination { margin: 0; justify-content: center; gap: 4px; flex-wrap: wrap; }
.acc-pager .page-link { border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.acc-pager .page-item.active .page-link { background: var(--jp); border-color: var(--jp); color: #fff; }
.acc-pager .page-link:hover { border-color: var(--jp); color: var(--jp); }

@media (prefers-reduced-motion: reduce) {
  .acc-stat:hover, .acc-quick:hover { transform: none; }
  .acc-tl-step.active .acc-tl-mark { animation: none; }
}
