/* =======================================================
   STOCK MARKET NEWS & COMMUNITY TRENDING DRAWER
   Smart Running Trade - Ultra-Clean Terminal Theme
   ======================================================= */

.news-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.news-drawer {
  position: fixed;
  top: 0;
  right: 44px;
  bottom: 0;
  width: 900px;
  max-width: calc(100vw - 44px);
  height: 100vh;
  background: #070c1e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.85);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 44px));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  user-select: none;
  overflow: hidden;
}

body.sidebar-hidden .news-drawer {
  right: 0 !important;
  max-width: 100vw;
}

.news-drawer.open {
  transform: translateX(0);
}

/* Header */
.news-header {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090f26;
  flex-shrink: 0;
}

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

.news-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
  animation: newsLivePulse 2s infinite;
}

@keyframes newsLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.news-title-main {
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.news-title-sub {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  margin-top: 1px;
}

.news-btn-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.news-btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Controls: Search & Tabs */
.news-controls {
  padding: 12px 20px;
  background: #080d22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.news-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-input-wrap {
  position: relative;
  flex: 1;
}

.news-search-input {
  width: 100%;
  height: 36px;
  background: #030614;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0 12px;
  font-size: 12px;
  color: #f8fafc;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.news-search-input::placeholder {
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
}

.news-btn-action {
  height: 36px;
  padding: 0 14px;
  background: #0891b2;
  border: 1px solid #06b6d4;
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: all 0.15s ease;
}

.news-btn-action:hover {
  background: #0e7490;
}

.news-btn-all {
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.news-btn-all:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.news-btn-all.active {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #030712;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.news-btn-reset {
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: all 0.15s ease;
}

.news-btn-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

/* Primary Tabs (Official Media vs Community Trending) */
.news-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.news-main-tabs {
  display: flex;
  gap: 6px;
}

.news-main-tab {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-main-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.news-main-tab.active {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.45);
}

/* Metrics Strip */
.news-metrics-strip {
  padding: 8px 20px;
  background: #05091a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex-shrink: 0;
}

.news-metric-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 6px 10px;
}

.news-metric-hdr {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
}

.news-metric-val {
  font-size: 12.5px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #f8fafc;
  margin-top: 2px;
}

.news-metric-val.cyan { color: #22d3ee; }
.news-metric-val.amber { color: #fbbf24; }
.news-metric-val.emerald { color: #34d399; }

/* Scroll Area */
.news-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Official News Card */
.news-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.news-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-source-badge {
  padding: 2px 6px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #22d3ee;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
}

.news-time-label {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

.news-card-snippet {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-topics-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.news-topic-tag {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-topic-tag:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.news-card-thumb {
  width: 110px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  background: #030614;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Community Trending Post Card */
.trending-post-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.trending-post-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(245, 158, 11, 0.3);
}

.trending-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.trending-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #22d3ee;
}

.trending-names {
  display: flex;
  flex-direction: column;
}

.trending-fullname {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.trending-username {
  font-size: 10.5px;
  color: #64748b;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.trending-post-content {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.trending-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.trending-stats-group {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.trending-stat-pill {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-stat-pill.likes { color: #fbbf24; font-weight: 700; }
.trending-stat-pill.replies { color: #38bdf8; font-weight: 700; }

/* Empty & Loading States */
.news-state-block {
  padding: 60px 20px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.news-state-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.news-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spinNews 0.75s linear infinite;
}

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

/* =======================================================
   PASAR GLOBAL (GLOBAL MARKET, COMMODITIES, FOREX)
   ======================================================= */

.news-global-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.news-global-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-global-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
}

.news-global-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
  color: #22d3ee;
  font-weight: 800;
}

/* Section Header */
.global-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.global-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.global-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-section-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #f8fafc;
}

.global-section-count {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
}

/* 2-Column Responsive Grid */
.global-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 680px) {
  .global-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Global Item Card */
.global-market-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
  user-select: text;
}

.global-market-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.global-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.global-code-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-align: center;
}

.global-code-badge.indices {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.global-code-badge.commodities {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.global-code-badge.currencies {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.global-item-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.global-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-item-subtitle {
  font-size: 10px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.global-item-unit {
  color: #475569;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* Card Right Side (Price & Change) */
.global-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.global-item-price {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #f8fafc;
}

.global-change-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  padding: 1.5px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.global-change-badge.up {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.global-change-badge.down {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.global-change-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =======================================================
   TRENDING SOSIAL MEDIA SAHAM (MULTI-PLATFORM BUZZ)
   X, Threads, Facebook, TikTok, Instagram
   ======================================================= */

.news-social-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  scrollbar-width: none;
}

.news-social-subrow::-webkit-scrollbar {
  display: none;
}

.news-social-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.platform-icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.news-social-pill:hover .platform-icon-svg {
  transform: scale(1.08);
}

.news-social-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}

.news-social-pill.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: #06b6d4;
  color: #22d3ee;
}

/* Top Trending Stocks in Social Media Bar */
.social-buzz-strip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.social-buzz-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-buzz-desc {
  font-size: 10px;
  color: #64748b;
}

.social-buzz-tickers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-buzz-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-buzz-ticker-pill:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.social-buzz-ticker-name {
  font-size: 11.5px;
  font-weight: 900;
  color: #f8fafc;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.social-buzz-ticker-count {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.social-buzz-platforms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Multi-Platform Showcase Grid (Highlight Mode) */
.social-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}

.social-platform-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s ease;
}

.social-platform-block:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.social-platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.social-platform-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-platform-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.social-platform-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.social-platform-count-badge {
  font-size: 9.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.social-platform-viewall-btn {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.social-platform-viewall-btn:hover {
  color: #7dd3fc;
  transform: translateX(2px);
}

.social-platform-posts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Social Media Post Card */
.social-post-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.social-post-card:hover {
  background: rgba(255, 255, 255, 0.038);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Platform specific border accents on hover */
.social-post-card[data-platform="x"]:hover { border-color: rgba(226, 232, 240, 0.35); }
.social-post-card[data-platform="threads"]:hover { border-color: rgba(192, 132, 252, 0.4); }
.social-post-card[data-platform="facebook"]:hover { border-color: rgba(96, 165, 250, 0.4); }
.social-post-card[data-platform="tiktok"]:hover { border-color: rgba(45, 212, 191, 0.45); }
.social-post-card[data-platform="instagram"]:hover { border-color: rgba(244, 114, 182, 0.4); }

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

.social-badge-tag {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Brand colored badges */
.social-badge-tag.badge-x {
  background: rgba(226, 232, 240, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.3);
  color: #f1f5f9;
}

.social-badge-tag.badge-threads {
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #e9d5ff;
}

.social-badge-tag.badge-facebook {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.social-badge-tag.badge-tiktok {
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
}

.social-badge-tag.badge-instagram {
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.35);
  color: #f9a8d4;
}

.social-post-caption {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-line;
}

.social-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 6px;
}

.social-tags-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.social-ticker-pill {
  padding: 2px 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  color: #22d3ee;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-ticker-pill:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #22d3ee;
}

.social-hashtag-pill {
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 9px;
  color: #94a3b8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #f1f5f9;
  text-decoration: none;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: all 0.15s ease;
}

.social-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f8fafc;
  color: #ffffff;
}

/* CTA Explore All Feed */
.social-explore-cta {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: all 0.18s ease;
  margin-top: 6px;
}

.social-explore-cta:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* =======================================================
   MARKET NEWS & SOSMED - LIGHT THEME (MODE SIANG)
   ======================================================= */
body.theme-light .news-drawer-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

body.theme-light .news-drawer {
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.theme-light .news-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .news-title-main {
  color: #0f172a;
}

body.theme-light .news-title-sub {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .news-btn-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .news-btn-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

body.theme-light .news-controls {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .news-search-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .news-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

body.theme-light .news-search-input::placeholder {
  color: #94a3b8;
}

body.theme-light .news-btn-action {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

body.theme-light .news-btn-action:hover {
  background: #0369a1;
}

body.theme-light .news-btn-all,
body.theme-light .news-btn-reset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

body.theme-light .news-btn-all:hover,
body.theme-light .news-btn-reset:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

body.theme-light .news-btn-all.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

body.theme-light .news-main-tab {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

body.theme-light .news-main-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body.theme-light .news-main-tab.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

body.theme-light .news-filter-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

body.theme-light .news-filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .news-filter-pill.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

body.theme-light .news-metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .news-metric-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.theme-light .news-metric-hdr {
  color: #64748b;
}

body.theme-light .news-metric-val {
  color: #0f172a;
}

body.theme-light .news-scroll-area {
  background: #f8fafc;
  scrollbar-color: #cbd5e1 transparent;
}

body.theme-light .news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .news-card:hover {
  background: #ffffff;
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

body.theme-light .news-card-title {
  color: #0f172a;
}

body.theme-light .news-card-summary {
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .news-symbol-chip {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

body.theme-light .news-symbol-chip:hover {
  background: #dcfce7;
}

body.theme-light .news-topic-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0284c7;
}

body.theme-light .news-card-footer {
  border-top: 1px solid #f1f5f9;
}

body.theme-light .news-btn-open {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

body.theme-light .news-btn-open:hover {
  background: #0284c7;
  color: #ffffff;
}

body.theme-light .news-social-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .news-social-author-name {
  color: #0f172a;
}

body.theme-light .news-social-post-text {
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .social-stat-item {
  color: #64748b;
}

body.theme-light .social-link-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

body.theme-light .social-link-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

body.theme-light .social-explore-cta {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

body.theme-light .social-explore-cta:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

body.theme-light .news-state-block {
  color: #64748b;
}

body.theme-light .news-state-title {
  color: #334155;
}

body.theme-light .news-loading-spinner {
  border-color: #e2e8f0;
  border-top-color: #0284c7;
}

/* =======================================================
   GLOBAL NEWS & GLOBAL SOCIAL TRENDING EXTENSIONS
   ======================================================= */

.news-global-news-subrow,
.news-global-social-subrow {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.news-global-news-subrow::-webkit-scrollbar,
.news-global-social-subrow::-webkit-scrollbar {
  display: none;
}

.news-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.news-sub-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.news-sub-pill.active {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Global Impact Card */
.global-impact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
  position: relative;
}

.global-impact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.impact-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

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

.cat-pill {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.cat-gold { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.cat-oil { color: #fb923c; background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.3); }
.cat-coal { color: #a3e635; background: rgba(163, 230, 53, 0.12); border: 1px solid rgba(163, 230, 53, 0.3); }
.cat-nickel { color: #2dd4bf; background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.3); }
.cat-cpo { color: #4ade80; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); }
.cat-macro { color: #60a5fa; background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.3); }
.cat-asia { color: #c084fc; background: rgba(192, 132, 252, 0.12); border: 1px solid rgba(192, 132, 252, 0.3); }
.cat-wallstreet { color: #38bdf8; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-general { color: #cbd5e1; background: rgba(203, 213, 225, 0.1); border: 1px solid rgba(203, 213, 225, 0.25); }

.global-title-id {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
}

.original-english-quote {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 4px 4px 0;
}

.affected-stocks-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed rgba(6, 182, 212, 0.25);
  border-radius: 4px;
}

.affected-stocks-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.affected-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  color: #22d3ee;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  cursor: pointer;
  transition: all 0.15s ease;
}

.affected-stock-tag:hover {
  background: #06b6d4;
  color: #030712;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  transform: scale(1.05);
}

.analyst-note-box {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #06b6d4;
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
}

.global-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.global-source-text {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.global-action-link {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.global-action-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
