:root {
  --bg-dark: #FAFAF8;
  --bg-panel: #ffffff;
  --primary: #4F6CE5;
  --primary-hover: #4338ca;
  --accent: #1B7D4B;
  --text-main: #1D1B18;
  --text-muted: #8C8880;
  --border: #EBE8E3;

  --success: #1B7D4B;
  --danger: #C04040;
  --warning: #C47D20;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

h1, h2, h3, .brand-font {
  font-family: 'EB Garamond', serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 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: #fff;
  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: #F5F3F0;
  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: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.2s;
}

.header-filter-wrap:hover {
  border-color: rgba(79, 70, 229, 0.5);
}

.header-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.header-filter-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 130px;
  appearance: none;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.header-filter-select option {
  background: #1a1d2d;
  color: var(--text-main);
}

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

#tab-pipe .panel {
  margin-bottom: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  margin: -2rem -3rem 2.5rem -3rem;
  padding: 2rem 3rem 1.5rem 3rem;
  z-index: 10;
  position: sticky;
  top: 0;
}

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);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: #DDD9D3;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.stat-card.highlight {
  background: #FAFAF8;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.stat-card h3 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

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

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}

.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: 1024px) {

  .dashboard-grid,
  .dashboard-grid.bottom {
    grid-template-columns: 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 #F5F3F0;
}

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

tr:hover td {
  background: #FAFAF8;
}

td {
  color: #5C574F;
  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: #FAFAF8;
  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: #F5F3F0;
  color: #5C574F;
  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 {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #DDD9D3;
}

.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: #FAFAF8;
  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);
}

.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: #ffffff;
  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: #FAFAF8;
}

.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;
}