/* ELITE WHITE-PURPLE DESIGN SYSTEM - NAMESPACE .mst- */
.mst-wrapper {
  margin-left: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.mst-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 */
.mst-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; }
.mst-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; }
.mst-subtitle { margin: 4px 0 0; color: #a1a1aa; font-size: 14px; }
.mst-header-right { display: flex; gap: 16px; align-items: center; }
.mst-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: 600; border: 1px solid rgba(255,255,255,0.05); color: #e4e4e7; }

/* INSIGHT BANNER */
.mst-section-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; color: #a1a1aa; }
.mst-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mst-insight-card { display: flex; flex-direction: column; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, rgba(239,83,80,0.1), rgba(0,0,0,0.2)); border: 1px solid rgba(239,83,80,0.3); cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; }
.mst-insight-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(239,83,80,0.15); }
.mst-insight-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.mst-insight-stat { font-size: 13px; color: #e4e4e7; margin-bottom: 12px; }
.mst-trend { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; display: inline-block; width: max-content; }
.mst-trend.up { background: rgba(239,83,80,0.2); color: #ef5350; }
.mst-trend.down { background: rgba(34,197,94,0.2); color: #22c55e; }
.mst-trend.stable { background: rgba(161,161,170,0.2); color: #a1a1aa; }

/* CONTROLS */
.mst-controls { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 24px; align-items: center; justify-content: space-between; }
.mst-search-box { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.4); padding: 10px 16px; border-radius: 12px; flex: 1; min-width: 250px; border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.3s; }
.mst-search-box:focus-within { border-color: #c084fc; box-shadow: 0 0 10px rgba(168,85,247,0.2); }
.mst-search-box i { color: #a1a1aa; }
.mst-search-box input { background: transparent; border: none; color: #fff; width: 100%; outline: none; font-family: 'Inter'; font-size: 14px; }
.mst-filters { display: flex; gap: 12px; align-items: center; }
.mst-select { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: #e4e4e7; padding: 10px 16px; border-radius: 12px; outline: none; font-family: 'Inter'; font-size: 13px; cursor: pointer; }
.mst-checkbox-label { font-size: 13px; color: #a1a1aa; display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* GRID & CARDS */
.mst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; animation: mstFadeIn 0.4s; }
.mst-card { position: relative; padding: 24px; display: flex; flex-direction: column; cursor: pointer; transition: all 0.3s; overflow: hidden; border-left-width: 4px; border-left-style: solid; }
.mst-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }

.mst-band-critical { border-left-color: #ef5350; background: linear-gradient(90deg, rgba(239,83,80,0.05), transparent); }
.mst-band-high { border-left-color: #fb923c; background: linear-gradient(90deg, rgba(251,146,60,0.05), transparent); }
.mst-band-medium { border-left-color: #fbbf24; background: linear-gradient(90deg, rgba(251,191,36,0.05), transparent); }
.mst-band-low { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(34,197,94,0.05), transparent); }

.mst-card-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.mst-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: rgba(255,255,255,0.05); color: #a1a1aa; border: 1px solid rgba(255,255,255,0.1); }
.mst-card-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.mst-card-desc { font-size: 13px; color: #a1a1aa; line-height: 1.5; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mst-card-stats { display: flex; justify-content: space-between; font-size: 12px; color: #e4e4e7; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.mst-card-mine { margin-top: 12px; background: rgba(239,83,80,0.1); padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #ef5350; display: flex; align-items: center; justify-content: space-between; }

/* DRAWER */
.mst-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; }
.mst-drawer-overlay.active { opacity: 1; pointer-events: auto; }
.mst-drawer { position: fixed; top: 0; right: -800px; width: 800px; 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); }
.mst-drawer.active { right: 0; }
.mst-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; }
.mst-drawer-close:hover { background: #ef5350; }
.mst-drawer-content { padding: 48px 40px; overflow-y: auto; height: 100%; display: flex; flex-direction: column; gap: 32px; }

/* DRAWER HERO & TABS */
.mst-hero-title { font-size: 32px; font-weight: 900; margin: 0 0 8px; line-height: 1.1; }
.mst-hero-meta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.mst-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.mst-tabs-nav { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1px; }
.mst-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; }
.mst-tab-btn:hover { color: #fff; }
.mst-tab-btn.active { color: #c084fc; border-bottom-color: #c084fc; }
.mst-tab-pane { display: none; padding-top: 24px; animation: mstFadeIn 0.3s; }
.mst-tab-pane.active { display: block; }

/* CONTENT BLOCKS */
.mst-block { margin-bottom: 32px; }
.mst-block h3 { font-size: 18px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; color: #e4e4e7; }
.mst-text { line-height: 1.7; color: #a1a1aa; font-size: 15px; margin-bottom: 16px; }
.mst-list { padding-left: 20px; color: #a1a1aa; line-height: 1.7; font-size: 15px; }
.mst-list li { margin-bottom: 8px; }

.mst-fix-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 20px; border-radius: 12px; margin-bottom: 16px; }
.mst-fix-card h4 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.mst-quote { font-style: italic; font-size: 18px; color: #c084fc; border-left: 4px solid #c084fc; padding: 12px 20px; background: rgba(168,85,247,0.05); margin: 24px 0; border-radius: 0 8px 8px 0; }

/* BUTTONS */
.mst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter'; text-transform: uppercase; letter-spacing: 0.5px; }
.mst-btn-primary { background: #a855f7; color: #fff; }
.mst-btn-primary:hover { background: #c084fc; box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.mst-btn-outline { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.mst-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* MODALS */
.mst-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; }
.mst-modal.active { display: flex; animation: mstFadeIn 0.3s forwards; }
.mst-modal-card { width: 100%; max-width: 600px; padding: 32px; position: relative; }
.mst-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; }
.mst-btn-close { background: transparent; border: none; color: #a1a1aa; font-size: 24px; cursor: pointer; transition: color 0.3s; }
.mst-btn-close:hover { color: #ef5350; }
.mst-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px 0; color: #c084fc; font-size: 16px; font-weight: 600; }

@keyframes mstFadeIn { from { opacity: 0; } to { opacity: 1; } }