/* ============================================================
   NexAccount v3 — Outfit font, clean card design
   Strategy: fully self-contained inside WC content area.
   No negative margins. No fixed/absolute breakouts.
   Works inside Astra's .woocommerce container as-is.
   ============================================================ */

:root {
  --n-bg:     #f1f5f9;
  --n-white:  #ffffff;
  --n-ink:    #0f172a;
  --n-ink2:   #334155;
  --n-muted:  #64748b;
  --n-bdr:    #e2e8f0;
  --n-blue:   #2563eb;
  --n-blue-l: #eff6ff;
  --n-blue-m: #bfdbfe;
  --n-green:  #059669;
  --n-red:    #dc2626;
  --n-r:      10px;
  --n-rsm:    7px;
  --n-sh:     0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.07);
  --n-sh2:    0 4px 8px rgba(0,0,0,.08), 0 14px 36px rgba(0,0,0,.1);
  --n-f:      'Outfit', -apple-system, sans-serif;
}

/* scoped reset */
.nxa, .nxa * { box-sizing: border-box; }
.nxa a { text-decoration: none; }
.nxa h1,.nxa h2,.nxa h3,.nxa h4 { margin: 0; }
.nxa p { margin: 0; }

/* ── Root wrapper ──
   This sits directly inside Astra's .woocommerce div.
   We just set background and font — no layout tricks.
*/
.nxa {
  font-family: var(--n-f);
  color: var(--n-ink);
  background: var(--n-bg);
  border-radius: var(--n-r);
  overflow: hidden;
  /* Expand to fill whatever width Astra gives us */
  width: 100%;
}

/* ══════════════════════════════════════
   BANNER (replaces hero — stays inside container)
══════════════════════════════════════ */
.nxa-banner {
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  padding: 28px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.nxa-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(59,130,246,.25) 0%, transparent 55%);
  pointer-events: none;
}
.nxa-banner-left {
  display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}
.nxa-banner-avatar { position: relative; flex-shrink: 0; }
.nxa-banner-avatar img {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  border: 2.5px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(59,130,246,.4);
  display: block;
}
.nxa-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: #22c55e; border-radius: 50%; border: 2px solid white;
}
.nxa-banner-name {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 800; color: #fff; letter-spacing: -.3px;
  margin-bottom: 2px !important;
}
.nxa-banner-email { color: rgba(255,255,255,.6); font-size: 13px; }

.nxa-banner-right {
  display: flex; align-items: center; gap: 20px;
  position: relative; z-index: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--n-r);
  padding: 12px 20px;
  backdrop-filter: blur(6px);
}
.nxa-banner-divider { width: 1px; height: 28px; background: rgba(255,255,255,.15); }
.nxa-banner-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nxa-banner-stat-val {
  font-size: 18px; font-weight: 800; color: #fff;
  white-space: nowrap;
}
.nxa-banner-stat-lbl { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 500; }

/* ══════════════════════════════════════
   DESKTOP NAV TABS
══════════════════════════════════════ */
.nxa-nav {
  background: var(--n-white);
  border-bottom: 1px solid var(--n-bdr);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky; top: 0; z-index: 300;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nxa-nav::-webkit-scrollbar { display: none; }

.nxa-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 18px;
  color: var(--n-muted);
  font-size: 13.5px; font-weight: 500; font-family: var(--n-f);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.nxa-tab:hover { color: var(--n-ink); background: #f8fafc; }
.nxa-tab--on {
  color: var(--n-blue) !important;
  border-bottom-color: var(--n-blue);
  font-weight: 700;
  background: var(--n-blue-l);
}
.nxa-tab--out { color: var(--n-red) !important; margin-left: auto; }
.nxa-tab--out:hover { border-bottom-color: var(--n-red) !important; background: #fee2e2; }

.nxa-tab-ic { width: 17px; height: 17px; flex-shrink: 0; display: flex; align-items: center; }
.nxa-tab-ic svg { width: 17px; height: 17px; }

/* hide desktop nav on mobile — show bottom nav instead */
@media (max-width: 600px) {
  .nxa-nav { display: none; }
}

/* ══════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════ */
.nxa-mob-nav {
  display: none; /* hidden on desktop */
}
@media (max-width: 600px) {
  .nxa-mob-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--n-white);
    border-top: 1px solid var(--n-bdr);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nxa-mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 8px;
    color: var(--n-muted);
    font-size: 10.5px; font-weight: 500; font-family: var(--n-f);
    text-decoration: none;
    transition: color .15s, background .15s;
    position: relative;
    min-width: 0;
  }
  .nxa-mob-tab--on {
    color: var(--n-blue);
  }
  .nxa-mob-tab--on::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2.5px;
    background: var(--n-blue);
    border-radius: 0 0 3px 3px;
  }
  .nxa-mob-tab--out { color: var(--n-red); }
  .nxa-mob-ic {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
  }
  .nxa-mob-ic svg { width: 22px; height: 22px; }
  .nxa-mob-lbl {
    font-size: 10px; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 52px; text-align: center;
  }
  /* push content up so bottom nav doesn't cover it */
  .nxa-body { padding-bottom: 80px; }
}

/* ══════════════════════════════════════
   CONTENT BODY
══════════════════════════════════════ */
.nxa-body {
  padding: 24px;
  min-height: 400px;
}

/* WC injects .woocommerce-MyAccount-content — neutralise its styles */
.nxa-body .woocommerce-MyAccount-content {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════
   DASHBOARD
══════════════════════════════════════ */
.nxa-dash { display: flex; flex-direction: column; gap: 22px; }

.nxa-greet h3 {
  font-size: clamp(16px,2.5vw,20px); font-weight: 700; color: var(--n-ink);
  margin-bottom: 4px !important;
}
.nxa-greet p { color: var(--n-muted); font-size: 13.5px; }

/* Stats */
.nxa-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.nxa-stat {
  background: var(--n-white);
  border: 1px solid var(--n-bdr);
  border-radius: var(--n-r);
  padding: 16px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--n-sh);
  transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
  min-width: 0;
}
.nxa-stat::after {
  content: '';
  position: absolute; top: -16px; right: -16px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ac, #2563eb); opacity: .07;
}
.nxa-stat:hover { transform: translateY(-2px); box-shadow: var(--n-sh2); }

.nxa-stat-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac, #2563eb);
}
.nxa-stat-ic svg { width: 20px; height: 20px; }

.nxa-stat-body { min-width: 0; }
.nxa-stat-n {
  display: block; font-size: 22px; font-weight: 900;
  color: var(--n-ink); letter-spacing: -1px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nxa-stat-price { font-size: 16px !important; letter-spacing: -.5px !important; }
.nxa-stat-l { display: block; font-size: 12px; color: var(--n-muted); margin-top: 5px; }

/* Grid */
.nxa-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Card */
.nxa-card {
  background: var(--n-white);
  border: 1px solid var(--n-bdr);
  border-radius: var(--n-r);
  box-shadow: var(--n-sh);
  overflow: hidden;
  margin-bottom: 16px;
}
.nxa-card:last-child { margin-bottom: 0; }

.nxa-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--n-bdr);
}
.nxa-card-title { font-size: 14px; font-weight: 700; color: var(--n-ink); }
.nxa-link { font-size: 12.5px; color: var(--n-blue); font-weight: 600; }
.nxa-link:hover { text-decoration: underline; }

/* Table */
.nxa-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.nxa-tbl th {
  padding: 9px 16px; text-align: left;
  color: var(--n-muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  background: #f8fafc; border-bottom: 1px solid var(--n-bdr);
}
.nxa-tbl td {
  padding: 11px 16px; border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
}
.nxa-tbl tr:last-child td { border-bottom: 0; }
.nxa-tbl tr:hover td { background: #f9fafb; }
.nxa-tbl td small { font-size: 11px; color: var(--n-muted); display: block; margin-top: 1px; }
.nxa-tbl-prod { color: var(--n-muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Right col */
.nxa-right-col { display: flex; flex-direction: column; }

/* Quick links */
.nxa-ql {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px; border-bottom: 1px solid #f8fafc;
  color: var(--n-ink2); font-size: 13.5px; font-weight: 500;
  transition: background .12s;
}
.nxa-ql:last-child { border-bottom: 0; }
.nxa-ql:hover { background: #f8fafc; }
.nxa-ql-ic { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.nxa-ql-t { flex: 1; }
.nxa-ql-arr { width: 14px; height: 14px; color: var(--n-muted); flex-shrink: 0; }

/* Wishlist mini */
.nxa-wl-mini { padding: 6px 0; }
.nxa-wl-mini-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid #f8fafc;
  transition: background .12s;
}
.nxa-wl-mini-item:last-child { border-bottom: 0; }
.nxa-wl-mini-item:hover { background: #f8fafc; }
.nxa-wl-mini-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.nxa-wl-mini-item span { display: block; font-size: 12.5px; font-weight: 600; color: var(--n-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.nxa-wl-mini-item strong { display: block; font-size: 12px; color: var(--n-blue); margin-top: 1px; }

/* ══════════════════════════════════════
   PAGES (Orders, Wishlist etc.)
══════════════════════════════════════ */
.nxa-page { display: flex; flex-direction: column; gap: 16px; }
.nxa-page-hd h3 {
  font-size: clamp(16px,2.5vw,20px); font-weight: 800; color: var(--n-ink);
}
.nxa-page-hd h3 small { font-size: 13px; color: var(--n-muted); font-weight: 400; margin-left: 8px; }

/* Order items */
.nxa-order-list { display: flex; flex-direction: column; gap: 8px; }

.nxa-oi {
  background: var(--n-white);
  border: 1px solid var(--n-bdr);
  border-radius: var(--n-r);
  box-shadow: var(--n-sh);
  overflow: hidden;
}

.nxa-oi-hd {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: none; border: none;
  cursor: pointer; font-family: var(--n-f); text-align: left;
  transition: background .12s;
}
.nxa-oi-hd:hover, .nxa-oi-hd[aria-expanded="true"] { background: #f9fafb; }

.nxa-oi-id { display: flex; flex-direction: column; min-width: 90px; }
.nxa-oi-id strong { font-size: 14px; font-weight: 700; color: var(--n-ink); }
.nxa-oi-id span { font-size: 11.5px; color: var(--n-muted); margin-top: 2px; }
.nxa-oi-total { font-size: 14px; font-weight: 700; color: var(--n-blue); margin-left: auto; margin-right: 8px; }

.nxa-chev {
  width: 18px; height: 18px; color: var(--n-muted);
  transition: transform .22s; flex-shrink: 0;
}
.nxa-oi-hd[aria-expanded="true"] .nxa-chev { transform: rotate(180deg); }

.nxa-oi-body { padding: 16px 18px; border-top: 1px solid var(--n-bdr); }
.nxa-oi-body[hidden] { display: none !important; }

.nxa-oi-prods { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.nxa-oi-prod {
  display: flex; align-items: center; gap: 10px;
  background: var(--n-bg); border-radius: var(--n-rsm); padding: 8px 12px;
}
.nxa-oi-prod img { width: 42px; height: 42px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.nxa-oi-prod p { font-size: 13px; font-weight: 600; color: var(--n-ink); }
.nxa-oi-prod small { font-size: 11.5px; color: var(--n-muted); }

/* Timeline */
.nxa-tl {
  display: flex; align-items: flex-start;
  padding: 16px 0; margin-bottom: 16px;
  border-top: 1px dashed var(--n-bdr);
  border-bottom: 1px dashed var(--n-bdr);
}
.nxa-tl-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; min-width: 60px; }
.nxa-tl-dot {
  width: 32px; height: 32px; border-radius: 50%; position: relative; z-index: 1;
  border: 2px solid var(--n-bdr); background: var(--n-white);
  display: flex; align-items: center; justify-content: center;
}
.nxa-tl-dot svg { width: 14px; height: 14px; }
.nxa-tl-done .nxa-tl-dot,
.nxa-tl-active .nxa-tl-dot  { background: var(--n-blue); border-color: var(--n-blue); }
.nxa-tl-active .nxa-tl-dot  { box-shadow: 0 0 0 5px rgba(37,99,235,.15); animation: nxaPulse 2s infinite; }
@keyframes nxaPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
  50%      { box-shadow: 0 0 0 8px rgba(37,99,235,.05); }
}
.nxa-tl-ln {
  position: absolute; top: 15px;
  left: calc(50% + 16px); right: calc(-50% + 16px);
  height: 2px; background: var(--n-bdr);
}
.nxa-tl-ln-on { background: var(--n-blue); }
.nxa-tl-step span { font-size: 11px; color: var(--n-muted); text-align: center; line-height: 1.3; }
.nxa-tl-done span, .nxa-tl-active span { color: var(--n-blue); font-weight: 600; }

.nxa-oi-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Wishlist grid */
.nxa-wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 14px; }
.nxa-wl-card { background: var(--n-white); border: 1px solid var(--n-bdr); border-radius: var(--n-r); overflow: hidden; box-shadow: var(--n-sh); transition: transform .18s, box-shadow .18s; }
.nxa-wl-card:hover { transform: translateY(-3px); box-shadow: var(--n-sh2); }
.nxa-wl-img { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.nxa-wl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nxa-wl-card:hover .nxa-wl-img img { transform: scale(1.05); }
.nxa-wl-oos { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: white; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.nxa-wl-info { padding: 12px; }
.nxa-wl-name { display: block; font-size: 13px; font-weight: 600; color: var(--n-ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxa-wl-name:hover { color: var(--n-blue); }
.nxa-wl-price { font-size: 14px; font-weight: 700; color: var(--n-blue); margin-bottom: 10px; }
.nxa-wl-acts { display: flex; gap: 6px; align-items: center; }
.nxa-wl-rm {
  width: 30px; height: 30px; border: 1px solid var(--n-bdr); border-radius: var(--n-rsm);
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--n-muted); transition: all .15s; flex-shrink: 0;
}
.nxa-wl-rm svg { width: 13px; height: 13px; }
.nxa-wl-rm:hover { border-color: var(--n-red); color: var(--n-red); background: #fee2e2; }

/* ══════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════ */
.nxa-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.nxa-s-completed  { background: #d1fae5; color: #065f46; }
.nxa-s-processing { background: #dbeafe; color: #1e40af; }
.nxa-s-pending    { background: #fef9c3; color: #713f12; }
.nxa-s-on-hold    { background: #ffedd5; color: #9a3412; }
.nxa-s-cancelled  { background: #fee2e2; color: #991b1b; }
.nxa-s-refunded   { background: #f1f5f9; color: #475569; }
.nxa-s-failed     { background: #fecaca; color: #991b1b; }
.nxa-s-shipped    { background: #cffafe; color: #164e63; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.nxa-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; background: var(--n-blue); color: #fff !important;
  border: 2px solid var(--n-blue); border-radius: var(--n-rsm);
  font-size: 13px; font-weight: 600; font-family: var(--n-f);
  cursor: pointer; transition: all .18s; text-decoration: none !important;
  white-space: nowrap;
}
.nxa-btn:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,.3); }
.nxa-btn-ol { background: transparent; color: var(--n-blue) !important; }
.nxa-btn-ol:hover { background: var(--n-blue-l); transform: none; box-shadow: none; }
.nxa-btn-sm { padding: 7px 14px; font-size: 12px; }
.nxa-btn-xs {
  display: inline-flex; padding: 4px 10px;
  background: var(--n-blue-l); color: var(--n-blue) !important;
  border-radius: 5px; font-size: 12px; font-weight: 600;
  text-decoration: none !important; transition: background .15s;
}
.nxa-btn-xs:hover { background: var(--n-blue-m); }

/* Pager */
.nxa-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--n-bdr); }
.nxa-pager span { font-size: 13px; color: var(--n-muted); font-weight: 500; }

/* Empty state */
.nxa-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 20px; text-align: center; }
.nxa-empty svg { width: 64px; height: 64px; opacity: .2; }
.nxa-empty p { font-size: 15px; color: var(--n-muted); }
.nxa-empty a { color: var(--n-blue); }

/* ══════════════════════════════════════
   WooCommerce forms (edit-account, addresses, payment)
══════════════════════════════════════ */
.nxa-body h2, .nxa-body h3 { font-family: var(--n-f); font-weight: 700; color: var(--n-ink); margin-bottom: 16px !important; }

.nxa-body .form-row,
.nxa-body .woocommerce-form-row { margin-bottom: 14px !important; }

.nxa-body label {
  display: block !important; font-size: 13px !important;
  font-weight: 600 !important; color: var(--n-ink) !important; margin-bottom: 5px !important;
}
.nxa-body input[type="text"],
.nxa-body input[type="email"],
.nxa-body input[type="password"],
.nxa-body input[type="tel"],
.nxa-body select,
.nxa-body textarea {
  width: 100% !important;
  padding: 10px 13px !important;
  border: 1.5px solid var(--n-bdr) !important;
  border-radius: var(--n-rsm) !important;
  font-size: 14px !important; font-family: var(--n-f) !important;
  color: var(--n-ink) !important; background: var(--n-white) !important;
  outline: none !important;
  transition: border-color .18s, box-shadow .18s !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}
.nxa-body input:focus,
.nxa-body select:focus,
.nxa-body textarea:focus {
  border-color: var(--n-blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
.nxa-body .woocommerce-Button,
.nxa-body button[type="submit"],
.nxa-body input[type="submit"] {
  background: var(--n-blue) !important; color: white !important;
  border: none !important; padding: 10px 24px !important;
  border-radius: var(--n-rsm) !important; font-family: var(--n-f) !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer !important; -webkit-appearance: none !important;
  box-shadow: none !important; transition: background .18s !important;
}
.nxa-body .woocommerce-Button:hover,
.nxa-body button[type="submit"]:hover,
.nxa-body input[type="submit"]:hover { background: #1d4ed8 !important; }

.nxa-body .woocommerce-info  { border-top-color: var(--n-blue)  !important; }
.nxa-body .woocommerce-message { border-top-color: var(--n-green) !important; }
.nxa-body .woocommerce-error  { border-top-color: var(--n-red)   !important; }

.nxa-body .woocommerce-Address,
.nxa-body .woocommerce-address-fields {
  background: var(--n-white); border: 1px solid var(--n-bdr);
  border-radius: var(--n-r); padding: 20px; box-shadow: var(--n-sh);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Tablet — 768px থেকে 1024px */
@media (max-width: 1024px) {
  .nxa-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Small tablet — 768px */
@media (max-width: 860px) {
  .nxa-stats { grid-template-columns: repeat(3, 1fr); }
  .nxa-grid  { grid-template-columns: 1fr; }
  /* nav scroll on tablet */
  .nxa-nav { overflow-x: auto; }
  .nxa-tab { padding: 12px 14px; font-size: 13px; }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  /* Banner */
  .nxa-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .nxa-banner-left { gap: 12px; }
  .nxa-banner-avatar img { width: 52px; height: 52px; }
  .nxa-banner-right { width: 100%; justify-content: space-around; padding: 10px 14px; gap: 0; }
  .nxa-banner-stat-val { font-size: 15px; }
  .nxa-banner-stat-lbl { font-size: 10px; }

  /* Stats */
  .nxa-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .nxa-stat  { padding: 12px 10px; gap: 9px; }
  .nxa-stat-n { font-size: 18px; }
  .nxa-stat-price { font-size: 14px !important; }
  .nxa-stat-ic { width: 34px; height: 34px; border-radius: 8px; }
  .nxa-stat-ic svg { width: 17px; height: 17px; }

  /* Grid → single col */
  .nxa-grid { grid-template-columns: 1fr; }

  /* Content */
  .nxa-body { padding: 14px; }

  /* Orders */
  .nxa-oi-hd { padding: 12px 14px; gap: 8px; }
  .nxa-oi-id { min-width: 70px; }
  .nxa-oi-id strong { font-size: 13px; }
  .nxa-oi-total { display: none; }
  .nxa-oi-body { padding: 12px 14px; }
  .nxa-oi-prods { gap: 8px; }
  .nxa-oi-prod { padding: 8px 10px; width: 100%; }
  .nxa-oi-acts { flex-wrap: wrap; gap: 6px; }
  .nxa-oi-acts .nxa-btn { flex: 1; min-width: 120px; text-align: center; font-size: 12px; padding: 8px 10px; }

  /* Timeline — stack vertically on very small screens */
  .nxa-tl { overflow-x: auto; padding: 12px 0; }
  .nxa-tl-step { min-width: 55px; }
  .nxa-tl-step span { font-size: 10px; }
  .nxa-tl-dot { width: 26px; height: 26px; }
  .nxa-tl-dot svg { width: 11px; height: 11px; }
  .nxa-tl-ln { top: 12px; }

  /* Wishlist */
  .nxa-wl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nxa-wl-info { padding: 10px; }
  .nxa-wl-name { font-size: 12px; }
  .nxa-wl-price { font-size: 13px; margin-bottom: 8px; }

  /* Review */
  .nxa-rv-item { padding: 12px 0; }
  .nxa-rv-prod img { width: 36px; height: 36px; }
  .nxa-star { font-size: 22px; }
  .nxa-rv-txt { font-size: 13px; }

  /* Avatar */
  .nxa-av-wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .nxa-av-actions { flex-wrap: wrap; }

  /* Pager */
  .nxa-pager { gap: 8px; }
  .nxa-pager .nxa-btn { padding: 8px 14px; font-size: 12px; }

  /* Table — scroll on mobile */
  .nxa-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nxa-tbl { min-width: 420px; }
}

/* Small mobile — 400px */
@media (max-width: 400px) {
  .nxa-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .nxa-banner-right { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .nxa-wl-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .nxa-oi-acts .nxa-btn { flex: 1 1 100%; }
  .nxa-banner-stat-val { font-size: 14px; }
}

/* ══════════════════════════════════════
   ENTRANCE ANIMATIONS
══════════════════════════════════════ */
@keyframes nxaUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nxa-stat { animation: nxaUp .3s ease both; }
.nxa-stat:nth-child(1){animation-delay:.03s}
.nxa-stat:nth-child(2){animation-delay:.07s}
.nxa-stat:nth-child(3){animation-delay:.11s}
.nxa-stat:nth-child(4){animation-delay:.15s}
.nxa-stat:nth-child(5){animation-delay:.19s}
.nxa-card  { animation: nxaUp .3s .08s ease both; }
.nxa-oi    { animation: nxaUp .28s ease both; }
.nxa-wl-card { animation: nxaUp .28s ease both; }

/* ══════════════════════════════════════
   AVATAR UPLOAD (edit-account)
══════════════════════════════════════ */
.nxa-av-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--n-bg);
  border: 1px solid var(--n-bdr);
  border-radius: var(--n-r);
  margin-bottom: 24px;
}

.nxa-av-ring {
  position: relative;
  width: 90px; height: 90px;
  flex-shrink: 0;
  cursor: pointer;
}
.nxa-av-ring img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--n-white);
  box-shadow: 0 0 0 2px var(--n-bdr), var(--n-sh);
  display: block;
  transition: opacity .2s;
}
.nxa-av-ring:hover img { opacity: .75; }

.nxa-av-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--n-blue); color: #fff;
  border-radius: var(--n-rsm);
  font-size: 13.5px; font-weight: 600; font-family: var(--n-f);
  cursor: pointer; transition: background .15s;
  white-space: nowrap; border: none;
}
.nxa-av-btn:hover { background: #1d4ed8; }

.nxa-av-hint {
  font-size: 11.5px; color: var(--n-muted);
  margin-top: 2px;
}

/* ring pulse when file selected */
.nxa-av-ring.nxa-av-selected img {
  box-shadow: 0 0 0 3px var(--n-blue), var(--n-sh);
}

.nxa-av-info {
  display: flex; flex-direction: column; gap: 6px;
}
.nxa-av-info strong { font-size: 14px; font-weight: 700; color: var(--n-ink); }
.nxa-av-info span   { font-size: 12px; color: var(--n-muted); }

.nxa-av-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}

.nxa-av-del {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: none; border: 1px solid #fca5a5;
  border-radius: var(--n-rsm);
  color: var(--n-red); font-size: 12.5px; font-weight: 600;
  font-family: var(--n-f); cursor: pointer;
  transition: all .15s; width: fit-content;
}
.nxa-av-del svg { width: 13px; height: 13px; }
.nxa-av-del:hover { background: #fee2e2; border-color: var(--n-red); }

/* preview filename */
.nxa-av-filename {
  font-size: 11.5px; color: var(--n-blue); font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .nxa-av-wrap { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   REVIEW SYSTEM
══════════════════════════════════════ */
.nxa-review-wrap {
  border-top: 1px dashed var(--n-bdr);
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nxa-review-hd {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--n-ink);
}

.nxa-rv-item {
  background: #fafafa;
  border: 1px solid var(--n-bdr);
  border-radius: var(--n-rsm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.nxa-rv-prod {
  display: flex; align-items: center; gap: 9px;
  min-width: 160px; flex-shrink: 0;
}
.nxa-rv-prod img {
  width: 36px; height: 36px;
  border-radius: 5px; object-fit: cover; flex-shrink: 0;
}
.nxa-rv-prod span {
  font-size: 12.5px; font-weight: 600; color: var(--n-ink);
  line-height: 1.3;
}

.nxa-rv-form {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; flex: 1;
}

/* Stars */
.nxa-stars {
  display: flex; align-items: center; gap: 2px;
}
.nxa-star {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #d1d5db;
  padding: 0 1px; line-height: 1;
  transition: color .1s, transform .1s;
}
.nxa-star:hover,
.nxa-star.nxa-star-on { color: #f59e0b; }
.nxa-star:hover { transform: scale(1.15); }

.nxa-rv-txt {
  flex: 1; min-width: 160px;
  padding: 7px 10px;
  border: 1.5px solid var(--n-bdr);
  border-radius: var(--n-rsm);
  font-size: 13px; font-family: var(--n-f);
  color: var(--n-ink); resize: none;
  transition: border-color .15s;
  background: var(--n-white);
}
.nxa-rv-txt:focus {
  outline: none;
  border-color: var(--n-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.nxa-rv-done {
  font-size: 12.5px; color: var(--n-green);
  font-weight: 600; padding: 4px 0;
}

/* submitted state */
.nxa-rv-item.nxa-rv-submitted .nxa-rv-form { display: none; }
.nxa-rv-submitted-msg {
  font-size: 12.5px; color: var(--n-green); font-weight: 600;
  animation: nxaUp .25s ease;
}

/* ══════════════════════════════════════
   REVIEW on view-order detail page
   (outside .nxa wrapper, so global scope)
══════════════════════════════════════ */
.nxa-rv-detail {
  margin-top: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 4px 0 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.07);
}
/* ensure font loads on detail page too */
.nxa-rv-detail,
.nxa-rv-detail * {
  font-family: 'Outfit', -apple-system, sans-serif;
  box-sizing: border-box;
}
.nxa-rv-detail a { text-decoration: none; }
