/* ========================================================
   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-muted: #475569;
  
  --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: '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(15, 23, 42, 0.75);
  --bg-tertiary: rgba(30, 41, 59, 0.65);
  
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --accent-primary: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --gradient-text: linear-gradient(135deg, #34d399, #10b981);
  --gradient-brand: var(--gradient-text);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --dot-bg: radial-gradient(#1e293b 1px, transparent 1px);
  
  --card-bg: var(--glass-bg);
  --card-border: var(--glass-border);
  --glow-color: var(--accent-glow);
}

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

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.4s ease, color 0.4s 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
   ======================================================== */
.header-trendx {
  position: sticky;
  top: 16px;
  margin: 12px auto 25px;
  width: 95%;
  max-width: 1400px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-tab-link {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.nav-tab-link:hover {
  transform: translateY(-2px);
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
}
.nav-tab-link.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-action {
  background: var(--gradient-brand);
  color: #fff !important;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--accent-glow);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--text-main);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  padding: 0;
}
.icon-btn:hover {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: transparent;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.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: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.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);
}

/* ========================================================
   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;
}

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

.bctc-table th {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bctc-table th:first-child,
.bctc-table td:first-child {
  text-align: center;
  position: sticky;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 5;
  font-weight: 600;
  border-right: 1px solid var(--glass-border);
}

.bctc-table th:first-child {
  z-index: 15;
}

.bctc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

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

.bctc-table tr:hover td:first-child {
  background: rgba(20, 30, 50, 0.95);
}

/* ========================================================
   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: 9999;
  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: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 24px;
}

.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 var(--glass-border);
  background: var(--bg-secondary);
  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: 860px) {
  .header-trendx {
    border-radius: 24px;
    padding: 12px 18px;
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  .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: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  animation: pulse-vip 2.5s infinite;
}

.btn-vip-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}

@keyframes pulse-vip {
  0%, 100% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(245, 158, 11, 0.6); }
}

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

.btn-login-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-header:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.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: 980px;
  padding: 30px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

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

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px 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 8px 24px 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 8px 24px rgba(245, 158, 11, 0.15);
}

.hot-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.vip-save-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  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: 12px;
}
.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: 10px;
}

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

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

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

.plan-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  min-height: 38px;
}

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

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

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

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

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

.btn-plan-select {
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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: 7px 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}
.btn-admin-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.admin-grant-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-form-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.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: 13px;
  outline: none;
}
.admin-form-group input:focus,
.admin-form-group select:focus {
  border-color: #10b981;
}

.btn-admin-submit-grant {
  width: 100%;
  margin-top: 14px;
  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: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.btn-admin-submit-grant:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.admin-table-container {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.admin-users-table th {
  background: var(--glass-bg);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 2;
}
.admin-users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.admin-tier-badge {
  display: inline-block;
  padding: 3px 8px;
  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;
}

.btn-table-action {
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.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;
}
.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-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.ctg {
  background: #004b91;
  color: #fff;
}



