/* #/account «الحساب» (js/pages/account.js): profile card (the staff card's avatar ring), the V4 Start quota
   tiles made big, support, settings (the switch row lives in alerts.css). Tokens only (css/tokens.css). */
.acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; max-width: 1100px; }
.acc > .acc-profile, .acc > .acc-tiles, .acc > .acc-code { grid-column: 1 / -1; }
@media (max-width: 700px) { .acc { grid-template-columns: 1fr; gap: var(--gap-section); } }

/* Profile */
.acc-profile { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.acc-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-av { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--ac); flex: none; }
.acc-av > span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--card);
  color: var(--text); font-size: 24px;
}
.acc-av .ph { font-size: 24px; }
.acc-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-name-main { font-size: var(--fs-h2); line-height: 1.35; overflow-wrap: anywhere; }
.acc-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--muted); }
.acc-state .ph-fill, .acc-state .ph { font-size: 15px; }
.acc-state.ok .ph-fill { color: var(--ac); }
.acc-state.warn { color: var(--bad-text); }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Quota tiles (design "V4 Start" quota strip: accent = days, white = analyses, segment bar) */
.acc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-tile { min-height: 190px; gap: 14px; }
.acc-tile-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); font-weight: 500; }
.acc-tile-h .ph { font-size: 18px; }
.acc-big { line-height: 1; }
.acc-big .unit { font-size: .4em; color: var(--ink-3); }
.acc-big-text { font-size: 32px; line-height: 1.2; }
.acc-tile-sub { font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.6; }
.acc-dots { display: flex; gap: 3px; }
.acc-dots > i { flex: 1; height: 6px; border-radius: var(--r-pill); background: #E3E3E3; }
.acc-dots > i.on { background: #000; }
.acc-line { display: block; height: 6px; border-radius: var(--r-pill); background: #E3E3E3; overflow: hidden; }
.acc-line > i { display: block; height: 100%; width: var(--w, 0%); border-radius: var(--r-pill); background: #000; }
@media (max-width: 700px) {
  .acc-tile { min-height: 160px; padding: 14px 16px; }
  .acc-big-text { font-size: 24px; }
  .acc-profile { flex-direction: column; align-items: stretch; }
  .acc-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .acc-tiles { grid-template-columns: 1fr; }
}

/* Support / settings */
.acc-support .btn-wa { align-self: flex-start; padding: 0 22px; }
@media (max-width: 700px) { .acc-support .btn-wa { align-self: stretch; } }

/* «رمزك للدخول»: the code hidden («••••») until «اعرض الرمز», then «نسخ» (Urbanist, letter-spaced, on the inner tile) */
.acc-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-code-value {
  flex: 1 1 260px; min-width: 0; min-height: 56px; display: flex; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: var(--r-pill); background: var(--card-2); color: var(--muted);
  font-family: var(--font-num); font-size: 22px; letter-spacing: .18em; direction: ltr; user-select: all;
}
.acc-code-value.on { color: var(--text); }
.acc-code-btns { display: flex; gap: 8px; flex: none; }
.acc-code-said { font-size: var(--fs-meta); color: var(--muted); min-height: 1em; }
.acc-code-said:empty { display: none; }
.acc-privacy {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px;
  font-size: var(--fs-meta); color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px;
}
.acc-privacy:hover { color: var(--text); }
.acc-privacy .ph { font-size: 15px; }
@media (max-width: 700px) {
  .acc-code-value { font-size: 18px; letter-spacing: .1em; flex-basis: 100%; }
  .acc-code-btns { flex: 1 1 100%; }
  .acc-code-btns .btn { flex: 1; }
  .acc-privacy { min-height: 44px; }
}
