/* ==========================================================================
   BotJadiMudah - ZeptLabs Minimalist Obsidian Design System
   ========================================================================== */

:root {
  --bg-color: #050505;
  --bg-surface: #0c0c0c;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input: #0e0e0e;
  --bg-console: #000000;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.25);

  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;

  --accent-white: #ffffff;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  --accent-danger: #f87171;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Gradient Titles like Zeptlabs */
.gradient-title {
  background: linear-gradient(180deg, #ffffff 0%, #777777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Layout Shell */
.app-container,
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Desktop Sidebar (ZeptLabs Style) */
.sidebar {
  width: 260px;
  background-color: #070707;
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.sidebar-logo-text span {
  color: #888;
}

.sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.sidebar-link.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Mobile Header & Hamburger */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.hamburger-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 998;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .content-wrapper,
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 84px 18px 32px !important;
  }
}

/* Main Content Area */
.content-wrapper,
.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  max-width: 1200px;
  box-sizing: border-box;
  padding: 36px 40px;
  min-height: 100vh;
}

/* Cards (Zeptlabs Flat Glass/Solid Hybrid) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Buttons (Zeptlabs Pill Style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-active);
}

/* Minimalist Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pairing {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-admin {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
}

.badge-user {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Console Box */
.console-box {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.console-header {
  background: #0a0a0a;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-body {
  height: 320px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #a1a1aa;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line-time {
  color: #52525b;
  margin-right: 8px;
}

.console-line-info {
  color: #38bdf8;
}

.console-line-success {
  color: #34d399;
}

.console-line-warn {
  color: #fbbf24;
}

.console-line-error {
  color: #f87171;
}

/* Pairing Displays */
.pairing-code-display {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #ffffff;
  background: #0d0d0d;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  margin: 16px 0;
}

/* Floating Shortcut Bubble */
.floating-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 1001;
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.floating-bubble:hover {
  transform: scale(1.1);
}

/* Category Drawer Modal */
.category-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1002;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.category-drawer-content {
  background: #0a0a0a;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.category-drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-drawer-list {
  padding: 16px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-drawer-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-drawer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27272a;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background-color: #10b981;
  border-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #18181b;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   n8n-Inspired Workflow Canvas & Flow Nodes
   ========================================================================== */
.n8n-canvas-wrapper {
  background-color: #080808;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.n8n-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.n8n-workflow-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.n8n-canvas-viewport {
  padding: 40px 24px;
  overflow-x: auto;
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.n8n-flow-container {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 100%;
  justify-content: space-between;
  position: relative;
  padding: 10px 0;
}

/* SVG Connecting Lines */
.n8n-flow-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
  transform: translateY(-50%);
}

.n8n-flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  transform: translateY(-50%);
  animation: n8nPulseAnim 3s infinite linear;
  z-index: 2;
}

@keyframes n8nPulseAnim {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 95%; opacity: 0; }
}

/* Individual Node Card (n8n Style) */
.n8n-node {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 200px;
  min-width: 200px;
  padding: 14px 16px;
  position: relative;
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.n8n-node:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.n8n-node.active-node {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.n8n-node.error-node {
  border-color: #f87171;
}

.n8n-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.n8n-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid var(--border-subtle);
}

.n8n-node-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n8n-node-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n8n-node-port {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27272a;
  border: 2px solid #080808;
  transform: translateY(-50%);
  z-index: 10;
}

.n8n-node-port.input {
  left: -6px;
}

.n8n-node-port.output {
  right: -6px;
  background: #10b981;
}

.n8n-node-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
  font-family: var(--font-mono);
}

.n8n-pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.n8n-pill-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.n8n-pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.n8n-pill-gray {
  background: rgba(255, 255, 255, 0.08);
  color: #888888;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Log Filter Pills */
.log-filter-btn {
  background: #141414;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.log-filter-btn:hover {
  background: #1f1f1f;
  color: #fff;
}

.log-filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   Realtime Loading Engine Styles
   ========================================================================== */

/* Top Nano Progress Bar */
#realtime-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 50%, #ffffff 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 5px rgba(16, 185, 129, 0.5);
  z-index: 99999;
  transition: width 0.25s ease, opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

#realtime-top-progress.active {
  opacity: 1;
}

/* Realtime Live Sync Pill */
.realtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.realtime-pill.syncing {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.realtime-pill.offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* Pulsing Dots */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGlow 1.8s infinite;
}

.pulse-dot.cyan {
  background: #38bdf8;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0.4);
  animation: pulseCyan 1.5s infinite;
}

.pulse-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
  animation: pulseAmber 1.5s infinite;
}

.pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  animation: pulseRed 1.8s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseCyan {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

@keyframes pulseAmber {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Inline Spinner for Buttons */
.spinner-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton Shimmer Loading */
.skeleton-shimmer {
  background: linear-gradient(90deg, #111111 25%, #1a1a1a 50%, #111111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Radar Scan Line for QR Box */
.qr-radar-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 14px;
}

.qr-radar-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 10px #10b981;
  animation: radarScan 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

@keyframes radarScan {
  0% {
    top: 0%;
    opacity: 0.2;
  }
  50% {
    top: 96%;
    opacity: 1;
  }
  100% {
    top: 0%;
    opacity: 0.2;
  }
}

/* Footer */
.footer-watermark {
  padding: 30px 0 10px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 50px;
}

/* ==========================================================================
   Custom Glassmorphic Popup Modals (Replacing browser alert/confirm)
   ========================================================================== */
.bjm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bjmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bjm-modal-backdrop.closing {
  animation: bjmFadeOut 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bjm-modal-dialog {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 26px 24px 22px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 45, 85, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: bjmPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bjm-modal-backdrop.closing .bjm-modal-dialog {
  animation: bjmPopOut 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bjm-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bjm-modal-icon.bjm-icon-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.bjm-modal-icon.bjm-icon-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.bjm-modal-icon.bjm-icon-info {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.bjm-modal-icon.bjm-icon-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.bjm-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bjm-modal-body {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.bjm-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.bjm-modal-actions .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

@keyframes bjmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bjmFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes bjmPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bjmPopOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
}