/* ================================================================
   RAVINDRA TRADING — Unified Design System
   Mobile-first. All pages (Dashboard, NSE, Trader Pro+, Static)
   share the same tokens, glass cards, nav, and spacing.
================================================================ */

/* ── Design Tokens ── */
:root{
  /* Background */
  --bg1:#eef1f6; --bg2:#e3e8f0;

  /* Ink */
  --text:#1b2230; --muted:#5b6678; --muted2:#8b94a6;

  /* Glass */
  --glass-strong:rgba(255,255,255,0.65);
  --glass-soft:rgba(255,255,255,0.40);
  --glass-border:rgba(255,255,255,0.72);
  --shadow-soft:0 10px 28px rgba(31,41,55,0.10),0 2px 8px rgba(31,41,55,0.06);
  --shadow-press:0 4px 14px rgba(31,41,55,0.12);

  /* Semantic colors */
  --green:#16a34a; --green-glow:rgba(22,163,74,0.22);
  --red:#ef4444;   --red-glow:rgba(239,68,68,0.22);
  --amber:#d97706;
  --blue:#2f6dff;  --blue-glow:rgba(47,109,255,0.25);
  --purple:#9333ea;

  /* Chart / accent */
  --call-a:#34d399; --call-b:#059669;
  --put-a:#fb7185;  --put-b:#e11d48;
  --blue-a:#60a5fa; --blue-b:#2563eb;
  --gold-a:#fde68a; --gold-b:#f59e0b;

  /* Typography */
  --font-sans:'Segoe UI',Roboto,'Plus Jakarta Sans',Arial,sans-serif;
  --font-mono:'JetBrains Mono','SF Mono',Consolas,monospace;

  /* Radii */
  --r-xl:22px; --r-lg:16px; --r-md:12px; --r-pill:999px;

  /* Nav */
  --nav-h:56px;

  /* Spacing */
  --page-pad:10px; --gap:10px;
}

/* ── Reset ── */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0;}
html{font-size:15px;overflow-x:hidden;}
html,body{min-height:100%;color:var(--text);font-family:var(--font-sans);}
body{
  overflow-x:hidden;
  max-width:100vw;
  padding-top:var(--nav-h);
  background:
    radial-gradient(500px 320px at 10% 0%,rgba(160,107,224,0.13),transparent 55%),
    radial-gradient(480px 300px at 92% 5%,rgba(58,123,213,0.11),transparent 55%),
    radial-gradient(420px 380px at 65% 95%,rgba(58,210,159,0.10),transparent 55%),
    linear-gradient(160deg,var(--bg1),var(--bg2));
}

/* ── Blobs ── */
.blob{position:fixed;border-radius:50%;filter:blur(60px);opacity:.22;z-index:0;pointer-events:none;}
.blob1{width:220px;height:220px;background:#ff8a65;top:-70px;left:-50px;}
.blob2{width:260px;height:260px;background:#4f8cff;top:90px;right:-80px;}
.blob3{width:200px;height:200px;background:#b06bff;bottom:-70px;left:32%;}

/* ── NAVBAR ── */
#navbar{
  position:fixed;top:0;left:0;right:0;height:var(--nav-h);z-index:1000;
  background:rgba(238,241,246,0.96);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 12px;gap:8px;
}
.nav-brand{display:flex;align-items:center;gap:8px;text-decoration:none;flex-shrink:0;}
.nav-brand .logo-icon{
  width:32px;height:32px;border-radius:9px;
  background:linear-gradient(135deg,#ff8a5c,#ff4d4d);
  display:flex;align-items:center;justify-content:center;font-size:16px;
}
.nav-brand .brand-name{font-size:13.5px;font-weight:800;color:var(--text);line-height:1.2;}
.nav-brand .brand-sub{font-size:9px;color:var(--muted);font-weight:600;letter-spacing:.5px;}
.nav-links{display:none;align-items:center;gap:2px;}
.nav-link{
  text-decoration:none;color:var(--muted);font-size:12px;font-weight:700;
  padding:6px 10px;border-radius:var(--r-pill);
  transition:background .15s,color .15s;white-space:nowrap;
}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,0.72);color:var(--text);}
.hamburger{
  display:flex;flex-direction:column;gap:5px;cursor:pointer;
  padding:8px;border-radius:8px;
  background:rgba(255,255,255,0.52);border:1px solid var(--glass-border);flex-shrink:0;
}
.hamburger span{width:20px;height:2px;background:var(--text);border-radius:2px;display:block;}
#mobileNav{
  display:none;position:fixed;top:var(--nav-h);left:0;right:0;z-index:999;
  background:rgba(238,241,246,0.98);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--glass-border);
  padding:8px 10px 12px;flex-direction:column;gap:3px;
}
#mobileNav.open{display:flex;}
#mobileNav .nav-link{
  padding:13px 14px;border-radius:14px;font-size:15px;
  display:block;color:var(--text);font-weight:600;
}
#mobileNav .nav-link:active{background:rgba(255,255,255,0.8);}

/* ── GLASS CARD (shared across all pages) ── */
.glass{
  background:linear-gradient(165deg,var(--glass-strong),var(--glass-soft));
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-soft),inset 0 1px 1px rgba(255,255,255,0.75);
}

/* ── PAGES ── */
.page{display:none;position:relative;z-index:1;max-width:1280px;margin:0 auto;padding:var(--gap) var(--page-pad) 28px;}
.page.active{display:block;}

/* ── AD SLOTS ──
   Collapsed by default (max-height:0) so an empty/unfilled ad never
   shows a blank box. When Google confirms a fill, we raise max-height
   to a generous cap and the slot grows in smoothly via CSS transition
   (animating to/from "auto" height doesn't tween in CSS — it just
   snaps — which is what caused the old jarring "ad suddenly appears
   big" jump. max-height fixes that.)
   overflow stays hidden at all times as a safety clip, but the cap
   (900px) is far larger than any real ad unit so it never actually
   clips a real ad. */
.ad-slot{
  width:100%;border-radius:var(--r-lg);
  background:transparent;border:none;
  display:block;overflow:hidden;
  max-height:0;
  transition:max-height .35s ease;
}
.ad-slot.ad-loading{max-height:0;}
.ad-slot.ad-filled{max-height:900px;}
.ad-slot ins.adsbygoogle{display:block!important;min-height:90px;max-width:100%!important;}
/* Extra safety net: whatever Google renders inside (ins, iframe) must
   never be wider than its container — this is what prevents an ad
   creative from pushing the whole page wider than the viewport on
   mobile, which is what caused the "page breaks after ad loads +
   zoom" issue. */
.ad-slot *{max-width:100%!important;}
.ad-slot iframe{max-width:100%!important;}

/* ── STATIC PAGES ── */
.static-hero{padding:22px 16px 18px;margin-bottom:12px;text-align:center;}
.static-hero h1{font-size:22px;font-weight:900;margin-bottom:6px;}
.static-hero p{color:var(--muted);font-size:13px;font-weight:600;}
.static-card{padding:16px 14px;margin-bottom:10px;}
.static-card h2{font-size:14px;font-weight:800;margin-bottom:8px;display:flex;align-items:center;gap:7px;}
.static-card p,.static-card li{font-size:13px;color:var(--muted);font-weight:600;line-height:1.75;margin-bottom:6px;}
.static-card ul{padding-left:16px;}
.static-card a{color:var(--blue);}
.contact-form{display:flex;flex-direction:column;gap:10px;}
.form-field{display:flex;flex-direction:column;gap:4px;}
.form-field label{font-size:11.5px;font-weight:700;color:var(--muted);}
.form-field input,.form-field textarea{
  width:100%;padding:11px 13px;border-radius:var(--r-md);
  border:1px solid var(--glass-border);background:rgba(255,255,255,0.55);
  font-size:14px;color:var(--text);font-weight:600;outline:none;resize:vertical;
}
.form-field textarea{min-height:90px;}
.btn-primary{
  width:100%;padding:13px 20px;border-radius:var(--r-lg);border:none;cursor:pointer;
  font-size:14px;font-weight:800;
  background:linear-gradient(135deg,#5b9bff,#2f6dff);color:#fff;
  box-shadow:0 6px 16px rgba(47,109,255,0.30);transition:transform .12s;
}
.btn-primary:active{transform:scale(0.97);}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;}
.info-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:var(--r-pill);background:rgba(255,255,255,0.55);border:1px solid var(--glass-border);font-size:12.5px;font-weight:700;margin-bottom:7px;}
.form-msg{font-size:12.5px;font-weight:700;padding:10px 13px;border-radius:var(--r-md);display:none;}
.form-msg.ok{display:block;background:rgba(22,163,74,0.12);color:#15803d;border:1px solid rgba(22,163,74,0.25);}
.form-msg.err{display:block;background:rgba(239,68,68,0.12);color:#b91c1c;border:1px solid rgba(239,68,68,0.25);}

/* ── CRYPTO DASHBOARD ── */
#dashApp{display:flex;flex-direction:column;gap:var(--gap);max-width:1280px;margin:0 auto;padding:var(--gap) var(--page-pad) 24px;}
#headerCard{padding:13px;display:flex;flex-direction:column;gap:10px;}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.title-block{flex:1;min-width:0;}
.title-block h1{font-size:17px;font-weight:800;letter-spacing:-0.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.title-block .sub{margin:2px 0 0;font-size:11px;color:var(--muted);font-weight:600;}
.tag-label{display:none;}
.nse-launch-btn{
  flex-shrink:0;display:inline-flex;align-items:center;gap:5px;
  font-size:11.5px;font-weight:800;white-space:nowrap;
  padding:7px 11px;border-radius:var(--r-pill);text-decoration:none;
  color:#fff;background:linear-gradient(135deg,#a06be0,#3a7bd5);
  box-shadow:0 4px 12px rgba(123,92,214,0.28);border:1px solid rgba(255,255,255,0.3);
  transition:transform .12s;
}
.nse-launch-btn:active{transform:scale(0.95);}
.row-scroll{display:flex;gap:7px;align-items:center;overflow-x:auto;padding-bottom:3px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.row-scroll::-webkit-scrollbar{display:none;}
.row-wrap{display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
.sym-btn{
  flex-shrink:0;border:1px solid var(--glass-border);padding:8px 14px;
  border-radius:var(--r-pill);cursor:pointer;font-size:13px;font-weight:700;white-space:nowrap;
  background:linear-gradient(180deg,rgba(255,255,255,0.72),rgba(255,255,255,0.32));
  color:var(--text);box-shadow:var(--shadow-press),inset 0 1px 1px rgba(255,255,255,0.8);
  transition:transform .12s;
}
.sym-btn:active{transform:scale(0.95);}
.sym-btn.active.orange{background:linear-gradient(135deg,#ff8a5c,#ff4d4d);color:#fff;border-color:rgba(255,255,255,0.5);box-shadow:0 7px 16px rgba(255,90,60,0.32);}
.sym-btn.active.blue{background:linear-gradient(135deg,#5b9bff,#2f6dff);color:#fff;border-color:rgba(255,255,255,0.5);box-shadow:0 7px 16px rgba(60,110,255,0.32);}
.sym-btn.active.purple{background:linear-gradient(135deg,#c084fc,#9333ea);color:#fff;border-color:rgba(255,255,255,0.5);box-shadow:0 7px 16px rgba(147,51,234,0.28);}
.header-search-row{display:flex;flex-direction:column;gap:8px;}
.search-pill{
  display:flex;align-items:center;gap:7px;
  border:1px solid var(--glass-border);border-radius:var(--r-pill);
  padding:8px 8px 8px 13px;
  background:linear-gradient(180deg,rgba(255,255,255,0.62),rgba(255,255,255,0.28));
}
.search-pill input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-size:14px;color:var(--text);font-weight:600;}
.search-pill input::placeholder{color:var(--muted2);font-weight:500;}
.pill-go{width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;background:linear-gradient(135deg,#5b9bff,#2f6dff);color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 10px rgba(47,109,255,0.35);}
.status-chip{display:flex;align-items:center;gap:7px;padding:9px 13px;border-radius:var(--r-lg);background:rgba(17,24,39,0.88);color:#fff;font-size:12.5px;font-weight:700;width:100%;}
#live-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8;flex-shrink:0;}
#live-dot.on{background:#34d399;box-shadow:0 0 7px #34d399;}
#live-dot.off{background:#f87171;}
#last-price{margin-left:auto;font-size:13.5px;font-weight:800;}
#last-price.up{color:#6ee7b7;}
#last-price.down{color:#fca5a5;}
#controlsCard{padding:10px 12px;display:flex;flex-direction:column;gap:8px;}
.tf-btn{flex-shrink:0;border:1px solid transparent;background:rgba(255,255,255,0.42);color:var(--muted);padding:7px 12px;border-radius:var(--r-pill);cursor:pointer;font-size:12px;font-weight:700;white-space:nowrap;}
.tf-btn.active{background:linear-gradient(135deg,#5b9bff,#2f6dff);color:#fff;box-shadow:0 4px 12px rgba(47,109,255,0.28);}
.toggle-chip{flex-shrink:0;display:flex;align-items:center;gap:6px;padding:6px 10px 6px 7px;border-radius:var(--r-pill);cursor:pointer;user-select:none;background:rgba(255,255,255,0.42);border:1px solid var(--glass-border);font-size:11.5px;font-weight:700;color:var(--muted);white-space:nowrap;}
.toggle-chip.active{color:var(--text);}
.switch{width:28px;height:16px;border-radius:var(--r-pill);background:rgba(120,128,145,0.35);position:relative;transition:background .15s;flex-shrink:0;}
.switch .knob{width:12px;height:12px;border-radius:50%;background:#fff;position:absolute;top:2px;left:2px;transition:left .15s;box-shadow:0 1px 3px rgba(0,0,0,0.25);}
.toggle-chip.active .switch{background:linear-gradient(135deg,#34d399,#10b981);}
.toggle-chip.active .switch .knob{left:14px;}
#chartCard{display:flex;flex-direction:column;padding:12px 12px 8px;}
.chart-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
#legend-symbol{font-size:13px;font-weight:800;}
#legend-symbol b{font-size:14px;}
#legend-ohlc{font-size:10.5px;color:var(--muted);font-weight:600;margin-top:2px;line-height:1.5;}
.info-btn{width:30px;height:30px;border-radius:50%;border:1px solid var(--glass-border);background:rgba(255,255,255,0.55);color:var(--muted);font-weight:800;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
#chartwrap{
  position:relative;height:min(52vh,420px);min-height:240px;
  background:linear-gradient(180deg,rgba(255,255,255,0.55),rgba(255,255,255,0.2));
  border-radius:var(--r-lg);border:1px solid var(--glass-border);
  overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none;
}
#chartCanvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none;}
#ohlc-tooltip{position:absolute;top:6px;left:7px;font-size:10.5px;color:var(--text);background:rgba(255,255,255,0.92);backdrop-filter:blur(8px);padding:7px 10px;border-radius:var(--r-md);border:1px solid var(--glass-border);pointer-events:none;line-height:1.6;display:none;font-weight:600;max-width:calc(100% - 14px);}
#ohlc-tooltip span{color:var(--muted);font-weight:500;}
#loading-msg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--muted);font-size:12.5px;font-weight:700;display:none;background:rgba(255,255,255,0.78);padding:9px 16px;border-radius:var(--r-pill);white-space:nowrap;}
#err-msg{position:absolute;bottom:8px;left:8px;right:8px;background:rgba(254,226,226,0.94);border:1px solid #fca5a5;color:#7f1d1d;font-size:11px;font-weight:600;padding:9px 12px;border-radius:var(--r-md);display:none;white-space:pre-wrap;max-height:110px;overflow-y:auto;}
#smc-key{padding:8px 12px;display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;align-items:center;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
#smc-key::-webkit-scrollbar{display:none;}
#smc-key.collapsed{display:none;}
.key-item{flex-shrink:0;display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:var(--muted);background:rgba(255,255,255,0.45);padding:5px 8px;border-radius:var(--r-pill);border:1px solid var(--glass-border);white-space:nowrap;}
.swatch{width:9px;height:9px;border-radius:3px;display:inline-block;}
#analysisPanel{display:grid;grid-template-columns:1fr;gap:var(--gap);}
.analysis-card{padding:13px 14px;display:flex;flex-direction:column;gap:10px;}
.analysis-card h3{margin:0;font-size:12.5px;font-weight:800;letter-spacing:.2px;color:var(--text);display:flex;align-items:center;gap:6px;}
#confluenceCard{padding:13px 14px;}
#confluenceCard h3{margin:0 0 10px;font-size:12.5px;font-weight:800;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;}
#confRefreshTag{font-size:10px;font-weight:700;color:var(--muted2);background:rgba(255,255,255,0.5);padding:3px 8px 3px 6px;border-radius:var(--r-pill);border:1px solid var(--glass-border);white-space:nowrap;display:inline-flex;align-items:center;gap:4px;}
#confRefreshTag .dot{width:5px;height:5px;border-radius:50%;background:#94a3b8;flex-shrink:0;}
#confRefreshTag.syncing{color:#1d4ed8;background:rgba(47,109,255,0.10);border-color:rgba(47,109,255,0.25);}
#confRefreshTag.syncing .dot{background:#2f6dff;animation:pulseDot .9s ease-in-out infinite;}
@keyframes pulseDot{0%,100%{opacity:1;transform:scale(1);}50%{opacity:.35;transform:scale(0.7);}}
.conf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;}
.conf-tf{background:rgba(255,255,255,0.52);border:1px solid var(--glass-border);border-radius:var(--r-md);padding:10px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;}
.conf-tf .tf-name{font-size:10px;font-weight:700;color:var(--muted);}
.conf-tf .tf-bias{font-size:13px;font-weight:800;}
.conf-tf .tf-score-bar{width:100%;height:5px;border-radius:3px;background:rgba(0,0,0,0.08);overflow:hidden;}
.conf-tf .tf-score-fill{height:100%;border-radius:3px;transition:width .4s;}
.conf-combined{margin-top:10px;padding:12px 13px;border-radius:var(--r-lg);display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.conf-combined .score-num{font-size:28px;font-weight:900;line-height:1;}
.conf-combined .score-label{font-size:11px;font-weight:700;opacity:.85;margin-top:2px;}
.conf-combined .score-signal{font-size:12px;font-weight:800;}
.gauge-wrap{position:relative;width:72px;height:44px;flex-shrink:0;margin-left:auto;}
.gauge-wrap svg{width:72px;height:44px;}
.struct-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:7px 10px;background:rgba(255,255,255,0.45);border-radius:10px;border:1px solid var(--glass-border);flex-wrap:wrap;}
.struct-row .sr-label{font-size:11px;font-weight:700;color:var(--muted);flex-shrink:0;}
.struct-row .sr-val{font-size:11.5px;font-weight:800;word-break:break-all;text-align:right;flex:1;min-width:0;}
.sr-level{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,0.45);border:1px solid var(--glass-border);}
.sr-level .sr-type{font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;white-space:nowrap;}
.sr-level .sr-type.res{background:rgba(239,68,68,0.12);color:#b91c1c;}
.sr-level .sr-type.sup{background:rgba(22,163,74,0.12);color:#15803d;}
.sr-level .sr-price{font-size:12.5px;font-weight:800;flex:1;min-width:0;}
.sr-level .sr-str{font-size:10px;color:var(--muted);white-space:nowrap;}
.pattern-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:700;white-space:nowrap;margin-bottom:2px;}
.pattern-chip.bull{background:rgba(22,163,74,0.12);color:#15803d;border:1px solid rgba(22,163,74,0.2);}
.pattern-chip.bear{background:rgba(239,68,68,0.12);color:#b91c1c;border:1px solid rgba(239,68,68,0.2);}
.pattern-chip.neutral{background:rgba(91,102,120,0.10);color:var(--muted);border:1px solid var(--glass-border);}
.patterns-wrap{display:flex;flex-wrap:wrap;gap:5px;}
.data-card{padding:13px;display:flex;flex-direction:column;gap:10px;}
.data-card h3{margin:0;font-size:12.5px;font-weight:800;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;}
.data-card-refresh{font-size:9.5px;font-weight:700;color:var(--muted2);background:rgba(255,255,255,0.5);padding:3px 8px 3px 6px;border-radius:var(--r-pill);border:1px solid var(--glass-border);white-space:nowrap;display:inline-flex;align-items:center;gap:4px;}
.data-card-refresh span.dot2{width:5px;height:5px;border-radius:50%;background:#94a3b8;flex-shrink:0;display:inline-block;}
.depth-bar-wrap{display:flex;height:36px;border-radius:10px;overflow:hidden;border:1px solid var(--glass-border);}
.depth-buy-side{background:linear-gradient(90deg,#16a34a,#22c55e);width:50%;display:flex;align-items:center;justify-content:flex-start;padding-left:9px;color:#fff;font-weight:800;font-size:12px;transition:width .5s;}
.depth-sell-side{background:linear-gradient(90deg,#f87171,#ef4444);width:50%;display:flex;align-items:center;justify-content:flex-end;padding-right:9px;color:#fff;font-weight:800;font-size:12px;transition:width .5s;}
.depth-labels{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted);font-weight:600;}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.mini-card{background:rgba(255,255,255,0.52);border:1px solid var(--glass-border);border-radius:var(--r-md);padding:10px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;}
.mini-card .mc-name{font-size:9.5px;font-weight:700;color:var(--muted);}
.mini-card .mc-val{font-size:14px;font-weight:800;word-break:break-all;}
#verdictCard{padding:14px 13px;display:flex;flex-direction:column;gap:12px;}
#verdictCard h3{margin:0;font-size:12.5px;font-weight:800;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;}
#verdictHero{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 13px;border-radius:var(--r-lg);background:rgba(255,255,255,0.5);border:1px solid var(--glass-border);}
#verdictBadge{flex-shrink:0;padding:9px 18px;border-radius:var(--r-md);font-weight:900;font-size:18px;background:rgba(0,0,0,0.06);color:var(--muted);}
#verdictBadge+div{flex:1;min-width:120px;}
#verdictConviction{font-size:12.5px;font-weight:800;color:var(--text);}
#verdictReason{font-size:11px;color:var(--muted);font-weight:600;margin-top:3px;line-height:1.4;}
#verdictBreakdown{display:flex;flex-direction:column;gap:5px;}
footer.small-note{text-align:center;font-size:10.5px;color:var(--muted2);padding:4px 4px 0;font-weight:600;}
#siteFooter{background:rgba(17,24,39,0.92);color:rgba(255,255,255,0.7);padding:20px 14px;text-align:center;font-size:11.5px;font-weight:600;line-height:1.8;margin-top:8px;position:relative;z-index:1;}
#siteFooter .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 4px;margin-top:8px;}
#siteFooter a{color:rgba(255,255,255,0.55);text-decoration:none;padding:4px 8px;border-radius:8px;}
#siteFooter a:hover{color:#fff;}
#siteFooter .footer-note{margin-top:8px;font-size:10.5px;opacity:.5;}

/* ================================================================
   TABLET 600px+
================================================================ */
@media(min-width:600px){
  :root{--page-pad:14px;}
  .status-chip{width:auto;border-radius:var(--r-pill);padding:8px 14px;}
  .header-search-row{flex-direction:row;align-items:center;}
  .mini-grid{grid-template-columns:repeat(3,1fr);}
  .conf-grid{grid-template-columns:repeat(3,1fr);}
  #chartwrap{height:min(54vh,460px);}
}

/* ================================================================
   DESKTOP 900px+
================================================================ */
@media(min-width:900px){
  :root{--nav-h:58px;--page-pad:18px;--gap:14px;}
  .nav-links{display:flex;}
  .hamburger{display:none;}
  .tag-label{display:block;font-size:11px;font-weight:700;color:var(--muted);background:rgba(255,255,255,0.55);border:1px solid var(--glass-border);padding:6px 12px;border-radius:var(--r-pill);white-space:nowrap;}
  .nav-brand .logo-icon{width:34px;height:34px;font-size:18px;}
  .nav-brand .brand-name{font-size:15px;}
  #navbar{padding:0 18px;}
  .blob1{width:320px;height:320px;}
  .blob2{width:360px;height:360px;}
  .blob3{width:280px;height:280px;}
  #dashApp{padding:14px 18px 26px;}
  #headerCard{padding:16px 18px;}
  .title-block h1{font-size:20px;}
  .nse-launch-btn{font-size:12px;padding:8px 14px;}
  .header-search-row{flex-direction:row;align-items:center;}
  .status-chip{width:auto;border-radius:var(--r-pill);padding:8px 14px;}
  #analysisPanel{grid-template-columns:1fr 1fr;}
  .mini-grid{grid-template-columns:repeat(4,1fr);}
  .conf-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));}
  #chartwrap{height:min(58vh,540px);min-height:280px;}
  .data-card{padding:16px 18px;}
  .data-card h3{font-size:13px;}
  #verdictCard{padding:18px 20px;}
  .static-hero{padding:30px 24px 22px;}
  .static-hero h1{font-size:26px;}
  .static-card{padding:22px 24px;}
  .btn-primary{width:auto;}
  .gauge-wrap{width:90px;height:52px;}
  .gauge-wrap svg{width:90px;height:52px;}
  .conf-combined .score-num{font-size:32px;}
  #contactGrid{display:grid!important;grid-template-columns:1fr 1fr;gap:16px;}
}
@media(min-width:900px) and (orientation:landscape){#chartwrap{height:min(62vh,540px);}}
