/* iMall Dual-Mode Visual-First HUD & 4-Tab Inspector Drawer */
.im-logo-svg { width: 30px; height: 30px; vertical-align: middle; margin-inline-end: 8px; }
.im-inspect-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.5); background: rgba(58, 47, 122, 0.18);
  color: inherit; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.im-inspect-btn:hover { background: #3a2f7a; color: #ffffff; }
.im-drawer-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(11, 16, 32, 0.56);
  backdrop-filter: blur(4px); display: flex; justify-content: flex-end;
}
.im-drawer {
  width: min(440px, 100vw); height: 100%; background: #ffffff; color: #0b1220;
  border-inline-start: 1px solid #d7deea; box-shadow: -12px 0 36px rgba(11, 16, 32, 0.35);
  display: flex; flex-direction: column;
}
.im-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px; background: linear-gradient(135deg, #1b2350, #3a2f7a); color: #ffffff;
}
.im-drawer-title { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.im-drawer-kicker { font-size: 11px; font-weight: 800; color: #f6d57a; letter-spacing: 0.05em; }
.im-drawer-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1); color: #ffffff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.im-drawer-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px;
  background: #f4f6fb; border-bottom: 1px solid #e2e8f0;
}
.im-dtab {
  min-height: 38px; padding: 6px; border-radius: 9px; border: 0; background: transparent;
  color: #4a5570; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.im-dtab.is-active { background: #3a2f7a; color: #ffffff; }
.im-drawer-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.65;
}
.im-kv {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; padding: 12px;
  border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.im-kv dt { color: #64748b; font-weight: 700; font-size: 12.5px; }
.im-kv dd { margin: 0; font-weight: 800; font-size: 13.5px; text-align: end; font-variant-numeric: tabular-nums; }
.im-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px;
  border-radius: 10px; background: #3a2f7a; color: #ffffff; text-decoration: none; font-weight: 800; font-size: 14px;
}
@media (max-width: 640px) {
  .im-drawer-backdrop { align-items: flex-end; }
  .im-drawer { width: 100vw; height: min(82vh, 600px); border-radius: 18px 18px 0 0; }
}
