@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-primary: #0a0d10;
  --bg-secondary: #12161f;
  --bg-tertiary: #171d29;
  
  --card-bg: rgba(22, 28, 38, 0.65);
  --card-hover-bg: rgba(28, 36, 49, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.35);
  
  --text-primary: #f5f7fa;
  --text-secondary: #90a4ae;
  --text-muted: #546e7a;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #b388ff;
  --accent-purple-dark: #651fff;
  
  --bullish: #00e676;
  --bullish-bg: rgba(0, 230, 118, 0.1);
  --bearish: #ff3d00;
  --bearish-bg: rgba(255, 61, 0, 0.1);
  
  --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-purple: linear-gradient(135deg, #b388ff 0%, #651fff 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --gradient-streak: linear-gradient(135deg, #ff3d00 0%, #ff9100 100%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.25);
  --glow-streak: 0 0 15px rgba(255, 61, 0, 0.25);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout */
.app-container {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Styling (Left) */
.left-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 15px;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  justify-content: flex-start;
}

.sidebar-logo i {
  -webkit-text-fill-color: var(--accent-cyan);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-nav a.active {
  color: var(--accent-cyan);
  background-color: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: var(--glow-cyan);
}

.sidebar-nav a i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: var(--transition-fast);
}

.mobile-nav-item i {
  font-size: 18px;
}

.mobile-nav-item.active {
  color: var(--accent-cyan);
}

/* Header */
.main-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-header {
  height: 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
}

.search-container {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-post {
  background: var(--gradient-accent);
  color: #05080c;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  min-height: 40px;
}

.btn-post:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-post:active {
  transform: translateY(1px);
}

/* User Points Widget Header */
.points-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 14px;
  color: #ffd700;
}

.points-widget i {
  color: #ffd700;
}

/* Streak visual widget */
.streak-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.12) 0%, rgba(255, 145, 0, 0.12) 100%);
  border: 1px solid rgba(255, 97, 0, 0.3);
  color: #ff5722;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: var(--glow-streak);
}

.streak-widget.inactive {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
  color: var(--text-secondary);
  box-shadow: none;
}

.streak-widget.verified {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, rgba(0, 242, 254, 0.12) 100%);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--bullish);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.25);
}

/* Main Content Area */
.content-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
  background-color: var(--bg-primary);
}

/* Feed View Styles */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.feed-title-area h2 {
  font-size: 24px;
  font-weight: 700;
}

.feed-title-area p {
  color: var(--text-secondary);
  font-size: 14px;
}

.feed-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
  padding-bottom: 8px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent-cyan);
  background-color: rgba(0, 242, 254, 0.05);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Trade Cards */
.trade-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.trade-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background-color: var(--card-hover-bg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.18);
  color: var(--bullish);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #05080c;
  font-size: 16px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
}

.user-handle {
  color: var(--text-muted);
  font-size: 12px;
}

.post-time {
  color: var(--text-muted);
  font-size: 12px;
}

.trade-asset-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.direction-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.direction-badge.long {
  background-color: var(--bullish-bg);
  color: var(--bullish);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.direction-badge.short {
  background-color: var(--bearish-bg);
  color: var(--bearish);
  border: 1px solid rgba(255, 61, 0, 0.2);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.status-badge.closed-win {
  background-color: var(--bullish-bg);
  color: var(--bullish);
}

.status-badge.closed-loss {
  background-color: var(--bearish-bg);
  color: var(--bearish);
}

.timeframe-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
}

/* Trade Parameters grid */
.trade-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.param-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.param-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.trade-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.trade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  color: var(--accent-blue);
  background-color: rgba(79, 172, 254, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.tag:hover {
  background-color: rgba(79, 172, 254, 0.12);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 4px;
}

.card-stats {
  display: flex;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stat-item:hover {
  color: var(--text-primary);
}

.stat-item.liked {
  color: var(--bearish);
}

.btn-copy {
  background-color: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  min-height: 38px;
}

.btn-copy:hover {
  background-color: var(--accent-cyan);
  color: #05080c;
  box-shadow: var(--glow-cyan);
}

.btn-copy.copied {
  background-color: var(--bullish-bg);
  border-color: var(--bullish);
  color: var(--bullish);
}

.btn-copy.following {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.btn-copy.following:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: none;
}

/* Right Sidebar (Dashboard) */
.right-sidebar {
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  gap: 24px;
}

.sidebar-panel {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
}

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

.point-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.point-card-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 2px;
}

.point-card-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* Daily Checklist */
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  min-height: 44px;
}

.checklist-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-item.completed {
  border-color: rgba(0, 230, 118, 0.25);
  background-color: rgba(0, 230, 118, 0.02);
}

.checklist-item.completed .checklist-item-left {
  text-decoration: line-through;
  color: var(--text-muted);
}

.chk-points {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
}

/* Tools Panel */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  min-height: 48px;
}

.tool-item:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(0, 242, 254, 0.03);
  transform: translateX(2px);
}

.tool-item i {
  font-size: 16px;
}

/* Trading To-Do List Container Styles */
.todo-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.todo-add-form {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
}

.todo-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.todo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-fast);
}

.todo-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.todo-card.completed {
  border-color: rgba(0, 230, 118, 0.2);
  background-color: rgba(0, 230, 118, 0.015);
}

.todo-card.completed .todo-title-txt {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-card.overdue {
  border-color: rgba(255, 61, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 61, 0, 0.1);
}

.todo-card.overdue .todo-alarm-badge {
  background-color: var(--bearish-bg);
  color: var(--bearish);
  border-color: rgba(255, 61, 0, 0.2);
}

.todo-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: transparent;
  flex-shrink: 0;
}

.todo-card.completed .todo-checkbox {
  background-color: var(--bullish);
  border-color: var(--bullish);
  color: #05080c;
}

.todo-checkbox:hover {
  border-color: var(--accent-cyan);
}

.todo-checkbox.system-locked {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}


.todo-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.todo-title-txt {
  font-weight: 600;
  font-size: 14px;
}

.todo-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.todo-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.todo-points-badge {
  background-color: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.todo-alarm-badge {
  background-color: rgba(0, 242, 254, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.btn-delete-task {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.btn-delete-task:hover {
  color: var(--bearish);
}

/* Strategies module styling */
.strategies-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.strategy-nav-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-nav-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.strategy-nav-item:hover, .strategy-nav-item.active {
  border-color: var(--accent-cyan);
  background-color: var(--card-hover-bg);
}

.strategy-nav-item.active {
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.08);
  border-left: 4px solid var(--accent-cyan);
}

.strategy-nav-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.strategy-nav-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

/* TradingView Chart widget frame */
.tv-chart-frame {
  height: 380px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* Custom Timeframe form field row */
.custom-tf-row {
  display: none;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  animation: fadeIn 0.25s ease-out;
}

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

/* Terminal Console styling for AI Bot research */
.terminal-console {
  background-color: #050810;
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.1) inset, var(--shadow-md);
  margin-top: 20px;
  border-top: 24px solid var(--bg-tertiary);
  position: relative;
}

.terminal-console::before {
  content: "⚡ Nova AI Bot Research Terminal v1.0.4";
  position: absolute;
  top: -18px;
  left: 12px;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-secondary);
}

.terminal-line {
  line-height: 1.5;
}

.terminal-line.success {
  color: var(--bullish);
}

.terminal-line.info {
  color: var(--accent-blue);
}

.cursor-blink {
  background-color: var(--accent-cyan);
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

/* Strategy backtest report card layout */
.report-card {
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

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

.report-stat-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.report-stat-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.report-stat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* User Profile Panel Styles */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.profile-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #05080c;
  box-shadow: var(--glow-cyan);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.profile-stat-box {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 14px 10px;
  border-radius: 12px;
}

.profile-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.profile-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.connector-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: var(--transition-fast);
}

.connector-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

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

.connector-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.connector-icon.tradingview { background-color: rgba(30, 96, 255, 0.12); color: #1e60ff; border: 1px solid rgba(30, 96, 255, 0.2); }
.connector-icon.broker { background-color: rgba(0, 230, 118, 0.12); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.2); }
.connector-icon.twitter { background-color: rgba(29, 161, 242, 0.12); color: #1da1f2; border: 1px solid rgba(29, 161, 242, 0.2); }
.connector-icon.telegram { background-color: rgba(0, 136, 204, 0.12); color: #0088cc; border: 1px solid rgba(0, 136, 204, 0.2); }
.connector-icon.discord { background-color: rgba(88, 101, 242, 0.12); color: #5865f2; border: 1px solid rgba(88, 101, 242, 0.2); }

.connector-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connector-name {
  font-weight: 700;
  font-size: 14px;
}

.connector-status {
  font-size: 12px;
  color: var(--text-muted);
}

.connector-status.connected {
  color: var(--bullish);
  font-weight: 600;
}

.btn-connector {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  background: none;
  color: var(--text-primary);
  min-height: 36px;
}

.btn-connector.connect {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-connector.connect:hover {
  background-color: var(--accent-cyan);
  color: #05080c;
  box-shadow: var(--glow-cyan);
}

.btn-connector.disconnect {
  border-color: var(--bearish);
  color: var(--bearish);
}

.btn-connector.disconnect:hover {
  background-color: var(--bearish);
  color: #fff;
}

/* Cross-posting toggles block */
.cross-post-section {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 15px;
}

.cross-post-toggles {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.toggle-label-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
}

.toggle-label-checkbox input {
  cursor: pointer;
}

/* Modal Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 550px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px;
  min-width: 40px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
}

.form-textarea {
  height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  background: var(--gradient-accent);
  color: #05080c;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 48px;
}

.btn-submit:hover {
  box-shadow: var(--glow-cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--accent-cyan);
}

.toast.points i {
  color: #ffd700;
}

.toast.points {
  border-color: #ffd700;
}

.toast.error {
  border-color: var(--bearish);
}

.toast.error i {
  color: var(--bearish);
}

.toast.warning {
  border-color: #ffd700;
}

.toast.warning i {
  color: #ffd700;
}

.toast.info {
  border-color: var(--accent-blue);
}

.toast.info i {
  color: var(--accent-blue);
}

.toast.success {
  border-color: var(--bullish);
}

.toast.success i {
  color: var(--bullish);
}

.toast.follower-trade {
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: flex-start;
  max-width: 320px;
  gap: 8px;
}

.toast.follower-trade .toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.toast.follower-trade .toast-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.toast.follower-trade .toast-body {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  line-height: 1.4;
}

.toast.follower-trade .toast-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 4px;
}

.toast.follower-trade .toast-actions button {
  background: var(--accent-cyan);
  color: #05080c;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.toast.follower-trade .toast-actions button:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-cyan);
}

.toast.follower-trade .toast-actions button.copied {
  background: var(--bullish);
  color: #05080c;
}

/* Sub-view toggle tabs */
.sub-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sub-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.sub-tab-btn.active {
  background-color: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Walkthrough Tutorial Engine UI */
.tour-popover {
  position: absolute;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 20px;
  width: 320px;
  z-index: 1500;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25), var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.tour-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.tour-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  min-height: 30px;
}

.tour-skip:hover {
  color: var(--text-primary);
}

.tour-title {
  font-size: 16px;
  font-weight: 700;
}

.tour-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.tour-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 32px;
}

.tour-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.tour-btn.next-btn {
  background: var(--gradient-accent);
  color: #05080c;
  border: none;
}

.tour-btn.next-btn:hover {
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* Tour Highlighting */
.tour-highlight {
  position: relative;
  z-index: 1400;
  outline: 3px solid var(--accent-cyan);
  outline-offset: 4px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  pointer-events: none;
}

/* Sub-views content panels */

/* Explore View */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.trader-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: var(--transition-fast);
}

.trader-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.trader-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #05080c;
}

.trader-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  margin: 4px 0;
}

.trader-stat-val {
  font-weight: 700;
  font-size: 15px;
}

.trader-stat-val.positive {
  color: var(--bullish);
}

.trader-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Rooms View */
.rooms-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 70vh;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

/* Futuristic Room Item Card Styling */
.rooms-list {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  background-color: rgba(5, 8, 16, 0.4);
}

.room-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(13, 20, 35, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  width: auto;
}

.room-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

/* Hover State */
.room-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Active State */
.room-item.active {
  background: rgba(0, 242, 254, 0.04);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

.room-item.active::before {
  background: var(--gradient-accent);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Futuristic Room Icon */
.room-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.room-item.active .room-icon-box {
  transform: scale(1.05);
}

/* Room Icon Colors */
.room-item.cyan .room-icon-box { color: var(--accent-cyan); background: rgba(0, 242, 254, 0.08); border-color: rgba(0, 242, 254, 0.2); }
.room-item.blue .room-icon-box { color: var(--accent-blue); background: rgba(30, 96, 255, 0.08); border-color: rgba(30, 96, 255, 0.2); }
.room-item.gold .room-icon-box { color: #ffd700; background: rgba(255, 215, 0, 0.08); border-color: rgba(255, 215, 0, 0.2); }
.room-item.purple .room-icon-box { color: var(--accent-purple); background: rgba(224, 64, 251, 0.08); border-color: rgba(224, 64, 251, 0.2); }

.room-item.cyan.active .room-icon-box { box-shadow: 0 0 10px rgba(0, 242, 254, 0.3); }
.room-item.blue.active .room-icon-box { box-shadow: 0 0 10px rgba(30, 96, 255, 0.3); }
.room-item.gold.active .room-icon-box { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.room-item.purple.active .room-icon-box { box-shadow: 0 0 10px rgba(224, 64, 251, 0.3); }

/* Room Info layout */
.room-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.room-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.room-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Futuristic Active Status Pill */
.room-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.room-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  position: relative;
}

.room-item.active .room-pulse {
  background: var(--bullish);
}

.room-item.active .room-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid var(--bullish);
  animation: pulseScan 1.6s infinite ease-out;
}

@keyframes pulseScan {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 80%;
}

.chat-msg.self {
  align-self: flex-end;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.msg-user {
  font-weight: 700;
  color: var(--accent-cyan);
}

.msg-time {
  color: var(--text-muted);
}

.msg-bubble {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 0 12px 12px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.self .msg-bubble {
  background-color: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 12px 0 12px 12px;
}

.chat-input-bar {
  display: flex;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}



/* Rewards Store */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.reward-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.reward-card:hover {
  border-color: #ffd700;
  transform: translateY(-2px);
}

.reward-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.reward-cost {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
}

/* Journal View */
.journal-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.journal-entry-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.journal-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.journal-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Challenges View */
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.challenge-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.challenge-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.challenge-reward {
  color: #ffd700;
  font-weight: 700;
  font-size: 13px;
}

.progress-bar-container {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  width: 0;
  transition: width 0.5s ease;
}

/* Leaderboards */
.leaderboard-table-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.rank-badge.rank-1 { background-color: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid #ffd700; }
.rank-badge.rank-2 { background-color: rgba(192, 192, 192, 0.15); color: #c0c0c0; border: 1px solid #c0c0c0; }
.rank-badge.rank-3 { background-color: rgba(205, 127, 50, 0.15); color: #cd7f32; border: 1px solid #cd7f32; }

/* AI Coach View */
.ai-coach-container {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 70vh;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.coach-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.chat-msg.coach .msg-bubble {
  background-color: rgba(179, 136, 255, 0.08);
  border: 1px solid rgba(179, 136, 255, 0.15);
}

.chat-msg.coach .msg-user {
  color: var(--accent-purple);
}

/* Learn View */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.lesson-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
}

.lesson-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.lesson-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(179, 136, 255, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Calculator Visual */
.calc-visual-bar {
  height: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
  display: flex;
  border: 1px solid var(--border-color);
}

.calc-visual-loss {
  background-color: var(--bearish);
  height: 100%;
}

.calc-visual-gain {
  background-color: var(--bullish);
  height: 100%;
}

/* Replay Canvas */
.replay-chart-container {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chart-canvas {
  width: 100%;
  height: 100%;
}

.replay-controls {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-ctrl {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px;
}

.btn-ctrl:hover {
  border-color: var(--accent-cyan);
}

/* RESPONSIVE LAYOUT OVERRIDES (MOBILE & TABLET) */
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 80px 1fr 300px;
  }
  .sidebar-text, .logo-text {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
  }
  .sidebar-nav a {
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr !important;
  }
  
  .left-sidebar, .right-sidebar {
    display: none !important;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .app-header {
    padding: 0 16px;
    gap: 10px;
  }
  
  .search-container {
    width: 140px;
    flex-grow: 1;
  }
  
  .content-body {
    padding: 16px;
    padding-bottom: 90px;
  }
  
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .journal-layout {
    grid-template-columns: 1fr;
  }
  
  .rooms-container {
    grid-template-columns: 1fr;
    height: 65vh;
  }
  
  .rooms-list {
    max-height: 150px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .modal-content {
    width: 95%;
  }
  
  .strategies-layout, .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Futuristic Asset Pill Checkbox */
.news-asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.asset-pill-checkbox {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.asset-pill-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.asset-pill-checkbox span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.asset-pill-checkbox:hover span {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.asset-pill-checkbox input:checked + span {
  border-color: var(--bullish);
  background-color: rgba(0, 230, 118, 0.05);
  color: var(--bullish);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

/* Custom Multi-select Dropdown styling */
.custom-multiselect {
  position: relative;
  width: 250px;
  user-select: none;
  font-family: var(--font-sans);
}

.multiselect-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.multiselect-trigger:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.multiselect-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.multiselect-arrow {
  font-size: 10px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.custom-multiselect.open .multiselect-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.multiselect-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: var(--shadow-lg);
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-multiselect.open .multiselect-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.15);
}

.multiselect-option {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.multiselect-option:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.multiselect-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  margin-right: 10px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.multiselect-option input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: var(--bg-primary);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 58%, 35% 90%, 100% 21%, 86% 7%, 35% 61%);
}

.multiselect-option input[type="checkbox"]:checked {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

.multiselect-option input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.multiselect-option span {
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* Scrollbar styling for options list */
.multiselect-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.multiselect-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.multiselect-dropdown-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Live Market Movers Styles */
.live-mover-card {
  border: 1px solid rgba(29, 161, 242, 0.15) !important;
  background: rgba(22, 28, 38, 0.8) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.live-mover-card:hover {
  border-color: rgba(29, 161, 242, 0.4) !important;
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.15) !important;
}

.mover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mover-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mover-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-cyan);
}

.mover-info {
  display: flex;
  flex-direction: column;
}

.mover-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mover-handle {
  font-size: 12px;
  color: var(--text-secondary);
}

.mover-badge {
  color: #1d9bf0;
  font-size: 12px;
}

.mover-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-line;
}

.mover-analysis-box {
  background: rgba(0, 242, 254, 0.02);
  border: 1.5px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.03);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}

.mover-analysis-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.mover-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.mover-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mover-stat-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mover-stat-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.mover-correlation {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.backtest-trade-item {
  transition: background var(--transition-fast), border-left var(--transition-fast);
  border-left: 2px solid transparent;
}
.backtest-trade-item:hover {
  background: rgba(0, 242, 254, 0.05) !important;
  border-left: 2px solid var(--accent-cyan) !important;
}

/* ── TraderHub Premium Logo System ── */

/* Cropped Logo Icon (shows only the upper bull/chart emblem, hides text) */
.logo-container-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0e14;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  flex-shrink: 0;
}

.logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* Sidebar Logo override */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 25px;
  justify-content: flex-start;
}

.sidebar-logo .logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Splash/Loading Screen */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, #070b14 0%, #030408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.splash-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Animated background grid for splash screen */
.splash-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 28px;
  background: rgba(12, 18, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 242, 254, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: logoPulse 2.5s infinite ease-in-out;
}

.splash-logo-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.splash-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: -15px;
}

.splash-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Beautiful custom loading bar */
.splash-loader-bar {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.splash-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: splashLoaderFill 5s linear forwards;
}

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

@keyframes logoPulse {
  0% { transform: scale(1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 254, 0.08); }
  50% { transform: scale(1.02); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 242, 254, 0.18); }
  100% { transform: scale(1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 254, 0.08); }
}

@keyframes splashLoaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── Heading Logo Injection (Shows logo on every page view title) ── */
.feed-title-area h2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.feed-title-area h2::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background-image: url('logo.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b0e14;
  border: 1px solid rgba(0, 242, 254, 0.22);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  flex-shrink: 0;
}

/* ── Mobile Header Logo visibility overrides ── */
.header-mobile-logo {
  display: none !important;
}

@media (max-width: 1024px) {
  .header-mobile-logo {
    display: inline-flex !important;
  }
}

.tv-sync-badge {
  position: absolute;
  top: 12px;
  right: 58px;
  background: rgba(30, 96, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  font-family: var(--font-sans);
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

/* News Refresh Button Styles */
.btn-refresh-news {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-accent);
  color: #05080c;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px;
  font-family: var(--font-sans);
}

.btn-refresh-news:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-refresh-news:active {
  transform: translateY(1px);
}

.btn-refresh-news.spinning i {
  animation: spin 1s linear infinite;
}

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

/* Explore View Custom Styles for DNA Matchmaker */
.explore-controls {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
}

.explore-search-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px 12px 46px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-fast);
}

.explore-search-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: var(--glow-cyan);
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  color: var(--accent-cyan);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

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

.filter-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-group select {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390a4ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.filter-group select:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.active-filters-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.filter-badge {
  background-color: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.filter-badge i {
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.filter-badge i:hover {
  opacity: 1;
}

/* Explore Split Layout */
.explore-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

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

.explore-main-section {
  display: flex;
  flex-direction: column;
}

.explore-side-panel {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 20px;
}

/* DNA Badges styling */
.dna-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.dna-badge.scalper {
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.1);
}

.dna-badge.contrarian {
  background: rgba(179, 136, 255, 0.08);
  color: var(--accent-purple);
  border-color: rgba(179, 136, 255, 0.2);
  box-shadow: 0 0 8px rgba(179, 136, 255, 0.1);
}

.dna-badge.trend-follower {
  background: rgba(0, 230, 118, 0.08);
  color: var(--bullish);
  border-color: rgba(0, 230, 118, 0.2);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.1);
}

.dna-badge.swing-trader {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.1);
}

/* Trader card extension styles */
.trader-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: var(--transition-fast);
}

.trader-card .trader-header {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.trader-card .trader-details {
  flex-grow: 1;
}

.trader-card .user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trader-card .verified-shield {
  color: var(--accent-cyan);
  font-size: 13px;
  filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.5));
}

.trader-card .trader-meta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 8px;
  margin: 6px 0;
  gap: 4px;
}

.trader-card .meta-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trader-card .meta-stat-val {
  font-weight: 700;
  font-size: 13px;
}

.trader-card .meta-stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* User DNA Card (Personalized Panel) */
.user-dna-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.user-dna-card.locked {
  border-color: rgba(255, 255, 255, 0.05);
}

.user-dna-card.active-dna {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

/* Locking overlay styling */
.dna-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 22, 31, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 5;
  gap: 16px;
}

.dna-lock-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.user-dna-card.locked:hover .dna-lock-icon-box {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

/* AI Scan / Pulse Animation */
.dna-analyzer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dna-scan-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
  }
}

.dna-analysis-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-cyan);
}

.dna-analyzer-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.dna-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.dna-stat-row .stat-label {
  color: var(--text-secondary);
}

.dna-stat-row .stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

.dna-stat-row .stat-value.highlight {
  color: var(--accent-cyan);
}

/* The Arena Layout & Live Duels Styles */
.arena-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  align-items: start;
}

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

.arena-left-section {
  display: flex;
  flex-direction: column;
}

.arena-duels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.arena-right-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 520px;
}

/* Duel Card */
.duel-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.duel-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.duel-card.active-selected {
  border-color: var(--accent-cyan);
  background-color: rgba(28, 36, 49, 0.45);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

/* Duel Competitors Header */
.duel-competitors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.duel-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 42%;
  text-align: center;
  position: relative;
}

.duel-versus-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-secondary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.duel-versus-text.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  animation: pulse-vs 2s infinite alternate;
}

@keyframes pulse-vs {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

.duel-pnl {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.duel-pnl.positive {
  color: var(--bullish);
}

.duel-pnl.negative {
  color: var(--bearish);
}

.duel-sparkline-container {
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
}

.duel-sparkline-canvas {
  width: 100%;
  height: 100%;
}

.duel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

/* Spectator Arena panel details */
.arena-vs-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
}

.arena-vs-glowing {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arena-chart-container {
  width: 100%;
  height: 180px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border-color);
  position: relative;
}

.arena-ledger {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px;
  max-height: 120px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ledger-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.ledger-entry:last-child {
  border-bottom: none;
}

.ledger-entry .time {
  color: var(--text-muted);
  margin-right: 6px;
}

/* Spectator Cheer area */
.spectator-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cheer-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-cheer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-cheer:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-cheer:active {
  transform: translateY(1px);
}

.cheer-log-box {
  height: 80px;
  overflow-y: auto;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Floating emojis */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 24px;
  animation: floatUp 1.8s ease-out forwards;
  opacity: 0;
  bottom: 10%;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-140px) scale(1.2) rotate(25deg);
    opacity: 0;
  }
}

/* Rekt & Winner Stamp Overlays */
.rekt-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 4px double #ff3d00;
  border-radius: 8px;
  color: #ff3d00;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 16px;
  background-color: rgba(10, 13, 16, 0.96);
  box-shadow: 0 0 15px rgba(255, 61, 0, 0.35);
  text-shadow: 0 0 4px rgba(255, 61, 0, 0.3);
  letter-spacing: 0.1em;
  z-index: 6;
  pointer-events: none;
  opacity: 0.92;
  animation: stamp-drop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rekt-stamp-inline {
  display: inline-block;
  border: 1px solid #ff3d00;
  border-radius: 4px;
  color: #ff3d00;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 4px;
  margin-left: 6px;
  background-color: rgba(255,61,0,0.15);
  transform: rotate(-5deg);
  letter-spacing: 0.05em;
  vertical-align: middle;
}

@keyframes stamp-drop {
  0% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(3);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
    opacity: 0.92;
  }
}

.winner-crown {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 22px;
  color: #ffd700;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.7));
  z-index: 6;
  transform: rotate(15deg);
}

.winner-crown-inline {
  display: inline-flex;
  align-items: center;
  color: #ffd700;
  font-size: 11px;
  margin-left: 6px;
  vertical-align: middle;
}

.winner-crown-inline i {
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.6));
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 61, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 61, 0, 0);
  }
}

/* Bad Beat Layout & Components */
.badbeat-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

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

.badbeat-feed-section {
  display: flex;
  flex-direction: column;
}

.badbeat-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badbeat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.badbeat-card:hover {
  border-color: rgba(255, 61, 0, 0.35);
  box-shadow: 0 6px 20px rgba(255, 61, 0, 0.05);
  transform: translateY(-2px);
}

.badbeat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badbeat-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badbeat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.badbeat-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badbeat-badge-verified {
  background: rgba(0, 230, 118, 0.1);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badbeat-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}

.badbeat-detail-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badbeat-detail-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.badbeat-detail-value {
  font-weight: 700;
  color: #fff;
}

.badbeat-chart-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px;
  height: 140px;
  position: relative;
}

.badbeat-canvas {
  width: 100%;
  height: 100%;
}

.badbeat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-vote-pain {
  background: rgba(255, 61, 0, 0.08);
  border: 1px solid rgba(255, 61, 0, 0.25);
  color: #ff3d00;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-vote-pain:hover {
  background: rgba(255, 61, 0, 0.15);
  border-color: #ff3d00;
  box-shadow: 0 0 10px rgba(255, 61, 0, 0.25);
  transform: scale(1.02);
}

.btn-vote-pain:active {
  transform: scale(0.98);
}

/* Bad Beat Console Card styles */
.badbeat-console-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  min-height: 420px;
  position: relative;
}

.console-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 10;
}

.console-locked-icon {
  font-size: 40px;
  color: var(--accent-purple);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(186, 104, 200, 0.4));
  animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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

.console-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-select {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  outline: none;
  font-size: 13px;
}

.console-terminal {
  background: #000;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px;
  height: 160px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00ff00;
  overflow-y: auto;
  line-height: 1.4;
  white-space: pre-wrap;
}

.console-radar-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 255, 0, 0.02);
  border: 1px solid rgba(0, 255, 0, 0.05);
}

.console-radar-sweep {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,255,0,0) 0%, rgba(0,255,0,0.15) 100%);
  position: absolute;
  top: -100%;
  animation: radar-sweep 2s linear infinite;
  display: none;
}

@keyframes radar-sweep {
  0% { top: -100%; }
  100% { top: 100%; }
}

.shake-screen {
  animation: shake 0.15s infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(2px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Fullscreen Chart Mode styling */
#tv-chart-wrapper.fullscreen-chart {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: var(--bg-primary);
  padding: 16px;
  box-sizing: border-box;
}

#tv-chart-wrapper.fullscreen-chart .tv-chart-frame {
  height: 100% !important;
  width: 100% !important;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}

.btn-fullscreen-chart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.btn-fullscreen-chart:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.55);
  transform: scale(1.05);
}

.btn-fullscreen-chart:active {
  transform: scale(0.95);
}

#tv-chart-wrapper.fullscreen-chart .btn-fullscreen-chart {
  top: 24px;
  right: 24px;
}

#tv-chart-wrapper.fullscreen-chart .tv-sync-badge {
  top: 24px;
  right: 70px;
}

/* Twitter/X Connector & Profile badges styling */
.feed-x-link:hover {
  color: #1da1f2 !important;
  text-shadow: 0 0 8px rgba(29, 161, 242, 0.25);
}

.mover-x-badge {
  transition: all 0.2s ease-in-out;
}

.mover-x-badge:hover {
  background-color: rgba(29, 161, 242, 0.15) !important;
  border-color: rgba(29, 161, 242, 0.35) !important;
  box-shadow: 0 0 10px rgba(29, 161, 242, 0.15);
  transform: translateY(-1px);
}

#twitter-connect-modal .form-input:focus {
  border-color: #1da1f2 !important;
  box-shadow: 0 0 8px rgba(29, 161, 242, 0.35) !important;
}

#telegram-connect-modal .form-input:focus {
  border-color: #0088cc !important;
  box-shadow: 0 0 8px rgba(0, 136, 204, 0.35) !important;
}

#discord-connect-modal .form-input:focus {
  border-color: #5865f2 !important;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.35) !important;
}

/* WebSocket Catalyst Micro-Animation */
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.75);
    border-color: rgba(0, 242, 254, 0.95);
    transform: scale(1.015);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 242, 254, 0);
    border-color: rgba(0, 242, 254, 0.45);
    transform: scale(1.005);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    border-color: rgba(29, 161, 242, 0.15);
    transform: scale(1);
  }
}

.live-pulse {
  animation: livePulse 2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Flash entry blue when it dynamically mounts on screen */
.live-pulse-entry {
  animation: flashBlue 2s ease-out;
}

@keyframes flashBlue {
  0% { 
    background-color: #1e3a8a; 
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.4);
    transform: translateY(-10px); 
  }
  100% { 
    transform: translateY(0); 
  }
}

/* ==========================================================================
   PREMIUM ECONOMIC CALENDAR STYLES (MYFXBOOK-INSPIRED)
   ========================================================================== */

.calendar-table-container {
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  background: rgba(10, 15, 26, 0.45) !important;
}

.calendar-table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
}

.calendar-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
  padding: 14px 16px;
}

.calendar-row {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.calendar-row:hover {
  background: rgba(0, 242, 254, 0.02) !important;
}

.calendar-row.expanded {
  background: rgba(0, 242, 254, 0.04) !important;
}

.calendar-row td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

/* Day headers like Myfxbook */
.calendar-day-header {
  background: rgba(16, 24, 48, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
}

.calendar-day-header td {
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--border-color) !important;
}

/* Flag badges */
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.flag-img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Myfxbook style 3-bar impact graphic */
.impact-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 20px;
  height: 14px;
}

.impact-bar {
  width: 4px;
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.impact-bars.low .impact-bar:nth-child(1) { background-color: var(--bullish); }
.impact-bars.medium .impact-bar:nth-child(1) { background-color: #ffd700; }
.impact-bars.medium .impact-bar:nth-child(2) { background-color: #ffd700; }
.impact-bars.high .impact-bar:nth-child(1) { background-color: var(--bearish); }
.impact-bars.high .impact-bar:nth-child(2) { background-color: var(--bearish); }
.impact-bars.high .impact-bar:nth-child(3) { background-color: var(--bearish); }

/* Vary bar heights for clean chart style */
.impact-bar:nth-child(1) { height: 6px; }
.impact-bar:nth-child(2) { height: 10px; }
.impact-bar:nth-child(3) { height: 14px; }

/* Status countdown badges */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

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

.countdown-badge.upcoming {
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.countdown-badge.live {
  background: rgba(255, 82, 82, 0.12);
  color: var(--bearish);
  border: 1px solid rgba(255, 82, 82, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  animation: liveBlink 1.5s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 82, 82, 0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 2px rgba(255, 82, 82, 0.1); }
}

/* Dynamic details accordion */
.calendar-row-detail {
  background: rgba(5, 8, 15, 0.6) !important;
}

.calendar-row-detail td {
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.detail-drawer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-row.expanded + .calendar-row-detail .detail-drawer-content {
  max-height: 500px;
}

.detail-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 20px 24px;
}

/* Event analytics info */
.detail-text-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.detail-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bias-box {
  background: rgba(0, 242, 254, 0.03);
  border: 1px dashed rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
}

.bias-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.bias-rule {
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Micro-charts layout */
.detail-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  position: relative;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.chart-bars-group {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px;
  width: 36px;
  position: relative;
}

.chart-bar-consensus {
  width: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px 2px 0 0;
  transition: height 0.5s ease;
}

.chart-bar-actual {
  width: 14px;
  background: var(--accent-cyan);
  border-radius: 2px 2px 0 0;
  transition: height 0.5s ease;
}

.chart-bar-actual.bullish {
  background: var(--bullish);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.3);
}

.chart-bar-actual.bearish {
  background: var(--bearish);
  box-shadow: 0 0 6px rgba(255, 82, 82, 0.3);
}

.chart-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}




/* Futuristic Asset Pill Checkbox */
.news-asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.asset-pill-checkbox {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.asset-pill-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.asset-pill-checkbox span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-pill-checkbox:hover span {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.asset-pill-checkbox input:checked ~ span {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(0, 230, 118, 0.1) 100%);
  color: var(--bullish);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

/* Refresh Button Animation */
.news-refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bullish);
  color: var(--bullish);
}

.news-refresh-btn.spinning i {
  animation: spin 1s linear infinite;
  color: var(--bullish);
}

/* --- MYFXBOOK-STYLE ECONOMIC CALENDAR --- */
.calendar-wrapper {
  background: #131722;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.economic-calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono), sans-serif;
  font-size: 13px;
  color: #c5cbd5;
}

.economic-calendar-table thead tr {
  background: #131722;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.economic-calendar-table th {
  padding: 10px 12px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #787b86;
  text-align: left;
}

.economic-calendar-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: #1c2030;
  transition: background 0.2s ease;
}

.economic-calendar-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.economic-calendar-table td {
  padding: 8px 12px;
  vertical-align: middle;
}

/* Impact Indicators */
.impact-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
}

.impact-block {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1); /* Empty state */
}

.impact-low .impact-block:nth-child(1) { background: #787b86; }
.impact-medium .impact-block:nth-child(1),
.impact-medium .impact-block:nth-child(2) { background: #ff9800; }
.impact-high .impact-block:nth-child(1),
.impact-high .impact-block:nth-child(2),
.impact-high .impact-block:nth-child(3) { background: #ff5252; }

/* Dynamic Actual Colors */
.actual-beat {
  color: var(--bullish) !important;
  font-weight: 700;
}

.actual-miss {
  color: var(--bearish) !important;
  font-weight: 700;
}

.actual-neutral {
  color: #c5cbd5;
}


/* ========================================= */
/* ECONOMIC CALENDAR SPECIFIC STYLES         */
/* ========================================= */

        
        

        

        /* ===== LAYOUT ===== */
        .page-wrapper {
            max-width: 1280px;
            margin: 0 auto;
        }

        /* ===== TOP BAR ===== */
        .top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 0 4px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            padding: 8px 14px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.02);
            transition: var(--transition-fast);
        }

        .back-link:hover {
            color: var(--accent-cyan);
            border-color: var(--border-active);
            background: rgba(0, 242, 254, 0.04);
        }

        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            color: var(--bullish);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--bullish);
            animation: livePulse 1.5s infinite;
        }

        @keyframes livePulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
            50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
        }

        /* ===== MAIN CARD ===== */
        .calendar-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }

        /* ===== HEADER ===== */
        .calendar-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .header-left h1 {
            font-size: 22px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-left h1 i {
            -webkit-text-fill-color: var(--accent-cyan);
            font-size: 20px;
        }

        .header-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .tz-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tz-select-wrapper {
            position: relative;
        }

        .tz-select {
            appearance: none;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            font-family: var(--font-sans);
            font-size: 13px;
            font-weight: 600;
            padding: 10px 38px 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            outline: none;
            transition: var(--transition-fast);
            min-width: 200px;
        }

        .tz-select:focus {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.15);
        }

        .tz-select:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }

        .tz-chevron {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 10px;
            pointer-events: none;
        }

        /* ===== FILTER BAR ===== */
        .filter-bar {
            display: flex;
            gap: 12px;
            padding: 16px 24px;
            background: rgba(16, 24, 48, 0.4);
            border-bottom: 1px solid var(--border-color);
            align-items: center;
        }

        .filter-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #a3a6af;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
        .filter-btn.active { background: rgba(0, 242, 254, 0.1); color: var(--accent-cyan); border-color: var(--accent-cyan); }

        .currency-select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            outline: none;
            margin-left: auto;
        }

        .currency-select option { background: var(--bg-primary); color: #fff; }

        /* ===== TABLE ===== */
        .table-scroll {
            overflow-x: auto;
            overflow-y: auto;
            max-height: calc(100vh - 280px);
        }

        .table-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
        .table-scroll::-webkit-scrollbar-track { background: transparent; }
        .table-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
        .table-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

        .cal-table { width: 100%; border-collapse: collapse; text-align: left; }
        .cal-table thead { position: sticky; top: 0; z-index: 10; background: var(--bg-primary); }
        .cal-table th {
            padding: 12px 24px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #787b86;
            font-weight: 600;
            border-bottom: 1px solid var(--border-color);
        }

        .cal-table td {
            padding: 14px 24px;
            font-size: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.025);
            vertical-align: middle;
            background: var(--bg-row);
        }

        .event-row:nth-child(even) td { background: var(--bg-row-alt); }
        .event-row:hover td { background: var(--bg-row-hover); }

        .day-header td {
            background: rgba(16, 24, 48, 0.9);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            padding: 8px 24px;
            border-bottom: 1px solid var(--border-color);
            border-top: 1px solid var(--border-color);
            backdrop-filter: blur(6px);
        }

        /* ===== PILL BADGES ===== */
        .currency-cell { font-family: monospace; font-weight: 600; color: #a3a6af; }

        .impact-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .impact-high { background: rgba(239, 83, 80, 0.15); color: var(--bearish); border: 1px solid rgba(239, 83, 80, 0.3); }
        .impact-medium { background: rgba(255, 167, 38, 0.15); color: var(--amber); border: 1px solid rgba(255, 167, 38, 0.3); }
        .impact-low { background: rgba(120, 123, 134, 0.15); color: #a3a6af; border: 1px solid rgba(120, 123, 134, 0.3); }

        /* ===== VALUES ===== */
        .event-name { font-weight: 500; color: var(--text-primary); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .val-col { text-align: right; }
        .val-cell { text-align: right; font-family: var(--font-mono); color: var(--text-muted); font-size: 14px; font-weight: 500; }
        
        .val-beat { color: var(--bullish); font-weight: 700; }
        .val-miss { color: var(--bearish); font-weight: 700; }
        .val-pending { color: var(--text-muted); font-style: italic; }

        /* ===== FOOTER ===== */
        .calendar-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 24px;
            border-top: 1px solid var(--border-color);
            background: rgba(0, 0, 0, 0.2);
            font-size: 11px;
            color: var(--text-muted);
        }

        .calendar-footer .data-source strong {
            color: var(--text-secondary);
        }

        /* ===== EMPTY STATE ===== */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 32px;
            color: var(--accent-cyan);
            opacity: 0.4;
            margin-bottom: 16px;
            display: block;
        }

        /* ===== LOADING STATE ===== */
        .loading-state {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-muted);
        }

        .loading-state i {
            font-size: 24px;
            color: var(--accent-cyan);
            margin-bottom: 12px;
            display: block;
        }

        /* ===== PASSED EVENT STYLING ===== */
        .event-row.passed {
            opacity: 0.45;
        }

        .event-row.passed:hover {
            opacity: 0.7;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            
            .calendar-header { padding: 16px; flex-direction: column; align-items: flex-start; }
            .header-right { width: 100%; }
            .tz-select { width: 100%; }
            .filter-bar { padding: 10px 16px; }
            .cal-table td, .cal-table th { padding: 8px 10px; }
            .event-name { min-width: 150px; }
        }
    

/* ===== NEWS CARD HOVER EFFECTS ===== */
.news-card-link:hover .news-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}


/* ===== MARKET INTELLIGENCE HUB ===== */
.market-intelligence-hub {
    display: block;
    width: 100%;
}
/* No media query needed for grid anymore since it is full-width toggleable */
.market-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    white-space: nowrap;
    margin-bottom: 16px;
}
.market-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
.global-trade-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.focus-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.focus-pill.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* ===== HUB TAB NAV ===== */
.hub-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.hub-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 8px;
}
.hub-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.hub-tab-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.news-impact-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-impact-badge.high {
    color: var(--bearish);
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
}
.news-impact-badge.medium {
    color: var(--amber);
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.2);
}
.news-impact-badge.low {
    color: #787b86;
    background: rgba(120, 123, 134, 0.1);
    border: 1px solid rgba(120, 123, 134, 0.2);
}
