/* QualityPack — full account area (/cont/*) styles. */

.account-shell {
  background: #f8faf6;
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.account-crumb {
  font-size: 0.85rem;
  color: #6c7770;
  margin-bottom: 1rem;
}
.account-crumb a { color: #6c7770; text-decoration: none; }
.account-crumb a:hover { color: #94c93d; }
.account-crumb i { color: #94c93d; }

/* ============ Sidebar ============ */

.account-sidebar { position: sticky; top: 110px; }

.acct-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 42, 36, 0.06);
  overflow: hidden;
}

.acct-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f3f8ec 0%, #e9f5d8 100%);
  border-bottom: 1px solid #e6ece8;
}
.acct-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #94c93d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.acct-user-info { min-width: 0; }
.acct-name {
  font-weight: 700;
  color: #1f2a24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-company {
  font-size: 0.82rem;
  color: #6c7770;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.acct-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 1px;
}
.acct-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #1f2a24;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  transition: background .15s ease, color .15s ease;
}
.acct-nav a i {
  width: 18px;
  color: #9aa3a0;
  transition: color .15s ease;
}
.acct-nav a:hover {
  background: #f3f8ec;
  color: #1f2a24;
}
.acct-nav a:hover i { color: #94c93d; }
.acct-nav a.active {
  background: #e9f5d8;
  color: #06441a;
  font-weight: 600;
}
.acct-nav a.active i { color: #06441a; }
.acct-logout {
  margin-top: 6px;
  color: #c62828 !important;
}
.acct-logout i { color: #c62828 !important; }
.acct-logout:hover {
  background: #fdeeee !important;
  color: #a01818 !important;
}

/* ============ Page title + lead ============ */

.account-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1f2a24;
  margin-bottom: 0.25rem;
}
.account-page-sub {
  color: #6c7770;
  margin-bottom: 1.5rem;
}

/* ============ Dashboard hero ============ */

.acct-hero {
  background: linear-gradient(135deg, #f3f8ec 0%, #e9f5d8 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.acct-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(148, 201, 61, 0.18);
}
.acct-hero::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(148, 201, 61, 0.12);
}
.acct-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #94c93d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  z-index: 1;
}
.acct-hero-body { z-index: 1; min-width: 0; }
.acct-hero-greet {
  font-size: 1.4rem;
  font-weight: 700;
  color: #06441a;
  margin: 0;
}
.acct-hero-meta {
  color: #3f4a44;
  font-size: 0.92rem;
  margin: 4px 0 0;
}

/* ============ Stats cards ============ */

.acct-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.acct-stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(15, 42, 36, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.acct-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 42, 36, 0.1);
  border-color: #e6ece8;
}
.acct-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.acct-stat-icon.is-orders   { background: #e8f0fe; color: #1a73e8; }
.acct-stat-icon.is-wishlist { background: #ffeaee; color: #e63946; }
.acct-stat-icon.is-addr     { background: #e9f5d8; color: #06441a; }
.acct-stat-icon.is-cart     { background: #fff4d6; color: #d4a017; }
.acct-stat-body { min-width: 0; }
.acct-stat-n {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2a24;
  line-height: 1.1;
}
.acct-stat-l {
  font-size: 0.82rem;
  color: #6c7770;
  margin-top: 2px;
}

/* ============ Generic content card ============ */

.acct-block {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 18px rgba(15, 42, 36, 0.06);
  margin-bottom: 1.25rem;
}
.acct-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2a24;
  margin: 0 0 1rem;
}
.acct-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.acct-block-head h3 { margin: 0; }
.acct-block-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94c93d;
  text-decoration: none;
}
.acct-block-link:hover { color: #06441a; }

/* ============ Table ============ */

.acct-table {
  width: 100%;
  border-collapse: collapse;
}
.acct-table thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7770;
  padding: 10px 12px;
  border-bottom: 1px solid #e6ece8;
  font-weight: 600;
}
.acct-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f3ee;
  color: #1f2a24;
  font-size: 0.93rem;
}
.acct-table tbody tr:last-child td { border-bottom: 0; }
.acct-table tbody tr:hover { background: #fafcf6; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.status-0 { background: #fff4d6; color: #b3850e; }
.status-badge.status-1 { background: #e8f0fe; color: #1a4fb4; }
.status-badge.status-2 { background: #fcefe1; color: #b6571a; }
.status-badge.status-3,
.status-badge.status-4,
.status-badge.status-5,
.status-badge.status-6 { background: #f3e8fc; color: #6a23a8; }
.status-badge.status-7 { background: #e9f5d8; color: #06441a; }
.status-badge.status-8 { background: #fdeeee; color: #a01818; }

/* ============ Empty states ============ */

.acct-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #6c7770;
}
.acct-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f3f8ec;
  color: #94c93d;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.acct-empty h4 {
  color: #1f2a24;
  margin-bottom: 0.4rem;
}
.acct-empty p { margin: 0; }

/* ============ Buttons ============ */

.btn-acct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: #94c93d;
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.btn-acct:hover { background: #7eb030; color: #fff; }
.btn-acct-outline {
  background: transparent;
  color: #1f2a24;
  border: 1.5px solid #cfd6d0;
}
.btn-acct-outline:hover {
  background: #f3f8ec;
  border-color: #94c93d;
  color: #06441a;
}
.btn-acct-danger {
  background: #fdeeee;
  color: #c62828;
}
.btn-acct-danger:hover { background: #f8d7d7; color: #a01818; }
.btn-acct-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* ============ Forms ============ */

.acct-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4d5860;
  margin-bottom: 6px;
}
.acct-form .form-control {
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid #e6ece8;
  border-radius: 10px;
  background: #fafcf6;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.acct-form .form-control:focus {
  border-color: #94c93d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 201, 61, 0.12);
  outline: none;
}
.acct-form .form-control[readonly],
.acct-form .form-control[disabled] {
  background: #f3f5f4;
  color: #6c7770;
  cursor: not-allowed;
}
.acct-form-section {
  border-top: 1px solid #e6ece8;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.acct-form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2a24;
  margin-bottom: 1rem;
}

/* Address cards */
.addr-card {
  border: 1px solid #e6ece8;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.addr-card:hover {
  border-color: #cfd6d0;
  box-shadow: 0 6px 18px rgba(15, 42, 36, 0.05);
}
.addr-card.is-default {
  border-color: #94c93d;
  background: linear-gradient(135deg, #fff 60%, #f3f8ec 100%);
}
.addr-card h6 {
  font-weight: 700;
  color: #1f2a24;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.addr-card-body {
  flex: 1;
  font-size: 0.88rem;
  color: #3f4a44;
  margin-bottom: 12px;
}
.addr-card-loc {
  font-size: 0.8rem;
  color: #6c7770;
  margin-top: 4px;
}
.addr-card .badge-default {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e9f5d8;
  color: #06441a;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 6px;
}
.addr-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

@media (max-width: 991px) {
  .account-sidebar { position: static; margin-bottom: 1.5rem; }
  .acct-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .acct-hero-greet { font-size: 1.2rem; }
}

/* ============ Order detail page ============ */

.order-hero {
  background: linear-gradient(135deg, #f3f8ec 0%, #e9f5d8 100%);
  border: 1px solid #d6e5c2;
}
.order-hero-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #06441a;
  margin: 0 0 4px;
  opacity: 0.7;
}
.order-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2a24;
  margin: 0 0 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  letter-spacing: -0.5px;
}
.order-hero-meta {
  margin: 0;
  color: #3f4a44;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.order-hero-total {
  text-align: right;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(6, 68, 26, 0.08);
}
.order-hero-total-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6c7770;
  margin-bottom: 4px;
}
.order-hero-total-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #06441a;
}

.order-lines tbody tr td { padding: 14px 12px; }
.order-lines thead th    { background: #fafcf6; }

.order-totals {
  max-width: 360px;
  margin-left: auto;
  font-size: 0.93rem;
}
.order-totals > div { padding: 4px 0; }
.order-totals .order-totals-grand {
  font-size: 1.1rem;
  color: #06441a;
}

@media (max-width: 575px) {
  .order-hero-total { width: 100%; text-align: left; }
}
