/* =========================================================
   Buyonix — Customer Account, My Orders, Live Tracking & VIP Club Styles
   ========================================================= */

.announce__ticker { flex: 1; overflow: hidden; }
.announce__links { display: flex; align-items: center; gap: 14px; flex-shrink: 0; font-size: 12.5px; }
.announce__links a:hover { color: #fff; }
.search__icon { width: 18px; height: 18px; margin-left: 14px; color: #9a9aa6; flex-shrink: 0; }
.search .search__btn { width: auto; padding: 0 18px; font-weight: 700; font-size: 13.5px; }
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  line-height: 1.2;
  transition: background 0.2s, border-color 0.2s;
}
.action-pill:hover {
  background: rgba(247, 147, 30, 0.12);
  border-color: rgba(247, 147, 30, 0.35);
}
.action-pill svg { color: var(--brand); }
.action-pill small { display: block; font-size: 10.5px; color: var(--muted); }
.action-pill b { font-size: 13px; color: #fff; white-space: nowrap; }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.cart-btn__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.acc-page {
  padding: 36px 0 80px;
  position: relative;
  z-index: 2;
}

/* ---------- Auth Grid (Logged Out) ---------- */
.acc-auth-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.acc-auth-Grid[hidden], #accAuthView[hidden], #accDashView[hidden], .acc-panel[hidden] {
  display: none !important;
}

.acc-auth-card, .acc-perks-box, .acc-guest-track, .acc-hero, .acc-panel {
  background: rgba(16, 18, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.acc-auth-card {
  padding: 30px;
}

.acc-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.acc-atab {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}
.acc-atab.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(239, 65, 35, 0.6);
}

.acc-auth-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 4px 0 10px;
}
.acc-auth-head p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.acc-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(247, 147, 30, 0.1);
  border: 1px dashed rgba(247, 147, 30, 0.4);
  margin-bottom: 20px;
  font-size: 12.5px;
}
.acc-demo-bar span {
  font-weight: 700;
  color: var(--brand);
}
.acc-demo-btn {
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.acc-demo-btn:hover {
  background: var(--grad);
  border-color: transparent;
}

.acc-form, .acc-profile-form {
  display: grid;
  gap: 16px;
}
.acc-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.acc-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.acc-row-2[hidden], .acc-field[hidden] {
  display: none !important;
}
.acc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d4df;
  margin-bottom: 6px;
}
.acc-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acc-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.15);
}
.acc-field input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}

.acc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 229, 153, 0.07);
  border: 1px solid rgba(0, 229, 153, 0.22);
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
}
.acc-check input {
  width: 18px;
  height: 18px;
  accent-color: #00e599;
  margin-top: 2px;
  flex-shrink: 0;
}

.acc-error {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Perks Column ---------- */
.acc-perks-col {
  display: grid;
  gap: 18px;
}
.acc-perks-box {
  padding: 28px;
}
.acc-perks-box h2 {
  font-size: 24px;
  margin: 4px 0 18px;
}
.acc-perks-list {
  display: grid;
  gap: 14px;
}
.acc-perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.acc-perk__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(247, 147, 30, 0.14);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.acc-perk b {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}
.acc-perk p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.acc-perk code, .acc-guest-track code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(247, 147, 30, 0.18);
  color: var(--brand);
  font-weight: 700;
}

.acc-guest-track {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acc-guest-track b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.acc-guest-track p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Logged-In Hero Banner ---------- */
.acc-hero {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(247, 147, 30, 0.13) 0%, rgba(16, 18, 28, 0.9) 55%);
  border-color: rgba(247, 147, 30, 0.3);
}
.acc-hero__user {
  display: flex;
  align-items: center;
  gap: 18px;
}
.acc-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(239, 65, 35, 0.7);
  flex-shrink: 0;
}
.acc-hero__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.acc-tier-badge {
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.2);
  border: 1px solid rgba(247, 147, 30, 0.45);
  color: #ffb347;
  font-size: 11.5px;
  font-weight: 800;
}
.acc-wa-badge {
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(0, 229, 153, 0.14);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00e599;
  font-size: 11.5px;
  font-weight: 700;
}
.acc-hero__user h1 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 3px;
}
.acc-hero__user p {
  font-size: 13px;
  color: var(--muted);
}

.acc-hero__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.acc-stat-card {
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  min-width: 135px;
}
.acc-stat-card--gold {
  background: rgba(247, 147, 30, 0.12);
  border-color: rgba(247, 147, 30, 0.35);
}
.acc-stat-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.acc-stat-card b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 2px 0;
}
.acc-stat-card span {
  font-size: 11px;
  color: #00e599;
}

/* ---------- Dashboard Navigation Tabs ---------- */
.acc-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.acc-nav-tabs::-webkit-scrollbar { display: none; }
.acc-ntab {
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.acc-ntab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.acc-ntab.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(239, 65, 35, 0.6);
}
.acc-ntab__count {
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
}
.acc-ntab__hot {
  padding: 2px 7px;
  border-radius: 99px;
  background: #00e599;
  color: #04130d;
  font-size: 10px;
  font-weight: 800;
}

/* ---------- Panels & Order Cards ---------- */
.acc-panel {
  padding: 28px;
}
.acc-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.acc-panel__head h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.acc-panel__head p {
  font-size: 13.5px;
  color: var(--muted);
}

.acc-orders-list {
  display: grid;
  gap: 18px;
}
.acc-order-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 18px;
}
.acc-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acc-order-id {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.acc-order-date {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 10px;
}
.acc-status-pill {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(247, 147, 30, 0.16);
  color: #ffb347;
  border: 1px solid rgba(247, 147, 30, 0.4);
}
.acc-status-pill--delivered {
  background: rgba(0, 229, 153, 0.15);
  color: #00e599;
  border-color: rgba(0, 229, 153, 0.4);
}
.acc-status-pill--cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* 5-Step Progress Tracker inside Order Card */
.acc-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.acc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.5;
}
.acc-step i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.acc-step.is-done {
  color: #fff;
  opacity: 1;
}
.acc-step.is-done i {
  background: #00e599;
  color: #04130d;
}
.acc-step.is-current {
  color: var(--brand);
  font-weight: 700;
  opacity: 1;
}
.acc-step.is-current i {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 12px rgba(247, 147, 30, 0.7);
}

.acc-order-items {
  display: grid;
  gap: 10px;
}
.acc-oitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.acc-oitem img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.acc-oitem__info {
  flex: 1;
  min-width: 0;
}
.acc-oitem__info b {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-oitem__info small {
  color: var(--muted);
  font-size: 12px;
}

.acc-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.acc-order-total b {
  font-family: var(--display);
  font-size: 19px;
  color: var(--brand);
}
.acc-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- VIP Coupons Grid ---------- */
.acc-coupons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.acc-coupon {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(247, 147, 30, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px dashed rgba(247, 147, 30, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.acc-coupon__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 229, 153, 0.16);
  color: #00e599;
  font-size: 11px;
  font-weight: 800;
}
.acc-coupon h3 {
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
}
.acc-coupon p {
  font-size: 12.5px;
  color: var(--muted);
}

.acc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  color: #00e599;
  cursor: pointer;
}
.acc-deals-prefs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  .acc-auth-grid { grid-template-columns: 1fr; }
  .acc-coupons-grid { grid-template-columns: repeat(2, 1fr); }
  .acc-row-3 { grid-template-columns: 1fr; }
  .acc-deals-prefs { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .announce__links, .action-pill, .cart-btn__text { display: none; }
  .acc-steps { grid-template-columns: 1fr; }
  .acc-row-2 { grid-template-columns: 1fr; }
  .acc-coupons-grid { grid-template-columns: 1fr; }
  .acc-hero { padding: 20px; }
  .acc-panel, .acc-auth-card { padding: 20px; }
}
