/* ═══════════════════════════════════════════════════════════
   Phase V3.6 — Aggregator Premium More Hub (#aggMoreSheet)
   Scoped: body.cabinet-role-agg only — does not affect master
   ═══════════════════════════════════════════════════════════ */

body.cabinet-role-agg {
  --agg-v3-more-canvas: #f5f7fa;
  --agg-v3-more-card: #ffffff;
  --agg-v3-more-border: rgba(226, 232, 240, 0.95);
  --agg-v3-more-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --agg-v3-more-ink: #0f172a;
  --agg-v3-more-muted: #64748b;
}

/* — Bottom nav icons (emoji → FA) — */
body.cabinet-role-agg .mobile-bottom-nav .agg-mbn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.cabinet-role-agg .mobile-bottom-nav .agg-mbn-ico i {
  font-size: 18px;
  opacity: 0.88;
}

body.cabinet-role-agg .mobile-bottom-nav .agg-mbn-item.active .agg-mbn-ico i {
  opacity: 1;
  color: #4f46e5;
}

/* — Overlay — */
body.cabinet-role-agg #aggMoreOverlay.agg-more-overlay {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* — Sheet shell — */
body.cabinet-role-agg #aggMoreSheet .agg-more-sheet-inner {
  max-width: 520px;
  background: var(--agg-v3-more-canvas);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 48px rgba(15, 23, 42, 0.18);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-head {
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: none;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-head__text {
  flex: 1;
  min-width: 0;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-title {
  display: block;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--agg-v3-more-ink);
  line-height: 1.2;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--agg-v3-more-muted);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--agg-v3-more-border);
  background: var(--agg-v3-more-card);
  color: #64748b;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-close i {
  pointer-events: none;
}

/* — Scroll body — */
body.cabinet-role-agg #aggMoreSheet .agg-more-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: unset;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-group {
  margin: 0;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-group-label {
  margin: 0 0 8px;
  padding: 0 4px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--agg-v3-more-muted);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* — Row tiles — */
body.cabinet-role-agg #aggMoreSheet .agg-more-tile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--agg-v3-more-border);
  background: var(--agg-v3-more-card);
  box-shadow: var(--agg-v3-more-shadow);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile:hover {
  border-color: rgba(79, 70, 229, 0.22);
  background: var(--agg-v3-more-card);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--agg-v3-more-ink);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-sub {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--agg-v3-more-muted);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico--gold {
  color: #b45309;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.55));
  border: 1px solid rgba(251, 191, 36, 0.35);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico--indigo {
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.98), rgba(224, 231, 255, 0.75));
  border: 1px solid rgba(99, 102, 241, 0.22);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico--teal {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.95), rgba(153, 246, 228, 0.55));
  border: 1px solid rgba(45, 212, 191, 0.35);
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico--slate {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-ico--danger {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecaca;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile-chev {
  flex-shrink: 0;
  font-size: 11px;
  color: #94a3b8;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile--danger {
  border-color: rgba(254, 202, 202, 0.95);
  background: #fffafa;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-tile--danger .agg-more-tile-title {
  color: #b91c1c;
}

body.cabinet-role-agg #aggMoreSheet .agg-more-nav-badge {
  margin-left: 6px;
  vertical-align: middle;
}
