/* Assetpulse — investor workspace theme.
   Aligns the signed-in account / admin screens with the public home page:
   charcoal chrome, #1a6def primary, white 14px cards, tabular numbers.
   Loaded only on app pages (body[data-chrome="app"]); the public site is untouched. */

body[data-chrome="app"] {
  --brand: #1a6def;
  --brand-deep: #1249b8;
  --brand-soft: #eef4ff;
  --charcoal: #2b2e37;
  background:
    radial-gradient(48rem 22rem at 88% -8%, rgba(26, 109, 239, 0.07), transparent 62%),
    radial-gradient(34rem 18rem at 4% 0%, rgba(157, 50, 244, 0.05), transparent 60%),
    var(--color-page);
}

/* ------------------------------------------------ primary actions */
body[data-chrome="app"] .btn-dark {
  background: linear-gradient(180deg, #1f74f2, #1557b8);
  color: #fff;
  border: 1px solid #1249b8;
  box-shadow: 0 8px 18px -12px rgba(21, 87, 184, 0.9);
}
body[data-chrome="app"] .btn-dark:hover {
  background: linear-gradient(180deg, #2479fb, #1659bd);
}
body[data-chrome="app"] .btn-dark:disabled {
  background: #b9c2cf;
  border-color: #b9c2cf;
  box-shadow: none;
}
body[data-chrome="app"] .btn-ghost {
  border-color: #dfe4ec;
  color: #354052;
  background: #fff;
}
body[data-chrome="app"] .btn-ghost:hover {
  border-color: #bcd2f7;
  color: var(--brand-deep);
  background: var(--brand-soft);
}

/* ------------------------------------------------ surfaces */
body[data-chrome="app"] .card {
  border-color: #e6e8ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -38px rgba(16, 24, 40, 0.5);
}
body[data-chrome="app"] .card-pad {
  padding: 18px;
}
body[data-chrome="app"] .label-xs {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9.5px;
  font-weight: 700;
}
body[data-chrome="app"] .text-blue {
  color: var(--brand-deep) !important;
}

/* the app header picks up the same charcoal as the home hero */
body[data-chrome="app"] header.sticky {
  background: linear-gradient(180deg, #262a33, #1b2330);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px -22px rgba(11, 18, 32, 0.9);
}

/* ------------------------------------------------ numbers & tables */
body[data-chrome="app"] .numeric,
body[data-chrome="app"] .table-wrap td.numeric {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
body[data-chrome="app"] .data th {
  color: #6b7280;
  background: #f8fafc;
  border-bottom: 1px solid #e6e8ec;
}
body[data-chrome="app"] .data tbody tr:hover td {
  background: #f7faff;
}

/* ------------------------------------------------ tiles / tabs */
body[data-chrome="app"] .quick-tile {
  border-color: #e6e8ec;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
body[data-chrome="app"] .quick-tile:hover {
  border-color: #bcd2f7;
  box-shadow: 0 12px 24px -20px rgba(21, 87, 184, 0.55);
}
body[data-chrome="app"] .badge-live {
  background: #e7f8f0;
  color: #0b8a60;
}
body[data-chrome="app"] .badge-on {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* focus states: one consistent ring instead of the browser default */
body[data-chrome="app"] input:focus-visible,
body[data-chrome="app"] select:focus-visible,
body[data-chrome="app"] textarea:focus-visible,
body[data-chrome="app"] button:focus-visible,
body[data-chrome="app"] a:focus-visible {
  outline: 2px solid rgba(26, 109, 239, 0.55);
  outline-offset: 2px;
}

/* skeletons: shorter shimmer so the app feels immediate, no layout thrash */
body[data-chrome="app"] .skeleton {
  background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%);
  background-size: 400% 100%;
  animation-duration: 1.1s;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  body[data-chrome="app"] *,
  body[data-chrome="app"] *::before,
  body[data-chrome="app"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ================================================================ graphite
   The four balance cards (and the other coloured cards on the account area)
   use the graphite premium surface from the home page instead of the old
   blue / teal / violet / gold gradients. A faint tinted glow keeps each
   bucket recognisable without turning the dashboard into a paint chart. */

body[data-chrome="app"] .grad-card,
body[data-chrome="app"] .grad-card.grad-blue,
body[data-chrome="app"] .grad-card.grad-teal,
body[data-chrome="app"] .grad-card.grad-purple,
body[data-chrome="app"] .grad-card.grad-gold {
  position: relative;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 58%),
    linear-gradient(157deg, #3a3e46 0%, #2f333b 38%, #24272e 72%, #1b1e24 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 44px -30px rgba(15, 20, 30, 0.85),
    0 2px 6px rgba(15, 20, 30, 0.18);
  overflow: hidden;
}
body[data-chrome="app"] .grad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(42% 60% at 92% 8%, var(--g-glow, rgba(255, 255, 255, 0.08)), transparent 70%);
}
body[data-chrome="app"] .grad-card.grad-blue   { --g-glow: rgba(26, 109, 239, 0.30); }
body[data-chrome="app"] .grad-card.grad-teal   { --g-glow: rgba(18, 164, 217, 0.24); }
body[data-chrome="app"] .grad-card.grad-purple { --g-glow: rgba(157, 50, 244, 0.22); }
body[data-chrome="app"] .grad-card.grad-gold   { --g-glow: rgba(240, 180, 41, 0.22); }

body[data-chrome="app"] .grad-card .cap {
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.06em;
}
body[data-chrome="app"] .grad-card .amt {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
body[data-chrome="app"] .grad-card .usd,
body[data-chrome="app"] .grad-card .note {
  color: rgba(255, 255, 255, 0.72);
}
body[data-chrome="app"] .grad-card .asset-select {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
body[data-chrome="app"] .grad-card .asset-select option { color: #111418; background: #fff; }

/* the slots notice follows the same surface so the column stays uniform */
body[data-chrome="app"] .slots-card {
  background: linear-gradient(157deg, #3a3e46 0%, #2b2e37 60%, #1e2128 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  box-shadow: 0 18px 40px -32px rgba(15, 20, 30, 0.9);
}
body[data-chrome="app"] .slots-card .text-muted { color: rgba(255, 255, 255, 0.70) !important; }
body[data-chrome="app"] .slots-card .text-green { color: #6ee7b7 !important; }
body[data-chrome="app"] .slots-card .bg-green\/10 { background: rgba(110, 231, 183, 0.14) !important; }

/* ------------------------------------------------ verification marks */
.v-verified-text {
  color: #0b8a60;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}
.v-verified-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
  vertical-align: middle;
}
.v-verified-badge img {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 3px rgba(11, 61, 99, 0.28));
}
.v-verified-star {
  font-size: 9px;
  font-weight: 700;
  color: #0b8a60;
  letter-spacing: 0.02em;
}

/* chat typing presence (investor ↔ operator) */
.ap-adots{display:inline-flex;align-items:center;gap:2px}
.ap-adots i{width:4px;height:4px;border-radius:99px;background:currentColor;display:block;animation:apDot 1.05s infinite ease-in-out}
.ap-adots i:nth-child(2){animation-delay:.15s}
.ap-adots i:nth-child(3){animation-delay:.3s}
@keyframes apDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
