/* =========================================================
   STOCK NEWS WALA — PROFESSIONAL TRADING DASHBOARD
   ========================================================= */

:root{
  --bg:#07111f;
  --bg2:#0b1728;
  --card:#101d30;
  --card2:#13243a;
  --line:#20334d;
  --text:#f4f7fb;
  --muted:#8fa1b8;

  --blue:#2878ff;
  --blue2:#155eef;
  --cyan:#22d3ee;
  --green:#16c784;
  --green2:#0b9f67;
  --red:#ff4d5e;
  --red2:#d9364b;
  --purple:#8b5cf6;
  --orange:#ff9f43;
  --yellow:#f5c542;

  --shadow:0 12px 35px rgba(0,0,0,.22);
  --radius:18px;
}

/* =========================================================
   RESET
   ========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background:
    radial-gradient(circle at 10% 0%,rgba(40,120,255,.12),transparent 28%),
    radial-gradient(circle at 90% 10%,rgba(139,92,246,.10),transparent 25%),
    var(--bg);

  color:var(--text);
  min-height:100vh;
}

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

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

img{
  max-width:100%;
}

/* =========================================================
   HEADER
   ========================================================= */

header{
  position:sticky;
  top:0;
  z-index:1000;

  min-height:72px;
  padding:12px 5%;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;

  background:rgba(7,17,31,.88);
  backdrop-filter:blur(18px);

  border-bottom:1px solid rgba(255,255,255,.08);

  box-shadow:0 5px 25px rgba(0,0,0,.15);
}

header > a{
  font-size:25px;
  font-weight:900;
  letter-spacing:-.8px;

  white-space:nowrap;

  color:#fff;
}

header span{
  color:var(--blue);
}

nav{
  display:flex;
  align-items:center;
  gap:7px;

  overflow-x:auto;
  scrollbar-width:none;
}

nav::-webkit-scrollbar{
  display:none;
}

nav a{
  white-space:nowrap;

  padding:9px 13px;

  border-radius:10px;

  color:#9fb0c6;

  font-size:14px;
  font-weight:700;

  transition:.2s ease;
}

nav a:hover{
  color:#fff;
  background:rgba(40,120,255,.12);
}

nav a.active{
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  box-shadow:0 5px 18px rgba(40,120,255,.25);
}

/* =========================================================
   MAIN CONTAINERS
   ========================================================= */

main,
.wrap{
  width:100%;
  max-width:1280px;

  margin:auto;

  padding:30px 5%;
}

.section{
  margin-top:32px;
}

.section-block{
  margin-top:35px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
p{
  margin-top:0;
}

h1{
  font-size:clamp(28px,4vw,48px);
  line-height:1.08;
  letter-spacing:-1.5px;
}

h2{
  font-size:25px;
  letter-spacing:-.6px;
}

h3{
  font-size:18px;
}

p{
  line-height:1.6;
}

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

.green-text{
  color:var(--green)!important;
}

.red-text{
  color:var(--red)!important;
}

.up{
  color:var(--green)!important;
}

.down{
  color:var(--red)!important;
}

.link{
  color:#66a3ff;
  font-weight:800;
}

.link:hover{
  color:#fff;
}

/* =========================================================
   HERO
   ========================================================= */

.hero{
  position:relative;
  overflow:hidden;

  min-height:360px;

  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;

  align-items:center;

  padding:45px;

  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;

  background:
    radial-gradient(circle at 80% 20%,rgba(139,92,246,.28),transparent 35%),
    radial-gradient(circle at 20% 80%,rgba(40,120,255,.20),transparent 35%),
    linear-gradient(135deg,#0d1c31,#101d30);

  box-shadow:var(--shadow);
}

.hero:before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;

  right:-120px;
  top:-120px;

  border-radius:50%;

  background:rgba(34,211,238,.08);
  filter:blur(5px);
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero h1{
  margin-bottom:15px;
}

.hero h1 span{
  background:linear-gradient(90deg,#4f91ff,#a78bfa,#22d3ee);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  max-width:620px;
  color:#aab9cb;
  font-size:16px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;

  padding:7px 12px;

  border-radius:999px;

  background:rgba(22,199,132,.10);
  border:1px solid rgba(22,199,132,.25);

  color:var(--green);

  font-size:12px;
  font-weight:800;

  margin-bottom:18px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:25px;
}

.primary-btn,
.secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:44px;

  padding:11px 18px;

  border-radius:11px;

  font-weight:800;

  transition:.2s ease;
}

.primary-btn{
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  border:0;

  box-shadow:0 8px 22px rgba(40,120,255,.25);
}

.primary-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(40,120,255,.35);
}

.secondary-btn{
  color:#dbe7f5;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
}

.secondary-btn:hover{
  background:rgba(255,255,255,.10);
}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual{
  position:relative;

  min-height:240px;

  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-chart{
  width:100%;
  max-width:470px;
  height:230px;

  position:relative;

  border-radius:20px;

  background:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),
    rgba(255,255,255,.025);

  background-size:40px 40px;

  border:1px solid rgba(255,255,255,.08);

  overflow:hidden;
}

.hero-chart:after{
  content:"BTC / MARKET";
  position:absolute;
  left:18px;
  top:15px;

  color:#71849e;

  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
}

.chart-line{
  position:absolute;

  left:4%;
  right:4%;
  bottom:15%;
 


}

/* Sector cards and enhanced screener controls */
.sector-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.sector-card{display:flex;flex-direction:column;gap:10px;min-height:145px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);transition:transform .18s ease,border-color .18s ease}
.sector-card:hover{transform:translateY(-3px);border-color:var(--blue)}
.sector-card-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(40,120,255,.14);color:var(--blue);font-size:20px}
.sector-card-name{font-weight:800;font-size:15px}
.sector-card strong{font-size:24px}
.sector-card strong small{font-size:12px;color:var(--muted);font-weight:600}
.screener-selects{display:flex;gap:10px;flex-wrap:wrap}
.screener-selects select{min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);min-width:155px}
#screenerCount{margin:16px 0 8px}
@media(max-width:900px){.sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.sector-grid{grid-template-columns:1fr 1fr;gap:9px}.sector-card{padding:12px;min-height:130px}.screener-selects{width:100%}.screener-selects select{flex:1;min-width:130px}}
