/* ELITE WHITE-PURPLE DESIGN SYSTEM - NAMESPACE .bmg- */
.bmg-wrapper {
  margin-left: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.bmg-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* HEADER */
.bmg-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; }
.bmg-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #fff, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.bmg-subtitle { margin: 4px 0 0; color: #a1a1aa; font-size: 14px; }
.bmg-header-right { display: flex; gap: 16px; align-items: center; }
.bmg-stat-chip { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,0.05); text-transform: uppercase; }

/* TOP SECTION */
.bmg-top-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bmg-card { padding: 32px; display: flex; flex-direction: column; }

/* DR SCORE GAUGE */
.bmg-score-card { flex-direction: row; align-items: center; gap: 40px; }
.bmg-score-visual { position: relative; width: 180px; height: 100px; display: flex; justify-content: center; overflow: hidden; }
.bmg-gauge-svg { width: 100%; height: 200%; fill: none; stroke-width: 8; stroke-linecap: round; }
.bmg-gauge-bg { stroke: rgba(255,255,255,0.1); }
.bmg-gauge-fill { stroke: #22c55e; transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1); filter: drop-shadow(0 0 8px rgba(34,197,94,0.6)); }
.bmg-score-number { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 32px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.bmg-score-grade { position: absolute; bottom: 45px; left: 50%; transform: translateX(-50%); font-size: 48px; font-weight: 900; color: rgba(255,255,255,0.05); }
.bmg-score-details { flex: 1; }
.bmg-score-factors { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #a1a1aa; line-height: 1.8; }
.bmg-score-factors li { display: flex; align-items: center; gap: 8px; }
.bmg-factor-pass { color: #22c55e; }
.bmg-factor-warn { color: #fbbf24; }

/* 3-2-1 RULE */
.bmg-321-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; flex: 1; }
.bmg-321-cell { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; }
.bmg-321-cell.active { border-color: rgba(34,197,94,0.4); background: linear-gradient(180deg, rgba(34,197,94,0.1), transparent); box-shadow: 0 4px 20px rgba(34,197,94,0.1); }
.bmg-321-num { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; }
.bmg-321-label { font-size: 12px; font-weight: 700; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1px; }

/* DESTINATIONS GRID */
.bmg-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.bmg-section-title { font-size: 18px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; }
.bmg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.bmg-dest-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; transition: all 0.3s; position: relative; overflow: hidden; }
.bmg-dest-card:hover { transform: translateY(-4px); border-color: #c084fc; box-shadow: 0 8px 32px rgba(168,85,247,0.15); }
.bmg-dest-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.bmg-dest-icon { width: 48px; height: 48px; background: rgba(0,0,0,0.5); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 24px; border: 1px solid rgba(255,255,255,0.1); }
.bmg-dest-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.bmg-dest-role { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.1); color: #e4e4e7; }
.bmg-role-primary { background: rgba(6,182,212,0.2); color: #06b6d4; }
.bmg-role-offsite { background: rgba(168,85,247,0.2); color: #c084fc; }

.bmg-dest-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #a1a1aa; margin-bottom: 16px; }
.bmg-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.bmg-status-dot.healthy { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: bmgPulse 2s infinite; }

.bmg-storage-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 8px 0; overflow: hidden; }
.bmg-storage-fill { height: 100%; background: #06b6d4; border-radius: 3px; }
.bmg-dest-meta { font-size: 12px; color: #a1a1aa; display: flex; justify-content: space-between; margin-bottom: 24px; }

.bmg-dest-actions { display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; }
.bmg-btn-sm { flex: 1; padding: 8px; font-size: 11px; }

.bmg-dest-add { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; border: 2px dashed rgba(255,255,255,0.2); background: transparent; cursor: pointer; color: #a1a1aa; font-weight: 700; min-height: 250px; }
.bmg-dest-add:hover { border-color: #c084fc; color: #c084fc; background: rgba(168,85,247,0.05); }
.bmg-dest-add i { font-size: 32px; }

/* DRAWER */
.bmg-drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.bmg-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.bmg-drawer { position: fixed; top: 0; right: -700px; width: 700px; max-width: 100vw; height: 100vh; z-index: 1001; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; background: rgba(10,10,15,0.95); border-left: 1px solid rgba(255,255,255,0.1); }
.bmg-drawer.active { right: 0; }
.bmg-drawer-close { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; transition: background 0.3s; }
.bmg-drawer-close:hover { background: #ef5350; }
.bmg-drawer-content { padding: 48px 40px; overflow-y: auto; height: 100%; display: flex; flex-direction: column; gap: 32px; }

/* TABS */
.bmg-tabs-nav { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1px; }
.bmg-tab-btn { background: transparent; border: none; color: #a1a1aa; font-size: 14px; font-weight: 600; padding: 12px 0; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.bmg-tab-btn:hover { color: #fff; }
.bmg-tab-btn.active { color: #c084fc; border-bottom-color: #c084fc; }
.bmg-tab-pane { display: none; padding-top: 24px; animation: bmgFadeIn 0.3s; }
.bmg-tab-pane.active { display: block; }

/* MODALS */
.bmg-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.bmg-modal.active { display: flex; animation: bmgFadeIn 0.3s forwards; }
.bmg-modal-card { width: 100%; max-width: 500px; padding: 32px; position: relative; }
.bmg-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; }
.bmg-modal-header h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.bmg-btn-close { background: transparent; border: none; color: #a1a1aa; font-size: 24px; cursor: pointer; transition: color 0.3s; }
.bmg-btn-close:hover { color: #ef5350; }

.bmg-checkbox-group { display: flex; flex-direction: column; gap: 12px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.bmg-checkbox-group label { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #e4e4e7; cursor: pointer; }

/* BUTTONS & INPUTS */
.bmg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter'; text-transform: uppercase; letter-spacing: 0.5px; }
.bmg-btn-primary { background: #a855f7; color: #fff; }
.bmg-btn-primary:hover { background: #c084fc; box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.bmg-btn-outline { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.bmg-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.bmg-select { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px; border-radius: 8px; outline: none; font-family: 'Inter'; font-size: 14px; transition: border-color 0.3s; }
.bmg-select:focus { border-color: #c084fc; }

.bmg-drill-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin: 24px 0 12px; }
.bmg-drill-progress-fill { height: 100%; background: #06b6d4; width: 0%; transition: width 0.3s linear; }

/* ANIMATIONS */
@keyframes bmgPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes bmgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmgShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }