@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Plus+Jakarta+Sans:wght@600;800&display=swap');

/* =========================
   ClarityNow – Human UI v3 (CLEAN)
   - Removes duplicates
   - Fixes Hero button alignment
   - Keeps same class names
========================= */

/* ---------- Base ---------- */
:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e8f0;

  --primary: #2563eb;
  --primary-2: #1d4ed8;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);

  --radius: 14px;
  --radius-sm: 10px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font-body);
}

h1,h2,h3,
.header h1,
.cn-title,
.cn-nav-brand,
.cn-hero-name,
.cn-hero-headline{
  font-family: var(--font-head);
}

a{ color: var(--primary); }
a:hover{ color: var(--primary-2); }

/* =========================
   Header (legacy pages)
========================= */
.header{
  padding: 34px 16px 26px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(135deg, #0b1224, #020617);
  position: relative;
  overflow: hidden;
}

/* subtle “human” texture */
.header::after{
  content:"";
  position:absolute; inset:-40px;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(37,99,235,0.18), transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(148,163,184,0.10), transparent 45%);
  filter: blur(2px);
  pointer-events:none;
}

.header h1{
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
  position: relative;
}

.header p{
  margin: 8px auto 0;
  font-size: 15px;
  opacity: 0.9;
  max-width: 560px;
  position: relative;
}

/* =========================
   Buttons
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
  line-height: 1; /* important for alignment */
  min-height: 44px; /* button height consistency */
}

.btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 12px 26px rgba(37,99,235,0.26);
}

.btn:active{
  transform: translateY(1px) scale(0.99);
}

/* Ghost buttons - default for white cards */
.cn-ghost-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#0f172a;
  font-weight: 850;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(226,232,240,0.95);
  background: #f8fafc;
  cursor: pointer;
}
.cn-ghost-btn:hover{ background:#eef2ff; border-color:#c7d2fe; }

/* Only inside hero keep white look */
.cn-hero .cn-ghost-btn{
  color:#ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}
.cn-hero .cn-ghost-btn:hover{ background: rgba(255,255,255,0.12); }


/* =========================
   Legacy hero container
========================= */
.hero{
  max-width: 760px;
  margin: 34px auto;
  padding: 28px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(230,232,240,0.9);
}

.hero label{
  display:block;
  font-weight: 650;
  margin: 14px 0 6px;
  text-align: left;
  color: #0b1224;
}

.hero input,
.hero select{
  width: 100%;
  max-width: 420px;
  padding: 11px 12px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero input:focus,
.hero select:focus{
  outline: none;
  border-color: rgba(37,99,235,0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* Legacy IDs */
#result{
  margin-top: 26px;
  font-size: 22px;
  font-weight: 800;
  color: #0b1224;
}

#breakup{
  margin-top: 14px;
  padding: 16px;
  background: #f3f6ff;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(199,210,254,0.7);
}

#breakup ul{ padding-left: 18px; margin: 0; }
#breakup li{ margin-bottom: 8px; }

#insight{
  margin-top: 12px;
  font-size: 14.5px;
  color: #334155;
}

/* =========================
   Footer
========================= */
.footer{
  margin-top: 50px;
  padding: 18px 12px;
  background: rgba(226,232,240,0.75);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 14px;
  color: #475569;
  border-top: 1px solid rgba(226,232,240,0.9);
}

.footer a{
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}
.footer a:hover{ color: #1d4ed8; }

/* =========================
   Layout Helpers
========================= */
.cn-wrap{
  max-width: 940px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

.cn-card{
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin-top: 16px;
  border: 1px solid rgba(230,232,240,0.95);
}

.cn-title{
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  color: #0b1224;
  letter-spacing: -0.2px;
}

.cn-sub{
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.cn-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cn-field label{
  display:block;
  font-weight: 800;
  color: #0b1224;
  margin-bottom: 6px;
}

.cn-field input,
.cn-field select{
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cn-field input:focus,
.cn-field select:focus{
  outline: none;
  border-color: rgba(37,99,235,0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.cn-help{
  display:block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #64748b;
}

.cn-inline{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  color: #0b1224;
}

.cn-hidden{ display:none; }

/* Advanced */
.cn-adv{ margin-top: 14px; text-align:left; border-radius: 14px; }
.cn-adv summary{
  cursor:pointer;
  font-weight: 900;
  color: #1d4ed8;
  list-style:none;
}
.cn-adv summary::-webkit-details-marker{ display:none; }
.cn-adv-inner{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(226,232,240,0.9);
}

.cn-panel{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(241,245,249,0.9);
  border: 1px solid rgba(226,232,240,0.95);
}

.cn-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
}

.cn-actions{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   KPIs / Breakup / Insight
========================= */
.cn-kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cn-kpi{
  background: #fafbff;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 16px;
  padding: 12px;
}

.cn-kpi-label{
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.cn-kpi-value{
  font-size: 18px;
  font-weight: 900;
  color: #0b1224;
}

.cn-breakup{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(241,245,249,0.9);
  border: 1px solid rgba(226,232,240,0.95);
  text-align:left;
}

.cn-breakup h3{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #0b1224;
}

.cn-breakup ul{ margin: 0; padding-left: 18px; }
.cn-breakup li{ margin-bottom: 8px; color: #334155; font-size: 14px; }

.cn-insight{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(238,242,255,0.9);
  border: 1px solid rgba(199,210,254,0.85);
  color: #1e3a8a;
  font-size: 14px;
  text-align:left;
}

.cn-words{
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
  padding: 10px 12px;
  background: rgba(248,250,252,0.9);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 14px;
}

/* =========================
   Tables
========================= */
.cn-table-wrap{ overflow-x:auto; margin-top: 10px; }

.cn-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 16px;
  overflow: hidden;
}

.cn-table th, .cn-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226,232,240,0.95);
  text-align:left;
  font-size: 14px;
  color: #334155;
}

.cn-table th{
  background: #f8fafc;
  color: #0b1224;
  font-weight: 900;
}

.cn-table tr:last-child td{ border-bottom:none; }

/* =========================
   Graph layout
========================= */
.cn-graphs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cn-graphs > *{ min-width:0; }

.cn-graph-card{
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}

.cn-graph-card h3{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #0b1224;
}

.cn-legend{ margin-top: 8px; font-size: 13px; color: #475569; }

.cn-graph-card canvas{
  display:block;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
}

/* =========================
   Tool cards (Home)
========================= */
.tool-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tool-card{
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.tool-card:hover{
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.tool-soon{
  opacity: 0.75;
  cursor: default;
  user-select: none;
}

.tool-head{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tool-name{
  font-weight: 950;
  color:#0b1224;
  letter-spacing: -0.2px;
}

.tool-tag{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.18);
  color: #0b1224;
}

.tool-desc{
  margin-top: 8px;
  font-size: 13.5px;
  color:#334155;
  font-weight: 650;
}

/* =========================
   Why grid
========================= */
.cn-why-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cn-why-item{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.cn-why-title{
  font-weight: 950;
  color:#0b1224;
  letter-spacing: -0.2px;
}

.cn-why-text{
  margin-top: 6px;
  color:#334155;
  font-weight: 650;
  font-size: 13.5px;
}

.cn-tight{ margin-top: 14px; }

/* =========================
   Top Navigation
========================= */
.cn-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,251,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
}

.cn-nav-inner{
  max-width: 940px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Logo in top nav */
.cn-brand-logo img{
  height: 44px;
  width: auto;
  display: block;
}

.cn-nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cn-nav-links a{
  text-decoration:none;
  font-weight: 850;
  color:#0f172a;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
}

.cn-nav-links a:hover{
  background:#eef2ff;
  color:#1d4ed8;
  border-color: rgba(37,99,235,0.15);
}

.cn-nav-links a.active{
  background:#e0e7ff;
  border: 1px solid #c7d2fe;
  color:#1d4ed8;
}

/* =========================
   Home Hero (index.html)
========================= */
.cn-hero{
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(37,99,235,0.12), transparent 55%),
    linear-gradient(135deg, #0f172a, #020617);
  color:#fff;
  padding: 42px 0 26px;
  position: relative;
  overflow: hidden;
}

.cn-hero-inner{
  max-width: 940px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.cn-hero-left{ text-align:left; }

.cn-hero-brandline{
  display:flex;
  align-items:center;
  gap: 14px;
}

.cn-hero-logo{
  height: 64px;
  width:auto;
  display:block;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35));
}

.cn-hero-headline{
  margin: 6px 0 0;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.6px;
  line-height: 1.05;
  color: #fff;
}

.cn-hero-tagline{
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 750;
  opacity: 0.85;
}

.cn-hero-desc{
  margin: 12px 0 0;
  max-width: 560px;
  opacity: 0.90;
  font-size: 15.5px;
}

.cn-hero-badges{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cn-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  font-weight: 850;
  font-size: 13px;
}

.cn-hero-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Search */
.cn-search{
  margin-top: 16px;
  max-width: 520px;
  position: relative;
}

.cn-search input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 650;
  outline: none;
}

.cn-search input::placeholder{
  color: rgba(255,255,255,0.70);
  font-weight: 650;
}

.cn-search-results{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 8px);
  background: #0b1224;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.cn-search-item{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  text-decoration:none;
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cn-search-item:hover{ background: rgba(255,255,255,0.06); }

.cn-search-go{
  opacity: 0.8;
  font-weight: 850;
}

.cn-hero-note{
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
}

/* Right preview */
.cn-preview{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.cn-preview-top{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cn-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
}

.cn-preview-label{
  margin-left: 6px;
  font-weight: 850;
  opacity: 0.85;
  font-size: 13px;
}

.cn-preview-cards{
  padding: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cn-mini-card{
  text-decoration:none;
  color:#fff;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.cn-mini-card:hover{ background: rgba(255,255,255,0.12); }

.cn-mini-title{
  font-weight: 900;
  letter-spacing: -0.2px;
}

.cn-mini-sub{
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.80;
  font-weight: 650;
}

.cn-preview-foot{
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  opacity: 0.85;
}

.cn-soft{ opacity: 0.75; }

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .tool-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .cn-hero-inner{ grid-template-columns: 1fr; }
  .cn-why-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .cn-grid{ grid-template-columns: 1fr; }
  .cn-kpis{ grid-template-columns: 1fr; }
  .cn-graphs{ grid-template-columns: 1fr; }
  .cn-brand-logo img{ height: 34px; }
}

@media (max-width: 600px){
  .header h1{ font-size:26px; }
  .hero{ margin: 18px 10px; padding: 22px 14px; }
  #result{ font-size:20px; }
  .cn-hero{ padding: 34px 0 18px; }
  .cn-hero-logo{ height: 54px; }
  .cn-hero-headline{ font-size: 32px; }
  .cn-hero-desc{ font-size: 14.8px; }
  .cn-nav-links a{ padding: 8px 10px; font-size: 12.5px; }
}
/* =========================
   ClarityNow Phase-1 Overrides (single source of truth)
   Keep this at the END of style.css
========================= */

/* Wider container (Grow-like) */
.cn-wrap{ max-width:1120px; }

/* HERO: keep 2-column desktop, stack on small */
.cn-hero-inner{
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: center;
}
@media (max-width: 960px){
  .cn-hero-inner{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* TOOLS GRID: 3 desktop, 2 tablet, 1 mobile */
.tool-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .tool-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .tool-grid{ grid-template-columns: 1fr; }
}

/* Search dropdown layering */
.cn-search{ position: relative; z-index: 60; }
.cn-search-results{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  z-index: 70;
  max-height: 260px;
  overflow:auto;
}
.cn-preview,
.cn-hero-right{ position: relative; z-index: 10; }
@media (max-width: 900px){
  .cn-search-results{
    position: relative;
    top:auto; left:auto; right:auto;
    margin-top:10px;
  }
}

/* Ghost button (ONE version only) */
.cn-ghost-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 850;
  font-size: 14px;
  cursor:pointer;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#0f172a;
  text-decoration:none;
}
.cn-ghost-btn:hover{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#1d4ed8;
}
/* Inside hero: white glass look */
.cn-hero .cn-ghost-btn{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color:#fff;
}
.cn-hero .cn-ghost-btn:hover{
  background: rgba(255,255,255,0.12);
}

/* EMI results: 2-column with sticky sidebar (ONE version only) */
.cn-results-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  margin-top: 14px;
  align-items:start;
}
@media (min-width: 1200px){
  .cn-results-grid{ grid-template-columns: minmax(0, 1fr) 400px; }
}
.cn-results-grid > *{ min-width: 0; }

.cn-results-side{
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow:auto;
  padding-bottom: 6px;
}
@media (max-width: 900px){
  .cn-results-grid{ grid-template-columns: 1fr; }
  .cn-results-side{
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Panel (ONE version only) */
.cn-panel{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px;
}

/* Scenario rows (ONE version only) */
.cn-scn-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px;
  border:1px solid rgba(226,232,240,0.95);
  border-radius:14px;
  background:#fff;
  margin:10px 0;
}
.cn-scn-row.selected{
  border-color:#c7d2fe;
  background:#eef2ff;
}
.cn-scn-left{
  display:flex;
  gap:10px;
  align-items:flex-start;
  flex:1;
  min-width:0;
}
.cn-scn-name{ font-weight:900; color:#0b1224; line-height:1.15; }
.cn-scn-meta{ font-size:12.5px; color:#64748b; margin-top:3px; }
.cn-scn-actions{ display:flex; gap:8px; flex-wrap:wrap; flex-shrink:0; }

/* Mini buttons (works for <a> too) */
.cn-mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  border:1px solid rgba(226,232,240,0.95);
  background:#f8fafc;
  padding:8px 10px;
  border-radius:10px;
  font-weight:850;
  cursor:pointer;
  font-size:13px;
  text-decoration:none;
  color:#0f172a;
}
.cn-mini-btn:hover{ background:#eef2ff; border-color:#c7d2fe; }
.cn-mini-btn.danger:hover{ background:#fee2e2; border-color:#fecaca; }

/* Compare cards */
.cn-compare-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.cn-compare-card{
  background:#fff;
  border:1px solid rgba(226,232,240,0.95);
  border-radius:14px;
  padding:10px;
}
.cn-compare-title{ font-weight:900; color:#0b1224; }
.cn-compare-value{ margin-top:6px; font-weight:850; }
.cn-compare-best{
  border-color:#c7d2fe;
  box-shadow: 0 0 0 3px rgba(199,210,254,0.5);
}

/* Missing helpers (safe) */
.cn-divider{
  height:1px;
  background: rgba(226,232,240,0.95);
  border:0;
  margin:16px 0;
}
.cn-disclaimer{
  margin-top:12px;
  font-size:13px;
  color:#475569;
}

/* Mobile polish (your sticky KPI + action row) */
@media (max-width: 640px){
  .cn-mini-btn, button.cn-mini-btn, button { min-height: 44px; }

  .cn-action-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .cn-action-row .cn-mini-btn,
  .cn-action-row .btn{
    flex: 1 1 calc(50% - 10px);
    padding: 12px 12px;
    font-size: 14px;
  }

  #cnStickyKpi{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 999;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18);
    padding: 10px 12px;
    display: none;
  }
  #cnStickyKpi.cn-show{ display:block; }

  #cnStickyKpi .cn-s-kpis{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items:start;
  }
  #cnStickyKpi .cn-s-lbl{ font-size:11px; opacity:0.7; margin-bottom:2px; }
  #cnStickyKpi .cn-s-val{ font-weight:700; font-size:14px; line-height:1.2; }

  #cnStickyKpi .cn-s-cta{
    margin-top: 8px;
    display:flex;
    gap:10px;
  }
  #cnStickyKpi .cn-s-cta a,
  #cnStickyKpi .cn-s-cta button{
    flex:1 1 auto;
    min-height:40px;
  }
}
.chart-container { position: relative; }
#netWorthChart { display:block; width:100%; height:100%; }


