:root {
    --bg-dark: #050505;
    --bg-panel: rgba(15, 15, 20, 0.4);
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #14b8a6;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #14b8a6 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);

    --glass-border-hover: rgba(139, 92, 246, 0.3);
    --glass-blur: blur(24px);
    --shadow-elite: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(139, 92, 246, 0.3);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
  }
  
  /* Counselor Avatars */
  .msg-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      background: var(--bg-panel);
      margin-right: 12px;
      flex-shrink: 0;
  }
  
  .admin-avatar-preview {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 12px;
      border: 2px solid var(--primary);
      box-shadow: var(--glow-primary);
  }
  
  .user-initials-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--primary-gradient);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.75rem;
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      margin-left: 12px;
      flex-shrink: 0;
      text-transform: uppercase;
      font-family: 'Outfit', sans-serif;
  }

.voxynt-brand-text {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: baseline;
}

.voxynt-ai-suffix {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #B5AFA7;
    letter-spacing: 2.3px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: baseline;
}

/* Loading Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

h1, h2, h3, h4, th, .brand-font {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
  }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15), rgba(0, 0, 0, 0) 60%);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
  }

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.sidebar-plan-box {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-links li {
  padding: 0.6rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 14px;
}

.nav-links li:hover {
  background: rgba(0, 0, 0, 0.02);
}

.nav-links li.active {
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

#btn-logout {
  margin-top: auto;
  color: var(--danger);
  opacity: 0.8;
}

#btn-logout:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1) !important;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plan-badge.starter, .plan-badge.active, .plan-badge.pro, .plan-badge.scalper, .plan-badge.elite {
  background: #EEF1FD;
  color: var(--primary);
  border: 1px solid #BFD4F0;
  font-weight: 700;
}

/* Global Theme Filter (kept for reference; filter now in main header) */
.sidebar-filter {
  display: none;
}

.sidebar-filter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.sidebar-filter-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.sidebar-filter-select:hover,
.sidebar-filter-select:focus {
  border-color: var(--primary);
  outline: none;
}

.filter-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Header Vision Filter */
.header-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }

.header-filter-wrap:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.header-filter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-filter-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  appearance: none;
  padding-right: 28px;
  /* More elegant Chevron SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234F6CE5' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px;
}

.header-filter-select option {
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  padding: 12px;
  font-size: 14px;
}

/* Main Content */
.content {
  flex: 1;
  padding: 0 3rem 2rem; /* Removed padding-top here */
  overflow-y: auto;
  /* IMPORTANT: Restores page scrolling */
  display: flex;
  flex-direction: column;
}

#tab-pipe .panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin: 0 -3rem 2.5rem -3rem;
  padding: 2rem 3rem 1.5rem 3rem;
  z-index: 100;
  position: sticky;
  top: 0;
  width: calc(100% + 6rem);
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Tab System */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-elite);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

.stat-card.highlight {
  background: rgba(139, 92, 246, 0.05);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.stat-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.stat-card .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.panel {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-elite);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-primary);
}

.panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* Dashboard Grid Enhancements */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-grid.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-box {
  position: relative;
  height: 280px;
  width: 100%;
}

.alpha-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alpha-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.alpha-rank {
  font-weight: 700;
  color: var(--primary);
  width: 24px;
}

.alpha-name {
  flex: 1;
  margin-left: 0.5rem;
  font-weight: 500;
}

.alpha-impact {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

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

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

td {
  color: var(--text-main);
  font-size: 13px;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  padding-bottom: 2rem;
}

.kanban-column {
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-radius: 14px 14px 0 0;
}

.column-header.alert {
  color: var(--warning);
  border-top: 2px solid var(--warning);
}

.column-header.success {
  color: var(--success);
  border-top: 2px solid var(--success);
}

.kanban-cards {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    cursor: grab;
    box-shadow: var(--shadow-elite);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
    border-color: var(--glass-border-hover);
  }

.card .card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card .tag {
  background: rgba(79, 70, 229, 0.2);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card .signal {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.signal.buy {
  color: var(--success);
}

.signal.sell {
  color: var(--danger);
}

.signal.hold {
  color: var(--warning);
}

/* Heatmap */
.heatmap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.heat-tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.heat-tag:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.heat-tag.active {
  border: 2px solid white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Filter Badge */
.filter-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.close-btn:hover {
  color: white;
}

.clickable-row {
  cursor: pointer;
  transition: background 0.2s;
}

.clickable-row:hover {
  background: rgba(79, 70, 229, 0.05) !important;
}

.clickable-row.expanded {
  background: rgba(79, 70, 229, 0.1) !important;
  border-left: 4px solid var(--primary);
}

.detail-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--primary);
}

.detail-content {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: slideDown 0.3s ease-out;
}

.detail-section h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.detail-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

.detail-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.badge {
  background: rgba(79, 70, 229, 0.2);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

/* Settings Grid & Controls */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.list-container {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.list-item .details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.list-item strong {
  color: var(--text-main);
}

.list-item small {
  color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1999;
    backdrop-filter: blur(2px);
  }

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

  .content {
    padding: 1.5rem;
  }

  header {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
    width: calc(100% + 3rem);
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    position: relative; /* Remove sticky on very small screens if it breaks layout */
  }

  header h1 {
    font-size: 1.5rem;
  }

  .user-info {
    text-align: center;
  }

  .actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-grid, .dashboard-grid.bottom {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .funnel-viz-container {
    flex-direction: column;
    height: auto;
  }

  .funnel-metrics {
    width: 100% !important;
    flex-direction: row;
    justify-content: space-between;
  }

  .modal-pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger Menu Button */
  .mobile-menu-btn {
    display: block !important;
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1001;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
}

.mobile-menu-btn {
  display: none;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.prompt-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Premium Funnel Visualization */
.funnel-viz-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.premium-funnel {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.2));
}

.funnel-poly {
  transition: all 0.3s ease;
  cursor: crosshair;
}

.funnel-poly.s1 {
  fill: rgba(79, 70, 229, 0.8);
}

.funnel-poly.s2 {
  fill: rgba(79, 70, 229, 0.6);
}

.funnel-poly.s3 {
  fill: rgba(79, 70, 229, 0.4);
}

.funnel-poly:hover {
  fill-opacity: 0.9;
  filter: brightness(1.3);
}

.funnel-text {
  text-anchor: middle;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

.funnel-text.main {
  font-size: 11px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.funnel-text.val {
  font-size: 26px;
  font-weight: 800;
  fill: white;
}

/* Metrics Panel */
.funnel-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-box .m-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.metric-box .m-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.metric-box .m-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   VISION MANAGEMENT (SETTINGS TAB) — ACCORDION
   ============================================= */
.theme-section-title {
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-section-title span {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-card-condensed {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.theme-card-condensed:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-card-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.theme-card-header .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-name-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.theme-status-pill {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.status-paused {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tc-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tc-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Toggle Switch */
.tc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.tc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #374151;
  transition: .3s;
  border-radius: 22px;
}

.tc-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: .3s;
  border-radius: 50%;
}

.tc-switch input:checked+.tc-slider {
  background: #4f46e5;
}

.tc-switch input:checked+.tc-slider:before {
  transform: translateX(20px);
}

/* Chevron */
.tc-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  line-height: 1;
}

.theme-card-condensed.expanded .tc-chevron {
  transform: rotate(180deg);
}

/* Card body — HIDDEN by default, shown only when expanded */
.theme-card-body {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.theme-card-condensed.expanded .theme-card-body {
  display: block;
}

.theme-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.theme-card-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.inactive-zone {
  opacity: 0.65;
}

.inactive-zone:hover {
  opacity: 1;
  transition: opacity 0.3s;
}

@keyframes flashBlue {
  0% {
    color: var(--primary);
  }

  50% {
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
  }

  100% {
    color: var(--primary);
  }
}

.flash-blue {
  animation: flashBlue 1s ease-in-out;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-badge.live .dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-badge.updating .dot {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse 1s infinite alternate;
}

.status-badge .status-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.status-badge .status-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 8px;
}

@keyframes pulse {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}


/* =============================================
   LOGIN SCREEN STYLES
   ============================================= */
.login-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at center, #1a1d2d 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  animation: fadeIn 0.4s ease forwards;
}

.login-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.login-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.login-form .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-block {
  width: 100%;
}

.secondary-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.link-action {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.link-action:hover {
  color: var(--primary);
}

/* --- Auto-Checkout Overlay --- */
#auto-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.aco-content {
  max-width: 400px;
  padding: 2rem;
}

.aco-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 240, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: aco-spin 1s linear infinite;
}

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

.aco-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}

.aco-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Pricing Modal (In-App) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pricing-modal-content {
  background: var(--bg-panel);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow-y: auto;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.modal-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.modal-header p {
  color: var(--text-muted);
}

.modal-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.m-price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}

.m-price-card.popular {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.02);
}

.m-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.m-plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.m-plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.m-plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.m-plan-features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.m-plan-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-plan-features i {
  color: var(--accent);
}

.btn-m-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-m-select:hover {
  background: var(--accent);
  color: #000;
}

.m-price-card.popular .btn-m-select {
  background: var(--accent);
  color: #000;
}

/* --- BOARDROOM ADMIN --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.admin-list-panel {
  background: var(--bg-panel);
  border-radius: 12px;
}

.expert-admin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.expert-admin-card:hover {
  border-color: var(--primary);
  background: rgba(79, 108, 229, 0.03);
  transform: translateX(4px);
}

.expert-admin-card.active {
  background: #EEF1FD;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 108, 229, 0.1);
}

.expert-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  border: 1px solid var(--border);
}

.source-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.source-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.badge-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  background: #EBE8E3;
  padding: 2px 8px;
  border-radius: 4px;
}

.sync-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-detail-panel {
  animation: slideInRight 0.3s ease;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.card-sources-list {
  display: block;
  width: 100%;
}

.expert-source-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.expert-source-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 12px 4px 12px;
  cursor: help;
}

.expert-source-table thead th span {
  border-bottom: 1px dotted var(--text-muted);
}

.expert-source-table tbody tr {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px; /* Note: Requires display: table-row-group logic or similar, but we'll style cells instead */
}

.expert-source-table td {
  padding: 12px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.expert-source-table td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.expert-source-table td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.expert-source-table .form-group {
  margin-bottom: 0 !important;
}

.expert-source-table select,
.expert-source-table input {
  width: 100%;
}

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

/* --- ADMIN MODAL FORMS --- */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- WAR ROOM (PHASE 4) --- */
.warroom-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: calc(100vh - 180px); /* Fill space */
  max-width: 1000px;
  margin: 0 auto;
}

.warroom-header {
  margin-bottom: 0.5rem;
}

.expert-selector-row {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elite);
}

.expert-selector-row h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.expert-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expert-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.expert-chip:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: var(--glow-primary);
}

.expert-chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 108, 229, 0.25);
}

.expert-chip i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--bg-card);
  flex-shrink: 0;
}

/* Chat Arena */
.warroom-chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-elite);
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}

.message {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.message.user {
  align-items: flex-end;
}

.message.expert {
  align-items: flex-start;
}

.message.system {
  align-self: center;
  max-width: 90%;
  opacity: 0.7;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
}

.msg-expert-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-left: 12px;
}

.msg-content {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user .msg-content {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--text-main);
  border-bottom-right-radius: 2px;
}

.expert .msg-content {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.system .msg-content {
  background: transparent;
  padding: 0;
}

/* Input Area */
.chat-input-area {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  max-height: 150px;
  resize: none;
  transition: border-color 0.2s;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input-area .btn {
  height: 44px;
  width: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-input-area .btn i {
  font-size: 1.4rem;
}


/* Intelligence Sources - Clean Grid Layout */
.card-sources-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
}

.sources-header-row,
.source-item {
  display: grid;
  grid-template-columns: 128px 1fr 88px 54px 54px 108px 88px 72px;
  align-items: center;
  min-width: 660px;
}

.sources-header-row {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
  padding: 0 0.75rem;
}

.sources-header-row span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.55rem 0.4rem;
  white-space: nowrap;
}

.source-item {
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  min-height: 44px;
}

.source-item:last-child { border-bottom: none; }
.source-item:hover { background: rgba(79, 70, 229, 0.025); }
.source-item > * { padding: 0 0.3rem; }

.source-item select,
.source-item input[type=text],
.source-item input[type=number] {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  padding: 0.28rem 0.4rem;
  font-size: 0.82rem;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.source-item select:hover,
.source-item input:hover {
  border-color: var(--border);
  background: rgba(255,255,255,0.05);
}

.source-item select:focus,
.source-item input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.05);
  outline: none;
}

.source-scorecard {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.source-sync-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.source-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}


.logo img { display: block; color: inherit; }
/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-elite), var(--glow-primary);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

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

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

#btn-report {
  margin-top: auto;
  margin-bottom: 0.5rem;
}

#btn-report:hover {
  background: rgba(245, 158, 11, 0.1) !important;
  color: var(--warning) !important;
}
