/* Nordflow Industrial Supply — trade account area. Uses the industrial shell's CSS variables
   (--brand, --teal, --ok, --steel, --surface, --line …); only the account-specific pieces live here. */

.acct-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: radial-gradient(90% 130% at 100% 0%, rgba(255,106,19,0.42), transparent 55%),
    linear-gradient(135deg, #16232f, #22384a);
  color: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow);
}
.acct-hero__id { display: flex; align-items: center; gap: 16px; }
.acct-hero__avatar {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 10px 24px -10px rgba(255,106,19,0.8);
}
.acct-hero__hi { font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.01em; }
.acct-hero__mail { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-top: 3px; }
.acct-hero__tier { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-hero__tierbadge {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); font-size: 0.82rem; font-weight: 700;
}
.acct-hero__tierbadge .icon { width: 16px; height: 16px; color: #7fe4ec; }

.acct { display: grid; grid-template-columns: 246px 1fr; gap: 22px; align-items: start; }
.acct-nav { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); position: sticky; top: 20px; }
.acct-nav__item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.acct-nav__item .icon { width: 19px; height: 19px; }
.acct-nav__item:hover { background: var(--surface-soft); color: var(--ink); }
.acct-nav__item.is-active { background: var(--steel-2); color: #fff; }
.acct-nav__cta { margin-top: 8px; width: 100%; justify-content: center; }

.acct-main { display: grid; gap: 22px; min-width: 0; }
.acct-main > * { min-width: 0; }

/* Overview stat tiles + credit bar */
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm); align-items: center; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; }
.stat-tile__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff1e8; color: var(--brand-dark); margin-bottom: 8px; }
.stat-tile__icon .icon { width: 18px; height: 18px; }
.stat-tile__value { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.stat-tile__label { font-size: 0.8rem; color: var(--muted); }
.stat-progress__top { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.stat-progress__top strong { color: var(--ink); font-weight: 700; }
.stat-progress__bar { height: 10px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.stat-progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(100deg, var(--brand), var(--brand-dark)); }

/* Orders */
.orders { display: grid; gap: 14px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.order__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order__num { font-weight: 700; }
.order__date { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.order__status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.order__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.order__status--ok { background: rgba(26,143,76,0.12); color: var(--ok); }
.order__status--transit { background: rgba(14,124,134,0.14); color: var(--teal); }
.order__status--proc { background: rgba(255,106,19,0.14); color: var(--brand-dark); }
.order__body { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.order__thumbs { display: flex; }
.order__thumb { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, #f4f7fa, #e2e9f0); border: 1px solid var(--line); box-shadow: 0 0 0 3px var(--surface); }
.order__thumb + .order__thumb { margin-left: -12px; }
.order__thumb .icon { width: 22px; height: 22px; color: var(--steel-2); }
.order__desc { flex: 1 1 auto; min-width: 0; font-size: 0.94rem; }
.order__desc span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.order__total { font-weight: 800; font-size: 1.1rem; white-space: nowrap; letter-spacing: -0.01em; }
.order__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Quotes / RFQs — the trade-account highlight */
.quotes { display: grid; gap: 14px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--brand); }
.quote__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quote__num { font-weight: 700; }
.quote__meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.quote__status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.quote__status--sent { background: rgba(14,124,134,0.14); color: var(--teal); }
.quote__status--approved { background: rgba(26,143,76,0.12); color: var(--ok); }
.quote__status--draft { background: var(--surface-soft); color: var(--muted); }
.quote__items { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 7px; }
.quote__items li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.quote__items li span { color: var(--muted); }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.quote__total { font-size: 0.82rem; color: var(--muted); }
.quote__total strong { font-size: 1.15rem; color: var(--ink); font-weight: 800; margin-left: 6px; letter-spacing: -0.01em; }
.quote__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Delivery sites + terms */
.infocards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: flex; align-items: flex-start; gap: 12px; }
.line__icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-soft); color: var(--teal); }
.line__icon .icon { width: 19px; height: 19px; }
.line__title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.line__sub { font-size: 0.86rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.pill-default { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-dark); background: #fff1e8; padding: 2px 7px; border-radius: 999px; }
.panel__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--brand-dark); }
.panel__link .icon { width: 15px; height: 15px; }

/* Light button variant used across the account rows */
.btn--light { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); }
.btn--light:hover { border-color: var(--brand); color: var(--brand-dark); }

@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; }
  .acct-nav { flex-direction: row; flex-wrap: wrap; position: static; gap: 8px; }
  .acct-nav__item { flex: 1 1 42%; justify-content: center; }
  .acct-nav__cta { flex-basis: 100%; }
  .acct-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .infocards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .acct-hero { border-radius: 16px; }
  .acct-stats { grid-template-columns: 1fr; }
  .stat-progress { grid-column: 1; }
  .order__body { flex-wrap: wrap; }
  .order__total { margin-left: auto; }
  .quote__foot { align-items: flex-start; }
  .quote__actions .btn, .order__actions .btn { flex: 1 1 auto; justify-content: center; }
}
