/**
 * AreaBuy Market Technologies - Customer Account & Profile Dashboard Stylesheet
 * Modeled after Jumia's comprehensive customer account architecture, elevated with AreaBuy's modern town commerce aesthetic.
 */

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --primary-green: #006838;
  --primary-accent: #00A651;
  --primary-light: #f0fdf4;
  --primary-border: #bbf7d0;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-100);
  color: var(--slate-900);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================================
   TOP UTILITY & NAVIGATION HEADER (AreaBuy Market Brand)
   ========================================================================= */
.acc-header {
  background: #006838;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.acc-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.acc-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.acc-brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.acc-brand-accent {
  color: #a7f3d0;
}

.acc-town-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.acc-header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.acc-header-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--slate-900);
  outline: none;
  transition: all 0.2s;
}

.acc-header-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.4);
}

.acc-search-icon {
  position: absolute;
  left: 12px;
  color: var(--slate-500);
  pointer-events: none;
}

.acc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.acc-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.acc-btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.acc-btn-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #006838;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.acc-btn-track:hover {
  background: #f0fdf4;
}

.acc-user-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.acc-user-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-user-name-mini {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================================
   MAIN DASHBOARD CONTAINER & JUMIA 2-COLUMN GRID
   ========================================================================= */
.acc-main {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.acc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-bottom: 20px;
  font-weight: 600;
}

.acc-breadcrumbs a {
  color: var(--slate-600);
  text-decoration: none;
}

.acc-breadcrumbs a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.acc-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

/* =========================================================================
   LEFT SIDEBAR (Account Menu & User Greeting)
   ========================================================================= */
.acc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-user-summary-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.acc-user-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006838 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 104, 56, 0.2);
}

.acc-user-info-text {
  overflow: hidden;
}

.acc-user-greeting {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.acc-user-fullname {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}

.acc-sidebar-nav-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc-nav-list {
  list-style: none;
}

.acc-nav-item {
  border-bottom: 1px solid var(--slate-100);
}

.acc-nav-item:last-child {
  border-bottom: none;
}

.acc-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.acc-nav-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-nav-icon {
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  transition: color 0.15s;
}

.acc-nav-link:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

.acc-nav-link:hover .acc-nav-icon {
  color: var(--primary-green);
}

.acc-nav-link.active {
  background: var(--primary-light);
  color: var(--primary-green);
  border-left: 4px solid var(--primary-green);
}

.acc-nav-link.active .acc-nav-icon {
  color: var(--primary-green);
}

.acc-nav-count-badge {
  background: #dcfce7;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.acc-nav-link-logout {
  color: #b91c1c;
}

.acc-nav-link-logout:hover {
  background: #fef2f2;
  color: #991b1b;
}

.acc-nav-link-logout .acc-nav-icon {
  color: #b91c1c;
}

/* =========================================================================
   RIGHT MAIN CONTENT PANELS
   ========================================================================= */
.acc-panel {
  display: none;
}

.acc-panel.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.acc-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.acc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.acc-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-card-subtitle {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.acc-card-action-link {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-green);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.acc-card-action-link:hover {
  text-decoration: underline;
}

/* 3 Overview Quick Metric Cards */
.acc-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.acc-metric-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.acc-metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.acc-metric-value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 2px 0 2px;
}

.acc-metric-subtext {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* 2-Column Details Grid */
.acc-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.acc-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.acc-info-row:last-child {
  margin-bottom: 0;
}

.acc-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.acc-info-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-900);
}

.acc-info-val-sub {
  font-size: 0.76rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Orders Cards & List */
.acc-order-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: #ffffff;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.acc-order-item:hover {
  border-color: #cbd5e1;
}

.acc-order-item:last-child {
  margin-bottom: 0;
}

.acc-order-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.acc-order-ref {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--slate-900);
}

.acc-order-date {
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-left: 8px;
  font-weight: 600;
}

.acc-order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge-ready {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-badge-transit {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-badge-delivered {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.acc-order-body {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.acc-order-store-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-order-store-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
}

.acc-order-hub-name {
  font-size: 0.76rem;
  color: var(--slate-600);
  font-weight: 600;
}

.acc-order-pin-card {
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-pin-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
}

.acc-pin-digits {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #006838;
}

.acc-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #006838 0%, #059669 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 104, 56, 0.25);
  transition: all 0.15s;
  text-decoration: none;
}

.acc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 104, 56, 0.32);
}

.acc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.acc-btn-secondary:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* Forms */
.acc-form-group {
  margin-bottom: 16px;
}

.acc-form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 5px;
}

.acc-form-input,
.acc-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-900);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.acc-form-input:focus,
.acc-form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.12);
}

.acc-form-help {
  font-size: 0.7rem;
  color: var(--slate-500);
  margin-top: 4px;
}

.acc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.acc-toast.toast-success {
  background: #065f46;
  border: 1px solid #10b981;
}

/* Empty State */
.acc-empty-state {
  text-align: center;
  padding: 48px 24px;
}

.acc-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--slate-400);
}

.acc-empty-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.acc-empty-desc {
  font-size: 0.8rem;
  color: var(--slate-500);
  max-width: 380px;
  margin: 0 auto 20px;
}

/* =========================================================================
   FULL-SCREEN AUTH GATE FOR UNAUTHENTICATED VISITORS
   ========================================================================= */
.acc-auth-gateway {
  display: none;
  max-width: 440px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.acc-auth-gateway.visible {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

.acc-auth-gate-header {
  padding: 24px 24px 18px;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
}

.acc-auth-gate-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Responsive — Mobile App Polish (Fixes Header Overflow & iOS Anti-Zoom) */
@media (max-width: 900px) {
  .acc-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .acc-header-search {
    display: none;
  }
  .acc-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .acc-overview-metrics .acc-metric-card:last-child {
    grid-column: 1 / -1;
  }
  .acc-two-col-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 13.5px;
    font-weight: 400;
  }

  .acc-layout > *,
  .acc-sidebar,
  .acc-content,
  .acc-panel,
  .acc-card,
  .acc-card-header > div {
    min-width: 0;
    max-width: 100%;
  }

  .acc-card p,
  .acc-card-subtitle,
  .acc-info-val,
  .acc-info-val-sub {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .acc-overview-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .acc-overview-metrics .acc-metric-card:last-child {
    grid-column: auto;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .acc-header-container {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .acc-brand-logo {
    gap: 6px;
  }

  .acc-brand-logo .brand-2d-icon {
    width: 30px;
    height: 22px;
  }

  .acc-brand-text {
    font-size: 1.02rem;
    font-weight: 700;
  }

  .acc-town-badge,
  .acc-user-name-mini {
    display: none !important;
  }

  .acc-header-actions {
    gap: 6px;
  }

  .acc-btn-back,
  .acc-btn-track {
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .acc-btn-back span {
    display: none;
  }

  .acc-user-badge-header {
    padding: 3px;
  }

  .acc-main {
    padding: 14px 12px 36px;
  }

  .acc-breadcrumbs {
    margin-bottom: 12px;
    font-size: 0.7rem;
    font-weight: 500;
  }

  .acc-user-summary-card {
    padding: 14px;
    gap: 12px;
  }

  .acc-user-avatar-large {
    width: 44px;
    height: 44px;
    font-size: 0.96rem;
    font-weight: 700;
  }

  .acc-user-greeting {
    font-size: 0.65rem;
    font-weight: 500;
  }

  .acc-user-fullname {
    font-size: 0.92rem;
    font-weight: 700;
  }

  .acc-user-status-pill {
    font-size: 0.64rem;
    font-weight: 600;
  }

  /* Horizontal scrollable tab strip so dashboard appears immediately above the fold */
  .acc-sidebar {
    gap: 10px;
  }

  .acc-sidebar-nav-card {
    border-radius: 14px;
    overflow: hidden;
  }

  .acc-nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .acc-nav-list::-webkit-scrollbar {
    display: none;
  }

  .acc-nav-item {
    border-bottom: none;
    flex: 0 0 auto;
  }

  .acc-nav-link {
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 6px;
    white-space: nowrap;
  }

  .acc-nav-link > svg:last-child {
    display: none;
  }

  .acc-nav-link.active {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    border-left: 1px solid var(--primary-green);
  }

  .acc-nav-link.active .acc-nav-icon {
    color: #ffffff;
  }

  .acc-nav-link.active .acc-nav-count-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }

  .acc-card {
    padding: 15px 14px !important;
    border-radius: 14px;
  }

  .acc-card h1 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }

  .acc-card p {
    font-size: 0.74rem !important;
    font-weight: 400 !important;
  }

  #acc-panel-overview .acc-card > div > div:last-child {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
  }

  .acc-card-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .acc-card-title {
    font-size: 0.94rem;
    font-weight: 700;
  }

  .acc-card-subtitle {
    font-size: 0.72rem;
    font-weight: 400;
  }

  .acc-card-action-link {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .acc-metric-card {
    padding: 12px;
    gap: 10px;
  }

  .acc-metric-icon-box {
    width: 34px;
    height: 34px;
  }

  .acc-metric-label {
    font-size: 0.65rem;
    font-weight: 600;
  }

  .acc-metric-value {
    font-size: 0.94rem;
    font-weight: 700;
  }

  .acc-metric-subtext {
    font-size: 0.68rem;
    font-weight: 500;
  }

  .acc-info-label {
    font-size: 0.66rem;
    font-weight: 600;
  }

  .acc-info-val {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .acc-info-val-sub {
    font-size: 0.72rem;
    font-weight: 400;
  }

  .acc-order-ref {
    font-size: 0.86rem;
    font-weight: 700;
  }

  .acc-order-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
  }

  .acc-order-store-name {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .acc-pin-digits {
    font-size: 1rem;
    font-weight: 700;
  }

  .acc-btn-primary,
  .acc-btn-secondary {
    font-size: 0.74rem;
    font-weight: 600;
  }

  .acc-form-label {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .acc-empty-title {
    font-size: 0.94rem;
    font-weight: 700;
  }

  .acc-auth-gate-header h1,
  .acc-auth-gate-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
  }

  .acc-auth-gateway {
    margin: 16px auto;
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .acc-auth-gate-header,
  .acc-auth-gate-body {
    padding: 18px 16px;
  }

  #form-save-addresses div[style*="grid-template-columns"],
  #form-save-details div[style*="grid-template-columns"],
  #form-change-password div[style*="grid-template-columns"],
  #gate-form-register div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .acc-order-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .acc-order-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ============================================================================
   AREABUY HOMEPAGE DESIGN SYSTEM PARITY (Borderless Floating Cards, Emerald
   Hero Gradient, Warm Orange Accents, Mobile Bottom Nav & Full Dark Mode)
   ============================================================================ */
body {
  background-color: #f4f7f5;
  color: #0f172a;
}

.acc-header {
  background: #006838;
  box-shadow: 0 4px 16px rgba(0, 104, 56, 0.15);
}

.acc-btn-back {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.acc-btn-track {
  background: #f97316;
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.28);
}

.acc-btn-track:hover {
  background: #ea580c;
  color: #ffffff;
}

.acc-btn-track svg {
  stroke: #ffffff;
}

/* Borderless Floating Cards Across Account Dashboard & Auth Gate */
.acc-auth-gateway,
.acc-user-profile-card,
.acc-sidebar-nav-card,
.acc-overview-banner,
.acc-metric-card,
.acc-card,
.acc-order-card,
.acc-hub-card {
  background: #ffffff;
  border: none !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(1, 43, 24, 0.055);
}

.acc-auth-gate-header {
  background: #006838 !important;
  border-bottom: none !important;
  color: #ffffff;
  padding: 24px 20px 22px;
}

.acc-auth-gate-header .acc-brand-text,
.acc-auth-gate-header h1 {
  color: #ffffff !important;
}

.acc-auth-gate-header .acc-brand-text span {
  color: #a7f3d0 !important;
}

.acc-auth-gate-header p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.acc-form-input,
.acc-form-select {
  background: #f5f8f6;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.acc-form-input:focus,
.acc-form-select:focus {
  background: #ffffff;
  border-color: #006838;
  box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.12);
}

.acc-btn-primary {
  background: linear-gradient(135deg, #006838 0%, #059669 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 104, 56, 0.24);
}

.acc-btn-primary:hover {
  filter: brightness(1.05);
}

.acc-nav-badge,
.acc-nav-count-badge {
  background: #f97316 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.acc-metric-card:nth-child(1) .acc-metric-icon,
.acc-metric-card:nth-child(1) .acc-metric-icon-box {
  background: #e6f6ee !important;
  color: #006838 !important;
}

.acc-metric-card:nth-child(2) .acc-metric-icon,
.acc-metric-card:nth-child(2) .acc-metric-icon-box {
  background: #fff3e0 !important;
  color: #c2410c !important;
}

.acc-metric-card:nth-child(3) .acc-metric-icon,
.acc-metric-card:nth-child(3) .acc-metric-icon-box {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.acc-sidebar-link.active {
  background: linear-gradient(135deg, #006838 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 104, 56, 0.22);
}

.acc-sidebar-link {
  border: none !important;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(1, 43, 24, 0.05);
}

.acc-protection-badge {
  background: #e6f6ee;
  border: none;
  color: #006838;
}

/* Unified 5-Tab Mobile Bottom Nav */
.portal-mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }

  .acc-header {
    border-radius: 0 0 18px 18px;
  }

  .portal-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 -4px 18px rgba(1, 43, 24, 0.06);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
  }

  .pmbn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 600;
    height: 100%;
  }

  .pmbn-item.active {
    color: #006838;
    font-weight: 700;
  }

  .pmbn-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #006838;
  }
}

/* Full Dark Mode Parity (Synced with Homepage Preference) */
[data-theme="dark"] body {
  background-color: #031a10;
  color: #f8fafc;
}

[data-theme="dark"] .acc-auth-gateway,
[data-theme="dark"] .acc-user-profile-card,
[data-theme="dark"] .acc-sidebar-nav-card,
[data-theme="dark"] .acc-overview-banner,
[data-theme="dark"] .acc-metric-card,
[data-theme="dark"] .acc-card,
[data-theme="dark"] .acc-order-card,
[data-theme="dark"] .acc-hub-card,
[data-theme="dark"] .acc-sidebar-link {
  background: #08301e;
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .acc-breadcrumbs,
[data-theme="dark"] .acc-breadcrumbs a,
[data-theme="dark"] .acc-metric-label,
[data-theme="dark"] .acc-metric-subtext,
[data-theme="dark"] .acc-card-subtitle,
[data-theme="dark"] .acc-form-label {
  color: #94a3b8;
}

[data-theme="dark"] .acc-user-name,
[data-theme="dark"] .acc-card-title,
[data-theme="dark"] .acc-metric-value,
[data-theme="dark"] .acc-overview-title,
[data-theme="dark"] .acc-info-val {
  color: #f8fafc;
}

[data-theme="dark"] .acc-form-input,
[data-theme="dark"] .acc-form-select {
  background: #042214;
  color: #f8fafc;
  border-color: #165331;
}

[data-theme="dark"] .portal-mobile-bottom-nav {
  background: #012b18;
  border-top-color: #14532d;
}

[data-theme="dark"] .pmbn-item {
  color: #a7f3d0;
}

[data-theme="dark"] .pmbn-item.active {
  color: #ffffff;
}

[data-theme="dark"] .pmbn-item.active::before {
  background: #FD9636;
}

/* Global Zero-Border Surface System */
*:not(.spinner):not(.camera-spinner),
*:not(.spinner):not(.camera-spinner)::before,
*:not(.spinner):not(.camera-spinner)::after {
  border: 0 none transparent !important;
  border-top: 0 none transparent !important;
  border-right: 0 none transparent !important;
  border-bottom: 0 none transparent !important;
  border-left: 0 none transparent !important;
}

.acc-btn-back {
  background: rgba(255, 255, 255, 0.16) !important;
}

#gate-btn-google,
.btn-order-filter:not(.active) {
  background: #f1f5f2 !important;
  color: #0f172a !important;
}

[data-theme="dark"] #gate-btn-google,
[data-theme="dark"] .btn-order-filter:not(.active) {
  background: #0b3a24 !important;
  color: #f8fafc !important;
}

.portal-mobile-bottom-nav {
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08) !important;
}


