/* ===== Mobile dashboard ===== */
.mdash-root {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1018 0%, #050810 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  padding: 0 12px 6px;
  overflow: hidden;
}

.mdash-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 6px;
  color: var(--ink);
  font-size: 10px;
}
.mdash-time { font-weight: 600; font-family: var(--font-display); }
.mdash-status-r { display: inline-flex; align-items: center; gap: 4px; }

.mdash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 10px;
}
.mdash-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5eead4, #22d3ee 60%, #0d7e74);
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.mdash-greeting { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; flex: 1; }
.mdash-hi { font-family: var(--font-display); font-weight: 500; font-size: 11px; }
.mdash-sub { font-size: 8.5px; color: var(--ink-3); margin-top: 2px; }
.mdash-icon {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.mdash-icon-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 1.5px #0a1018;
}

.mdash-balance {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.02) 60%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
  padding: 10px 12px 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.mdash-balance::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(94, 234, 212, 0.12), transparent 60%);
  pointer-events: none;
}
.mdash-balance > * { position: relative; }
.mdash-balance-label { font-size: 8.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.mdash-balance-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  color: #e8fdff;
}
.mdash-cur { font-size: 13px; color: var(--ink-3); margin-right: -2px; font-weight: 500; }
.mdash-delta { font-size: 9px; color: #5eead4; font-family: var(--font-mono); margin-left: 4px; }
.mdash-balance-spark { width: 100%; height: 36px; display: block; margin: 4px 0; }
.mdash-balance-actions { display: flex; gap: 5px; margin-top: 4px; }
.mdash-balance-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--ink);
  font-size: 9px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.mdash-balance-actions button svg { color: var(--cyan-2); }

.mdash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.mdash-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.mdash-kpi-label { font-size: 8.5px; color: var(--ink-3); }
.mdash-kpi strong { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: #e8fdff; letter-spacing: -0.01em; }
.mdash-kpi-d { font-size: 8.5px; color: var(--ink-3); font-family: var(--font-mono); }
.mdash-kpi-d.up { color: #5eead4; }

.mdash-list {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: hidden;
}
.mdash-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mdash-list-more { color: var(--ink-4); }
.mdash-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.mdash-list-ico {
  width: 18px; height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mdash-list-ico.ok { background: rgba(94, 234, 212, 0.12); color: #5eead4; }
.mdash-list-ico.cyan { background: rgba(34, 211, 238, 0.12); color: var(--cyan-2); }
.mdash-list-ico.warn { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.mdash-list-c { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.mdash-list-c strong { font-family: var(--font-display); font-weight: 500; font-size: 10px; color: var(--ink); }
.mdash-list-c span { font-size: 8.5px; color: var(--ink-3); }
.mdash-list-t { font-size: 8.5px; color: var(--ink-4); font-family: var(--font-mono); }

.mdash-cta {
  margin: 8px 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  background: linear-gradient(180deg, #5eead4, #22d3ee);
  color: #04141a;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 6px 16px -4px rgba(34, 211, 238, 0.5);
}
.mdash-cta svg:last-child { margin-left: 4px; }

.mdash-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}
.mdash-tabs button {
  background: transparent;
  border: 0;
  color: var(--ink-4);
  width: 32px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mdash-tabs button.active { color: var(--cyan-2); background: rgba(34, 211, 238, 0.08); }
.mdash-tabs button.mdash-tab-fab {
  background: linear-gradient(180deg, #5eead4, #22d3ee);
  color: #04141a;
  width: 36px; height: 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 10px -2px rgba(34, 211, 238, 0.55);
}

.mdash-home {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  margin: 4px auto 4px;
}

/* ===== Phone frame ===== */
.phone-wrap {
  position: absolute;
  z-index: 3;
  right: -2%;
  bottom: -8%;
  width: 240px;
  transform: rotateX(6deg) rotateY(-14deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,0.7));
}
.phone-body {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 8px;
  background:
    linear-gradient(180deg, #2a3340 0%, #0a0f15 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1.5px rgba(0,0,0,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.05);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #06090e;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 40px rgba(0,0,0,0.6);
}
.phone-screen::after {
  /* glossy reflection */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
  z-index: 5;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.05);
}
.phone-notch::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #0a0f15;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* side buttons */
.phone-body::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 90px;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, #2a3340, #1a2230);
  border-radius: 1px 0 0 1px;
  box-shadow: 0 50px 0 #2a3340, 0 78px 0 #2a3340;
}
.phone-body::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 110px;
  width: 2px;
  height: 52px;
  background: linear-gradient(180deg, #2a3340, #1a2230);
  border-radius: 0 1px 1px 0;
}

@media (max-width: 1100px) {
  .phone-wrap { width: 220px; }
}
@media (max-width: 760px) {
  .phone-wrap { width: 200px; }
}
