/* =====================================================================
   INTEL AFRICA — v2.css
   Bottom dock / left rail, support button, placeholder screens and the
   desktop dashboard grid. (Payment screens are added here in later parts.)
   ===================================================================== */

/* ---------- bottom dock (mobile) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 536px; height: 66px; margin: 0 auto; padding: 0 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border: 1px solid var(--border); border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -18px rgba(16,24,40,.38);
}
.dock > a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 54px; margin: 0 2px; border-radius: 24px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  transition: color .15s, background-color .2s var(--ease);
}
.dock > a[aria-current="page"] { background: var(--grad-soft); color: var(--link); }
.dock > a:active { transform: scale(.96); }
.dock-brand { display: none !important; }

/* centre Pay: 58px gradient circle raised 24px above the bar, 6px ring in --bg */
.dock .dock-pay { justify-content: flex-end; padding-bottom: 5px; background: none !important; }
.dock .pay-btn {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-brand), var(--shine);
  transition: transform .2s var(--ease-pop);
}
.dock .dock-pay:active .pay-btn { transform: translateX(-50%) scale(.94); }
.dock .dock-pay[aria-current="page"] .lbl { color: var(--link); }

/* ---------- support button ---------- */
.support-fab {
  position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 35;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 0; background: var(--grad); color: #fff; box-shadow: var(--shine), 0 12px 24px -12px rgba(0,82,255,.85);
  transition: transform .2s var(--ease-pop);
}
.support-fab:active { transform: scale(.94); }

/* support sheet (Part 4) — self-contained, works on every member page */
.fab-backdrop { position: fixed; inset: 0; z-index: 88; background: rgba(6,12,28,.45); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.fab-backdrop.open { opacity: 1; pointer-events: auto; }
.fab-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; max-width: 520px; margin: 0 auto;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r-modal) var(--r-modal) 0 0;
  background: var(--surface); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35);
  transform: translateY(14px); opacity: 0; visibility: hidden;
  transition: transform .28s var(--ease-pop), opacity .28s var(--ease-pop), visibility 0s .28s;
}
.fab-sheet.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform .28s var(--ease-pop), opacity .28s var(--ease-pop); }
.fab-sheet .sheet-grip { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: var(--r-pill); background: var(--border); }
.fab-title { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.fab-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); color: var(--text); border: 1px solid var(--border); margin-top: 10px; }
.fab-opt:active { transform: scale(.99); }
.fab-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.fab-opt strong { display: block; font-size: 14px; }
.fab-opt small { display: block; font-size: 12px; color: var(--muted); }
.fab-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad-soft); color: var(--link); }
@media (hover: hover) { .fab-opt:hover { border-color: var(--brand); } }

/* read-only "viewing as" banner (admin impersonation) */
.imp-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 0; padding: 8px 14px; background: var(--withdraw); color: var(--withdraw-text); font-size: 12.5px; font-weight: 700; }
.imp-banner span { display: inline-flex; align-items: center; gap: 6px; }
.imp-banner button { height: 28px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--withdraw-text); color: var(--withdraw); font-weight: 800; font-size: 12px; }

/* ad wizard progress — 6 thin segments under the top bar */
.wiz-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 4px; max-width: 560px; margin: 0 auto 4px; padding: 0 16px; }
.wiz-bar i { display: block; height: 4px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.wiz-bar i.done { background: var(--brand); }
.wiz-bar i.now { background: linear-gradient(90deg, var(--brand) 0 50%, var(--surface-2) 50% 100%); }
[data-theme="dark"] .wiz-bar i:not(.done):not(.now) { background: var(--border); }
[data-theme="dark"] .wiz-bar i.now { background: linear-gradient(90deg, var(--brand) 0 50%, var(--border) 50% 100%); }

/* ---------- placeholder screens ---------- */
.soon { margin-top: 8px; padding: 36px 22px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon .muted { max-width: 300px; margin-bottom: 8px; }
.soon-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 20px; background: var(--grad-soft); color: var(--link); }

/* ---------- dashboard grid ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

/* ---------- ≥1024px: dock becomes a vertical left rail ---------- */
@media (min-width: 1024px) {
  .dock {
    top: 16px; bottom: 16px; left: 16px; right: auto; width: 84px; height: auto; max-width: none; margin: 0;
    padding: 14px 8px; grid-template-columns: 1fr; grid-auto-rows: 64px; align-content: start; gap: 6px;
    border-radius: 28px;
  }
  .dock-brand { display: grid !important; place-items: center; height: 64px; margin-bottom: 18px; }
  .dock-brand img { width: 40px; height: 40px; }
  .dock > a { height: 62px; margin: 0; }
  .dock .dock-pay { justify-content: center; padding: 0; gap: 4px; }
  .dock .pay-btn { position: static; transform: none; width: 46px; height: 46px; box-shadow: var(--shadow-brand), var(--shine); }
  .dock .dock-pay:active .pay-btn { transform: scale(.94); }
  .dock .dock-pay .lbl { display: none; }

  .app { padding-left: 116px; padding-bottom: 48px; }
  .topbar, .app-main { max-width: 1000px; }
  .topbar { padding-top: 22px; }
  .dash-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 22px; align-items: start; }
  .support-fab { bottom: 24px; right: 24px; }
  .wiz-bar { max-width: 1000px; }
  .app .toast { bottom: 32px; }
}
