@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #06080f;
  --bg2: #0d1117;
  --bg3: #111827;
  --card: #131c2e;
  --card2: #0f172a;
  --border: #1e2d45;
  --border2: #243350;
  --text: #e8edf5;
  --text2: #8899b0;
  --text3: #4a6080;
  --green: #00e676;
  --green2: #00c853;
  --green3: #1a3a28;
  --red: #ff5252;
  --red3: #3a1a1a;
  --blue: #3b82f6;
  --accent: #00c853;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

.light-mode {
  --bg: #f1f5f9;
  --bg2: #ffffff;
  --bg3: #e2e8f0;
  --card: #ffffff;
  --card2: #f8fafc;
  --border: #cbd5e1;
  --border2: #94a3b8;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --green: #00b96b;
  --green2: #00a85f;
  --green3: #e6f9f1;
  --red: #e53e3e;
  --red3: #fff5f5;
  --blue: #2563eb;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden
}

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

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.light-mode .nav {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e5f0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.light-mode .store-badge {
  border-color: rgba(0,0,0,0.12) !important;
  background: #f6f7fb !important;
}

.light-mode body {
  background: linear-gradient(160deg, #f1f5f9 0%, #cbd5e1 100%);
}

.light-mode .hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 60%, #e8f5f0 100%);
  border-bottom: 1px solid #e2e5f0;
}

.light-mode .hero-badge {
  background: linear-gradient(90deg,#e6f9f1,#d0f5e5);
  color: #00865a;
  border: 1px solid #b3edd4;
  font-weight: 700;
}

.light-mode .hero-title { color: #0d1526; }
.light-mode .hero-sub { color: #4a5568; }
.light-mode .hstat-val { color: #0d1526; }
.light-mode .hstat-label { color: #9aa5b4; }

.light-mode .section-title {
  color: #0d1526;
  font-weight: 800;
}

.light-mode .section-title span { color: var(--green2); }

.light-mode .nepse-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.light-mode .nepse-card .nepse-title {
  color: var(--text2);
}
.light-mode .nepse-card .nepse-index {
  color: var(--text);
  text-shadow: none;
}
.light-mode .nepse-card .market-status {
  color: var(--green2);
}
.light-mode .nepse-card .meta-label {
  color: var(--text3);
}
.light-mode .nepse-card .meta-val {
  color: var(--text);
}
.light-mode .nepse-card .meta-item {
  background: var(--bg3);
}

.light-mode .ov-card {
  background: #ffffff;
  border: 1px solid #e2e5f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all .2s;
}

.light-mode .ov-card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.10);
  border-color: #2563eb;
  transform: translateY(-2px);
}

.light-mode .ov-sym { color: #2563eb; font-weight: 800; }
.light-mode .ov-name { color: #4a5568; }
.light-mode .ov-price { color: #0d1526; font-weight: 700; }

.light-mode .gl-card {
  background: #ffffff;
  border: 1px solid #e2e5f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 14px;
}

.light-mode .gl-sym { color: #2563eb; font-weight: 700; }
.light-mode .gl-price { color: #0d1526; }
.light-mode .section { background: transparent; }
.light-mode .divider { border-color: #e2e5f0; opacity: 0.6; }
.light-mode .see-all { color: var(--green2); font-weight: 600; }

.light-mode .ipo-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e5f0;
  transition: all .2s;
}
.light-mode .ipo-card:hover {
  box-shadow: 0 8px 28px rgba(0,168,95,0.13);
  border-color: var(--green2);
  transform: translateY(-3px);
}
.light-mode .premium-banner {
  background: linear-gradient(135deg, #e6f9f1 0%, #d5f7e8 100%) !important;
  border: 1px solid #b3edd4 !important;
  box-shadow: 0 8px 24px rgba(0, 168, 95, 0.08) !important;
}
.light-mode .premium-banner h3 {
  color: var(--text) !important;
}
.light-mode .premium-banner h3 span {
  color: var(--green2) !important;
}
.light-mode .premium-banner p {
  color: var(--text2) !important;
}
.light-mode .premium-banner .pb-feat {
  color: var(--text2) !important;
}
.light-mode .premium-banner .pb-feat i {
  color: var(--green2) !important;
}
.light-mode .premium-banner::before {
  background: radial-gradient(circle, rgba(0, 168, 95, 0.15), transparent 70%) !important;
}

.light-mode .gs-card {
  background: #ffffff;
  border: 1px solid #e2e5f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all .2s;
}



.light-mode .gs-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.nav-store-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.store-link {
  display: inline-flex;
  transition: opacity 0.15s;
}

.store-link:hover { opacity: 0.8; }

.store-link img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--green2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #000
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0
}

.nav-link {
  padding: 6px 12px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 400;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg3)
}

.nav-item-dropdown { position: relative; display: inline-block; }

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 100;
  padding: 8px;
  margin-top: 5px;
}

.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.light-mode .nav-dropdown-content { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

@keyframes navDropdownFadeUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-item-dropdown:hover .nav-dropdown-content {
  display: block;
  animation: navDropdownFadeUp 0.2s ease forwards;
}

.nav-dropdown-link {
  color: var(--text2);
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.nav-dropdown-link:hover { background-color: var(--bg3); color: var(--text); }
.nav-dropdown-link:last-child { margin-bottom: 0; }

.nav-right { display: flex; align-items: center; gap: 8px }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font)
}

.btn-ghost:hover { border-color: var(--green2); color: var(--green) }

.btn-green {
  background: var(--green2);
  border: none;
  color: #000;
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font)
}

.btn-green:hover { background: var(--green); transform: translateY(-1px) }

.theme-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font)
}

/* TICKER */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative
}

.ticker-label {
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--bg2)
}

.ticker-track {
  display: flex;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  will-change: transform
}

.ticker-track:hover { animation-play-state: paused }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 11.5px;
  border-right: 1px solid var(--border)
}

.ticker-sym { font-weight: 600; font-family: var(--mono); letter-spacing: 0.3px }
.ticker-price { color: var(--text2) }
.up { color: var(--green) }
.dn { color: var(--red) }

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

/* HERO */
.hero {
  padding: 2.5rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green3);
  border: 1px solid rgba(0, 200, 83, .25);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 16px
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50% { opacity: .5; transform: scale(1.3) }
}

.hero h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 10px
}

.hero h1 span { color: var(--green) }

.hero-sub {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap }

.btn-primary {
  background: var(--green2);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s
}

.btn-primary:hover { background: var(--green); transform: translateY(-1px) }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s
}

.btn-outline:hover { border-color: var(--green2); color: var(--green) }

.hero-stats { display: flex; gap: 20px; margin-top: 24px }
.hstat { display: flex; flex-direction: column }
.hstat-val { font-size: 17px; font-weight: 600; letter-spacing: -0.3px }
.hstat-label { font-size: 11px; color: var(--text3); margin-top: 1px }

/* NEPSE CARD */
.nepse-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden
}

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

.nepse-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: .5px;
  text-transform: uppercase
}

.market-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green)
}

.nepse-index {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  font-family: var(--mono)
}

.nepse-change {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 16px
}

.change-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono)
}

.mini-chart { height: 72px; position: relative; display: none }
.mini-chart canvas { width: 100% !important; height: 72px !important }

.nepse-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px
}

.meta-item { background: var(--bg2); border-radius: 7px; padding: 8px 10px }
.meta-label { font-size: 10px; color: var(--text3); margin-bottom: 2px }
.meta-val { font-size: 13px; font-weight: 500; font-family: var(--mono) }

/* SECTION */
.section { padding: 1.5rem 1.5rem; max-width: 1200px; margin: 0 auto }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem
}

.section-title { font-size: 16px; font-weight: 600; letter-spacing: -0.2px }
.section-title span { color: var(--green) }

.see-all {
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px
}

.see-all:hover { color: var(--green) }

/* MARKET OVERVIEW CARDS */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }

.ov-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all .2s
}

.ov-card:hover { border-color: var(--border2); transform: translateY(-2px) }

.ov-sym { font-size: 13px; font-weight: 600; font-family: var(--mono); margin-bottom: 2px }
.ov-name { display: none }
.ov-price { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; font-family: var(--mono) }
.ov-change { font-size: 11px; font-weight: 500; margin-top: 2px }
.ov-bar { display: none }
.ov-bar-fill { display: none }

/* GAINERS/LOSERS TABLE */
.gl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px }

.gl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden
}

.gl-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px
}

.gl-table { width: 100%; border-collapse: collapse }

.gl-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border)
}

.gl-table tr:last-child td { border-bottom: none }
.gl-table tr:hover td { background: var(--bg3) }
.gl-table tr.skeleton td { border-bottom: 1px solid var(--border); pointer-events: none }
.gl-table tr.skeleton:last-child td { border-bottom: none }
.gl-sym { font-weight: 600; color: var(--text1) }
.gl-price { font-family: var(--mono); color: var(--text1) }

.pct-badge {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono)
}

.pct-up { background: var(--green3); color: var(--green) }
.pct-dn { background: var(--red3); color: var(--red) }

/* SECTOR HEATMAP (treemap) */
.treemap-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.treemap-cell {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.18s ease;
  border: 1px solid rgba(0,0,0,0.10);
  box-sizing: border-box;
  padding: 4px 5px;
  gap: 1px;
}

.treemap-cell:hover {
  filter: brightness(1.12) saturate(1.15);
  z-index: 10;
}



/* Cell content layers */
.tc-name {
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: -0.2px;
}

.tc-val {
  font-family: var(--mono);
  font-weight: 800;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.5px;
}

.tc-pct {
  font-family: var(--mono);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.tc-pt {
  font-family: var(--mono);
  font-weight: 500;
  text-align: center;
  line-height: 1;
  opacity: 0.75;
}



/* Keep heat-grid for Sector Volume */
.heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.heat-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}

.heat-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.heat-sym { font-size: 10px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; line-height: 1.3; }
.heat-val { font-size: 15px; font-weight: 800; color: var(--text); font-family: var(--mono); margin-bottom: 3px; letter-spacing: -0.3px; }
.heat-meta { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-family: var(--mono); font-weight: 700; }

.light-mode .heat-cell { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); }

@media(max-width:768px) {
  .treemap-container { height: 260px; }
  .treemap-cell-name { font-size: 9px; }
  .treemap-cell-pct { font-size: 9px; }
}

@media(max-width:480px) {
  .treemap-container { height: 220px; }
}

/* Skeleton */
.skeleton {
  animation: skeletonPulse 1.5s infinite ease-in-out;
  background: var(--card) !important;
  border-color: var(--border) !important;
  pointer-events: none;
}

.skeleton-line { background: var(--border); border-radius: 4px; margin: 0 auto; }

@keyframes skeletonPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* IPO SECTION */
.ipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }

.ipo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden
}

.ipo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green2)
}

.ipo-card:hover {
  border-color: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 200, 83, .1)
}

.ipo-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 8px
}

.ipo-company { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text) }
.ipo-sector { font-size: 10px; color: var(--text2); margin-bottom: 10px }

.ipo-detail {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px
}

.ipo-detail strong { color: var(--text); font-weight: 500 }

.light-mode .ipo-tag.tag-soon { background: #dbeafe; color: #1e40af }
.light-mode .ipo-tag.tag-open { background: #dcfce7; color: #166534 }
.light-mode .ipo-tag.tag-close { background: #fee2e2; color: #991b1b }
.light-mode .apply-btn { background: #dcfce7; color: #166534; border-color: rgba(0, 200, 83, .3) }
.light-mode .apply-btn:hover { background: var(--green2); color: #000 }

.ipo-progress { height: 3px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden }
.ipo-prog-fill { height: 100%; background: var(--green2); border-radius: 2px }
.ipo-countdown { font-size: 10px; color: var(--green); margin-top: 8px; text-align: center; }

/* FEAR & GREED INDEX */
.fgi-wrap { display: flex; gap: 0; }
.fgi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.fgi-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,193,7,.04) 0%, transparent 70%);
  pointer-events: none;
  transition: background .6s;
}
.fgi-card.zone-fear::before { background: radial-gradient(circle, rgba(255,82,82,.05) 0%, transparent 70%); }
.fgi-card.zone-greed::before { background: radial-gradient(circle, rgba(0,200,83,.05) 0%, transparent 70%); }

.fgi-inner {
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  gap: 32px;
  align-items: center;
}

/* Gauge */
.fgi-gauge-wrap { flex-shrink: 0; width: 260px; }
.fgi-gauge-wrap svg { filter: drop-shadow(0 4px 16px rgba(0,0,0,.18)); }

/* Center score panel */
.fgi-center { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.fgi-score-block { text-align: center; }
.fgi-score {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--mono);
  letter-spacing: -3px;
  transition: color .5s;
}
.fgi-label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color .5s;
}
.fgi-sublabel {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
}

/* Zone stripe bar */
.fgi-zone-bar {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(to right, #ff1744 0%, #ff9800 25%, #ffc107 50%, #8bc34a 75%, #00c853 100%);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.fgi-zone-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: left .8s cubic-bezier(.34,1.56,.64,1);
}
.fgi-zone-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Factor bars */
.fgi-factors { display: flex; flex-direction: column; gap: 10px; }
.fgi-factor-label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; display: flex; justify-content: space-between; margin-bottom: 4px; }
.fgi-factor-bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.fgi-factor-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }

/* Right legend panel */
.fgi-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.fgi-legend-title { font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.fgi-leg-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text2); }
.fgi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fgi-legend-sep { height: 1px; background: var(--border); margin: 2px 0; }
.fgi-update-note { font-size: 9px; color: var(--text3); margin-top: 4px; }

@media(max-width:1024px) {
  .fgi-inner { grid-template-columns: 220px 1fr; }
  .fgi-legend { display: none; }
}
@media(max-width:700px) {
  .fgi-card { padding: 20px 16px; }
  .fgi-inner { grid-template-columns: 1fr; gap: 20px; }
  .fgi-gauge-wrap { width: 200px; margin: 0 auto; }
  .fgi-center { width: 100%; }
}

/* GOLD & SILVER */
.gs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.gs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gs-card:hover { border-color: var(--green2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 200, 83, .1); }

.gs-icon-wrapper { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.gs-gold-fine .gs-icon-wrapper { background: rgba(212,160,23,0.15); color: #F5C842; }
.gs-gold-tejabi .gs-icon-wrapper { background: rgba(251,146,60,0.15); color: #FB923C; }
.gs-silver .gs-icon-wrapper { background: rgba(148,163,184,0.15); color: #94A3B8; }
.light-mode .gs-gold-fine .gs-icon-wrapper { background: #FFF8E6; color: #D4A017; }
.light-mode .gs-gold-tejabi .gs-icon-wrapper { background: #FEF3C7; color: #B45309; }
.light-mode .gs-silver .gs-icon-wrapper { background: #F1F5F9; color: #64748B; }

.gs-accent-box { border-radius: 8px; padding: 10px; text-align: center; flex: 1; }
.gs-gold-fine .gs-accent-box { background: rgba(212,160,23,0.08); }
.gs-gold-tejabi .gs-accent-box { background: rgba(251,146,60,0.08); }
.gs-silver .gs-accent-box { background: rgba(148,163,184,0.08); }
.light-mode .gs-gold-fine .gs-accent-box { background: #FFFDF5; }
.light-mode .gs-gold-tejabi .gs-accent-box { background: #FFFDF9; }
.light-mode .gs-silver .gs-accent-box { background: #F8FAFC; }

.gs-accent-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.gs-gold-fine .gs-accent-label { color: #F5C842; }
.gs-gold-tejabi .gs-accent-label { color: #FB923C; }
.gs-silver .gs-accent-label { color: #94A3B8; }
.light-mode .gs-gold-fine .gs-accent-label { color: #D4A017; }
.light-mode .gs-gold-tejabi .gs-accent-label { color: #B45309; }
.light-mode .gs-silver .gs-accent-label { color: #64748B; }

.gs-normal-box { border-radius: 8px; padding: 10px; text-align: center; flex: 1; background: var(--bg3); border: 1px solid var(--border); }

@media(max-width:768px) { .gs-grid { grid-template-columns: 1fr; } }

.apply-btn {
  width: 100%;
  background: var(--green3);
  color: var(--green);
  border: 1px solid rgba(0, 200, 83, .25);
  border-radius: 7px;
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all .15s;
  font-family: var(--font)
}

.apply-btn:hover { background: var(--green2); color: #000 }

/* PREMIUM BANNER */
.premium-banner {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #0a2030 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden
}

.premium-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0, 200, 83, .1), transparent 70%);
  pointer-events: none
}

.pb-left h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.3px; color: var(--text) }
.pb-left p { font-size: 13px; color: var(--text2); max-width: 400px; line-height: 1.5 }
.pb-features { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap }
.pb-feat { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 5px }
.pb-feat i { color: var(--green); font-size: 13px }
.pb-right { display: flex; gap: 10px; flex-shrink: 0 }

.btn-premium {
  background: var(--green2);
  color: #000;
  border: none;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: all .15s
}

.btn-premium:hover { background: var(--green) }

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

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s
}

.news-card:hover { border-color: var(--border2) }
.news-tag { font-size: 9px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--green) }
.news-title { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text) }
.news-meta { font-size: 10px; color: var(--text3); display: flex; align-items: center; gap: 6px }

/* FOOTER */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2rem 1.5rem 1rem; margin-top: 2rem }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto
}

.footer-brand .logo { margin-bottom: 8px }
.footer-brand p { font-size: 12px; color: var(--text2); line-height: 1.6; max-width: 350px }
.footer-col h4 { font-size: 12px; font-weight: 600; margin-bottom: 10px; color: var(--text2) }
.footer-col a { display: block; font-size: 12px; color: var(--text3); margin-bottom: 6px; cursor: pointer }
.footer-col a:hover { color: var(--green) }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.footer-bottom p { font-size: 11px; color: var(--text3) }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; height: 4px }
::-webkit-scrollbar-track { background: var(--bg) }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) }
  to { opacity: 1; transform: translateY(0) }
}

.fade-in { animation: fadeUp .4s ease both }
.delay-1 { animation-delay: .1s }
.delay-2 { animation-delay: .2s }
.delay-3 { animation-delay: .3s }

.divider { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto }

/* MOBILE RESPONSIVE */
@media(max-width:768px) {
  .nav { padding: 0 1rem; height: 52px }
  .nav-links { display: none }
  .btn-ghost { display: none }
  .nav-store-badges { display: none }
  .logo { font-size: 16px }
  .hero { grid-template-columns: 1fr; padding: 1.5rem 1rem 1rem; gap: 1.5rem }
  .hero h1 { font-size: 26px }
  .hero-sub { font-size: 13px; margin-bottom: 16px }
  .hero-stats { gap: 14px }
  .hstat-val { font-size: 15px }
  .nepse-index { font-size: 28px }
  .section { padding: 1rem }
  .section-title { font-size: 15px }
  .overview-grid { grid-template-columns: repeat(2, 1fr); gap: 8px }
  .gl-grid { grid-template-columns: 1fr; gap: 10px }
  .ipo-grid { grid-template-columns: 1fr }
  .news-grid { grid-template-columns: 1fr }
  #newsTabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 2px }
  .premium-banner { flex-direction: column; padding: 1.25rem; gap: 1rem }
  .pb-right { width: 100% }
  .btn-premium { width: 100%; text-align: center }
  .pb-features { gap: 10px }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center }
}

@media(max-width:480px) {
  .overview-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr }
  .hero-btns { flex-direction: column }
  .btn-primary, .btn-outline { width: 100%; text-align: center }
  .hero-stats { flex-wrap: wrap; gap: 12px }
  .nepse-meta { grid-template-columns: 1fr 1fr }
  .news-grid { grid-template-columns: 1fr }
}

/* IPO COUNTDOWN TIMER */
.ipo-timer-wrap {
  margin: 12px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ipo-timer-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
}
.ipo-timer-grid {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.timer-box {
  background: #111c30;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.light-mode .timer-box {
  background: #1e293b;
  border-color: #cbd5e1;
}
.timer-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.3px;
  opacity: 0.8;
}
.timer-num {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--mono);
  line-height: 1.2;
  margin: 2px 0;
}
