/* ===============================
   Layout Foundation
================================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #0f1115;

  /* Enhanced glowing forces */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(78, 161, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(130, 196, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 200, 0.06) 0%, transparent 60%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 20% 30%, 80% 70%, 50% 50%;
  background-attachment: fixed;

  animation: backgroundPulse 12s ease-in-out infinite;
  font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* ===============================
   Container Layout
================================= */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===============================
   Background Animation
================================= */
@keyframes backgroundPulse {
  0%   { background-position: 20% 30%, 80% 70%, 50% 50%; }
  50%  { background-position: 25% 35%, 75% 65%, 50% 52%; }
  100% { background-position: 20% 30%, 80% 70%, 50% 50%; }
}

/* ===============================
   Ambient Glow Spots
================================= */
.glow-spot {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #4ea1ff 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 20s ease-in-out infinite;
}

.glow-spot.top-left {
  top: 10%;
  left: 5%;
}

.glow-spot.bottom-right {
  bottom: 10%;
  right: 5%;
}

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

/* ===============================
   Main Content
================================= */
.main-content {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ===============================
   Homepage Layout
================================= */
.homepage {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===============================
   Header Styling
================================= */
header.site-header {
  width: 100%;
  margin: 0;
  background: linear-gradient(to right, #1e1e1e, #2c2c2c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  padding: 0;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 2;
}

.header-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.site-title-image {
  display: block;
  margin: 0;
  padding: 0;
  max-height: clamp(40px, 10vw, 70px);
  object-fit: contain;
  opacity: 0.95;
  mix-blend-mode: lighten;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
          drop-shadow(0 0 6px rgba(0, 191, 255, 0.4));
}

.site-title-image:hover {
  transform: scale(1.05);
}

/* Hamburger Button */
.menu-toggle {
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: #00bfff;
  transition: stroke 0.3s ease;
}

.menu-toggle:hover svg {
  stroke: #ffffff;
}

/* Navigation */
.main-nav {
  position: relative;
}

.main-nav ul {
  display: none;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 1rem;
  background-color: #111;
  position: absolute;
  top: 80px;
  right: 0;
  border-radius: 8px;
  z-index: 999;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.main-nav.open ul {
  display: flex;
}

.main-nav li a {
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.main-nav li a:hover {
  color: #ffffff;
}

/* ===============================
   Blog Previews (Homepage Cards)
================================= */
.post-summary {
  background: linear-gradient(to bottom right, #1f1f1f, #1a1a1a);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 36px;
  margin: 48px auto;
  max-width: 760px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-summary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.post-summary::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4ea1ff, #82c4ff);
  z-index: -1;
  opacity: 0.08;
}

/* Title only */
.post-summary > h2 {
  font-size: 30px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #4ea1ff;
  transition: color 0.3s ease;
}

.post-summary:hover > h2 {
  color: #82c4ff;
}

.post-summary > h2 a {
  color: inherit;
  text-decoration: none;
}

.post-summary > h2 a:hover {
  text-decoration: underline;
}

/* Summary content */
.post-summary time {
  font-size: 13px;
  color: #aaa;
  display: block;
  margin-bottom: 20px;
  font-style: italic;
}

.post-summary .summary p {
  font-size: 18px;
  line-height: 1.75;
  color: #e0e0e0;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

/* Headings inside summary */
.post-summary .summary h2,
.post-summary .summary h3,
.post-summary .summary h4,
.post-summary .summary h5,
.post-summary .summary h6 {
  color: #f0f0f0;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Read more button */
.read-more {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4ea1ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more:hover {
  background-color: #82c4ff;
  transform: translateY(-2px);
}

/* ===============================
   In-Post Headings
================================= */
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #f0f0f0;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  position: relative;
}

.post-content h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 1px;
}

/* ===============================
   Blog Post Page
================================= */
.blog-post {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: 'Georgia', serif;
}

/* Main Post Title */
.blog-post h1.post-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4ea1ff;
  letter-spacing: 0.6px;
}

/* Optional: If title is a link */
.blog-post h1.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post h1.post-title a:hover {
  color: #82c4ff;
  text-decoration: underline;
}

/* Post Metadata */
.post-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
  font-style: italic;
}

/* Post Content */
.post-content {
  font-size: 18px;
  line-height: 1.75;
  color: #d0d0d0;
}

/* In-Post Headings */
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #f0f0f0;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  position: relative;
}

/* Optional Glow Divider Under h2 */
.post-content h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 1px;
}

/* Links */
.post-content a {
  color: #4ea1ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content a:hover {
  text-decoration: underline;
  color: #82c4ff;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

/* Code Blocks */
.post-content pre {
  background-color: #2a2a2a;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

.post-content code {
  background-color: #333;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===============================
   Back Link
================================= */
.back-link {
  text-align: center;
  margin-top: 40px;
}

.back-link a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4ea1ff;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-link a:hover {
  background-color: #82c4ff;
  transform: translateY(-2px);
}

.arrow {
  margin-right: 8px;
  font-size: 18px;
}

/* ===============================
   Blog Header
================================= */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.blog-header h1 {
  font-size: 42px;
  color: #4ea1ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  position: relative;
  animation: pulseGlow 2s infinite;
}

.blog-header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 2px;
}

.blog-subtext {
  font-size: 18px;
  color: #ccc;
  font-style: italic;
  margin-top: 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   Texture Break
================================= */
.texture-break {
  background: url('/images/texture.jpg') repeat;
  background-size: cover;
  height: 150px;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 6px;
  opacity: 0.6;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* ===============================
   Post Return Button (Legacy)
================================= */
.post-return {
  margin-top: 40px;
  text-align: center;
}

.post-return a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #4ea1ff;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.post-return a:hover {
  background-color: #82c4ff;
  transform: translateY(-2px);
}

.post-return .arrow {
  margin-right: 8px;
  font-size: 18px;
}

/* ===============================
   Screener Header
================================= */
.screener-header {
  text-align: center;
  width: 100%;
  padding-top: 40px;
  margin-bottom: 30px;
}

.screener-header h1 {
  font-size: 48px;
  color: #4ea1ff;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  animation: pulseGlow 4s ease-in-out infinite;
}

.screener-header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 2px;
}

.screener-subtext {
  font-size: 18px;
  color: #ccc;
  font-style: italic;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   Responsive
================================= */
@media (max-width: 600px) {
  .post-summary .summary p {
    font-size: 20px;
    line-height: 1.8;
  }

  .main-nav li a {
    font-size: 22px;
    padding: 12px 0;
  }

  .post-summary h2 {
    font-size: 30px;
  }

  .read-more {
    font-size: 16px;
    padding: 12px 18px;
  }
}

/* ===============================
   Footer
================================= */
.site-footer {
  padding: 1rem;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.footer-links a {
  color: #666;
  margin: 0 8px;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

/* ===============================
   Footer Styling
================================= */
footer.site-footer {
  width: 100%;
  margin: 0;
  padding: 12px 0;
  background-color: #1a1a1a;
  color: #cccccc;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.footer-container {
  width: 100%;
  padding: 0 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* Optional Glow Accent */
footer.site-footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ===============================
   Responsive Tweaks
================================= */
@media (max-width: 600px) {
  .site-title-image {
    max-height: 50px;
    height: auto;
  }

  .menu-toggle {
    height: 50px;
    width: 50px;
  }

  .main-nav ul {
    top: 60px;
    min-width: 160px;
  }

  .main-nav li a {
    font-size: 16px;
  }

  .main-content{
    padding: 0 16px;
    margin: 0 auto;
  }

  .homepage {
    padding: 24px 16px;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  header.site-header {
    padding: 0;
  }

  footer.site-footer {
    padding: 10px 0;
    font-size: 12px;
  }

  .footer-container {
    padding: 0 12px;
  }
}

/* ===============================
   About Section
================================= */
.about-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background-color: #1f1f1f;
  color: #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  position: relative;
}

.about-section h1 {
  font-size: 40px;
  font-weight: 700;
  color: #4ea1ff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: pulseGlow 4s ease-in-out infinite;
}

.about-section h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 2px;
}

.about-section p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
  font-weight: 400;
}

.about-section strong {
  font-size: 20px;
  color: #82c4ff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===============================
   Contact Section
================================= */
.contact-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background-color: #1f1f1f;
  color: #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  position: relative;
}

.contact-section h1 {
  font-size: 40px;
  font-weight: 700;
  color: #4ea1ff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: pulseGlow 4s ease-in-out infinite;
}

.contact-section p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
  font-weight: 400;
}

.contact-section strong {
  font-size: 20px;
  color: #82c4ff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===============================
   TradingView Widget (Unified & Fixed)
================================= */
.header-ticker {
  width: 100%;
  position: relative;
  z-index: 100;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
}

/* Main container styling */
.tradingview-widget-container {
  position: relative;
  z-index: 101;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -2px 8px rgba(0, 246, 255, 0.1);
  padding: 10px 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  overflow: hidden;
}

/* Decorative glow bar */
.tradingview-widget-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, #00f6ff, #ff00c8, #00f6ff);
  animation: glow-scroll 6s linear infinite;
  z-index: 102;
}

/* Optional top accent bar */
.header-ticker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #00f6ff, #ff00c8);
  animation: flickerGlow 1.5s ease-in-out infinite;
  z-index: 102;
}

/* Widget inner content */
.tradingview-widget-container__widget {
  max-width: 100%;
  overflow: hidden;
}

/* Ticker text styling */
.tradingview-widget-container__widget span {
  color: #e0e0e0;
  text-shadow: 0 0 4px rgba(255,255,255,0.1);
  transition: transform 0.2s ease, color 0.2s ease;
}

.tradingview-widget-container__widget span:hover {
  transform: scale(1.05);
  color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .tradingview-widget-container {
    font-size: 0.85rem;
    padding: 6px 0;
  }
}

/* Glow animations */
@keyframes flickerGlow {
  0%, 100% { opacity: 0.2; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.05); }
}

@keyframes glow-scroll {
  0% { left: -100%; }
  100% { left: 100%; }
}


/* ===============================
   Stock Screener Page
================================= */
.stock-screener-page {
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  background-color: transparent;
  position: relative;
  z-index: 1;
  font-family: inherit;
  color: #e0e0e0;
}

/* ===============================
   Screener Wrapper
================================= */
.screener-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  border-radius: 16px;

  background: rgba(30, 32, 40, 0.9);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  border: 1px solid rgba(78,161,255,0.1);

  position: relative;
  overflow: hidden;
}

/* Animated Border Accent */
.screener-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, #4ea1ff, #ff00c8, #4ea1ff);
  background-size: 200% 200%;
  animation: borderFlow 10s linear infinite;

  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===============================
   Screener Header
================================= */
.screener-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.screener-header h1 {
  font-size: 52px;
  font-weight: 700;
  color: #4ea1ff;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
  animation: pulseGlow 4s ease-in-out infinite;
  position: relative;
}

.screener-header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #4ea1ff, #82c4ff);
  border-radius: 2px;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 4px rgba(78, 161, 255, 0.4), 0 0 8px rgba(78, 161, 255, 0.2);
    color: #4ea1ff;
  }
  50% {
    text-shadow: 0 0 6px rgba(130, 196, 255, 0.5), 0 0 12px rgba(130, 196, 255, 0.3);
    color: #82c4ff;
  }
  100% {
    text-shadow: 0 0 4px rgba(78, 161, 255, 0.4), 0 0 8px rgba(78, 161, 255, 0.2);
    color: #4ea1ff;
  }
}

.screener-subtext {
  font-size: 18px;
  font-weight: 400;
  color: #bbb;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ===============================
   Screener Widget
================================= */
.screener-widget {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* ===============================
   Mobile Optimization (≤600px)
================================= */
@media (max-width: 600px) {
  .blog-header h1,
  .screener-header h1,
  .about-section h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .glow-spot {
    width: 200px;
    height: 200px;
    filter: blur(60px);
  }
  .blog-subtext,
  .screener-subtext,
  .about-section p {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 12px;
  }

  .post-full,
  .about-section,
  .contact-section,
  .screener-wrapper {
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-full h2 {
    font-size: 22px;
  }

  .post-full .content {
    font-size: 16px;
    line-height: 1.6;
  }

  .post-return a,
  .back-link a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .tradingview-widget-container {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  .screener-header h1::after,
  .blog-header h1::after,
  .about-section h1::after {
    width: 40px;
    height: 3px;
  }

  .screener-subtext {
    font-size: 15px;
    margin-top: 12px;
  }

  .footer-links a {
    font-size: 0.75rem;
    margin: 0 6px;
  }

  .footer-disclaimer {
    font-size: 0.75rem;
  }
}

.screener {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  font-family: 'Inter', sans-serif;
  background: #0e0e0e;
  color: #e0e0e0;
}

.screener h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #00bfff;
  margin-bottom: 0.5em;
}

.screener-note {
  text-align: center;
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 2rem;
}

.screener-columns {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.screener-section {
  flex: 1;
  min-width: 300px;
}

.screener-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #00bfff;
  border-left: 4px solid #00bfff;
  padding-left: 12px;
}

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

.stock-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.05);
  transition: transform 0.2s ease;
}

.stock-card:hover {
  transform: translateY(-4px);
}

.stock-card .ticker {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.stock-card .price {
  font-size: 1rem;
  margin-bottom: 4px;
}

.stock-card .change {
  font-size: 0.9rem;
  font-weight: bold;
}

.pos { color: #2ecc71; }
.neg { color: #e74c3c; }

.screener-updated {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
}




