/* ==========================================================================
   TRADIMEOW - MODERN TRADING BLOG DESIGN SYSTEM
   Theme: Sleek Dark Mode / Fintech Aesthetics
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-hover: #141f38;
  --bg-card-glass: rgba(15, 23, 42, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.3);

  /* Brand Accents */
  --brand-green: #10b981;
  --brand-green-glow: rgba(16, 185, 129, 0.25);
  --brand-emerald: #059669;
  --brand-cyan: #38bdf8;
  --brand-red: #f43f5e;
  --brand-red-glow: rgba(244, 63, 94, 0.25);
  --brand-purple: #818cf8;
  --brand-amber: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   MARKET TICKER BANNER
   ========================================================================== */
.market-ticker-wrap {
  display: flex;
  align-items: center;
  background: #060910;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 36px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-green);
  font-weight: 600;
  white-space: nowrap;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-green);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  padding-left: 20px;
  animation: ticker-slide 35s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.ticker-symbol {
  color: var(--text-main);
  font-weight: 600;
}

.ticker-price {
  color: var(--text-main);
}

.ticker-change.up {
  color: var(--brand-green);
}

.ticker-change.down {
  color: var(--brand-red);
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

/* Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 42px;
  width: 340px;
  transition: all var(--transition-fast);
  position: relative;
}

.search-box:focus-within {
  border-color: var(--brand-green);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px var(--brand-green-glow);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  color: var(--text-muted);
  font-size: 18px;
  display: none;
  padding: 0 4px;
}

.clear-search-btn.active {
  display: block;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-link-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-btn.active {
  color: var(--text-main);
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-green);
  font-weight: 600;
}

.btn-join-tele {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all var(--transition-fast);
}

.btn-join-tele:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 40px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-gradient {
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

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

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Quote Card */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-amber);
  margin-bottom: 16px;
}

.quote-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border-subtle);
}

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

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

/* ==========================================================================
   MAIN CONTENT & FILTER BAR
   ========================================================================== */
.main-layout {
  padding: 30px 24px 80px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill.active {
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  border-color: var(--brand-green);
  box-shadow: 0 4px 16px var(--brand-green-glow);
}

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

/* Section Heading */
.section-heading {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURED SPOTLIGHT HERO
   ========================================================================== */
.spotlight-wrap {
  margin-bottom: 48px;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 31, 56, 0.85));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.15);
  border-color: var(--brand-green);
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.spotlight-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
  transition: color var(--transition-fast);
}

.spotlight-card:hover .spotlight-title {
  color: var(--brand-green);
}

.spotlight-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.spotlight-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-tag {
  color: var(--brand-green);
  font-weight: 600;
}

.preview-rule {
  color: var(--text-secondary);
  border-left: 2px solid var(--brand-green);
  padding-left: 10px;
}

/* ==========================================================================
   ARTICLES GRID
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.article-card:hover::before {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-category-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-smc {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-risk {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-psychology {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-diary {
  background: rgba(129, 140, 248, 0.12);
  color: var(--brand-purple);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

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

.article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #fff;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--brand-green);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more-link {
  color: var(--brand-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty Search State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-reset-search {
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   NEWSLETTER & TELEGRAM BOX
   ========================================================================== */
.newsletter-section {
  padding: 40px 0 60px;
}

.newsletter-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.tele-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-green);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.newsletter-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 20px;
  height: 48px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--brand-green);
}

.subscribe-form button {
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--brand-green-glow);
}

.subscribe-success {
  margin-top: 16px;
  color: var(--brand-green);
  font-weight: 600;
  font-size: 14px;
}

.subscribe-success.hidden {
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060910;
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 380px;
}

.footer-domain {
  font-size: 13.5px;
  color: var(--text-muted);
}

.highlight-domain {
  color: var(--brand-green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer-disclaimer h4 {
  font-size: 14px;
  color: var(--brand-amber);
  margin-bottom: 8px;
}

.footer-disclaimer p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   ARTICLE READER MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  padding: 44px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-category {
  color: var(--brand-green);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

/* Article Prose Typography (Reader Mode) */
.article-prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-prose h2 {
  font-size: 22px;
  color: #fff;
  margin: 32px 0 14px;
}

.article-prose h3 {
  font-size: 18px;
  color: var(--brand-green);
  margin: 24px 0 10px;
}

.article-prose p {
  margin-bottom: 18px;
}

.article-prose ul, .article-prose ol {
  margin: 16px 0 20px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose strong {
  color: #fff;
}

.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--brand-green);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
}

.callout-box.warning {
  background: rgba(244, 63, 94, 0.08);
  border-left-color: var(--brand-red);
}

.callout-box.quote {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--brand-amber);
  font-style: italic;
}

.modal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-like-post, .btn-share-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-like-post:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.btn-share-post:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.btn-close-modal-bottom {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
}

.btn-close-modal-bottom:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-preview-box {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .search-box {
    display: none; /* Hide top search box on tablet, or can be adapted */
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .modal-container {
    padding: 24px 18px;
  }
  .modal-title {
    font-size: 24px;
  }
  .nav-links {
    display: none; /* Can add mobile drawer if needed */
  }
}

/* ==========================================================================
   ECONOMIC CALENDAR & PROMO BANNER STYLES
   ========================================================================== */

/* Header Nav Highlight for Calendar */
.highlight-nav-btn {
  background: rgba(16, 185, 129, 0.12) !important;
  color: var(--brand-green) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.hot-badge {
  font-size: 9px;
  font-weight: 800;
  background: var(--brand-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  animation: pulse-dot 1.5s infinite;
}

/* Homepage Promo Banner */
.calendar-promo-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.calendar-promo-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulse-dot 1.2s infinite;
}

.promo-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.promo-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.5;
}

.btn-open-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green);
  color: var(--text-inverse);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--brand-green-glow);
  transition: all var(--transition-fast);
}

.btn-open-calendar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Calendar Page Hero */
.calendar-hero {
  padding: 50px 0 20px;
  text-align: center;
}

.calendar-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.calendar-page-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.calendar-page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* News Legend Bar */
.news-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.orange-dot { background: #f97316; box-shadow: 0 0 6px #f97316; }
.yellow-dot { background: #eab308; }

/* Calendar Card Wrap */
.calendar-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  overflow: hidden;
}

.calendar-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-title {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
}

.strip-tip {
  color: var(--brand-green);
  font-size: 12px;
}

/* News Survival Rules Grid */
.news-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.rule-box:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.rule-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.rule-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.rule-box p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .calendar-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-page-title {
    font-size: 28px;
  }
}

/* ==========================================================================
   PIXEL-PERFECT FOREX FACTORY CLONE DESIGN SYSTEM
   ========================================================================== */
.ff-calendar-app {
  min-height: 80vh;
  padding-bottom: 60px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ff-hero-section {
  padding: 40px 0 20px;
}

.ff-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ff-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-badge-live {
  color: #ef4444;
  font-weight: 800;
  animation: pulse-dot 1.2s infinite;
}

.status-badge-cached {
  color: var(--brand-green);
  font-weight: 800;
}

.ff-main-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.ff-accent-text {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.ff-sub-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.btn-cal-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-cal-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Next High Impact Banner */
.next-high-impact-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.next-event-tag {
  font-size: 11px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 1px;
}

.next-event-title {
  font-size: 15px;
  color: #fff;
}

.next-event-time {
  font-size: 13.5px;
  color: #fbbf24;
  margin-left: 10px;
}

/* Filter Panel */
.ff-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ff-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ff-presets-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.ff-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.ff-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ff-preset-btn.active {
  background: var(--brand-green);
  color: #090d16;
  border-color: var(--brand-green);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--brand-green-glow);
}

.ff-preset-btn.reset {
  color: var(--text-muted);
}

.ff-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 14px;
  height: 38px;
  width: 260px;
}

.ff-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.ff-filter-middle, .ff-filter-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 130px;
}

.ff-impact-checkboxes {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.impact-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.impact-chk-label input {
  cursor: pointer;
  accent-color: var(--brand-green);
}

.ff-currency-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cur-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.cur-filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cur-filter-chip.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* TABLE STYLING - FOREX FACTORY LAYOUT */
.ff-table-card {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.ff-table-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.ff-table-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.event-count-badge {
  font-size: 12px;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

.ff-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.ff-table th {
  background: #090e1a;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.col-date { width: 110px; }
.col-time { width: 95px; }
.col-cur { width: 75px; }
.col-impact { width: 65px; text-align: center; }
.col-forecast { width: 95px; }
.col-previous { width: 95px; }

.ff-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

/* Day Groupings */
.day-group-main {
  background: rgba(15, 23, 42, 0.6);
}

.day-group-alt {
  background: rgba(10, 16, 30, 0.7);
}

.ff-row-high-impact {
  background: rgba(239, 68, 68, 0.04) !important;
}

.ff-data-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Date cell grouped with thick right border */
.ff-date-cell {
  background: #0a0f1d !important;
  border-right: 2px solid rgba(255, 255, 255, 0.08) !important;
  vertical-align: top !important;
  padding: 14px 12px !important;
}

.date-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.date-sub {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.ff-time-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.time-high {
  color: #fb7185;
  font-weight: 700;
}

.currency-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.cur-usd { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.cur-jpy { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.cur-gbp { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.cur-eur { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.cur-aud { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.cur-cad { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.ff-impact-cell {
  text-align: center;
}

.ff-folder {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.event-title-text {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
}

.title-high {
  color: #fff;
  font-weight: 700;
}

.val-forecast {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.val-previous {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.val-empty {
  color: rgba(255, 255, 255, 0.15);
}

.ff-empty-cell {
  text-align: center;
  padding: 60px 20px;
}

.btn-reset-filters {
  background: var(--brand-green);
  color: #090d16;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  margin-top: 12px;
}

/* Secondary TradingView Accordion */
.tv-widget-accordion {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tv-accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.tv-accordion-header:hover {
  color: #fff;
}

.tv-embed-wrap {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CLASSIC FOREX FACTORY LIGHT MODE (CHUẨN 100% NHƯ ẢNH GỐC)
   ========================================================================== */
.theme-ff-light {
  background-color: #f1f4f7 !important;
  color: #1a2533 !important;
}

.theme-ff-light .ff-hero-section {
  color: #1a2533;
}

.theme-ff-light .ff-main-title {
  color: #0f1c2e;
}

.theme-ff-light .ff-filter-panel {
  background: #ffffff;
  border-color: #d1d9e2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.theme-ff-light .filter-label-tag,
.theme-ff-light .filter-section-title {
  color: #64748b;
}

.theme-ff-light .ff-preset-btn {
  background: #eef2f6;
  border-color: #cbd5e1;
  color: #334155;
}

.theme-ff-light .ff-search-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

.theme-ff-light .ff-search-wrap input {
  color: #1a2533;
}

.theme-ff-light .impact-chk-label {
  color: #334155;
}

.theme-ff-light .cur-filter-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.theme-ff-light .cur-filter-chip.active {
  background: #0284c7;
  color: #ffffff;
}

.theme-ff-light .ff-table-card {
  background: #ffffff;
  border: 1px solid #d0d7e2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.theme-ff-light .ff-table-meta-bar {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

.theme-ff-light .ff-table-title {
  color: #0f172a;
}

.theme-ff-light .ff-table th {
  background: #203348; /* Classic Navy Header */
  color: #ffffff;
  border-bottom: 1px solid #0f172a;
}

.theme-ff-light .ff-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.theme-ff-light .day-group-main {
  background: #ffffff;
}

.theme-ff-light .day-group-alt {
  background: #f8fafc;
}

.theme-ff-light .ff-row-high-impact {
  background: #fff1f2 !important;
}

.theme-ff-light .ff-date-cell {
  background: #edf2f7 !important;
  border-right: 2px solid #cbd5e1 !important;
}

.theme-ff-light .date-badge {
  color: #0f172a;
}

.theme-ff-light .event-title-text {
  color: #1e293b;
}

.theme-ff-light .title-high {
  color: #b91c1c;
}

.theme-ff-light .currency-badge {
  background: #e2e8f0;
  color: #0f172a;
}


