/* =============================================================================
   ACCOUNT.CSS — DKcleanedit
   Sections: Profile strip · Loyalty card & tiers · Stats & orders
   Requires tokens.css + global.css + order-tracker.css
============================================================================= */


/* =============================================================================
   PROFILE STRIP
============================================================================= */

.acct-shell { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 48px; }

.acct-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; }

.acct-av-wrap { position: relative; flex-shrink: 0; }

.acct-av { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-100); background: var(--surface-3); }

.acct-av-badge {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  white-space: nowrap; letter-spacing: 0.04em;
}

.acct-info { flex: 1; min-width: 0; }
.acct-name  { font-size: 1.55rem; font-weight: 800; color: var(--text); margin: 0 0 3px; letter-spacing: -0.02em; }
.acct-email { font-size: 0.92rem; color: var(--text-3); margin: 0; }
.acct-book-btn { margin-left: auto; flex-shrink: 0; }

.acct-mid { display: grid; grid-template-columns: 1fr 210px; gap: 20px; align-items: start; }


/* =============================================================================
   LOYALTY CARD & TIERS
============================================================================= */

.loyalty-card { padding: 24px; }

.loyalty-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.loyalty-lbl { display: block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 5px; }

.loyalty-pts {
  font-size: 2.6rem; font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em; line-height: 1;
}

.tier-chip {
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}

.tier-prog-lbl { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--text-3); margin-bottom: 8px; gap: 1rem; }

.tier-bar-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 9px; }

.tier-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }

.tier-hint { font-size: 0.8rem; color: var(--text-3); margin: 0 0 20px; }

.tier-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.tier-item {
  padding: 16px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-3);
  text-align: center;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.tier-item:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }

.tier-item.active-tier {
  border-color: var(--gold-border);
  background: var(--gold-bg);
  box-shadow: 0 0 0 2px rgba(240,184,67,0.12);
}

.ti-icon { font-size: 1.4rem; margin-bottom: 5px; line-height: 1; }
.ti-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ti-req  { font-size: 0.72rem; color: var(--text-4); margin-bottom: 5px; }
.ti-perk { font-size: 0.72rem; color: var(--text-3); line-height: 1.4; }


/* =============================================================================
   STATS & ORDERS
============================================================================= */

.stat-col { display: grid; gap: 12px; }
.stat-box { padding: 16px 20px; }
.stat-lbl { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 5px; }
.stat-val { font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-val.sm { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }

.acct-orders { padding: 24px; }
.acct-orders-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.acct-orders-hd h2 { margin: 0 0 3px; }

.acct-order-rows { display: grid; gap: 12px; }

.acct-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-3);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.acct-order-row:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-1); }

.acct-order-service { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.acct-order-meta    { font-size: 0.8rem; color: var(--text-3); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.acct-order-pts {
  font-size: 0.74rem; font-weight: 700;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 2px 8px; border-radius: var(--r-pill);
}

.acct-empty   { color: var(--text-3); font-size: 0.92rem; padding: 32px 0; text-align: center; }
.acct-empty a { color: var(--primary-400); font-weight: 700; text-decoration: underline; }


/* =============================================================================
   RESPONSIVE
============================================================================= */

@media (max-width: 900px) {
  .acct-mid { grid-template-columns: 1fr; }
  .stat-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .acct-strip { flex-direction: column; align-items: flex-start; }
  .acct-book-btn { margin-left: 0; width: 100%; justify-content: center; }
  .tier-items { grid-template-columns: 1fr; }
  .stat-col { grid-template-columns: 1fr; }
  .acct-order-row { grid-template-columns: 1fr; }
}

