/* ========================================================
   UPTRADING VN - DESIGN SYSTEM (100% ĐỒNG BỘ TRENDX WEBSITE CHÍNH)
   ======================================================== */
html {
  scroll-behavior: smooth;
}

:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  
  --text-main: #020617;
  --text-secondary: #334155;
  --text-sub: #64748b;
  --text-muted: #475569;
  --card-border-hover: rgba(16, 185, 129, 0.4);
  --bg-card: #ffffff;
  --border-panel: #cbd5e1;
  
  --accent-primary: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --gradient-text: linear-gradient(135deg, #10b981, #059669);
  --gradient-brand: var(--gradient-text);
  
  --border-color: #e2e8f0;
  --dot-bg: radial-gradient(#e2e8f0 1px, transparent 1px);
  
  --card-bg: var(--bg-main);
  --card-border: var(--border-color);
  --glow-color: var(--accent-glow);

  --font-main: 'Inter', 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg-main: #0a0a0a;
  --bg-secondary: rgba(36, 40, 50, 0.76);
  --bg-tertiary: #1b1b2f;
  
  --glass-bg: rgba(36, 40, 50, 0.76);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  
  --text-main: #EDEEF0;
  --text-secondary: #CBD5E1;
  --text-sub: #94A3B8;
  --text-muted: #8A8F98;
  --card-border-hover: rgba(16, 185, 129, 0.45);
  --bg-card: rgba(36, 40, 50, 0.76);
  --border-panel: rgba(255, 255, 255, 0.14);
  
  --accent-primary: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.12);
  --gradient-text: linear-gradient(135deg, #34d399, #10b981);
  --gradient-brand: var(--gradient-text);
  
  --border-color: rgba(255, 255, 255, 0.10);
  --dot-bg: radial-gradient(#1e293b 1px, transparent 1px);
  
  --card-bg: rgba(36, 40, 50, 0.76);
  --card-border: rgba(255, 255, 255, 0.14);
  --glow-color: var(--accent-glow);
}

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

input, button, select, textarea {
  font-family: inherit;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: var(--dot-bg);
  background-size: 24px 24px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Ambient Glow Background Effect */
.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  background: var(--accent-glow);
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  top: -20%;
  left: 20%;
  pointer-events: none;
}

/* Scrollbar Luxury Glass (Đồng bộ Menu TrendX) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content-wrap {
  margin-top: 15px;
}

/* ========================================================
   HEADER TRENDX & FLOATING NAVBAR (NAMETHATUI AESTHETIC)
   ======================================================== */
.header-trendx {
  position: sticky;
  top: 12px;
  margin: 10px auto 16px;
  width: 96%;
  max-width: 1420px;
  padding: 7px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  z-index: 1000;
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  transition: all 0.25s ease;
}

[data-theme="light"] .header-trendx,
:root:not([data-theme="dark"]) .header-trendx {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* 1. Brand Logo Compact Frame */
.header-brand-logo,
.logo-text {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  outline: none;
}
.brand-logo-frame {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(36, 40, 50, 0.76); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
[data-theme="light"] .brand-logo-frame {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.brand-logo-frame:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.18);
  background: #23262D;
}
.brand-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* 2. Center Nav Segmented Control (NameThatUI segmented pill style) */
.nav-segmented,
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 3px;
  border-radius: 10px;
  box-sizing: border-box;
}
[data-theme="light"] .nav-segmented,
[data-theme="light"] .nav-links {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-tab-link {
  font-weight: 500;
  font-size: 13px;
  color: #8A8F98;
  padding: 6px 15px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}
.nav-tab-link:hover {
  color: #EDEEF0;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab-link.active {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #10B981 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.22) !important;
}
.nav-tab-link.active span {
  color: #10B981 !important;
}
[data-theme="light"] .nav-tab-link.active {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 3. Right Actions & Utility Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-utility-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.icon-btn-utility,
.icon-btn {
  background: rgba(36, 40, 50, 0.76); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  color: #8A8F98;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  outline: none;
  padding: 0;
  box-sizing: border-box;
}
.icon-btn-utility:hover,
.icon-btn:hover {
  color: #EDEEF0;
  background: #252830;
  border-color: rgba(255, 255, 255, 0.18);
}
[data-theme="light"] .icon-btn-utility,
[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}
[data-theme="light"] .icon-btn-utility:hover,
[data-theme="light"] .icon-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* ========================================================
   SEARCH SECTION
   ======================================================== */
.search-section {
  margin: 10px 0 22px;
}

.search-box-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 8px 22px;
  box-shadow: var(--glass-shadow);
  transition: all 0.25s ease;
}
.search-input-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  font-size: 16px;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 15px;
  font-family: var(--font-main);
  padding: 6px 0;
  font-weight: 500;
}
.search-input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px dashed var(--glass-border);
  cursor: pointer;
  transition: all 0.2s;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover {
  background: rgba(16, 185, 129, 0.08);
  padding-left: 24px;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.item-symbol {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-primary);
  min-width: 50px;
}

.item-name {
  font-size: 13.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
  font-weight: 500;
}

.item-sector {
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.item-score-badge {
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ========================================================
   SECTOR CHIPS - BỐ TRÍ 3 HÀNG CÂN ĐỐI (21 NHÓM NGÀNH)
   ======================================================== */
.sector-chips {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 10px;
  margin-top: 16px;
  width: 100%;
}

.sector-chip {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.15px;
}
.sector-chip:hover {
  color: var(--accent-primary);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.sector-chip.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  font-weight: 700;
}

@media (max-width: 1200px) {
  .sector-chips {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .sector-chips {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .sector-chip {
    font-size: 11px;
    padding: 7px 4px;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .sector-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}

/* ========================================================
   COMMON CARD (LUXURY GLASSMORPHISM)
   ======================================================== */
.card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 22px;
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="dark"] .card {
  background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(10, 110, 75, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ========================================================
   STOCK HERO CARD
   ======================================================== */
.stock-hero-card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[data-theme="dark"] .stock-hero-card {
  background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(10, 110, 75, 0.16) 100%);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
}

.stock-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stock-symbol-badge {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  background: var(--gradient-brand);
  padding: 8px 18px;
  border-radius: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.stock-names h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.strategy-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-leader {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-growth {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-value {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-warning {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stock-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.tag-sector {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-refresh {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-refresh:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.metric-cell:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ========================================================
   SỨC KHỎE TÀI CHÍNH & 5 TRỤ CỘT UPTRADING VN
   ======================================================== */
.financial-pillars-section {
  margin-bottom: 22px;
}

.pillars-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pillars-layout {
    grid-template-columns: 1fr;
  }
}

.pillar-overview-card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[data-theme="dark"] .pillar-overview-card {
  background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(10, 110, 75, 0.16) 100%);
  border-color: rgba(16, 185, 129, 0.15);
}

.overview-header-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.overview-big-score {
  font-family: var(--font-mono);
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: #10b981;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.overview-status-label {
  font-size: 17px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 14px;
}

.overview-method-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.overview-method-link:hover {
  color: var(--accent-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.pillar-detail-card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar-detail-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

[data-theme="dark"] .pillar-detail-card {
  background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(10, 110, 75, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.1);
}

.pillar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.pillar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-score {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
}

.pillar-content-bullets {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-item {
  position: relative;
  padding-left: 14px;
}
.bullet-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.badge-metric-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 3px;
}
.badge-status-positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.badge-status-neutral {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.badge-status-negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Charts Grid Duo (Radar + History + Peers) */
.charts-grid-duo {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .charts-grid-duo {
    grid-template-columns: 1fr;
  }
}

.chart-wrapper {
  position: relative;
  width: 100%;
}

.peers-list-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

/* ========================================================
   MULTI-TAB VISUAL DASHBOARD
   ======================================================== */
.visual-dashboard-section {
  padding: 0;
  overflow: hidden;
}

.visual-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
}

.tab-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tab-btn:hover {
  background: rgba(16, 185, 129, 0.06);
  color: var(--text-main);
}
.nav-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.nav-tab-btn.tab-highlight {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
}
.nav-tab-btn.tab-highlight.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.nav-tab-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.period-toggle-pills {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-pill {
  cursor: pointer;
}
.radio-pill input {
  display: none;
}
.radio-pill span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.radio-pill input:checked + span {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.select-period-range {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.select-period-range option {
  background: #0f172a;
  color: #f8fafc;
}

.visual-tab-panel {
  display: none;
  padding: 20px;
}
.visual-tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.charts-responsive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .charts-responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .charts-responsive-grid {
    grid-template-columns: 1fr;
  }
}

.mini-chart-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.mini-chart-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.mini-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-chart-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.mini-chart-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.mini-chart-canvas-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
}

/* ========================================================
   FORENSIC AUDIT SECTION (THUYẾT MINH & RỦI RO BCTC)
   ======================================================== */
.risk-matrix-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .risk-matrix-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.risk-kpi-card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-main-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.risk-sections-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.risk-card {
  background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.risk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.risk-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.risk-card-title .icon {
  font-size: 24px;
}
.risk-card-title h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}
.risk-card-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.risk-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.risk-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.risk-chart-and-metrics {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 900px) {
  .risk-chart-and-metrics {
    grid-template-columns: 1fr;
  }
}

.risk-mini-chart {
  position: relative;
  height: 200px;
  width: 100%;
}

.risk-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.risk-metric-row-name {
  font-size: 12.5px;
  color: var(--text-muted);
}

.risk-metric-row-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.risk-audit-comment {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid #10b981;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
}
.risk-audit-comment.warning {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}
.risk-audit-comment.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
}

/* DuPont Decomposition */
.dupont-decomposition-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 800px) {
  .dupont-decomposition-wrapper {
    grid-template-columns: 1fr;
  }
}

.dupont-factor-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.dupont-factor-title {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.dupont-factor-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dupont-factor-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.cash-flowchart-container {
  overflow-x: auto;
  padding: 10px 0;
}

.flowchart-svg-box {
  min-width: 700px;
  width: 100%;
}

/* ========================================================
   SMART FILTERS HUB (SCREENER VIEW)
   ======================================================== */
.smart-filters-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-select {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.filter-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.filter-select option {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px;
}

.btn-reset-filters {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-reset-filters:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.screener-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.screener-stats-pill {
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ========================================================
   TABLE VIEW & BCTC TABLE
   ======================================================== */
.table-sub-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.sub-tab-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sub-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.sub-tab-btn:hover {
  color: var(--accent-primary);
}
.sub-tab-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.table-filter-input {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 20px;
  outline: none;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.table-filter-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #080d1e;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .table-responsive,
:root:not([data-theme="dark"]) .table-responsive {
  background: #ffffff;
  border-color: #e2e8f0;
}

.bctc-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

/* Hàng tiêu đề cố định trên cùng (Sticky Top) - Đục đặc 100% không xuyên chữ */
.bctc-table th {
  background: #0f172a !important;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Cột tiêu đề cố định bên trái (Sticky Left) - Đục đặc 100% che hoàn toàn số liệu cuộn bên dưới */
.bctc-table th:first-child,
.bctc-table td:first-child {
  position: sticky;
  left: 0;
  background: #0b132b !important;
  z-index: 25;
  font-weight: 700;
  text-align: left;
  border-right: 2px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.6) !important;
}

/* Ô giao thoa góc trên bên trái (Chỉ tiêu tài chính) */
.bctc-table th:first-child {
  z-index: 40 !important;
  background: #0f172a !important;
}

/* Chế độ Sáng (Light Mode): Đục đặc 100% sáng sạch, chống xuyên chữ */
[data-theme="light"] .bctc-table th,
:root:not([data-theme="dark"]) .bctc-table th {
  background: #f8fafc !important;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #475569;
}

[data-theme="light"] .bctc-table th:first-child,
[data-theme="light"] .bctc-table td:first-child,
:root:not([data-theme="dark"]) .bctc-table th:first-child,
:root:not([data-theme="dark"]) .bctc-table td:first-child {
  background: #ffffff !important;
  border-right: 2px solid #cbd5e1 !important;
  box-shadow: 6px 0 14px rgba(0, 0, 0, 0.08) !important;
  color: #020617;
}

[data-theme="light"] .bctc-table th:first-child,
:root:not([data-theme="dark"]) .bctc-table th:first-child {
  background: #f1f5f9 !important;
  z-index: 40 !important;
}

.bctc-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #080d1e;
}

[data-theme="light"] .bctc-table td,
:root:not([data-theme="dark"]) .bctc-table td {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.bctc-table tr:hover td {
  background: rgba(16, 185, 129, 0.08);
}

/* Hover ô đầu tiên vẫn giữ nền đục đặc để không bị xuyên chữ */
.bctc-table tr:hover td:first-child {
  background: #14213d !important;
  color: #34d399 !important;
}

[data-theme="light"] .bctc-table tr:hover td:first-child,
:root:not([data-theme="dark"]) .bctc-table tr:hover td:first-child {
  background: #f1f5f9 !important;
  color: #059669 !important;
}

/* ========================================================
   MODAL & FOOTER
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 24px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.modal-dialog::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 18px;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-pillar-item {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 12px 14px;
  border-radius: 8px;
}
.pillar-modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.badge-num {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-pillar-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.score-scale-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scale-item {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}
.scale-item.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.scale-item.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.scale-item.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.scale-item.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

footer {
  margin-top: 50px;
  padding: 35px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(36, 40, 50, 0.76) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  text-align: center;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================================
   RESPONSIVE ADJUSTMENTS CHO HEADER TRENDX & BỘ LỌC
   ======================================================== */
@media (max-width: 900px) {
  .header-trendx {
    border-radius: 20px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-segmented,
  .nav-links {
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 3px;
  }
  .nav-tab-link {
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .nav-actions {
    gap: 6px;
  }
  .smart-filters-hub {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 12px;
  }
}

/* ========================================================
   TỐI ƯU HIỆU SUẤT GIAO DIỆN & TẢI TRANG SIÊU TỐC
   (Loại bỏ hoàn toàn GPU reflow và mousemove jank)
   ======================================================== */
.card, .risk-card, .pricing-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-load-more {
  padding: 11px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: #10b981;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-load-more:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* ========================================================
   KHUNG NHẬP MÃ BẢN QUYỀN VIP (LICENSE KEY)
   ======================================================== */
.activation-box, .profile-activation-box {
  margin-top: 18px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 10px;
}

.activation-box label, .profile-activation-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}

.activation-input-flex {
  display: flex;
  gap: 8px;
}

.activation-input-flex input {
  flex: 1;
  padding: 9px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.activation-input-flex input:focus {
  border-color: #10b981;
}

.btn-activate-submit {
  padding: 9px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-activate-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ========================================================
   MODAL QUẢN TRỊ ADMIN BÍ MẬT DÀNH CHO ANH TUẤN
   ======================================================== */
.admin-dialog {
  max-width: 580px;
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.admin-form-group input, .admin-form-group select {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
}
.admin-form-group input:focus, .admin-form-group select:focus {
  border-color: #f59e0b;
}

.admin-result-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-result-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.copy-input-row {
  display: flex;
  gap: 8px;
}
.copy-input-row input {
  flex: 1;
  padding: 9px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 12.5px;
  font-family: 'Fira Code', monospace;
  outline: none;
}

.btn-admin-copy {
  padding: 9px 14px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-admin-copy:hover {
  filter: brightness(1.1);
}

.admin-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.btn-admin-direct-activate {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-admin-direct-activate:hover {
  filter: brightness(1.1);
}

/* ========================================================
   HEADER BUTTONS: NÚT VIP & AUTH CONTAINER
   ======================================================== */
.btn-vip-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1E1B14;
  color: #F59E0B !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-vip-header:hover {
  background: #282315;
  border-color: rgba(245, 158, 11, 0.5);
  color: #FBBF24 !important;
}

.auth-header-container {
  display: flex;
  align-items: center;
}

.btn-login-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(36, 40, 50, 0.76); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #EDEEF0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-login-header:hover {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.user-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-status-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.badge-vip-pill {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-vip-pill.free { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.badge-vip-pill.pro { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.badge-vip-pill.vip { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }

/* ========================================================
   VIP PAYWALL BANNER (TAB RỦI RO & THUYẾT MINH BCTC)
   ======================================================== */
.vip-paywall-banner {
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.vip-paywall-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .vip-paywall-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(253, 230, 138, 0.7) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.vip-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.vip-paywall-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.vip-paywall-card p {
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.vip-paywall-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-vip-action {
  padding: 11px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-vip-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-trial-action {
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-trial-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Risk sections blur khi chưa mở khóa VIP */
.risk-sections-container.locked {
  position: relative;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

/* ========================================================
   MODAL ĐĂNG NHẬP / ĐĂNG KÝ HỘI VIÊN (AUTH DIALOG)
   ======================================================== */
.auth-dialog {
  max-width: 460px;
  padding: 28px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--glass-border);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.auth-tab-btn.active {
  background: var(--glass-bg);
  color: #10b981;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-input-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-input-group input {
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-input-group input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.forgot-pass-link {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
}

.auth-policy-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-policy-note a {
  color: #10b981;
  text-decoration: none;
}

.btn-auth-submit {
  padding: 12px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

.quick-demo-accounts {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.quick-demo-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-demo-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-demo-pill {
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-demo-pill:hover {
  border-color: var(--text-muted);
}
.btn-demo-pill.pro {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.btn-demo-pill.pro:hover {
  background: rgba(56, 189, 248, 0.1);
}
.btn-demo-pill.vip {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}
.btn-demo-pill.vip:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* ========================================================
   MODAL BẢNG GIÁ HỘI VIÊN & VIETQR (PRICING DIALOG)
   ======================================================== */
.pricing-dialog {
  max-width: 1180px;
  width: 95vw;
  max-height: 94vh;
  padding: 24px 28px 20px 28px;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.pricing-dialog::-webkit-scrollbar,
.pricing-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.pricing-dialog .modal-header {
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.pricing-dialog .modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-dialog .modal-header p {
  font-size: 13.5px;
  margin-top: 3px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card.hot-plan {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-secondary) 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.pricing-card.vip-plan {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-secondary) 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.hot-badge, .vip-save-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hot-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}
.vip-save-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.pricing-plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.pricing-plan-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.hot-plan .price-val { color: #10b981; }
.vip-plan .price-val { color: #f59e0b; }

.price-cycle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 38px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.38;
}

.plan-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.plan-features li i {
  margin-top: 2px;
  font-size: 12.5px;
}

.text-green { color: #10b981 !important; }
.text-muted { color: var(--text-muted) !important; }

.btn-plan-select {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.btn-plan-select.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.btn-plan-select.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-plan-select.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-plan-select.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-plan-select.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* ========================================================
   VIETQR PAYMENT SECTION
   ======================================================== */
.vietqr-payment-section {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  animation: fadeIn 0.3s ease;
}

.vietqr-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.vietqr-header {
  margin-bottom: 20px;
}
.vietqr-header h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.vietqr-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.vietqr-body-flex {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.vietqr-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vietqr-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.qr-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vietqr-info-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.qr-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.qr-label {
  width: 105px;
  color: var(--text-muted);
}

.qr-val {
  font-weight: 600;
  color: var(--text-main);
}
.qr-val.highlight { color: #38bdf8; }
.qr-val.price-highlight { color: #10b981; font-size: 16px; font-weight: 800; }
.qr-val.code-highlight {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.font-mono { font-family: 'Fira Code', monospace; }

.btn-copy-mini {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-mini:hover {
  color: #10b981;
  border-color: #10b981;
}

.qr-instructions {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.qr-action-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.qr-frame-radar {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: inline-block;
  line-height: 0;
}

.radar-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 14px 2px #10b981;
  animation: scanLineAnim 2.2s ease-in-out infinite alternate;
}

@keyframes scanLineAnim {
  0% { top: 0%; opacity: 0.6; }
  100% { top: 96%; opacity: 1; }
}

.payment-countdown-pill {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.payment-countdown-pill span {
  color: #f59e0b;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

.btn-check-payment-status {
  flex: 1;
  padding: 11px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}
.btn-check-payment-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

.btn-zalo-secondary {
  padding: 11px 16px;
  background: rgba(0, 104, 255, 0.1);
  border: 1px solid rgba(0, 104, 255, 0.3);
  color: #38bdf8;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-zalo-secondary:hover {
  background: rgba(0, 104, 255, 0.2);
  color: #fff;
}

/* Payment Success Overlay */
.payment-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-animated {
  font-size: 58px;
  color: #10b981;
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.payment-success-overlay h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.payment-success-overlay p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 400px;
  line-height: 1.5;
}

.success-unlock-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   MODAL HỒ SƠ HỘI VIÊN (PROFILE DIALOG)
   ======================================================== */
.profile-dialog {
  max-width: 480px;
  padding: 28px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

.profile-avatar {
  font-size: 48px;
  color: #10b981;
}

.profile-card-header h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.tier-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.tier-badge-pill.free { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.tier-badge-pill.pro { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.tier-badge-pill.vip { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }

.profile-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-info-item .label { color: var(--text-muted); }
.profile-info-item .val { font-weight: 600; color: var(--text-main); }
.profile-info-item .val.highlight { color: #10b981; }

.profile-role-switcher {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.profile-role-switcher label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.role-btn-group {
  display: flex;
  gap: 8px;
}

.btn-role-opt {
  flex: 1;
  padding: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-role-opt:hover {
  border-color: #10b981;
  color: #10b981;
}

.profile-footer-actions {
  display: flex;
  gap: 12px;
}

.btn-upgrade-now {
  flex: 1;
  padding: 11px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-logout {
  padding: 11px 18px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.btn-logout:hover {
  background: #ef4444;
  color: #fff;
}

/* ========================================================
   TOAST NOTIFICATION COMPONENT
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}

.toast-message {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s ease, fadeOutToast 0.5s ease 2.7s forwards;
  pointer-events: auto;
}

.toast-message.success {
  border-left: 4px solid #10b981;
}
.toast-message.success i { color: #10b981; }

.toast-message.info {
  border-left: 4px solid #38bdf8;
}
.toast-message.info i { color: #38bdf8; }

.toast-message.warning {
  border-left: 4px solid #f59e0b;
}
.toast-message.warning i { color: #f59e0b; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   GOOGLE SIGN-IN BUTTON & AUTH DIVIDER
   ======================================================== */
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 18px;
}
.btn-google-login:hover {
  background: var(--glass-bg);
  border-color: #4285F4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.25);
}
.google-svg-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--glass-border);
}
.auth-divider span {
  padding: 0 12px;
  text-transform: lowercase;
}

/* ========================================================
   ADMIN HEADER BUTTON & ADMIN MANAGEMENT PORTAL
   ======================================================== */
.btn-admin-header {
  padding: 6px 14px;
  background: rgba(36, 40, 50, 0.76); backdrop-filter: blur(8px);
  color: #EDEEF0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-admin-header:hover {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
}

/* ========================================================
   MODAL QUẢN TRỊ KHÁCH HÀNG & PHÂN QUYỀN VIP
   ======================================================== */
/* Chuẩn hóa toàn diện Typography cho Bảng Quản Trị Khách Hàng */
.admin-dialog,
.admin-dialog h3,
.admin-dialog h4,
.admin-dialog p,
.admin-dialog label,
.admin-dialog input,
.admin-dialog select,
.admin-dialog button,
.admin-dialog textarea,
.admin-dialog span,
.admin-dialog strong,
.admin-dialog small,
.admin-dialog table,
.admin-dialog thead,
.admin-dialog tbody,
.admin-dialog tr,
.admin-dialog th,
.admin-dialog td,
.admin-user-cell,
.admin-name-cell,
.admin-pass-cell,
.admin-tier-badge,
.btn-admin-submit-grant,
.btn-pass-suggest,
.btn-copy-pass-mini,
.btn-table-action {
  font-family: 'Inter', 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bảo vệ font-family cho toàn bộ Icon Font Awesome trên toàn hệ thống */
i.fas, i.far, i.fab, i.fa,
.fas, .far, .fab, .fa,
.modal-dialog i.fas,
.modal-dialog i.far,
.modal-dialog i.fab,
.modal-dialog i.fa,
.admin-dialog i,
.admin-dialog i.fas,
.admin-dialog i.far,
.admin-dialog i.fab,
.admin-dialog i.fa,
.admin-dialog [class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-weight: 900 !important;
  display: inline-block !important;
}

.admin-dialog {
  max-width: 1280px !important;
  width: 95vw;
  max-height: 92vh;
  border-radius: 20px;
  padding: 24px 28px 22px 28px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.admin-dialog::-webkit-scrollbar,
.admin-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.admin-table-container::-webkit-scrollbar {
  display: block !important;
  width: 6px !important;
  height: 6px !important;
}
.admin-table-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45) !important;
  border-radius: 4px !important;
}
.admin-table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04) !important;
}

.admin-dialog .modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-dialog .modal-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-grant-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-form-group label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.admin-form-group input,
.admin-form-group select {
  padding: 9px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.admin-form-group input:focus,
.admin-form-group select:focus {
  border-color: #10b981;
}

.admin-pass-input-wrapper {
  display: flex;
  gap: 6px;
}
.admin-pass-input-wrapper input {
  flex: 1;
}
.btn-pass-suggest {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #10b981;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-pass-suggest:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

.btn-admin-submit-grant {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.btn-admin-submit-grant:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.admin-table-container {
  max-height: 400px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  background: var(--bg-secondary) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(56, 189, 248, 0.45) rgba(255, 255, 255, 0.05) !important;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-users-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 11px 16px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12.5px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.admin-users-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
  white-space: nowrap;
}
.admin-user-cell {
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.admin-name-cell {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.admin-pass-cell {
  white-space: nowrap;
}
.admin-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.admin-pass-badge.client {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.admin-pass-badge.admin {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-copy-pass-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-left: 5px;
  transition: all 0.2s ease;
}
.btn-copy-pass-mini:hover {
  color: #10b981;
  border-color: #10b981;
}

.admin-tier-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-tier-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.admin-tier-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.admin-tier-badge.gray {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}
.admin-tier-badge.trial {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.admin-tier-badge.lifetime {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.btn-table-action {
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.btn-table-action.extend {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.btn-table-action.extend:hover {
  background: #10b981;
  color: #fff;
}
.btn-table-action.revoke {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.btn-table-action.revoke:hover {
  background: #ef4444;
  color: #fff;
}

/* VietQR Top Nav */
.vietqr-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.btn-back-to-plans {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-back-to-plans:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  transform: translateX(-2px);
}
.current-selected-plan-badge {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-admin-refresh {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-admin-refresh:hover {
  color: #10b981;
  border-color: #10b981;
}

/* Nav Lock Tag & Bank Switcher */
.nav-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}
.nav-lock-tag.unlocked {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
}

.bank-official-badge-card {
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.25) 0%, rgba(16, 185, 129, 0.1) 100%);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 75, 145, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.bank-official-header {
  font-size: 12.5px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-switch-container {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}
.bank-switch-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bank-switch-pills {
  display: flex;
  gap: 8px;
}
.btn-bank-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-bank-pill:hover {
  border-color: #10b981;
  transform: translateY(-1px);
}
.btn-bank-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.bank-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 800;
}
.bank-badge.vcb {
  background: #005c30;
  color: #fff;
}
.bank-badge.mb {
  background: #1b2559;
  color: #00d287;
  border: 1px solid #00d287;
}
.bank-badge.ctg {
  background: #004b91;
  color: #fff;
}

/* ========================================================
   TAB KỸ THUẬT & DÒNG TIỀN (SMART MONEY & TECHNICAL ENGINE)
   ======================================================== */
.nav-tab-btn.tab-tech-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}
.nav-tab-btn.tab-tech-highlight:hover,
.nav-tab-btn.tab-tech-highlight.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.nav-tab-btn.tab-tech-highlight.active i {
  color: #ffffff !important;
}

.techflow-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.techflow-hero-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.techflow-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.techflow-symbol-badge {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #10b981;
  letter-spacing: 0.5px;
}

.techflow-price-box {
  display: flex;
  flex-direction: column;
}
.techflow-price-current {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1.1;
}
.techflow-price-change {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
.techflow-price-change.positive { color: #10b981; }
.techflow-price-change.negative { color: #ef4444; }

.techflow-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-stat-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}
.tech-stat-pill.score-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}
.tech-stat-pill.stage-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}
.tech-stat-pill.phase-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.35);
}

/* TradingView Chart Wrapper */
.techflow-chart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.techflow-chart-header {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.techflow-chart-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.techflow-chart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.techflow-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .techflow-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Card components */
.tech-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.tech-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-card-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Order Flow Pressure Bar */
.order-pressure-bar-wrap {
  margin: 14px 0;
}
.order-pressure-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.order-pressure-bar {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
}
.order-buy-portion {
  background: linear-gradient(90deg, #10b981, #059669);
  height: 100%;
  transition: width 0.5s ease;
}
.order-sell-portion {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  height: 100%;
  transition: width 0.5s ease;
}

/* Flow breakdown table */
.flow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}
.flow-table th, .flow-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--glass-border);
}
.flow-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}
.flow-table td {
  font-weight: 600;
}
.flow-table td.text-right {
  text-align: right;
  font-family: var(--font-mono);
}

/* Minervini Checklist */
.sepa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sepa-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  transition: all 0.2s;
}
.sepa-item.passed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.sepa-item.failed {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}
.sepa-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}
.sepa-item-status {
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.sepa-item-status.pass {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.sepa-item-status.fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Wyckoff Phase Box */
.wyckoff-badge-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.wyckoff-badge-header {
  font-size: 13px;
  font-weight: 800;
  color: #a78bfa;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wyckoff-badge-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.wyckoff-levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.wyckoff-level-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.wyckoff-level-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.wyckoff-level-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Position Sizing Calculator Form */
.pos-calc-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.pos-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pos-input-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.pos-input-field {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.pos-input-field:focus {
  border-color: #10b981;
}

.pos-result-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(0, 75, 145, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pos-result-item {
  display: flex;
  flex-direction: column;
}
.pos-result-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.pos-result-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #10b981;
}

/* ========================================================
   TECHTRADEVN PRO TA TERMINAL STYLES (SCI-FI NEON GLASS)
   ======================================================== */

/* ==========================================================================
   TECHTRADEVN ARCHITECTURAL LIVE TERMINAL - 100% NGUYÊN BẢN CHUẨN GỐC
   Infinite Canvas (1880x1150) + Orthogonal Flows + Signals Rack + Whale Tracker
   ========================================================================== */

/* Bỏ phần Footer khi ở menu Phân Tích TA theo yêu cầu */
body.ta-view-active footer,
body:has(#taView[style*="display: block"]) footer {
    display: none !important;
}

body.ta-view-active {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#taView {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 84px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    box-sizing: border-box;
    user-select: none;
    --bg-body: #f8fafc;
    --border-panel: #cbd5e1;
    --text-main: #334155;
    --text-sub: #64748b;
    --accent: #f97316;
    --bus-color: #94a3b8;
    --frame-bg: rgba(255, 255, 255, 0.5);
    --news-text: #b45309;
    --news-border: rgba(0,0,0,0.05);
    --macro-core: #6d28d9;
    --macro-24h: #0284c7;
    --macro-stock: #059669;
}

[data-theme="dark"] #taView {
    --bg-body: #22223b;
    --border-panel: rgba(255, 255, 255, 0.14);
    --text-main: #EDEEF0;
    --text-sub: #8A8F98;
    --bus-color: #38BDF8;
    --frame-bg: rgba(36, 40, 50, 0.76);
    --inner-bg: rgba(36, 40, 50, 0.76);
    --news-text: #FBBF24;
    --news-border: rgba(255, 255, 255, 0.10);
    --macro-core: #C084FC;
    --macro-24h: #38BDF8;
    --macro-stock: #34D399;
}
        [data-theme="dark"] .flow-path-bus { filter: drop-shadow(0 0 5px var(--bus-color)); }
        [data-theme="dark"] .flow-path-branch { filter: drop-shadow(0 0 4px currentColor); }
        [data-theme="dark"] circle { filter: drop-shadow(0 0 5px var(--bus-color)); }
        [data-theme="dark"] .box-title span { color: var(--text-main); }

        /* TEXT THEMES CHUẨN NAMETHATUI */
        .text-purple  { color: #C084FC !important; font-weight: 700; }
        .text-emerald { color: #10B981 !important; font-weight: 700; }
        .text-green   { color: #10B981 !important; font-weight: 700; }
        .text-lime    { color: #84CC16 !important; font-weight: 700; }
        .text-yellow  { color: #FBBF24 !important; font-weight: 700; }
        .text-orange  { color: #FB923C !important; font-weight: 700; }
        .text-red     { color: #F87171 !important; font-weight: 700; }
        .text-cyan    { color: #38BDF8 !important; font-weight: 700; }

        /* THẺ CỔ PHIẾU CON (.stock-tag) CHUẨN INNER BOX NAMETHATUI */
        .stock-tag {
            background: #23262D !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 8px !important;
            padding: 5px 9px !important;
            font-size: 10.5px !important;
            font-weight: 700 !important;
            color: #F0F1F3 !important;
            letter-spacing: 0.3px !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
            cursor: pointer !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.15s ease !important;
            white-space: nowrap !important;
        }
        .stock-tag:hover {
            background: #2C2F38 !important;
            border-color: rgba(255, 255, 255, 0.22) !important;
            transform: translateY(-1px) !important;
            color: #FFFFFF !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
        }

        .tag-purple  { color: #C084FC !important; border-color: rgba(192, 132, 252, 0.25) !important; }
        .tag-emerald { color: #10B981 !important; border-color: rgba(16, 185, 129, 0.25) !important; }
        .tag-green   { color: #10B981 !important; border-color: rgba(16, 185, 129, 0.25) !important; }
        .tag-lime    { color: #84CC16 !important; border-color: rgba(132, 204, 22, 0.25) !important; }
        .tag-yellow  { color: #FBBF24 !important; border-color: rgba(245, 158, 11, 0.25) !important; }
        .tag-orange  { color: #FB923C !important; border-color: rgba(249, 115, 22, 0.25) !important; }
        .tag-red     { color: #F87171 !important; border-color: rgba(239, 68, 68, 0.25) !important; }
        .tag-cyan    { color: #38BDF8 !important; border-color: rgba(56, 189, 248, 0.25) !important; }
        .tag-base    { color: #EDEEF0 !important; border-color: rgba(255, 255, 255, 0.08) !important; }

        .glass-panel {
            background: #181A1F !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 14px !important;
            break-inside: avoid; page-break-inside: avoid; margin-bottom: 15px; height: fit-content; display: inline-flex;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
            transition: all 0.2s ease;
        }

        /* KHUNG NHÓM NGÀNH THEMES (VIỀN MỎNG TINH TẾ) */
        .theme-purple  { border-color: rgba(192, 132, 252, 0.3) !important; --pulse-color: rgba(192, 132, 252, 0.4); } 
        .theme-emerald { border-color: rgba(16, 185, 129, 0.3) !important; --pulse-color: rgba(16, 185, 129, 0.4); }
        .theme-green   { border-color: rgba(16, 185, 129, 0.3) !important; --pulse-color: rgba(16, 185, 129, 0.4); }  
        .theme-lime    { border-color: rgba(132, 204, 22, 0.3) !important; --pulse-color: rgba(132, 204, 22, 0.4); }
        .theme-yellow  { border-color: rgba(245, 158, 11, 0.3) !important; --pulse-color: rgba(245, 158, 11, 0.4); }  
        .theme-orange  { border-color: rgba(249, 115, 22, 0.3) !important; --pulse-color: rgba(249, 115, 22, 0.4); }
        .theme-red     { border-color: rgba(239, 68, 68, 0.3) !important; --pulse-color: rgba(239, 68, 68, 0.4); }  
        .theme-cyan    { border-color: rgba(6, 182, 212, 0.3) !important; --pulse-color: rgba(6, 182, 212, 0.4); }  
        .theme-base    { border-color: rgba(255, 255, 255, 0.08) !important; --pulse-color: rgba(255, 255, 255, 0.2); }

        /* ---------------- TỐI ƯU HOÁ KHÔNG GIAN ---------------- */
        #zoom-wrapper {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            overflow: hidden; z-index: 10;
        }
        #zoom-container {
            width: 100%; height: 100%;
            transform-origin: 0 0;
            position: relative;
        }

        body.ta-view-active .header-trendx {
            margin: 6px auto 2px !important;
            padding: 6px 18px !important;
        }

        #layout-grid {
            display: flex; gap: 12px; padding: 48px 20px 20px 20px; 
            width: 1880px; min-height: 1080px; height: fit-content; 
            box-sizing: border-box; position: absolute; z-index: 2; 
        }

        .zone-column {
            display: flex; flex-direction: column; gap: 10px; height: fit-content; min-height: 100%; 
        }
        .zone-label {
            font-family: 'Fira Code', monospace; font-size: 10px; color: var(--text-sub);
            letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: -4px;
        }

        /* ========================================================
           VÙNG 1: UNIVERSE -> 2 KHUNG TÁCH BIỆT CHUẨN NAMETHATUI
           ======================================================== */
        #universe-box { 
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
            width: 326px !important; 
            display: flex !important;
            flex-direction: column !important;
            gap: 14px !important; /* TÁCH BIỆT RÕ RÀNG 2 KHUNG */
            height: fit-content !important; 
            max-height: fit-content; 
            box-sizing: border-box; 
            break-inside: avoid; 
            margin-bottom: 15px;
        }

        /* CARD 1: ĐỘ RỘNG THỊ TRƯỜNG (MARKET BREADTH CARD) */
        .market-breadth-card {
            background-color: rgba(32, 36, 48, 0.48) !important;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.12) 100%) !important;
            background-size: auto !important;
            backdrop-filter: blur(2.5px) saturate(160%) !important;
            -webkit-backdrop-filter: blur(2.5px) saturate(160%) !important;
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
            border-radius: 14px !important;
            padding: 13px 15px !important;
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
            box-sizing: border-box !important;
            width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
            transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        }
        .market-breadth-card:hover {
            border-color: rgba(255, 255, 255, 0.26) !important;
            border-top-color: rgba(255, 255, 255, 0.45) !important;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
        }

        /* 1. THANH CHỌN PHẠM VI (SCOPE BAR) */
        .breadth-scope-bar {
            display: flex !important;
            gap: 4px !important;
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            padding: 3px !important;
            border-radius: 8px !important;
            border: 1px solid rgba(255, 255, 255, 0.06) !important;
            box-sizing: border-box !important;
            width: 100% !important;
        }
        .breadth-scope-btn {
            all: unset !important;
            flex: 1 !important;
            padding: 5px 8px !important;
            border-radius: 6px !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            color: #8A8F98 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 5px !important;
            font-family: inherit !important;
            box-sizing: border-box !important;
            text-align: center !important;
            border: 1px solid transparent !important;
            line-height: 1.2 !important;
        }
        .breadth-scope-btn:hover {
            color: #EDEEF0 !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }
        .breadth-scope-btn.active {
            background: #252830 !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            color: #00F5D4 !important;
            box-shadow: 0 0 10px rgba(0, 245, 212, 0.15) !important;
        }

        .mb-header {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            margin-top: 2px !important;
        }
        .mb-title {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            color: #8A8F98 !important;
            letter-spacing: 0.5px !important;
        }
        .mb-icon {
            font-size: 12px !important;
            color: #8A8F98 !important;
        }
        .mb-summary {
            font-size: 11px !important;
            font-weight: 800 !important;
            color: #EDEEF0 !important;
            font-family: 'Fira Code', monospace !important;
            letter-spacing: 0.3px !important;
        }
        .mb-progress-bar {
            width: 100% !important;
            height: 10px !important;
            border-radius: 6px !important;
            overflow: hidden !important;
            display: flex !important;
            background: rgba(36, 40, 50, 0.76) !important;
            border: 1px solid rgba(255, 255, 255, 0.06) !important;
            box-sizing: border-box !important;
        }
        .mb-bar-seg {
            height: 100% !important;
            transition: width 0.35s ease !important;
            min-width: 0 !important;
        }
        .seg-purple { background: #A855F7 !important; }
        .seg-green  { background: #10B981 !important; }
        .seg-yellow { background: #F59E0B !important; }
        .seg-red    { background: #EF4444 !important; }
        .seg-cyan   { background: #06B6D4 !important; }

        .mb-metrics-row {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            font-size: 9.5px !important;
            font-family: 'Fira Code', monospace !important;
            width: 100% !important;
            gap: 3px !important;
        }
        .mb-metric-item {
            display: inline-flex !important;
            align-items: center !important;
            gap: 3px !important;
            font-weight: 500 !important;
            background: #23262D !important;
            border: 1px solid rgba(255, 255, 255, 0.06) !important;
            border-radius: 6px !important;
            padding: 3px 6px !important;
            box-sizing: border-box !important;
        }
        .mb-metric-item b { font-weight: 800 !important; }
        .metric-purple { color: #C084FC !important; }
        .metric-green  { color: #10B981 !important; }
        .metric-yellow { color: #FBBF24 !important; }
        .metric-red    { color: #F87171 !important; }
        .metric-cyan   { color: #38BDF8 !important; }

        /* CARD 2: TOP 10 CỔ PHIẾU DẪN DẮT (CARD 2 - TÁCH BIỆT HOÀN TOÀN) */
        .top10-ranking-card {
            background-color: rgba(32, 36, 48, 0.48) !important;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.12) 100%) !important;
            background-size: auto !important;
            backdrop-filter: blur(2.5px) saturate(160%) !important;
            -webkit-backdrop-filter: blur(2.5px) saturate(160%) !important;
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
            border-radius: 14px !important;
            padding: 13px 15px !important;
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
            box-sizing: border-box !important;
            width: 100% !important;
            transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        }
        .top10-ranking-card:hover {
            border-color: rgba(255, 255, 255, 0.26) !important;
            border-top-color: rgba(255, 255, 255, 0.45) !important;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
        }

        .top10-header {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            flex-wrap: nowrap !important;
            gap: 6px !important;
        }
        .top10-title {
            font-size: 11px !important;
            font-weight: 800 !important;
            color: #EDEEF0 !important;
            display: flex !important;
            align-items: center !important;
            gap: 5px !important;
            letter-spacing: 0.5px !important;
            white-space: nowrap !important;
        }
        .top10-tabs {
            display: flex !important;
            gap: 2px !important;
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            padding: 2px 3px !important;
            border-radius: 8px !important;
            border: 1px solid rgba(255, 255, 255, 0.06) !important;
        }
        .top10-tab-btn {
            all: unset !important;
            font-size: 9px !important;
            font-weight: 700 !important;
            padding: 3px 6px !important;
            border-radius: 6px !important;
            color: #8A8F98 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            border: 1px solid transparent !important;
            box-sizing: border-box !important;
            line-height: 1.2 !important;
            text-align: center !important;
        }
        .top10-tab-btn:hover {
            color: #EDEEF0 !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }
        .top10-tab-btn.active {
            background: #252830 !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            color: #F59E0B !important;
            font-weight: 800 !important;
        }

        .top10-list {
            display: flex !important;
            flex-direction: column !important;
            gap: 4px !important;
            max-height: 330px !important;
            overflow-y: auto !important;
            padding-right: 2px !important;
            margin-top: 2px !important;
        }
        .top10-list::-webkit-scrollbar { width: 3px !important; }
        .top10-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15) !important; border-radius: 2px !important; }

        /* INNER BOX HÀNG CỔ PHIẾU CHUẨN HÌNH ĐÍNH KÈM */
        .top10-item {
            all: unset !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 8px 12px !important;
            border-radius: 10px !important;
            background: #23262D !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            box-sizing: border-box !important;
            width: 100% !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
        }
        .top10-item:hover {
            background: #2C2F38 !important;
            border-color: rgba(255, 255, 255, 0.18) !important;
            transform: translateX(2px) !important;
        }
        .top10-rank {
            width: 18px !important;
            height: 18px !important;
            border-radius: 50% !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 8.5px !important;
            font-weight: 800 !important;
            font-family: 'Fira Code', monospace !important;
            flex-shrink: 0 !important;
            margin-right: 6px !important;
            background: rgba(255, 255, 255, 0.06) !important;
            color: #8A8F98 !important;
        }
        .top10-rank.rank-1 { background: rgba(245, 158, 11, 0.25) !important; color: #FBBF24 !important; border: 1px solid #F59E0B !important; }
        .top10-rank.rank-2 { background: rgba(148, 163, 184, 0.25) !important; color: #F1F5F9 !important; border: 1px solid #94A3B8 !important; }
        .top10-rank.rank-3 { background: rgba(217, 119, 6, 0.25) !important; color: #FB923C !important; border: 1px solid #D97706 !important; }

        .top10-sym {
            font-weight: 700 !important;
            font-size: 12px !important;
            color: #FFFFFF !important;
            letter-spacing: 0.5px !important;
            width: 44px !important;
            flex-shrink: 0 !important;
        }
        .top10-price-wrap {
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            flex-shrink: 0 !important;
        }
        .top10-price {
            font-size: 11px !important;
            font-weight: 700 !important;
            font-family: 'Fira Code', monospace !important;
        }
        .top10-pct {
            font-size: 10px !important;
            font-weight: 700 !important;
            font-family: 'Fira Code', monospace !important;
            min-width: 44px !important;
            text-align: right !important;
        }
        .top10-val {
            font-size: 11px !important;
            font-weight: 700 !important;
            font-family: 'Fira Code', monospace !important;
            color: #38BDF8 !important;
            text-align: right !important;
            min-width: 68px !important;
            margin-left: auto !important;
        }

        /* VÙNG 2: SECTORS (KHUNG NHÓM NGÀNH CHUẨN NAMETHATUI) */
        #sectors-wrapper {
            column-count: 3; column-gap: 25px; width: 100%;
        }
        .sector-box { 
            background-color: rgba(32, 36, 48, 0.48) !important;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.12) 100%) !important;
            background-size: auto !important;
            backdrop-filter: blur(2.5px) saturate(160%) !important;
            -webkit-backdrop-filter: blur(2.5px) saturate(160%) !important;
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
            border-radius: 14px !important;
            padding: 12px 14px !important;
            margin-bottom: 14px !important;
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
            box-sizing: border-box !important;
            display: inline-flex !important;
            flex-direction: column !important;
            width: 100% !important;
            max-width: 100% !important;
            height: fit-content !important;
            break-inside: avoid !important;
            page-break-inside: avoid !important;
            position: relative; z-index: 5;
            transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        }
        .sector-box:hover {
            border-color: rgba(255, 255, 255, 0.26) !important;
            border-top-color: rgba(255, 255, 255, 0.45) !important;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
        }
        .sector-box .box-title {
            font-family: 'Fira Code', monospace !important;
            font-size: 12px !important;
            font-weight: 800 !important;
            color: #F1F5F9 !important;
            letter-spacing: 0.5px !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding-bottom: 8px !important;
            margin-bottom: 8px !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }
        /* UPGRADE: LƯỚI 3 CỘT ĐỀU NHAU TĂM TẮP CHO CÁC Ô CỔ PHIẾU NGÀNH */
        .sector-grid-inner { 
            display: grid !important; 
            grid-template-columns: repeat(3, 1fr) !important; 
            gap: 6px !important; 
            width: 100% !important; 
            box-sizing: border-box !important; 
        }
        .sector-grid-inner .stock-tag {
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            height: 30px !important;
            padding: 0 4px !important;
            border-radius: 7px !important;
            font-size: 11.5px !important;
            font-weight: 700 !important;
            letter-spacing: 0.2px !important;
        }

        .zone-column:last-child,
        #signals-rack-column {
            display: flex !important;
            flex-direction: column !important;
            height: fit-content !important;
            min-height: 100% !important;
            max-height: none !important;
            gap: 10px !important;
            box-sizing: border-box !important;
        }

        /* VÙNG 3: ALERTS & FA RACK */
        #alerts-wrapper {
            flex: 0 0 auto !important;
            display: grid !important; 
            grid-auto-rows: max-content !important;
            gap: 5px 10px !important; 
            align-content: flex-start !important; 
            width: 100% !important; 
            height: fit-content !important; 
            max-height: none !important;
            overflow: visible !important;
            padding-right: 0 !important; 
            margin-bottom: 0 !important;
        }
        #alerts-wrapper.rack-cols-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
        #alerts-wrapper.rack-cols-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
        .zone-column.rack-col-2 {
            width: 580px !important;
        }
        .zone-column.rack-col-3 {
            width: 870px !important;
        }
        #alerts-wrapper::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        .alert-card { 
            background-color: rgba(34, 38, 50, 0.50) !important;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 45%, rgba(0, 0, 0, 0.10) 100%) !important;
            background-size: auto !important;
            backdrop-filter: blur(2px) saturate(150%) !important;
            -webkit-backdrop-filter: blur(2px) saturate(150%) !important;
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
            border-radius: 9px !important;
            padding: 4.5px 8px !important;
            margin-bottom: 0 !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
            box-sizing: border-box !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 3px !important;
            position: relative; z-index: 5; height: fit-content;
            break-inside: avoid; page-break-inside: avoid;
            min-width: 0; width: 100%; overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
        }
        .alert-card:hover {
            border-color: rgba(255, 255, 255, 0.28) !important;
            border-top-color: rgba(255, 255, 255, 0.42) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
            transform: translateY(-1px) !important;
        }
        .alert-pulse-anim { animation: pulse-alert 1.5s infinite; }
        
        .ac-header {
            display: flex !important; justify-content: space-between !important; align-items: center !important;
            font-size: 11.5px !important; font-weight: 700 !important;
        }
        .ac-alert-badge {
            background: #23262D !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 8px !important;
            padding: 2px 7px !important;
            font-size: 9.5px !important;
            font-family: 'Fira Code', monospace !important;
            color: #38BDF8 !important;
            font-weight: 800 !important;
            letter-spacing: 0.5px !important;
            white-space: nowrap !important;
        }
        
        .ac-fa-bar {
            display: flex !important; justify-content: space-between !important; align-items: center !important;
            font-size: 9.5px !important; font-weight: 700 !important; color: #CBD5E1 !important;
            font-family: 'Fira Code', monospace !important;
            letter-spacing: 0.2px !important;
        }
        .ac-fa-bar b {
            color: #FFFFFF !important;
            font-weight: 800 !important;
        }
        .ac-fa-bar .sep {
            color: rgba(255, 255, 255, 0.25) !important;
        }
            padding-top: 3px !important; border-top: 1px solid rgba(255, 255, 255, 0.06) !important; margin-top: 2px !important;
        }
        .ac-fa-bar b { font-weight: 700 !important; color: #EDEEF0 !important; font-size: 9px !important; }
        .ac-fa-bar .sep { color: rgba(255, 255, 255, 0.1) !important; font-size: 8px !important; font-weight: 300 !important; }

        @keyframes pulse-alert {
            0% { box-shadow: 0 0 0 0 var(--pulse-color, rgba(239, 68, 68, 0.5)); }
            70% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
        }

        /* ---------------- SVG LAYER DÒNG CHẢY ---------------- */
        #svg-layer {
            position: absolute; top: 0; left: 0; width: 4000px; height: 3000px;
            z-index: 1; pointer-events: none;
        }
        .flow-path-bus { fill: none; stroke: var(--bus-color); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
        .flow-path-branch { fill: none; stroke-width: 1.0; opacity: 0.7; stroke-linecap: round; stroke-linejoin: round; }
        .particle { filter: drop-shadow(0 0 2px rgba(255,255,255,0.8)); } /* UPGRADE: Ánh sáng nhẹ cho hạt điện */

        /* ---------------- HUD ĐIỀU KHIỂN TERMINAL QUANT COCKPIT (NẰM GIỮA NGAY DƯỚI MENU TRANG) ---------------- */
        .header-hud {
            position: absolute; 
            top: 10px; 
            left: 50%; 
            transform: translateX(-50%);
            display: flex; 
            align-items: center; 
            justify-content: center;
            gap: 7px; 
            z-index: 100;
            background: rgba(255, 255, 255, 0.94); 
            padding: 4px 14px; 
            border-radius: 999px;
            border: 1px solid rgba(0, 0, 0, 0.12); 
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
            font-size: 10.5px; 
            font-weight: 700; 
            font-family: 'Fira Code', 'Inter', monospace;
            backdrop-filter: blur(24px); 
            -webkit-backdrop-filter: blur(24px);
            transition: all 0.25s ease;
            white-space: nowrap;
            max-width: calc(100vw - 32px);
        }
        [data-theme="dark"] .header-hud {
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) saturate(140%) !important;
            -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
        }
        .live-badge { 
            display: flex; 
            align-items: center; 
            gap: 6px; 
            color: var(--text-sub); 
            font-size: 10.5px;
            letter-spacing: 0.5px; 
            transition: color 0.3s; 
        }
        .live-badge.is-live { color: #ef4444; }
        .live-dot { 
            width: 6.5px; 
            height: 6.5px; 
            background: currentColor; 
            border-radius: 50%; 
            box-shadow: 0 0 5px currentColor; 
        }
        
        .scan-btn {
            background: rgba(255, 255, 255, 0.06); 
            color: var(--text-main); 
            border: 1px solid var(--border-panel); 
            padding: 4px 9px; 
            border-radius: 7px; 
            cursor: pointer; 
            font-size: 10.5px; 
            font-weight: 700; 
            transition: all 0.2s ease; 
            letter-spacing: 0.3px; 
            font-family: inherit; 
            outline: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .scan-btn:hover { 
            background: rgba(148, 163, 184, 0.25); 
            border-color: var(--text-main);
            transform: translateY(-1px);
        }
        .scan-btn:active {
            transform: translateY(0);
        }
        .scan-btn:disabled { 
            background: transparent; 
            color: var(--text-sub); 
            border-color: var(--border-panel); 
            cursor: not-allowed; 
            opacity: 0.5; 
        }
        
        .scan-btn.btn-live {
            background: rgba(239, 68, 68, 0.15) !important; 
            color: #ef4444 !important; 
            border-color: rgba(239, 68, 68, 0.6) !important;
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
        }
        .scan-btn.btn-live:hover {
            background: rgba(239, 68, 68, 0.25) !important; 
            box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
        }

        .hud-search-cluster {
            display: inline-flex; 
            align-items: center; 
            gap: 5px; 
            margin-left: 4px; 
            padding-left: 6px; 
            border-left: 1px solid var(--border-panel);
        }
        .hud-search-cluster input {
            background: rgba(0, 0, 0, 0.12);
            border: 1px solid var(--border-panel);
            border-radius: 6px;
            padding: 3.5px 7px;
            font-size: 10px;
            color: var(--text-main);
            width: 72px;
            font-family: inherit;
            text-transform: uppercase;
            outline: none;
            transition: border-color 0.2s;
        }
        .hud-search-cluster input::-webkit-contacts-auto-fill-button,
        .hud-search-cluster input::-webkit-credentials-auto-fill-button {
            visibility: hidden;
            display: none !important;
            pointer-events: none;
            height: 0;
            width: 0;
            margin: 0;
        }
        [data-theme="dark"] .hud-search-cluster input {
            background: rgba(255, 255, 255, 0.05);
        }
        .hud-search-cluster input:focus {
            border-color: #00f5d4;
        }

        .hud-zoom-cluster {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-left: 4px;
            padding-left: 6px;
            border-left: 1px solid var(--border-panel);
        }
        
        @keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

    
        .macro-scroll-area::-webkit-scrollbar,
        #macro-dashboard .macro-scroll-area::-webkit-scrollbar {
            width: 5px;
        }
        .macro-scroll-area::-webkit-scrollbar-track,
        #macro-dashboard .macro-scroll-area::-webkit-scrollbar-track {
            background: transparent;
        }
        .macro-scroll-area::-webkit-scrollbar-thumb,
        #macro-dashboard .macro-scroll-area::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }
        .macro-scroll-area::-webkit-scrollbar-thumb:hover,
        #macro-dashboard .macro-scroll-area::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
    
        .whale-log {
            display: flex; align-items: center; gap: 10px; 
            padding: 8px 12px; background: rgba(0,0,0,0.02); 
            border-left: 3px solid var(--border-panel);
            border-radius: 4px; font-size: 12px; font-family: monospace;
            animation: slideIn 0.3s ease-out;
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        }
        [data-theme="dark"] .whale-log { 
            background: rgba(255,255,255,0.02); 
            border: 1px solid rgba(255,255,255,0.03); 
            border-left: 3px solid var(--border-panel); 
        }
        .whale-log.log-up { border-left-color: #10b981; }
        .whale-log.log-ceil { border-left-color: #c084fc; }
        .whale-log.log-down { border-left-color: #ef4444; }
        .whale-log.log-floor { border-left-color: #22d3ee; }
        .w-time { color: var(--text-sub); font-size: 11px; }
        .w-action { flex: 1; color: var(--text-main); }
        .w-val { color: #f59e0b; font-weight: bold; font-size: 13px; }
        
        #whale-tracker {
  flex: 1 1 0 !important;
  min-height: 480px !important; max-height: 480px !important; height: 480px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: #F59E0B rgba(0, 0, 0, 0.3) !important;
}
        #whale-tracker::-webkit-scrollbar { width: 6px !important; display: block !important; }
        #whale-tracker::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3) !important; border-radius: 6px !important; }
        #whale-tracker::-webkit-scrollbar-thumb { background: #F59E0B !important; border-radius: 6px !important; box-shadow: 0 0 6px rgba(245, 158, 11, 0.45) !important; }
        #whale-tracker::-webkit-scrollbar-thumb:hover { background: #FBBF24 !important; }
        [data-theme="dark"] #whale-tracker::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3) !important; }
        @keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

    
        /* CÁC NÚT CHỌN RACK ĐỂ RIÊNG BIỆT - HOÀN TOÀN KHÔNG NẰM TRONG KHUNG CHỨA CHUNG */
        #rack-btn-group {
            background: transparent !important;
            background-image: none !important;
            border: none !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex !important;
            gap: 5px !important;
            align-items: center !important;
        }
        .rack-btn {
            background-color: rgba(36, 40, 50, 0.75) !important;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            border: 1px solid rgba(255, 255, 255, 0.16) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
            color: #94a3b8 !important;
            font-family: 'Fira Code', monospace !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            padding: 3px 8px !important;
            border-radius: 6px !important;
            cursor: pointer !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
            transition: all 0.2s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 28px !important;
            line-height: 1.2 !important;
        }
        .rack-btn:hover {
            background-color: rgba(56, 189, 248, 0.18) !important;
            border-color: rgba(56, 189, 248, 0.5) !important;
            color: #38bdf8 !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25) !important;
        }
        .rack-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
            border: 1.5px solid #f59e0b !important;
            color: #f59e0b !important;
            font-weight: 800 !important;
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
        }
        .sort-btn {
            font-size: 10.5px !important;
            padding: 3.5px 10px !important;
            border-radius: 4px !important;
            font-family: monospace !important;
            font-weight: 600 !important;
            letter-spacing: 0.3px !important;
            background: rgba(255, 255, 255, 0.04) !important;
            border: 1px solid rgba(255, 255, 255, 0.14) !important;
            color: #94A3B8 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
        }
        .sort-btn:hover {
            border-color: rgba(255, 255, 255, 0.3) !important;
            color: #FFFFFF !important;
            background: rgba(255, 255, 255, 0.08) !important;
        }
        .sort-btn.active {
            background: rgba(245, 158, 11, 0.22) !important;
            border-color: #F59E0B !important;
            color: #F59E0B !important;
            font-weight: 700 !important;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.2) !important;
        }

    
        #whale-tracker.filter-buy .log-down, 
        #whale-tracker.filter-buy .log-floor { display: none !important; }
        
        #whale-tracker.filter-sell .log-up, 
        #whale-tracker.filter-sell .log-ceil { display: none !important; }

    
        /* Nút Sáng/Tối Nâng Cấp */
        #theme-toggle {
            position: fixed; bottom: 15px; right: 15px; 
            width: 20px; height: 20px; 
            background: var(--frame-bg); border: 1px solid var(--border-panel); border-radius: 50%; 
            display: flex; align-items: center; justify-content: center; 
            cursor: pointer; z-index: 9999; 
            box-shadow: 0 2px 8px rgba(0,0,0,0.12); 
            color: var(--text-main);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }
        #theme-toggle:hover {
            transform: scale(1.15) rotate(15deg);
            border-color: #f59e0b;
            color: #f59e0b;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        }
        [data-theme="dark"] #theme-toggle {
            background: rgba(30, 41, 59, 0.85);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 2px 10px rgba(0,0,0,0.35);
        }

    
        /* Badge Tín Hiệu Pastel Mờ / Desaturated */
        .ac-alert-badge {
            font-size: 8px; padding: 2px 5px; border-radius: 4px;
            font-weight: 700; letter-spacing: 0.3px;
            white-space: nowrap; backdrop-filter: blur(4px);
        }
        .badge-money {
            background: rgba(234, 88, 12, 0.18) !important;
            color: #ea580c !important;
            border: 1px solid rgba(234, 88, 12, 0.35) !important;
        }
        [data-theme="dark"] .badge-money {
            background: rgba(249, 115, 22, 0.15) !important;
            color: #fb923c !important;
            border-color: rgba(249, 115, 22, 0.35) !important;
        }
        .badge-moment {
            background: rgba(71, 85, 105, 0.15) !important;
            color: #64748b !important;
            border: 1px solid rgba(71, 85, 105, 0.3) !important;
        }
        [data-theme="dark"] .badge-moment {
            background: rgba(148, 163, 184, 0.15) !important;
            color: #94a3b8 !important;
            border-color: rgba(148, 163, 184, 0.3) !important;
        }
        .badge-pivot {
            background: rgba(168, 85, 247, 0.15) !important;
            color: #9333ea !important;
            border: 1px solid rgba(168, 85, 247, 0.35) !important;
        }
        [data-theme="dark"] .badge-pivot {
            background: rgba(192, 132, 252, 0.15) !important;
            color: #c084fc !important;
            border-color: rgba(192, 132, 252, 0.35) !important;
        }
        .badge-whale {
            background: rgba(245, 158, 11, 0.18) !important;
            color: #FBBF24 !important;
            border: 1px solid rgba(245, 158, 11, 0.45) !important;
            font-weight: 700 !important;
            box-shadow: 0 0 6px rgba(245, 158, 11, 0.25) !important;
        }
        [data-theme="dark"] .badge-whale {
            background: rgba(245, 158, 11, 0.18) !important;
            color: #FBBF24 !important;
            border: 1px solid rgba(245, 158, 11, 0.45) !important;
            box-shadow: 0 0 6px rgba(245, 158, 11, 0.25) !important;
        }

    
        /* Quick Chart & Tag Cursor */
        .stock-tag {
            cursor: pointer !important;
            user-select: none;
            pointer-events: auto !important;
            transition: all 0.15s ease;
        }
        .stock-tag:hover {
            filter: brightness(1.2);
            transform: scale(1.06);
            box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
        }
        @keyframes qcIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* ---------------- UNIVERSE: CỔ PHIẾU ĐÃ CHUYỂN QUA NHÓM NGÀNH (MỜ / ẨN ĐI NHƯNG VẪN CLICK ĐƯỢC) ---------------- */
        .stock-tag.in-sector {
            opacity: 0.18 !important;
            filter: grayscale(1) !important;
            transform: scale(0.92);
            border-color: rgba(148, 163, 184, 0.2) !important;
            cursor: pointer !important;
            pointer-events: auto !important;
            transition: all 0.25s ease;
        }
        .stock-tag.in-sector:hover {
            opacity: 0.95 !important;
            filter: grayscale(0) !important;
            transform: scale(1.05);
            z-index: 10;
            box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
        }

        /* TRADINGVIEW STYLING CHO QUICK CHART MODAL (CHIỀU CAO TOÀN MÀN HÌNH & TÍCH HỢP RADAR DÒNG TIỀN) */
        #quick-chart-card {
            width: 1260px !important;
            max-width: 96vw !important;
            height: 94vh !important;
            max-height: 96vh !important;
            border-radius: 14px !important;
            background: rgba(36, 40, 50, 0.88) !important; backdrop-filter: blur(12px) !important;
            border: 1px solid #2a2e39 !important;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85) !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            display: flex;
            flex-direction: column;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }
        #quick-chart-card::-webkit-scrollbar {
            width: 6px;
        }
        #quick-chart-card::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 999px;
        }
        [data-theme="dark"] #quick-chart-card {
            background: #181A1F !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85) !important;
        }
        [data-theme="light"] #quick-chart-card {
            background: #ffffff !important;
            border: 1px solid #e0e3eb !important;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
            scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
        }
        #qc-header-bar {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            flex-wrap: nowrap !important;
            min-height: 48px !important;
            box-sizing: border-box !important;
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) saturate(140%) !important;
            -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
            padding: 10px 18px !important;
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        [data-theme="dark"] #qc-header-bar {
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) saturate(140%) !important;
            -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }
        [data-theme="light"] #qc-header-bar {
            background: #f8fafc !important;
            border-bottom: 1px solid #e0e3eb !important;
        }
        /* THANH CHỌN KHUNG THỜI GIAN QUICK CHART [ 1m | 5m | 15m | 1H | 1D ] */
        .qc-timeframe-group {
            display: inline-flex !important;
            align-items: center !important;
            gap: 3px !important;
            background: rgba(36, 40, 50, 0.76) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            padding: 3px !important;
            border-radius: 8px !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-sizing: border-box !important;
        }
        [data-theme="light"] .qc-timeframe-group {
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
        }

        .qc-tf-btn {
            all: unset !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            padding: 4px 10px !important;
            border-radius: 6px !important;
            border: 1px solid transparent !important;
            background: transparent !important;
            color: #8A8F98 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-family: 'Fira Code', monospace !important;
            min-width: 28px !important;
            box-sizing: border-box !important;
            line-height: 1.2 !important;
            text-align: center !important;
        }
        .qc-tf-btn:hover {
            color: #FFFFFF !important;
            background: rgba(255, 255, 255, 0.08) !important;
        }
        .qc-tf-btn.active {
            background: #252830 !important;
            border-color: rgba(0, 245, 212, 0.6) !important;
            color: #00F5D4 !important;
            box-shadow: 0 0 10px rgba(0, 245, 212, 0.25) !important;
            font-weight: 800 !important;
        }

        [data-theme="light"] .qc-tf-btn {
            color: #64748b !important;
        }
        [data-theme="light"] .qc-tf-btn:hover {
            color: #0f172a !important;
            background: rgba(0, 0, 0, 0.05) !important;
            border-color: #cbd5e1 !important;
        }
        [data-theme="light"] .qc-tf-btn.active {
            background: rgba(13, 148, 136, 0.12) !important;
            border-color: #0d9488 !important;
            color: #0d9488 !important;
        }
        .qc-close-btn {
            background: transparent;
            border: none;
            color: var(--text-sub, #94a3b8);
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            line-height: 1;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .qc-close-btn:hover {
            color: #ef4444 !important;
            background: rgba(239, 68, 68, 0.12) !important;
        }
        #qc-symbol {
            color: #f8fafc !important;
        }
        [data-theme="light"] #qc-symbol {
            color: #0f172a !important;
        }
        #qc-stats {
            background: #1e222d !important;
            border-top: 1px solid #2a2e39 !important;
            padding: 9px 18px !important;
            flex-shrink: 0;
            font-family: monospace;
        }
        [data-theme="dark"] #qc-stats {
            background: #1e222d !important;
            border-top: 1px solid #2a2e39 !important;
        }
        [data-theme="light"] #qc-stats {
            background: #f8fafc !important;
            border-top: 1px solid #e0e3eb !important;
        }
        #qc-stats span {
            color: #94a3b8 !important;
        }
        [data-theme="light"] #qc-stats span {
            color: #64748b !important;
        }
        #qc-stats b {
            color: #f8fafc !important;
        }
        [data-theme="light"] #qc-stats b {
            color: #1e293b !important;
        }
        #qc-minervini-badge {
            background: rgba(0, 245, 212, 0.05) !important;
            border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
            padding: 8px 18px !important;
            flex-shrink: 0;
            font-family: monospace;
        }
        [data-theme="dark"] #qc-minervini-badge {
            background: rgba(0, 245, 212, 0.05) !important;
            border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
        }
        [data-theme="light"] #qc-minervini-badge {
            background: rgba(0, 245, 212, 0.03) !important;
            border-top: 1px dashed #e0e3eb !important;
        }
        #qc-chart-area {
            width: 100% !important;
            height: 600px !important;
            background: rgba(36, 40, 50, 0.88) !important; backdrop-filter: blur(12px) !important;
            position: relative;
            flex-shrink: 0;
            overflow: hidden !important;
        }
        [data-theme="dark"] #qc-chart-area {
            background: rgba(36, 40, 50, 0.88) !important; backdrop-filter: blur(12px) !important;
        }
        [data-theme="light"] #qc-chart-area {
            background: #ffffff !important;
        }

        /* ---------------- KHUNG CẮT GỌT BIỂU ĐỒ FIREANT PRO (CHỈ LẤY BIỂU ĐỒ KỸ THUẬT THEO HÌNH 2) ---------------- */
        .qc-fireant-frame-wrap {
            width: 100% !important;
            height: 100% !important;
            position: relative !important;
            overflow: hidden !important;
            background: rgba(36, 40, 50, 0.88) !important; backdrop-filter: blur(12px) !important;
        }
        .qc-fireant-frame-wrap iframe {
            position: absolute !important;
            top: -87px !important;
            left: -6px !important;
            width: calc(100% + 393px) !important;
            height: calc(100% + 93px) !important;
            border: none !important;
            display: block !important;
            background: rgba(36, 40, 50, 0.88) !important; backdrop-filter: blur(12px) !important;
        }

        /* ---------------- RADAR DÒNG TIỀN & ORDER FLOW CÁ MẬP (QUICK CHART POPUP) ---------------- */
        #qc-order-flow-card {
            background: #161c28;
            border-top: 1px solid #2a2e39;
            padding: 16px 20px 20px 20px;
            box-sizing: border-box;
            flex-shrink: 0;
        }
        [data-theme="dark"] #qc-order-flow-card {
            background: #161c28;
            border-top: 1px solid #2a2e39;
        }
        [data-theme="light"] #qc-order-flow-card {
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
        }
        .qc-of-header {
            margin-bottom: 12px;
        }
        .qc-of-title {
            font-size: 15px;
            font-weight: 800;
            color: #f8fafc;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.3px;
        }
        [data-theme="light"] .qc-of-title {
            color: #0f172a;
        }
        .qc-of-subtitle {
            font-size: 11.5px;
            color: #94a3b8;
            margin-top: 3px;
        }
        [data-theme="light"] .qc-of-subtitle {
            color: #64748b;
        }
        .qc-of-pressure-wrap {
            margin-bottom: 15px;
            background: rgba(255, 255, 255, 0.02);
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        [data-theme="light"] .qc-of-pressure-wrap {
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.06);
        }
        .qc-of-labels {
            display: flex;
            justify-content: space-between;
            font-size: 12.5px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .qc-of-buy-label {
            color: #10b981;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .qc-of-sell-label {
            color: #ef4444;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .qc-of-bar {
            height: 12px;
            border-radius: 999px;
            overflow: hidden;
            display: flex;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
        }
        [data-theme="light"] .qc-of-bar {
            background: rgba(0, 0, 0, 0.08);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .qc-of-buy-bar {
            background: linear-gradient(90deg, #10b981, #059669);
            height: 100%;
            transition: width 0.4s ease;
        }
        .qc-of-sell-bar {
            background: linear-gradient(90deg, #dc2626, #ef4444);
            height: 100%;
            transition: width 0.4s ease;
        }
        .qc-of-sub-row {
            display: flex;
            justify-content: space-between;
            font-size: 11.5px;
            color: #94a3b8;
            margin-top: 6px;
        }
        [data-theme="light"] .qc-of-sub-row {
            color: #64748b;
        }
        .qc-of-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            table-layout: fixed;
        }
        .qc-of-table th, .qc-of-table td {
            padding: 9px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            vertical-align: middle;
            box-sizing: border-box;
        }
        [data-theme="light"] .qc-of-table th, 
        [data-theme="light"] .qc-of-table td {
            border-bottom: 1px solid #e2e8f0;
        }
        .qc-of-table th {
            text-align: left;
            color: #94a3b8;
            font-weight: 700;
            font-size: 12px;
            letter-spacing: 0.3px;
        }
        [data-theme="light"] .qc-of-table th {
            color: #64748b;
        }
        .qc-of-table td {
            font-weight: 600;
            color: #f1f5f9;
        }
        [data-theme="light"] .qc-of-table td {
            color: #1e293b;
        }
        .qc-of-table th.text-right,
        .qc-of-table td.text-right {
            text-align: right !important;
        }
        .qc-of-table td.text-right {
            font-family: 'Fira Code', monospace;
            font-size: 12.5px;
        }
        .qc-of-table td.text-sub-cell {
            text-align: right !important;
            color: #94a3b8;
            font-size: 11.5px;
            font-weight: 500;
        }
        [data-theme="light"] .qc-of-table td.text-sub-cell {
            color: #64748b;
        }

        /* QUICK CHART MODAL POPUP (GIỮ NGUYÊN GEOMETRY LAYOUT, KHÔNG DÙNG DISPLAY: NONE) */
        #quick-chart-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 99999;
            display: flex !important;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        #quick-chart-modal.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* ---------------- POPUP MODAL VĨ MÔ & NARRATIVES ---------------- */
        #macro-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.78);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 99998;
            display: flex !important;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        #macro-modal.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        #macro-modal-card {
            width: 1040px;
            max-width: 95vw;
            max-height: 88vh;
            border-radius: 14px;
            background: rgba(36, 40, 50, 0.95);
            border: 1px solid #2a2e39;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            font-family: monospace;
        }
        [data-theme="light"] #macro-modal-card {
            background: #ffffff;
            border: 1px solid #e0e3eb;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        }
        .macro-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #1e222d;
            border-bottom: 1px solid #2a2e39;
            padding: 11px 18px;
        }
        [data-theme="light"] .macro-modal-header {
            background: #f8fafc;
            border-bottom: 1px solid #e0e3eb;
        }
        .macro-modal-body {
            padding: 14px 18px;
            overflow-y: auto;
            max-height: calc(88vh - 54px);
        }

        /* TẮT / ẨN HOÀN TOÀN BIỂU TƯỢNG TRADINGVIEW LOGO */
        #tv-attr-logo, a#tv-attr-logo, .tv-circle-logo, #qc-tv-container a[href*="tradingview"] {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* ========================================================
           📱 MOBILE & TABLET RESPONSIVENESS (TƯƠNG THÍCH THIẾT BỊ DI ĐỘNG)
           ======================================================== */
        @media (max-width: 768px) {
            /* 1. Header TrendX */
            .header-trendx {
                margin: 4px auto !important;
                padding: 6px 10px !important;
                gap: 6px !important;
                border-radius: 14px !important;
            }
            .header-brand-logo .brand-logo-frame {
                width: 32px !important;
                height: 32px !important;
            }
            .nav-segmented {
                order: 3;
                width: 100% !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none !important;
                justify-content: flex-start !important;
                padding: 3px !important;
                gap: 4px !important;
            }
            .nav-segmented::-webkit-scrollbar {
                display: none !important;
            }
            .nav-tab-link {
                font-size: 11px !important;
                padding: 5px 8px !important;
                flex-shrink: 0 !important;
            }
            .nav-actions {
                gap: 4px !important;
            }
            .btn-vip-header,
            .btn-login-header,
            .btn-admin-header {
                font-size: 11px !important;
                padding: 5px 8px !important;
            }
            .icon-btn-utility {
                width: 30px !important;
                height: 30px !important;
                font-size: 12px !important;
            }

            /* 2. HUD Điều Khiển Terminal */
            .header-hud {
                top: 4px !important;
                max-width: 96vw !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none !important;
                justify-content: flex-start !important;
                padding: 4px 8px !important;
                gap: 4px !important;
                font-size: 9.5px !important;
            }
            .header-hud::-webkit-scrollbar {
                display: none !important;
            }
            .live-badge {
                font-size: 9.5px !important;
                gap: 4px !important;
            }
            .scan-btn {
                padding: 3px 6px !important;
                font-size: 9.5px !important;
            }
            .hud-search-cluster {
                margin-left: 2px !important;
                padding-left: 4px !important;
                gap: 3px !important;
            }
            .hud-search-cluster input {
                width: 52px !important;
                font-size: 9.5px !important;
                padding: 2.5px 5px !important;
            }
            .hud-zoom-cluster {
                margin-left: 2px !important;
                padding-left: 4px !important;
                gap: 2px !important;
            }

            /* 3. Quick Chart Popup Modal */
            #quick-chart-card {
                width: 98vw !important;
                max-width: 98vw !important;
                height: 95vh !important;
                max-height: 96vh !important;
                border-radius: 10px !important;
                margin: 0 auto !important;
            }
            #qc-header-bar {
                padding: 8px 10px !important;
                min-height: auto !important;
                flex-wrap: wrap !important;
                gap: 6px !important;
            }
            #qc-header-left {
                font-size: 13px !important;
                gap: 6px !important;
            }
            #qc-symbol {
                font-size: 14px !important;
            }
            #qc-price {
                font-size: 13px !important;
            }
            #qc-change {
                font-size: 12px !important;
            }
            #qc-sector {
                display: none !important;
            }
            #qc-timeframes .rack-btn,
            #qc-source-fireant,
            #qc-source-native {
                font-size: 10px !important;
                padding: 3px 6px !important;
            }
            .qc-close-btn {
                font-size: 16px !important;
                padding: 2px 6px !important;
            }
            #qc-chart-area {
                height: 380px !important;
            }
            .qc-fireant-frame-wrap iframe {
                top: -50px !important;
                left: 0 !important;
                width: 100% !important;
                height: calc(100% + 50px) !important;
            }
            #qc-stats {
                padding: 8px 10px !important;
                font-size: 10.5px !important;
                flex-direction: column !important;
                gap: 6px !important;
            }
            #qc-minervini-badge {
                padding: 8px 10px !important;
                font-size: 10px !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 5px !important;
            }
            #qc-order-flow-card {
                padding: 12px 10px 18px 10px !important;
            }
            .qc-of-title {
                font-size: 13.5px !important;
            }
            .qc-of-subtitle {
                font-size: 10.5px !important;
            }
            .qc-of-pressure-wrap {
                padding: 10px 8px !important;
                margin-bottom: 12px !important;
            }
            .qc-of-labels {
                font-size: 11px !important;
            }
            .qc-of-sub-row {
                font-size: 10px !important;
                flex-wrap: wrap !important;
                gap: 4px !important;
            }
            .qc-of-table {
                font-size: 11px !important;
            }
            .qc-of-table th,
            .qc-of-table td {
                padding: 7px 4px !important;
            }
            .qc-of-table td.text-right {
                font-size: 11px !important;
            }
            .qc-of-table td.text-sub-cell {
                font-size: 9.5px !important;
            }

            /* 4. Macro Popup Modal */
            #macro-modal-card {
                width: 98vw !important;
                max-width: 98vw !important;
                max-height: 94vh !important;
                border-radius: 10px !important;
            }
            .macro-modal-header {
                padding: 8px 12px !important;
                font-size: 11.5px !important;
            }
            .macro-modal-body {
                padding: 10px 10px !important;
                max-height: calc(94vh - 46px) !important;
            }

            /* 5. Main container */
            .container {
                padding: 0 10px !important;
            }
            .search-box-wrapper {
                padding: 0 4px !important;
            }
            .search-input {
                font-size: 12.5px !important;
                padding: 10px 12px 10px 36px !important;
            }
        }

        @media (max-width: 480px) {
            #qc-chart-area {
                height: 350px !important;
            }
            .header-hud {
                font-size: 9px !important;
            }
            .qc-of-table th {
                font-size: 10px !important;
            }
            .qc-of-table td {
                font-size: 10.5px !important;
            }
            .btn-vip-header span,
            .btn-login-header span {
                display: none;
            }
        }

/* ========================================================
   MIDNIGHT OBSIDIAN & FROSTED GLASS SYSTEM (v7.1.0)
   1. Canvas Midnight Obsidian #22223b với lưới chấm tinh tế
   2. Các khung: MÀU XÁM THAN CHÌ rgba(36, 40, 50, 0.76) ĐỒNG BỘ HIỆU ỨNG KÍNH MỜ FROSTED GLASS:
      - backdrop-filter: blur(16px) saturate(180%) (thấu mờ lưới chấm bên dưới)
      - border: 1px solid rgba(255, 255, 255, 0.14) (viền phản quang tinh tế)
      - box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) (ánh sáng vát kính)
   ======================================================== */
body, html {
  background-color: #070d18 !important;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(16, 185, 129, 0.22) 0%, rgba(10, 110, 75, 0.10) 35%, transparent 68%),
    radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 55%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(#1e293b 1.2px, transparent 1.2px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px !important;
  background-attachment: fixed !important;
}

#zoom-wrapper {
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
}

#themeBtn, .theme-btn, .moon-icon, .sun-icon {
  display: none !important;
  visibility: hidden !important;
}

.top10-ranking-card,
.market-breadth-card,
.sector-box,
.whale-tracker-card,
#whale-tracker-card,
.whale-tracker-wrap,
#screenerView .card,
.smart-filters-hub,
.screener-table-container,
.table-responsive,
.company-hero-card,
.visual-tabs-nav,
.visual-tab-panel .card,
.scorecard-box,
.financial-table-wrapper,
.analysis-card,
#macro-modal-card {
  background-color: rgba(32, 36, 48, 0.48) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.12) 100%) !important;
  background-size: auto !important;
  backdrop-filter: blur(2.5px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(2.5px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.18) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.top10-ranking-card:hover,
.market-breadth-card:hover,
.sector-box:hover,
.whale-tracker-card:hover,
#whale-tracker-card:hover,
#screenerView .card:hover,
.visual-tab-panel .card:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
}

/* THẺ TÍN HIỆU (ALERT CARDS KÍNH MỜ QUANG HỌC) */
.alert-card {
  background-color: rgba(34, 38, 50, 0.50) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 45%, rgba(0, 0, 0, 0.10) 100%) !important;
  background-size: auto !important;
  backdrop-filter: blur(2px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
.alert-card:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  border-top-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

/* HEADER FLOATING TRENDX (TRONG SUỐT GIỐNG TRANG CHỦ UPTRADINGVN) */
.header-trendx {
  background: rgba(15, 23, 42, 0.50) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  border-radius: 100px !important;
}

/* TOP 10 DẪN DẮT: BỎ HOÀN TOÀN SỐ THỨ TỰ */
.top10-rank {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.top10-col-sym {
  display: flex !important;
  align-items: center !important;
  min-width: 52px !important;
  flex-shrink: 0 !important;
}

/* CHIP NGÀNH TRÊN CÙNG */
.sector-chip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #94A3B8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.15s ease !important;
}
.sector-chip:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-top-color: rgba(255, 255, 255, 0.38) !important;
  color: #EDEEF0 !important;
}
.sector-chip.active {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.65) !important;
  color: #10B981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 700 !important;
}

/* BỘ LỌC SCREENER */
.filter-select, .filter-input, .btn-reset-filters {
  background: rgba(36, 40, 52, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 8px !important;
  color: #EDEEF0 !important;
}
.filter-select:focus, .filter-input:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10) !important;
}
.filter-select option, .select-period-range option {
  background: #232733 !important;
  color: #EDEEF0 !important;
}

/* BẢNG SCREENER & BCTC: KÍNH MỜ QUANG HỌC */
.table-responsive {
  background: rgba(28, 31, 40, 0.70) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.bctc-table th {
  background: rgba(37, 40, 51, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  color: #94A3B8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.bctc-table th:first-child,
.bctc-table td:first-child {
  background: rgba(37, 40, 51, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #94A3B8 !important;
}
.bctc-table td {
  background: rgba(28, 31, 40, 0.65) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #EDEEF0 !important;
}
.bctc-table tr:hover td {
  background: rgba(40, 44, 56, 0.85) !important;
}
.bctc-table tr:hover td:first-child {
  background: rgba(47, 52, 66, 0.95) !important;
  color: #FFFFFF !important;
}

/* BADGE NHÓM NGÀNH */
.tag-badge.tag-sector,
.tag-sector,
.screener-badge-sector,
.badge-sector {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #CBD5E1 !important;
}

/* KHUNG MÃ CỔ PHIẾU CÓ MÀU THEO BIẾN ĐỘNG (CHUẨN SẮC NÉT NGUYÊN BẢN - KHÔNG BLUR) */
.stock-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3.5px 8px !important;
  border-radius: 6px !important;
  background: rgba(22, 38, 46, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: filter 0.15s ease, background 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

.stock-tag.tag-purple, .top10-sym-box.tag-purple {
  color: #C084FC !important;
  border-color: rgba(192, 132, 252, 0.5) !important;
  background: rgba(192, 132, 252, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-emerald, .top10-sym-box.tag-emerald {
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-green, .top10-sym-box.tag-green {
  color: #22C55E !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-lime, .top10-sym-box.tag-lime {
  color: #84CC16 !important;
  border-color: rgba(132, 204, 22, 0.5) !important;
  background: rgba(132, 204, 22, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-yellow, .top10-sym-box.tag-yellow {
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-orange, .top10-sym-box.tag-orange {
  color: #FB923C !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  background: rgba(249, 115, 22, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-red, .top10-sym-box.tag-red {
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.stock-tag.tag-cyan, .top10-sym-box.tag-cyan {
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* TOP 10 ITEM (THẺ CỔ PHIẾU TOP 10 KÍNH MỜ QUANG HỌC) */
.top10-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: all 0.15s ease !important;
}
.top10-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.top10-vol {
  color: #94A3B8 !important;
}

/* WHALE TRACKER CONTAINER & ITEMS */
.whale-tracker-card,
#whale-tracker-card {
  background-color: rgba(32, 36, 48, 0.48) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.12) 100%) !important;
  background-size: auto !important;
  backdrop-filter: blur(2.5px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(2.5px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
  padding: 10px 14px 12px 14px !important;
  margin-top: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  height: 620px !important; min-height: 620px !important; max-height: 620px !important;
  position: relative !important;
  z-index: 5 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.whale-tracker-card:hover,
#whale-tracker-card:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
}

#whale-tracker {
  flex: 1 1 0 !important;
  min-height: 480px !important; max-height: 480px !important; height: 480px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: #F59E0B rgba(0, 0, 0, 0.3) !important;
}
/* ========================================================
   STREAMLINED WHALE TRACKER PRO (BLOOMBERG / TRADINGVIEW TAPE)
   ======================================================== */
.whale-tape-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 8px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 3px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  user-select: none !important;
}

#whale-tracker {
  flex: 1 1 0 !important;
  min-height: 480px !important;
  max-height: 480px !important;
  height: 480px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: #F59E0B rgba(0, 0, 0, 0.3) !important;
}
#whale-tracker::-webkit-scrollbar { width: 5px !important; display: block !important; }
#whale-tracker::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3) !important; border-radius: 4px !important; }
#whale-tracker::-webkit-scrollbar-thumb { background: #F59E0B !important; border-radius: 4px !important; box-shadow: 0 0 6px rgba(245, 158, 11, 0.45) !important; }
#whale-tracker::-webkit-scrollbar-thumb:hover { background: #FBBF24 !important; }

/* Ô LỆNH CÁ MẬP STREAMLINED TABULAR TAPE (CHIỀU CAO 26-28PX) */
.whale-log {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 3px 8px !important;
  min-height: 27px !important;
  height: 27px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 2.5px solid #64748b !important;
  transition: all 0.12s ease !important;
}
.whale-log:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateX(1px);
}
.whale-log.log-up {
  border-left-color: #10b981 !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.09) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
}
.whale-log.log-ceil {
  border-left-color: #c084fc !important;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.11) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
}
.whale-log.log-down {
  border-left-color: #ef4444 !important;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.09) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
}
.whale-log.log-floor {
  border-left-color: #06b6d4 !important;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.11) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
}

.w-time {
  width: 50px !important;
  flex-shrink: 0 !important;
  color: #64748b !important;
  font-size: 10px !important;
}

.w-sym-pill {
  width: 44px !important;
  height: 19px !important;
  line-height: 19px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  font-weight: 800 !important;
  font-size: 10.5px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  letter-spacing: 0.5px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}
.w-sym-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px currentColor;
}

.w-action-col,
.w-action,
.whale-log *,
.w-vol-text,
.w-act-badge {
  white-space: nowrap !important;
}

.w-action {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10px !important;
}

.w-action-col {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.w-act-badge {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  letter-spacing: 0.2px !important;
}
.w-act-badge.act-up { color: #10b981 !important; background: rgba(16, 185, 129, 0.15) !important; }
.w-act-badge.act-ceil { color: #c084fc !important; background: rgba(192, 132, 252, 0.18) !important; }
.w-act-badge.act-down { color: #ef4444 !important; background: rgba(239, 68, 68, 0.15) !important; }
.w-act-badge.act-floor { color: #06b6d4 !important; background: rgba(6, 182, 212, 0.18) !important; }

.w-vol-text {
  font-size: 10.5px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.w-price-col {
  width: 45px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  font-size: 10.5px !important;
  color: #94a3b8 !important;
}

.w-val-col {
  width: 68px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
}
.w-val-col.val-up { color: #10b981 !important; }
.w-val-col.val-ceil { color: #c084fc !important; }
.w-val-col.val-down { color: #ef4444 !important; }
.w-val-col.val-floor { color: #06b6d4 !important; }

#whale-meter-box {
  padding: 7px 10px !important;
  background-color: rgba(36, 40, 50, 0.70) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  font-family: monospace !important;
  font-size: 11px !important;
  margin: 4px 0 5px 0 !important;
}
#whale-meter-box #wm-buy-pct,
#whale-meter-box #wm-sell-pct {
  font-size: 10.5px !important;
  font-weight: 700 !important;
}
#whale-meter-box #wm-net-val {
  font-size: 10.5px !important;
  font-weight: 800 !important;
}
#whale-meter-box > div:last-child {
  height: 6px !important;
  border-radius: 3px !important;
  margin-top: 3px !important;
}

/* BIỂU TƯỢNG ĐA MÀU CHUYÊN NGHIỆP */
.fa-trophy { color: #F59E0B !important; }
.fa-chart-line { color: #00F5D4 !important; }
.fa-chart-pie { color: #10B981 !important; }
.fa-shield-halved, .fa-shield-alt { color: #38BDF8 !important; }
.fa-crown { color: #FBBF24 !important; }
.fa-user-check, .fa-user { color: #FB923C !important; }
.fa-house, .fa-home { color: #8BE7DA !important; }
.fa-gear, .fa-cog { color: #94A3B8 !important; }
.fa-filter { color: #00F5D4 !important; }
.fa-fire { color: #F97316 !important; }
.fa-globe { color: #38BDF8 !important; }
.fa-layer-group { color: #10B981 !important; }
.fa-magnifying-glass, .fa-search { color: #38BDF8 !important; }
.fa-newspaper { color: #38BDF8 !important; }
.fa-lock { color: #FBBF24 !important; }

/* ẨN TOÀN BỘ CÁC DÒNG CHỮ THEO YÊU CẦU */
.nameui-syntax,
.nameui-caption {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ========================================================
   CÁC THANH ĐIỀU KHIỂN & KHUNG PHỤ (PILL / SEGMENTED / TOOLBAR):
   MÀU KÍNH OBSIDIAN BÁN TRONG SUỐT KÈM KÍNH MỜ QUANG HỌC
   ======================================================== */
.breadth-scope-bar,
.top10-tabs,
.header-hud,
[data-theme="dark"] .header-hud,
.qc-timeframe-group,
.brand-logo-frame,
.icon-btn-utility,
.icon-btn,
.mb-progress-bar,
#whale-meter-box {
  background-color: rgba(36, 40, 50, 0.65) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* FOOTER ĐỒNG BỘ HIỆU ỨNG KÍNH MỜ FROSTED GLASS */
footer {
  margin-top: 50px !important;
  padding: 35px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  background-color: rgba(32, 36, 48, 0.50) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.10) 100%) !important;
  background-size: auto !important;
  backdrop-filter: blur(3px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(3px) saturate(160%) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  text-align: center !important;
}


/* ========================================================
   MINI COCKPIT: VN30F1M QUICK FLOW (PHÁI SINH LONG - SHORT)
   THIẾT KẾ KÍNH MỜ QUANG HỌC CHUẨN MIDNIGHT OBSIDIAN
   ======================================================== */
.f1m-cockpit-floating {
  position: fixed;
  top: 130px;
  right: 28px;
  width: 326px;
  background-color: rgba(15, 23, 42, 0.82) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(10, 110, 75, 0.15) 100%) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 13px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
  z-index: 100005 !important; /* Luôn hiển thị nổi trên Quick Chart Modal (z-index: 99999) để vừa soi chart vừa xem lệnh phái sinh */
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #EDEEF0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

/* Khi mở modal biểu đồ, khung phái sinh nổi bật với viền sáng rõ nét trên nền chart */
body:has(#quick-chart-modal.show) .f1m-cockpit-floating,
#quick-chart-modal.show ~ #taView .f1m-cockpit-floating {
  z-index: 100005 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
}

#f1mGuideModal {
  z-index: 100010 !important;
}

.f1m-cockpit-floating.minimized {
  width: auto;
  min-width: 290px;
}

.f1m-cockpit-floating.minimized .f1m-cockpit-body {
  display: none !important;
}

.f1m-mini-summary {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
}

.f1m-cockpit-floating.minimized .f1m-mini-summary {
  display: inline-flex !important;
}

.f1m-cockpit-floating.minimized .f1m-cockpit-header {
  border-radius: 12px;
  border-bottom: none;
}

.f1m-cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px 12px 0 0;
  cursor: grab;
}

.f1m-cockpit-header:active {
  cursor: grabbing;
}

.f1m-title-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
}

.f1m-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: f1mPulse 1.6s infinite ease-in-out;
}

@keyframes f1mPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.f1m-title-text {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #F1F5F9;
}

.f1m-status-badge {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.f1m-status-badge.badge-long {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.f1m-status-badge.badge-short {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.f1m-status-badge.badge-neutral {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.f1m-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.f1m-btn-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #94A3B8;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 9px;
  transition: all 0.15s ease;
  padding: 0;
}

.f1m-btn-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.f1m-cockpit-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f1m-price-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8px;
}

.f1m-price-box, .f1m-basis-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.f1m-sub-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #8A8F98;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.f1m-main-price {
  font-family: 'Fira Code', monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #10B981;
}

.f1m-change-sub {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  gap: 5px;
}

.f1m-basis-val {
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #F59E0B;
}

.f1m-basis-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 8.5px;
  margin-top: 2px;
}

.f1m-basis-tag {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.f1m-basis-tag.tag-discount {
  background: rgba(168, 85, 247, 0.2);
  color: #C084FC;
}

.f1m-vn30-ref {
  color: #94A3B8;
  font-size: 8.5px;
}

.f1m-meter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 6px 9px;
}

.f1m-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.f1m-long-lbl { color: #10B981; }
.f1m-short-lbl { color: #EF4444; }
.f1m-meter-flow-name { color: #CBD5E1; font-size: 8.5px; font-weight: 600; }

.f1m-meter-bar-wrap {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
}

.f1m-meter-bar-long {
  height: 100%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
  transition: width 0.3s ease;
}

.f1m-meter-bar-short {
  height: 100%;
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
  transition: width 0.3s ease;
}

.f1m-sparkline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 6px 9px;
}

.f1m-sparkline-header {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  color: #8A8F98;
  margin-bottom: 4px;
}

.f1m-range-text {
  font-family: 'Fira Code', monospace;
  color: #CBD5E1;
}

.f1m-svg-chart-wrap {
  width: 100%;
  height: 38px;
}

.f1m-footer-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.f1m-stat-pill {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 3px 6px;
  display: flex;
  gap: 4px;
}

.f1m-stat-k { color: #8A8F98; }
.f1m-stat-v { color: #F1F5F9; font-weight: 700; }

.f1m-btn-chart {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.10) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.f1m-btn-chart:hover {
  background: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  color: #FFFFFF;
}

.hud-btn-f1m.active {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #F59E0B !important;
  color: #FBBF24 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
}


/* ========================================================
   CỔ PHIẾU THEO DÕI (WATCHLIST CO GIÃN THÔNG MINH VÀ TỰ ĐỘNG CUỘN)
   MÀU NHẠT ĐỒNG BỘ 100% VỚI KHUNG VÙNG KHOANH ĐỎ
   ======================================================== */
.watchlist-ranking-card {
  background-color: rgba(32, 36, 48, 0.48) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.10) 100%) !important;
  background-size: auto !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
  padding: 10px 12px !important;
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  height: fit-content !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.watchlist-ranking-card:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.watchlist-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.watchlist-title {
  font-family: 'Fira Code', monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #EDEEF0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.watchlist-count {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-family: 'Fira Code', monospace !important;
}

.watchlist-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  padding: 2px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.watchlist-input-bar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.watchlist-input-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.30) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 7px !important;
  padding: 4px 8px !important;
  transition: border-color 0.2s ease !important;
}

.watchlist-input-wrap:focus-within {
  border-color: #10B981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.watchlist-input-wrap input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #F1F5F9 !important;
  font-family: 'Fira Code', monospace !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  width: 100% !important;
  text-transform: uppercase !important;
}

.watchlist-input-wrap input::placeholder {
  color: #64748B !important;
  font-size: 9.5px !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.btn-add-watchlist {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.10) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.40) !important;
  color: #10B981 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-add-watchlist:hover {
  background: rgba(16, 185, 129, 0.38) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
}

.watchlist-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* TỰ ĐỘNG HIỆN THANH CUỘN KHI CỔ PHIẾU NHIỀU HƠN 10 MÃ */
.watchlist-list.has-scroll {
  max-height: 310px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #10B981 rgba(0, 0, 0, 0.25) !important;
}

.watchlist-list.has-scroll::-webkit-scrollbar {
  width: 5px !important;
  display: block !important;
}

.watchlist-list.has-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
}

.watchlist-list.has-scroll::-webkit-scrollbar-thumb {
  background: #10B981 !important;
  border-radius: 4px !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.45) !important;
}

.watchlist-item {
  position: relative !important;
  padding: 8px 10px !important;
}

.btn-del-watchlist {
  position: static !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #F87171 !important;
  font-size: 10px !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
  /* Mặc định ẩn hoàn toàn theo yêu cầu người dùng */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.85) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease !important;
}

/* Khi người dùng di chuột vào dòng cổ phiếu theo dõi, biểu tượng xóa xuất hiện nhẹ nhàng */
.watchlist-item:hover .btn-del-watchlist {
  opacity: 0.7 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

/* Khi di chuột trực tiếp vào đúng vị trí biểu tượng xóa, icon sáng rực 100% kèm hiệu ứng hover đỏ nổi bật */
.watchlist-item .btn-del-watchlist:hover {
  opacity: 1 !important;
  visibility: visible !important;
  color: #FFFFFF !important;
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  transform: scale(1.18) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.65) !important;
}

.watchlist-empty {
  font-size: 10px !important;
  color: #8A8F98 !important;
  text-align: center !important;
  padding: 16px 8px !important;
  line-height: 1.6 !important;
  font-style: italic !important;
}


    /* ========================================================
       MENU NÂNG CẤP:
       1. 3 NÚT (BỘ LỌC, PHÂN TÍCH TA, PHÂN TÍCH FA) TÁCH RỜI RIÊNG BIỆT (KHÔNG CHUNG KHUNG)
       2. 2 NÚT (QUẢN TRỊ, GÓI VIP) TẠO HÌNH VIÊN THUỐC (PILL SHAPE) ĐỒNG BỘ 100%
       ======================================================== */
    /* Container điều hướng ở giữa: HOÀN TOÀN TRONG SUỐT, KHÔNG NỀN, KHÔNG VIỀN, KHÔNG BÓNG */
    .nav-segmented,
    #headerNavSegmented,
    .nav-links {
      background: transparent !important;
      background-image: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      margin: 0 !important;
      gap: 10px !important;
      display: inline-flex !important;
      align-items: center !important;
    }

    /* 3 Nút bấm riêng biệt: Mỗi nút là 1 viên thuốc độc lập (Pill shape) */
    .nav-tab-link {
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-weight: 600 !important;
      font-size: 13px !important;
      color: #CBD5E1 !important;
      background-color: rgba(32, 36, 48, 0.48) !important;
      background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.10) 100%) !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
      border-radius: 100px !important;
      padding: 7px 16px !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
      transition: all 0.25s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      box-sizing: border-box !important;
    }

    .nav-tab-link:hover {
      color: #10B981 !important;
      border-color: rgba(16, 185, 129, 0.40) !important;
      border-top-color: rgba(16, 185, 129, 0.70) !important;
      background-color: rgba(32, 36, 48, 0.65) !important;
      background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    .nav-tab-link.active {
      color: #10B981 !important;
      background-color: rgba(32, 36, 48, 0.75) !important;
      background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
      border: 1px solid rgba(16, 185, 129, 0.55) !important;
      border-top: 1px solid rgba(16, 185, 129, 0.85) !important;
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.30), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
      font-weight: 700 !important;
      transform: translateY(0) !important;
    }

    .nav-tab-link.active span {
      color: #10B981 !important;
    }

    /* NÚT QUẢN TRỊ: HÌNH VIÊN THUỐC (PILL SHAPE) */
    .btn-admin-header,
    #adminHeaderBtn {
      border-radius: 100px !important;
      padding: 7px 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-size: 12.5px !important;
      font-weight: 600 !important;
      color: #EDEEF0 !important;
      background-color: rgba(32, 36, 48, 0.48) !important;
      background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.10) 100%) !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
    }

    .btn-admin-header:hover,
    #adminHeaderBtn:hover {
      background-color: rgba(45, 52, 70, 0.70) !important;
      border-color: rgba(56, 189, 248, 0.50) !important;
      border-top-color: rgba(56, 189, 248, 0.80) !important;
      color: #38BDF8 !important;
      box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    .btn-admin-header i,
    #adminHeaderBtn i {
      color: #38BDF8 !important;
      font-size: 12px !important;
    }

    /* NÚT GÓI VIP: HÌNH VIÊN THUỐC (PILL SHAPE) */
    .btn-vip-header,
    #openPricingBtn {
      border-radius: 100px !important;
      padding: 7px 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #F59E0B !important;
      background-color: rgba(32, 28, 20, 0.65) !important;
      background-image: linear-gradient(135deg, rgba(245, 158, 11, 0.20) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      border: 1px solid rgba(245, 158, 11, 0.40) !important;
      border-top: 1px solid rgba(245, 158, 11, 0.70) !important;
      box-shadow: 0 4px 14px rgba(245, 158, 11, 0.20), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
    }

    .btn-vip-header:hover,
    #openPricingBtn:hover {
      background-color: rgba(45, 38, 25, 0.85) !important;
      background-image: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
      border-color: rgba(245, 158, 11, 0.70) !important;
      border-top-color: rgba(245, 158, 11, 0.95) !important;
      color: #FBBF24 !important;
      box-shadow: 0 6px 22px rgba(245, 158, 11, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.30) !important;
      transform: translateY(-1px) !important;
    }

    .btn-vip-header i,
    #openPricingBtn i {
      color: #F59E0B !important;
      font-size: 12px !important;
    }

    /* NÚT ĐĂNG NHẬP (KHI CHƯA ĐĂNG NHẬP): HÌNH VIÊN THUỐC (PILL SHAPE) */
    .btn-login-header,
    #openAuthBtn {
      border-radius: 100px !important;
      padding: 7px 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-size: 12.5px !important;
      font-weight: 600 !important;
      color: #EDEEF0 !important;
      background-color: rgba(32, 36, 48, 0.48) !important;
      background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.10) 100%) !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
    }

    .btn-login-header:hover,
    #openAuthBtn:hover {
      background-color: rgba(45, 52, 70, 0.70) !important;
      border-color: rgba(255, 255, 255, 0.28) !important;
      color: #FFFFFF !important;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.40), inset 0 1px 1px 0 rgba(255, 255, 255, 0.28) !important;
      transform: translateY(-1px) !important;
    }


    /* ========================================================
       NÂNG CẤP KHUNG BẢNG BÁO CÁO (SCREENER TABLE & FINANCIAL TABLE):
       MÀU NHẠT FROSTED GLASS ĐỒNG BỘ 100% VỚI KHUNG BỘ LỌC KHOANH XANH
       ======================================================== */
    /* 1. Khung bao bảng báo cáo (.table-responsive) */
    .table-responsive,
    .screener-table-container,
    .financial-table-wrapper {
      background-color: rgba(32, 36, 48, 0.48) !important;
      background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.10) 100%) !important;
      background-size: auto !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
      border-radius: 14px !important;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
      overflow-x: auto !important;
      overflow-y: auto !important;
      position: relative !important;
      box-sizing: border-box !important;
      scrollbar-width: thin !important;
      scrollbar-color: #10B981 rgba(0, 0, 0, 0.25) !important;
    }

    .table-responsive::-webkit-scrollbar {
      width: 6px !important;
      height: 6px !important;
      display: block !important;
    }
    .table-responsive::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.25) !important;
      border-radius: 6px !important;
    }
    .table-responsive::-webkit-scrollbar-thumb {
      background: #10B981 !important;
      border-radius: 6px !important;
      box-shadow: 0 0 6px rgba(16, 185, 129, 0.45) !important;
    }

    /* 2. Cấu trúc Bảng (.bctc-table) */
    .bctc-table {
      border-collapse: separate !important;
      border-spacing: 0 !important;
      width: 100% !important;
      background: transparent !important;
    }

    /* 3. Tiêu đề các cột (Header th) */
    .bctc-table thead th,
    .bctc-table th {
      background-color: rgba(30, 35, 48, 0.88) !important;
      background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
      backdrop-filter: blur(16px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
      color: #94A3B8 !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-weight: 700 !important;
      font-size: 11.5px !important;
      letter-spacing: 0.6px !important;
      text-transform: uppercase !important;
      border: none !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
      padding: 12px 14px !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
      white-space: nowrap !important;
    }

    /* Cột đầu tiên của Header (Góc trên trái) */
    .bctc-table thead th:first-child,
    .bctc-table th:first-child {
      background-color: rgba(32, 38, 52, 0.96) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
      position: sticky !important;
      left: 0 !important;
      top: 0 !important;
      z-index: 15 !important;
    }

    /* 4. Cột đầu tiên của các hàng dữ liệu (Sticky chỉ tiêu BCTC) */
    .bctc-table tbody td:first-child,
    .bctc-table td:first-child {
      background-color: rgba(28, 33, 46, 0.90) !important;
      backdrop-filter: blur(16px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
      color: #E2E8F0 !important;
      font-weight: 600 !important;
      position: sticky !important;
      left: 0 !important;
      z-index: 5 !important;
    }

    /* Đối với bảng Screener: cột # không cần dính sticky nếu không cuộn ngang */
    #screenerView .bctc-table td:first-child {
      background-color: transparent !important;
      position: static !important;
      z-index: 1 !important;
      border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    #screenerView .bctc-table thead th:first-child {
      position: sticky !important;
      top: 0 !important;
      left: auto !important;
      z-index: 10 !important;
    }

    /* 5. Các ô dữ liệu bình thường (td) */
    .bctc-table tbody td,
    .bctc-table td {
      background-color: transparent !important;
      padding: 10.5px 14px !important;
      font-size: 12.5px !important;
      color: #EDEEF0 !important;
      border: none !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
      transition: background 0.15s ease, color 0.15s ease !important;
    }

    /* 6. Zebra Striping (Hàng chẵn) mờ nhẹ tinh tế */
    .bctc-table tbody tr:nth-child(even) td:not(:first-child) {
      background-color: rgba(255, 255, 255, 0.02) !important;
    }
    .bctc-table tbody tr:nth-child(even) td:first-child {
      background-color: rgba(30, 36, 50, 0.94) !important;
    }
    #screenerView .bctc-table tbody tr:nth-child(even) td {
      background-color: rgba(255, 255, 255, 0.02) !important;
    }

    /* 7. Hiệu ứng Hover hàng (Sang trọng phong cách UpTrading Emerald) */
    .bctc-table tbody tr:hover td {
      background-color: rgba(16, 185, 129, 0.09) !important;
      color: #FFFFFF !important;
    }
    .bctc-table tbody tr:hover td:first-child {
      background-color: rgba(22, 40, 50, 0.96) !important;
      color: #10B981 !important;
      box-shadow: inset 3px 0 0 #10B981 !important;
    }
    #screenerView .bctc-table tbody tr:hover td:first-child {
      background-color: rgba(16, 185, 129, 0.09) !important;
      color: #10B981 !important;
      box-shadow: inset 3px 0 0 #10B981 !important;
    }

    /* 8. Badge điểm số, ngành và các nút điều khiển trong bảng */
    .tag-badge.tag-sector,
    .tag-sector,
    .screener-badge-sector,
    .badge-sector {
      background: rgba(255, 255, 255, 0.06) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      color: #CBD5E1 !important;
      border-radius: 100px !important;
      padding: 3px 10px !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      display: inline-block !important;
      transition: all 0.15s ease !important;
    }

    .item-score-badge {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 2.5px 8.5px !important;
      border-radius: 100px !important;
      font-weight: 800 !important;
      font-size: 11px !important;
      font-family: 'Fira Code', monospace !important;
      border: 1px solid rgba(16, 185, 129, 0.40) !important;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.20) !important;
    }

    .btn-load-more {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(32, 36, 48, 0.65) 100%) !important;
      border: 1px solid rgba(16, 185, 129, 0.40) !important;
      border-top: 1px solid rgba(16, 185, 129, 0.70) !important;
      color: #10B981 !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      padding: 8px 24px !important;
      border-radius: 100px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    }
    .btn-load-more:hover {
      background: rgba(16, 185, 129, 0.28) !important;
      color: #FFFFFF !important;
      border-color: #10B981 !important;
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
      transform: translateY(-1px) !important;
    }

    /* Sub-tabs trên bảng BCTC */
    .sub-tab-btn {
      background: rgba(32, 36, 48, 0.48) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
      color: #94A3B8 !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      padding: 6px 14px !important;
      border-radius: 100px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
    }
    .sub-tab-btn:hover {
      color: #10B981 !important;
      border-color: rgba(16, 185, 129, 0.35) !important;
      background: rgba(16, 185, 129, 0.08) !important;
    }
    .sub-tab-btn.active {
      background: rgba(16, 185, 129, 0.18) !important;
      border: 1px solid rgba(16, 185, 129, 0.55) !important;
      border-top: 1px solid rgba(16, 185, 129, 0.85) !important;
      color: #10B981 !important;
      font-weight: 700 !important;
      box-shadow: 0 0 14px rgba(16, 185, 129, 0.22) !important;
    }

    .table-filter-input {
      background: rgba(0, 0, 0, 0.30) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 100px !important;
      padding: 6px 14px !important;
      color: #F1F5F9 !important;
      font-size: 11.5px !important;
      outline: none !important;
      transition: border-color 0.2s ease !important;
    }
    .table-filter-input:focus {
      border-color: #10B981 !important;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
    }


/* ========================================================
   MODAL & NÚT HƯỚNG DẪN COCKPIT PHÁI SINH VN30F1M
   ======================================================== */
.f1m-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.f1m-btn-guide {
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  font-weight: 800 !important;
  font-size: 10px !important;
}

.f1m-btn-guide:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

.f1m-guide-dialog {
  max-width: 820px !important;
  width: 92vw !important;
  max-height: 88vh !important;
  background-color: rgba(22, 26, 36, 0.96) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(0, 0, 0, 0.20) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.f1m-guide-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f1m-guide-body {
  padding: 16px 22px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #10B981 rgba(0, 0, 0, 0.25) !important;
}

.f1m-guide-body::-webkit-scrollbar {
  width: 6px !important;
}
.f1m-guide-body::-webkit-scrollbar-thumb {
  background: #10B981 !important;
  border-radius: 6px !important;
}

.f1m-guide-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f1m-guide-sec-title {
  font-family: 'Fira Code', monospace;
  font-size: 12.5px;
  font-weight: 800;
  color: #EDEEF0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.f1m-guide-text {
  font-size: 13px;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0;
}

.f1m-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.f1m-guide-card {
  background: rgba(32, 36, 48, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f1m-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.f1m-card-head strong {
  font-size: 12px;
  color: #F1F5F9;
}

.f1m-card-badge {
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'Fira Code', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.f1m-card-badge.blue { background: rgba(56, 189, 248, 0.18); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.4); }
.f1m-card-badge.amber { background: rgba(245, 158, 11, 0.18); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.f1m-card-badge.emerald { background: rgba(16, 185, 129, 0.18); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.4); }
.f1m-card-badge.purple { background: rgba(168, 85, 247, 0.18); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.4); }

.f1m-guide-card p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

.f1m-strategy-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.f1m-strat-item {
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f1m-strat-item.long {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.f1m-strat-item.short {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.f1m-strat-tag {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.f1m-strat-item.long .f1m-strat-tag { color: #10B981; }
.f1m-strat-item.short .f1m-strat-tag { color: #F87171; }

.f1m-strat-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #CBD5E1;
}

.f1m-rules-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}

.f1m-rules-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.55;
}

.btn-guide-got-it {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.10) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #10B981 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 7px 20px !important;
  border-radius: 100px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-guide-got-it:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}

/* Admin Table Action Dropdown Gia Hạn Tay */
.admin-extend-select {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  font-family: inherit;
}
.admin-extend-select:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}
.admin-extend-select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.admin-extend-select option {
  background: #0f172a;
  color: #edf2f7;
  padding: 6px 10px;
  font-size: 12px;
}
.admin-extend-select option:disabled {
  color: #64748b;
  font-style: italic;
}

/* BẢO ĐẢM KHUNG QUẢN TRỊ 1 DÒNG VÀ NÚT VIP HEADER */
.admin-dialog {
  max-width: 1280px !important;
  width: 95vw !important;
}
.admin-users-table th,
.admin-users-table td,
.admin-tier-badge,
.admin-name-cell,
.admin-user-cell,
.admin-pass-cell {
  white-space: nowrap !important;
}
.admin-tier-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}
.admin-name-cell {
  word-break: keep-all !important;
}
#openPricingBtn {
  cursor: pointer !important;
}


/* ========================================================
   MINI COCKPIT: WHALE TRACKER (> 3 TỶ) FLOATING PANEL
   ======================================================== */
.whale-cockpit-floating[style*="display: none"] { display: none !important; }
.whale-cockpit-floating {
  position: fixed;
  top: 130px;
  right: 365px;
  width: 380px;
  background-color: rgba(15, 23, 42, 0.85) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(14, 165, 233, 0.12) 100%) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 13px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), inset 0 1px 1px 0 rgba(255, 255, 255, 0.20) !important;
  z-index: 100004 !important;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #EDEEF0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

.whale-cockpit-floating.minimized {
  width: auto;
  min-width: 310px;
}

.whale-cockpit-floating.minimized .whale-cockpit-body {
  display: none !important;
}

.whale-mini-summary {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
}

.whale-cockpit-floating.minimized .whale-mini-summary {
  display: inline-flex !important;
}

.whale-cockpit-floating.minimized .whale-cockpit-header {
  border-radius: 12px;
  border-bottom: none;
}

.whale-cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px 12px 0 0;
  cursor: grab;
}

.whale-cockpit-header:active {
  cursor: grabbing;
}

.whale-title-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.whale-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: f1mPulse 1.8s infinite;
}

.whale-title-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #F8FAFC;
}

.whale-status-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.whale-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.whale-btn-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.whale-btn-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.whale-cockpit-body {
  padding: 10px 12px 12px 12px;
  display: flex;
  flex-direction: column;
}

.hud-btn-whale.active {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

#alerts-wrapper.has-scroll {
  max-height: none !important;
  overflow: visible !important;
}

#alerts-wrapper:not(.has-scroll) {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}
