/*
Theme Name: Indicops - Transparent AI Journalism
Theme URI: https://indicops.in
Author: Indicops
Description: A modern AI & Data news theme inspired by the Indian tricolor — bold, animated, and fast.
Version: 2.0.0
License: GNU General Public License v2 or later
Tags: news, magazine, custom-logo, featured-images, animation
Text Domain: indicops
*/

/* =============================================
   VARIABLES & ROOT
============================================= */
:root {
  --saffron: #FF9933;
  --saffron-light: #FFB347;
  --saffron-dark: #e6820a;
  --green: #138808;
  --green-light: #19b80b;
  --green-dark: #0d6606;
  --white: #ffffff;
  --chakra-navy: #000080;
  --bg-primary: #080812;
  --bg-secondary: #0f0f1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 153, 51, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-saffron: rgba(255, 153, 51, 0.4);
  --border-green: rgba(19, 136, 8, 0.4);
  --text-primary: #f0f0f0;
  --text-secondary: #9090a0;
  --text-muted: #555565;
  --glow-saffron: 0 0 20px rgba(255, 153, 51, 0.5);
  --glow-green: 0 0 20px rgba(19, 136, 8, 0.5);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,153,51,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(19,136,8,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,0,128,0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--saffron), var(--green));
  border-radius: 3px;
}
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
a { color: var(--saffron); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--saffron-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   KEYFRAME ANIMATIONS
============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,153,51,0.3)); }
  50%       { filter: drop-shadow(0 0 20px rgba(255,153,51,0.9)); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tricolorFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes shimmerSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes borderGlow {
  0%,100% { box-shadow: 0 0 8px rgba(255,153,51,0.2); border-color: rgba(255,153,51,0.3); }
  50%      { box-shadow: 0 0 24px rgba(255,153,51,0.6); border-color: rgba(255,153,51,0.8); }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wavePulse {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50%       { transform: scaleX(1.05); opacity: 1; }
}

/* =============================================
   TRICOLOR STRIPES
============================================= */
.tricolor-stripe {
  height: 4px;
  background: linear-gradient(to right,
    var(--saffron) 0%, var(--saffron) 33.33%,
    var(--white) 33.33%, var(--white) 66.66%,
    var(--green) 66.66%, var(--green) 100%);
}
.tricolor-stripe-animated {
  height: 3px;
  background: linear-gradient(90deg,
    var(--saffron), var(--white), var(--green),
    var(--saffron), var(--white), var(--green));
  background-size: 200% auto;
  animation: tricolorFlow 4s linear infinite;
}

/* =============================================
   SCROLL PROGRESS
============================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(to right, var(--saffron), var(--white), var(--green));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   HEADER
============================================= */
#masthead {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8, 8, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  animation: slideInDown 0.6s ease both;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}

/* Branding */
.site-branding { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.chakra-ring {
  width: 42px; height: 42px;
  border: 2px solid rgba(0,0,128,0.6);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  animation: rotateSlow 12s linear infinite;
  background: conic-gradient(
    var(--saffron) 0deg 30deg,
    transparent 30deg 60deg,
    var(--green) 60deg 90deg,
    transparent 90deg 120deg,
    var(--saffron) 120deg 150deg,
    transparent 150deg 180deg,
    var(--green) 180deg 210deg,
    transparent 210deg 240deg,
    var(--saffron) 240deg 270deg,
    transparent 270deg 300deg,
    var(--green) 300deg 330deg,
    transparent 330deg 360deg
  );
  opacity: 0.7;
}
.chakra-ring::after {
  content: '⊕';
  position: absolute;
  font-size: 0.9rem;
  color: var(--white);
  animation: rotateSlow 12s linear infinite reverse;
}
.site-logo-text {
  font-size: 1.55rem; font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--saffron) 0%, #fff 50%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: pulseGlow 4s ease-in-out infinite;
  line-height: 1;
}
.site-logo-text a { background: inherit; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-tagline { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

/* Navigation */
#site-navigation { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border-subtle); }
.nav-menu-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.main-navigation ul { display: flex; list-style: none; gap: 2px; flex-wrap: wrap; }
.main-navigation ul li a {
  display: block; padding: 7px 14px;
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  position: relative; transition: var(--transition);
}
.main-navigation ul li a::after {
  content: '';
  position: absolute; bottom: 3px; left: 14px; right: 14px;
  height: 2px; border-radius: 1px;
  background: linear-gradient(to right, var(--saffron), var(--green));
  transform: scaleX(0); transition: transform 0.3s ease;
}
.main-navigation ul li a:hover { color: var(--white); background: rgba(255,153,51,0.07); }
.main-navigation ul li a:hover::after { transform: scaleX(1); }
.main-navigation ul li.current-menu-item > a { color: var(--saffron); }
.main-navigation ul li.current-menu-item > a::after { transform: scaleX(1); }

/* ── Dropdown sub-menus ───────────────────────────────────────────────────── */
.main-navigation ul li { position: relative; }

/* Caret on parent items that have children */
.main-navigation ul li.menu-item-has-children > a::before {
  content: '▾';
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 0.55rem; opacity: 0.5; transition: 0.3s ease;
  pointer-events: none;
}
.main-navigation ul li.menu-item-has-children > a { padding-right: 22px; }
.main-navigation ul li.menu-item-has-children.open > a::before { opacity: 1; color: var(--saffron); transform: translateY(-50%) rotate(180deg); }

/* Sub-menu panel */
.main-navigation ul .sub-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #0f0f1e;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  z-index: 500;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: slideInDown 0.18s ease both;
}
.main-navigation ul li.open > .sub-menu { display: flex; }

/* Sub-menu items */
.main-navigation ul .sub-menu li { width: 100%; }
.main-navigation ul .sub-menu li a {
  display: block; padding: 9px 16px;
  font-size: 0.76rem; font-weight: 500; color: #9090a0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 0; white-space: nowrap;
}
.main-navigation ul .sub-menu li:last-child a { border-bottom: none; }
.main-navigation ul .sub-menu li a::after { display: none; }
.main-navigation ul .sub-menu li a:hover { background: rgba(255,153,51,0.07); color: #FF9933; }
.main-navigation ul .sub-menu li.current-menu-item > a { color: #FF9933; }

/* Nested sub-sub-menu (level 3) */
.main-navigation ul .sub-menu .sub-menu {
  top: 0; left: 100%; border-radius: 10px;
}

/* Mobile: sub-menus as accordion */
@media (max-width: 820px) {
  .main-navigation ul .sub-menu {
    position: static; box-shadow: none; border: none; border-radius: 0;
    background: rgba(255,255,255,0.03); animation: none;
    border-left: 2px solid rgba(255,153,51,0.3); margin-left: 14px;
  }
  .main-navigation ul .sub-menu li a { padding: 7px 14px; font-size: 0.74rem; }
}

/* Header Search */
.header-search { display: flex; align-items: center; gap: 10px; }
.header-search form { display: flex; align-items: center; }
.header-search input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.82rem; outline: none;
  transition: var(--transition); width: 190px;
}
.header-search input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.12);
  width: 240px;
}
.header-search input::placeholder { color: var(--text-muted); }

/* Live badge */
.live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,0,0,0.1); border: 1px solid rgba(255,0,0,0.3);
  color: #ff4444; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 20px;
  animation: borderGlow 2s ease-in-out infinite;
}
.live-dot {
  width: 6px; height: 6px; background: #ff4444; border-radius: 50%;
  animation: pulseGlow 1s ease-in-out infinite;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border-subtle);
  color: var(--text-primary); padding: 7px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.1rem; transition: var(--transition);
}
.menu-toggle:hover { border-color: var(--border-saffron); color: var(--saffron); }

/* =============================================
   BREAKING NEWS TICKER
============================================= */
.breaking-news-bar {
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron));
  padding: 7px 0; overflow: hidden; position: relative;
}
.ticker-label {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  background: var(--bg-primary); color: var(--saffron);
  font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em;
  padding: 3px 10px; border-radius: 3px; white-space: nowrap; z-index: 2;
}
.ticker-wrapper { overflow: hidden; margin-left: 130px; }
.ticker-content {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  color: var(--bg-primary); font-weight: 600; font-size: 0.8rem;
}
.ticker-content a { color: var(--bg-primary); }
.ticker-content a:hover { text-decoration: underline; }
.ticker-sep { margin: 0 18px; opacity: 0.4; font-size: 0.7rem; }

/* =============================================
   HERO SECTION
============================================= */
.hero-section { padding: 36px 0; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 20px; align-items: start;
}

/* Main hero post */
.hero-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-secondary); cursor: pointer;
  animation: fadeInLeft 0.9s ease both;
  border: 1px solid var(--border-subtle);
}
.hero-main:hover .hero-img { transform: scale(1.06); }
.hero-img-wrap { height: 460px; overflow: hidden; position: relative; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,153,51,0.15), rgba(8,8,18,0.95), rgba(19,136,8,0.15));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  display: grid; place-items: center;
}
.hero-placeholder-icon { font-size: 6rem; opacity: 0.15; animation: floatUp 4s ease-in-out infinite; }
.hero-shine {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.8s ease;
}
.hero-main:hover .hero-shine { left: 150%; }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
  background: linear-gradient(to top, rgba(8,8,18,0.98) 0%, rgba(8,8,18,0.6) 60%, transparent 100%);
}
.hero-category {
  display: inline-block; font-size: 0.62rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 14px;
}
.hero-title {
  font-size: 2rem; line-height: 1.2; color: var(--white); margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--saffron); }
.hero-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 0.76rem; color: rgba(255,255,255,0.55);
}

/* Hero sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: 14px; animation: fadeInRight 0.9s ease 0.2s both; }
.hero-side-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 14px;
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.hero-side-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--saffron), var(--green));
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s ease;
}
.hero-side-card:hover { background: var(--bg-card-hover); border-color: var(--border-saffron); transform: translateX(6px); box-shadow: 4px 0 20px rgba(255,153,51,0.08); }
.hero-side-card:hover::before { transform: scaleY(1); }
.hero-side-thumb { width: 96px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.hero-side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-side-card:hover .hero-side-thumb img { transform: scale(1.08); }
.hero-side-thumb-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(255,153,51,0.15), rgba(19,136,8,0.15));
}
.hero-side-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hero-side-cat { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--saffron); }
.hero-side-title { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side-title a { color: var(--text-primary); }
.hero-side-title a:hover { color: var(--saffron); }
.hero-side-date { font-size: 0.68rem; color: var(--text-muted); margin-top: auto; }

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: var(--bg-secondary); margin: 36px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.stats-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,153,51,0.02) 0%, rgba(19,136,8,0.02) 50%, rgba(255,153,51,0.02) 100%);
  background-size: 200% auto; animation: gradientShift 6s linear infinite;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 22px 20px; text-align: center;
  border-right: 1px solid var(--border-subtle);
  transition: var(--transition); position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,153,51,0.04); }
.stat-number {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--saffron), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: countUp 0.6s ease both;
  line-height: 1;
}
.stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* =============================================
   SECTION HEADERS
============================================= */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.section-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 56px; height: 2px;
  background: linear-gradient(to right, var(--saffron), var(--green));
  border-radius: 1px; animation: wavePulse 3s ease-in-out infinite;
}
.section-title { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); }
.section-title span { color: var(--saffron); }
.section-link {
  font-size: 0.75rem; color: var(--text-secondary);
  border: 1px solid var(--border-subtle); padding: 5px 12px;
  border-radius: 20px; transition: var(--transition); white-space: nowrap;
}
.section-link:hover { color: var(--saffron); border-color: var(--border-saffron); background: rgba(255,153,51,0.06); }

/* =============================================
   CATEGORY BADGES
============================================= */
.cat-ai       { background: var(--saffron);    color: #111; }
.cat-data     { background: var(--green);       color: #fff; }
.cat-models   { background: var(--chakra-navy); color: #fff; }
.cat-research { background: #6C3EE8;            color: #fff; }
.cat-industry { background: #E84040;            color: #fff; }
.cat-default  { background: rgba(255,255,255,0.12); color: #fff; }

/* =============================================
   NEWS CARDS
============================================= */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-grid-2col { grid-template-columns: repeat(2,1fr); }
.news-grid-4col { grid-template-columns: repeat(4,1fr); }

.news-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); position: relative; cursor: pointer;
  animation: fadeInUp 0.6s ease both;
}
.news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card:nth-child(2) { animation-delay: 0.10s; }
.news-card:nth-child(3) { animation-delay: 0.15s; }
.news-card:nth-child(4) { animation-delay: 0.20s; }
.news-card:nth-child(5) { animation-delay: 0.25s; }
.news-card:nth-child(6) { animation-delay: 0.30s; }
.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-saffron);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,153,51,0.08);
}

/* Card shimmer on hover */
.news-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s ease; z-index: 1; pointer-events: none;
}
.news-card:hover::before { left: 150%; }

.card-thumb { height: 196px; overflow: hidden; position: relative; background: var(--bg-secondary); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .card-thumb img { transform: scale(1.08); }
.card-thumb-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(255,153,51,0.08), rgba(19,136,8,0.08));
  color: rgba(255,255,255,0.15);
}
.card-category {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.58rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 4px 8px; border-radius: 3px; z-index: 2;
}
.card-body { padding: 18px; }
.card-title {
  font-size: 0.93rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--saffron); }
.card-excerpt {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.7rem; color: var(--text-muted);
  padding-top: 12px; border-top: 1px solid var(--border-subtle);
}
.card-read-more {
  color: var(--saffron); font-weight: 600; font-size: 0.7rem;
  display: flex; align-items: center; gap: 3px;
  opacity: 0; transition: var(--transition); transform: translateX(-6px);
}
.news-card:hover .card-read-more { opacity: 1; transform: translateX(0); }

/* =============================================
   ARTICLE LIST (Sidebar / compact)
============================================= */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-list-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px;
  padding: 12px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); transition: var(--transition); position: relative;
}
.article-list-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--saffron), var(--green));
  border-radius: 3px 0 0 3px; transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s ease;
}
.article-list-item:hover { border-color: var(--border-saffron); transform: translateX(4px); background: var(--bg-card-hover); }
.article-list-item:hover::before { transform: scaleY(1); }
.article-list-thumb { width: 86px; height: 62px; border-radius: var(--radius-sm); overflow: hidden; }
.article-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.article-list-title { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-title a { color: var(--text-primary); }
.article-list-title a:hover { color: var(--saffron); }
.article-list-meta { font-size: 0.68rem; color: var(--text-muted); margin-top: auto; }

/* =============================================
   CONTENT SECTIONS
============================================= */
.content-section { padding: 44px 0; }
.category-section { padding: 44px 0; border-top: 1px solid var(--border-subtle); }

/* =============================================
   NEWSLETTER STRIP
============================================= */
.newsletter-strip {
  background: linear-gradient(135deg, rgba(255,153,51,0.08), rgba(8,8,18,0.9) 40%, rgba(19,136,8,0.08));
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 48px 40px; text-align: center; margin: 48px 0;
  position: relative; overflow: hidden;
}
.newsletter-strip::before {
  content: ''; position: absolute; top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,153,51,0.03) 60deg, transparent 120deg);
  animation: rotateSlow 25s linear infinite;
}
.newsletter-title { font-size: 1.6rem; font-weight: 900; color: var(--white); margin-bottom: 8px; position: relative; z-index: 1; }
.newsletter-sub { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 28px; position: relative; z-index: 1; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle);
  color: var(--text-primary); padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 0.85rem; outline: none; transition: var(--transition);
}
.newsletter-input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,153,51,0.12); }
.newsletter-input::placeholder { color: var(--text-muted); }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 700; cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #111;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  color: #111; box-shadow: var(--glow-saffron); transform: translateY(-2px);
}
.btn-outline {
  background: transparent; border: 1px solid var(--border-saffron); color: var(--saffron);
}
.btn-outline:hover { background: rgba(255,153,51,0.1); color: var(--saffron); transform: translateY(-2px); }
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
}
.btn-green:hover { box-shadow: var(--glow-green); transform: translateY(-2px); }

/* =============================================
   TAGS
============================================= */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 5px 13px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 20px; font-size: 0.74rem; color: var(--text-secondary);
  transition: var(--transition);
}
.tag:hover {
  background: rgba(255,153,51,0.08); border-color: var(--border-saffron);
  color: var(--saffron); transform: translateY(-2px);
}

/* =============================================
   PAGINATION
============================================= */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 0.85rem; transition: var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--saffron); border-color: var(--saffron); color: #111; font-weight: 700;
}
.page-numbers.dots { border-color: transparent; background: transparent; }

/* =============================================
   SINGLE POST
============================================= */
.single-hero {
  padding: 52px 0 36px; position: relative;
}
.single-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 240px;
  background: linear-gradient(to bottom, rgba(255,153,51,0.05), transparent);
  pointer-events: none;
}
.post-header { max-width: 840px; margin: 0 auto; position: relative; z-index: 1; }
.post-categories { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.post-category {
  font-size: 0.62rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 5px 10px; border-radius: 3px;
}
.post-title { font-size: 2.2rem; line-height: 1.2; color: var(--white); margin-bottom: 22px; }
.post-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle); margin-bottom: 36px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.post-meta-bar span { display: flex; align-items: center; gap: 5px; }
.post-featured-image {
  max-width: 840px; margin: 0 auto 44px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255,153,51,0.06);
  border: 1px solid var(--border-subtle);
}
.post-featured-image img { width: 100%; height: auto; }
.post-content-wrap {
  max-width: 840px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start;
}
.post-body { font-size: 1.05rem; color: #ccc; line-height: 1.88; }
.post-body h2 { font-size: 1.5rem; color: var(--white); margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.post-body h3 { font-size: 1.2rem; color: var(--white); margin: 28px 0 12px; }
.post-body p { margin-bottom: 22px; }
.post-body a { color: var(--saffron); border-bottom: 1px solid rgba(255,153,51,0.3); }
.post-body a:hover { border-bottom-color: var(--saffron); }
.post-body blockquote {
  border-left: 4px solid var(--saffron); padding: 18px 24px; margin: 28px 0;
  background: rgba(255,153,51,0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-secondary); font-size: 1.05em;
}
.post-body pre {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 20px; overflow-x: auto;
  font-size: 0.88rem; margin: 24px 0; line-height: 1.7;
}
.post-body code {
  background: rgba(255,153,51,0.1); padding: 2px 7px;
  border-radius: 4px; font-size: 0.88em; color: var(--saffron);
}
.post-body pre code { background: none; color: #ccc; padding: 0; }
.post-body ul, .post-body ol { margin: 16px 0 22px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body img { border-radius: var(--radius-sm); margin: 24px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-body th { background: var(--bg-secondary); color: var(--saffron); font-size: 0.78rem; text-transform: uppercase; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border-saffron); }
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; }
.post-body tr:hover td { background: var(--bg-card); }
.post-body hr { border: none; border-top: 1px solid var(--border-subtle); margin: 36px 0; }

/* Post Tags Footer */
.post-footer { max-width: 840px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.post-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.76rem; font-weight: 600; border: 1px solid var(--border-subtle);
  color: var(--text-secondary); transition: var(--transition);
}
.share-btn:hover { border-color: var(--border-saffron); color: var(--saffron); background: rgba(255,153,51,0.06); }

/* =============================================
   SIDEBAR / WIDGETS
============================================= */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 20px; transition: var(--transition);
}
.widget:hover { border-color: var(--border-saffron); }
.widget-title {
  font-size: 0.72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--saffron); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
}
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.widget ul li a {
  font-size: 0.82rem; color: var(--text-secondary); display: flex;
  align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.widget ul li a:hover { color: var(--saffron); padding-left: 6px; }
.widget ul li:last-child a { border-bottom: none; }

/* =============================================
   FOOTER
============================================= */
/* ── Footer ─────────────────────────────────────────────────────────────── */
#colophon { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); margin-top: 60px; }

.footer-main { padding: 56px 0 44px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.footer-col { min-width: 0; overflow: hidden; }

/* ── Col heading ── */
.footer-col-title {
  font-size: 0.72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--white);
  margin: 0 0 16px; display: flex; align-items: center; gap: 6px;
}
.footer-col-title svg { opacity: .6; flex-shrink: 0; }

/* ── Col 1: About ── */
.footer-brand-name {
  font-size: 1.3rem; font-weight: 900; color: var(--white);
  letter-spacing: -.02em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo-img   { max-height: 44px; width: auto; }
.footer-logo-chakra {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--saffron); border-top-color: var(--green);
  animation: spin 3s linear infinite;
}
.footer-about-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; margin: 0 0 8px; }
.footer-tagline-text { font-size: 0.72rem; color: var(--saffron); font-weight: 600; margin: 0 0 20px; opacity: .9; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }

/* social-btn used in both header and footer */
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--text-secondary); transition: var(--transition);
  text-decoration: none; flex-shrink: 0;
}
.social-btn svg { width: 15px; height: 15px; }
.social-btn:hover {
  background: rgba(255,153,51,.1); border-color: var(--border-saffron);
  color: var(--saffron); transform: translateY(-3px);
}

/* ── Col 2: Legal ── */
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--saffron); padding-left: 6px; }

/* ── Col 3: X Widget ── */
.footer-x-embed {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  margin-bottom: 12px;
  min-height: 80px;
  max-width: 100%;
}
.footer-x-embed iframe,
.footer-x-embed .twitter-timeline { max-width: 100% !important; width: 100% !important; }
.footer-x-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 700;
  color: #1da1f2;
  background: rgba(29,161,242,.08);
  border: 1px solid rgba(29,161,242,.2);
  padding: 7px 14px; border-radius: 20px;
  text-decoration: none; transition: var(--transition);
}
.footer-x-btn:hover { background: rgba(29,161,242,.18); color: #1da1f2; }

/* ── Col 4: Contact ── */
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-icon {
  font-size: 0.9rem; margin-top: 1px; flex-shrink: 0;
  width: 26px; text-align: center;
}
.footer-contact-label {
  display: block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1px;
}
.footer-contact-row a,
.footer-contact-row span:not(.footer-contact-label) {
  font-size: 0.78rem; color: var(--text-secondary);
  text-decoration: none; word-break: break-word; transition: color .2s;
}
.footer-contact-row a:hover { color: var(--saffron); }
.footer-tip-cta {
  display: block; text-align: center; font-size: 0.76rem;
  padding: 9px 14px; border-radius: var(--radius-sm);
  white-space: normal;
}

/* ── Bottom bar ── */
.footer-bottom-bar { border-top: 1px solid var(--border-subtle); background: rgba(0,0,0,.18); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding: 14px 0;
  font-size: 0.73rem; color: var(--text-muted);
}
.footer-bottom-inner a { color: var(--text-muted); transition: color .2s; }
.footer-bottom-inner a:hover { color: var(--saffron); }
.footer-bottom-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.footer-bottom-inner nav span { font-size: 0.5rem; opacity: .4; }

/* =============================================
   PAGE / ARCHIVE HEADERS
============================================= */
.page-hero {
  padding: 64px 0 44px;
  background: linear-gradient(to bottom, rgba(255,153,51,0.05), transparent);
  border-bottom: 1px solid var(--border-subtle); margin-bottom: 50px; text-align: center;
}
.page-hero-title { font-size: 2.2rem; color: var(--white); margin-bottom: 10px; }
.page-hero-title span { color: var(--saffron); }
.page-hero-sub { font-size: 0.9rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.archive-grid { padding: 0 0 60px; }

/* =============================================
   404 PAGE
============================================= */
.error-404-wrap { text-align: center; padding: 100px 0; }
.error-code {
  font-size: 9rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--saffron), var(--white), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: pulseGlow 2s ease-in-out infinite;
}
.error-title { font-size: 1.8rem; color: var(--white); margin: 16px 0 10px; }
.error-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 36px; }

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--saffron), var(--green));
  border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  color: #fff; font-size: 1.1rem;
  opacity: 0; transform: translateY(20px); transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255,153,51,0.3);
}
.scroll-top-btn.show { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(255,153,51,0.5); }

/* =============================================
   UTILITY
============================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-saffron { color: var(--saffron); }
.text-green { color: var(--green); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-img-wrap { height: 380px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4col { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .post-content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; }
  .header-search { display: none; }
  .live-badge { display: none; }
  .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; padding: 12px 0; }
  .main-navigation ul.active { display: flex; }
  .hero-img-wrap { height: 280px; }
  .hero-title { font-size: 1.4rem; }
  .hero-content { padding: 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid-4col { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .post-title { font-size: 1.55rem; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .error-code { font-size: 6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   AI SIGNAL DASHBOARD — Homepage Section
============================================= */
.aisig-dashboard {
  margin: 48px 0;
  background: linear-gradient(160deg, rgba(255,153,51,0.04) 0%, rgba(8,8,18,0.0) 50%, rgba(19,136,8,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 36px 32px;
  position: relative; overflow: hidden;
}
.aisig-dashboard::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(255,153,51,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 100% 100%, rgba(19,136,8,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Header */
.aisig-dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.aisig-dash-badge {
  display: inline-block; background: rgba(255,153,51,0.1);
  border: 1px solid rgba(255,153,51,0.3); color: #FF9933;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.aisig-dash-title {
  font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 6px;
}
.aisig-dash-sub { font-size: 0.8rem; color: #555565; }
.aisig-dash-cta { font-size: 0.78rem; padding: 9px 18px; white-space: nowrap; }

/* KPI row */
.aisig-kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.aisig-kpi {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 18px 16px; text-align: center;
  transition: 0.3s ease;
}
.aisig-kpi:hover { border-color: rgba(255,153,51,0.25); background: rgba(255,153,51,0.04); }
.aisig-kpi-icon { font-size: 1.4rem; margin-bottom: 8px; }
.aisig-kpi-val  { font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 4px; }
.aisig-kpi-label { font-size: 0.78rem; font-weight: 700; color: #FF9933; margin-bottom: 3px; }
.aisig-kpi-sub   { font-size: 0.66rem; color: #555565; }

/* Charts row */
.aisig-charts-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px;
}
.aisig-chart-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 22px;
}
.aisig-chart-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.aisig-chart-icon { font-size: 1.2rem; }
.aisig-chart-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.aisig-chart-sub   { font-size: 0.7rem; color: #555565; }
.aisig-pie-wrap  { max-width: 200px; margin: 0 auto 16px; }
.aisig-bar-wrap  { position: relative; }
.aisig-empty { text-align: center; padding: 40px 20px; font-size: 0.82rem; color: #555565; }
.aisig-empty a { color: #FF9933; }

/* Pie legend */
.aisig-legend {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 180px; overflow-y: auto;
}
.aisig-legend::-webkit-scrollbar { width: 4px; }
.aisig-legend::-webkit-scrollbar-track { background: transparent; }
.aisig-legend::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.aisig-legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.69rem; color: #9090a0;
}
.aisig-legend-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.aisig-legend-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aisig-legend-val   { font-weight: 700; color: #ccc; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .aisig-charts-row  { grid-template-columns: 1fr; }
  .aisig-kpi-row     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aisig-dashboard { padding: 24px 18px; }
  .aisig-kpi-row   { grid-template-columns: repeat(2, 1fr); }
  .aisig-dash-title { font-size: 1.2rem; }
}

/* AUTH STYLES APPENDED */
