:root{
    --bg:#0B0E11;
    --panel:#12161B;
    --panel-border:#20262E;
    --text:#E8EAED;
    --muted:#6B7280;
    --amber:#FFB020;
    --up:#00E39A;
    --down:#FF4D5E;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',sans-serif;
    min-height:100vh;
    overflow-x:hidden;
  }
  body{ -webkit-tap-highlight-color: transparent; }

  /* ---- App shell / side nav ---- */
  .app-shell{
    display:flex;
    min-height:100vh;
  }
  .sidenav{
    width:200px;
    flex-shrink:0;
    background:var(--panel);
    border-right:1px solid var(--panel-border);
    padding:18px 12px;
    position:sticky;
    top:0;
    align-self:flex-start;
    height:100vh;
    overflow-y:auto;
  }
  .nav-brand{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 8px 18px;
  }
  .nav-brand .dot{
    width:8px;height:8px;border-radius:50%;
    background:var(--up);
    box-shadow:0 0 8px var(--up);
    animation:pulse 2s infinite ease-in-out;
  }
  @keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }
  .nav-brand-text{
    font-family:'IBM Plex Mono',monospace;
    font-size:16px;
    font-weight:700;
    letter-spacing:1px;
  }
  .nav-group{ margin-bottom:20px; }
  .nav-group-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--text);
    padding:4px 8px;
    margin-bottom:4px;
  }
  .nav-item{
    display:block;
    width:100%;
    text-align:left;
    background:transparent;
    border:none;
    color:var(--muted);
    font-family:'Inter',sans-serif;
    font-size:13.5px;
    padding:9px 10px;
    border-radius:7px;
    cursor:pointer;
    margin-bottom:2px;
    transition:background .15s ease, color .15s ease;
  }
  .nav-item:hover:not(.active){ background:#1C222B; color:var(--text); }
  .nav-item.active{ background:var(--amber); color:#12161B; font-weight:700; }


#sidenav [data-view="forex-rates"],
#sidenav [data-view="earnings-calendar"],
#sidenav [data-view="practice-mode"],
#sidenav [data-view="calculators"]{
  font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--text);
    padding:4px 8px;
    margin-bottom:4px;
    color:var(--text);
}


  .app-main{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
  }

.hamburger-btn{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px; height:32px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  flex-shrink:0;
}
#authBtn{
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex-shrink:1;
}
.hamburger-btn span{
  display:block;
  width:100%;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

.drawer-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:40;
  opacity:0;
  transition:opacity .25s ease;
}
.drawer-overlay.open{ display:block; opacity:1; }

@media (max-width:820px){
  .hamburger-btn{ display:flex; }

  .sidenav{
    position:fixed;
    top:0; left:0;
    height:100vh;
    width:260px;
    max-width:80vw;
    flex-direction:column;
    overflow-x:hidden;
    overflow-y:auto;
    transform:translateX(-100%);
    transition:transform .28s ease;
    z-index:50;
    box-shadow:2px 0 24px rgba(0,0,0,0.4);
  }
  .sidenav.open{ transform:translateX(0); }

  .nav-group{ display:block; }
  .nav-group-label{ padding:4px 8px; white-space:normal; }
  .nav-item{ white-space:normal; }
}

  /* ---- Header ---- */
  header{
    padding:20px 20px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid var(--panel-border);
  }
  .brand .sub{
    font-size:11px; color:var(--muted);
    font-family:'IBM Plex Mono',monospace;
    letter-spacing:1px; text-transform:uppercase;
  }
  .header-right{ display:flex; align-items:center; gap:16px; min-width:0;}
  .greeting{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--text);
  }
  #clock{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px; color:var(--muted); text-align:right;
  }
  #clock span{ color:var(--text); }

  /* ---- Ticker tape ---- */
  .tape-wrap{
    border-bottom:1px solid var(--panel-border);
    background:#0E1217;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
  }
  .tape-wrap::before, .tape-wrap::after{
    content:""; position:absolute; top:0; bottom:0; width:36px; z-index:2;
  }
  .tape-wrap::before{ left:0; background:linear-gradient(90deg, #0E1217, transparent); }
  .tape-wrap::after{ right:0; background:linear-gradient(270deg, #0E1217, transparent); }
  .tape{
    display:inline-flex;
    animation:scroll 32s linear infinite;
    padding:9px 0;
  }
  @keyframes scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
  .tape-item{
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    padding:0 22px;
    display:inline-flex; gap:8px; align-items:center;
    color:var(--muted);
  }
  .tape-item b{ color:var(--text); font-weight:600; }
  .tape-item .chg.up{ color:var(--up); }
  .tape-item .chg.down{ color:var(--down); }

  .markets-summary-wrap{
    border-bottom:1px solid var(--panel-border);
    background:#0E1217;
    overflow-x:auto;
    white-space:nowrap;
  }
  .markets-summary{
    display:inline-flex;
    gap:28px;
    padding:12px 20px;
  }
  .ms-item{
    font-family:'IBM Plex Mono',monospace;
    display:flex;
    flex-direction:column;
    gap:2px;
    flex-shrink:0;
  }
  .ms-label{ font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; }
  .ms-price{ font-size:14px; font-weight:600; color:var(--text); }
  .ms-chg{ font-size:11.5px; font-weight:600; }
  .ms-chg.up{ color:var(--up); }
  .ms-chg.down{ color:var(--down); }


  main{ padding:22px 16px 44px; max-width:1440px; margin:0 auto; width:100%; }

  /* ---- View switching ---- */
  .view-panel{ display:none; }
  .view-panel.active{ display:block; }

  .news-column{
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:14px;
  }
  .news-column-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:10.5px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--muted);
    margin-bottom:10px;
  }
  .news-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:10px; align-items:start; }
  .news-item{
    display:block;
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:12px 14px;
    text-decoration:none;
    color:var(--text);
    transition:border-color .2s ease, background .2s ease;
  }
  .news-item:hover{ border-color:var(--amber); background:#161B22; }
  .news-tag{
    display:inline-block;
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    letter-spacing:0.5px;
    text-transform:uppercase;
    color:var(--amber);
    border:1px solid var(--panel-border);
    border-radius:4px;
    padding:1px 6px;
    margin-bottom:6px;
  }
  .news-title{
    font-size:13px;
    line-height:1.4;
    margin-bottom:6px;
  }
  .news-meta{
    font-family:'IBM Plex Mono',monospace;
    font-size:10.5px;
    color:var(--muted);
  }
  .news-loading, .news-empty{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--muted);
    padding:16px 4px;
  }
  .news-list .news-loading, .news-list .news-empty, .news-list .err,
  .trending-list .news-loading, .trending-list .news-empty, .trending-list .err{
    grid-column:1 / -1;
  }

/* ---- News: Reddit tab ---- */
.reddit-column-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--reddit, #FF4500);
}
.reddit-mark{
  width:16px; height:16px; border-radius:50%;
  background:#FF4500;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.reddit-mark svg{ width:10px; height:10px; }

.reddit-list{ display:flex; flex-direction:column; gap:10px; }
.reddit-refresh-note{
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  color:var(--muted);
  margin-bottom:2px;
}
.reddit-post{
  display:flex;
  gap:12px;
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:10px;
  padding:12px 14px;
  text-decoration:none;
  color:var(--text);
  transition:border-color .2s ease, background .2s ease;
}
.reddit-post:hover{ border-color:#FF4500; background:#161B22; }
.reddit-rank{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--muted);
  width:20px;
  flex-shrink:0;
}
.reddit-post-body{ flex:1; min-width:0; }
.reddit-post-title{ font-size:13px; line-height:1.4; margin-bottom:6px; }
.reddit-post-meta{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  color:var(--muted);
}
.reddit-upvotes{ color:#FF4500; font-weight:600; }
.reddit-flair{
  font-size:9.5px;
  padding:1px 6px;
  border-radius:4px;
  background:rgba(255,69,0,0.12);
  color:#FF4500;
  border:1px solid rgba(255,69,0,0.25);
}

/* ---- Practice Mode ---- */
.practice-banner{
  background:linear-gradient(135deg, #1a2e1f, #12161B);
  border:1px solid #2a5a3a;
  border-radius:10px;
  padding:10px 14px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:var(--up);
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:8px;
}
.balance-card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:12px;
  padding:20px;
  margin-bottom:18px;
}
.balance-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px;
  margin-bottom:6px;
}
.balance-value{
  font-family:'IBM Plex Mono',monospace;
  font-size:32px; font-weight:700; margin-bottom:10px;
}
.balance-sub{ display:flex; gap:18px; flex-wrap:wrap; font-size:12.5px; }
.balance-sub-item{ display:flex; flex-direction:column; gap:2px; }
.balance-sub-label{ color:var(--muted); font-size:10.5px; text-transform:uppercase; letter-spacing:0.5px; }
.balance-sub-value{ font-family:'IBM Plex Mono',monospace; font-weight:600; }
.balance-sub-value.up{ color:var(--up); }
.balance-sub-value.down{ color:var(--down); }

.buy-card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:12px;
  padding:18px;
  margin-bottom:18px;
}
.buy-title{ font-size:14px; font-weight:600; margin-bottom:12px; }
.buy-amount-row{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.buy-amount-input{
  flex:1;
  background:#0E1217;
  border:1px solid var(--panel-border);
  border-radius:8px;
  color:var(--text);
  font-family:'IBM Plex Mono',monospace;
  font-size:18px; font-weight:600;
  padding:10px 14px;
  outline:none;
}
.quick-amounts{ display:flex; gap:8px; margin-bottom:14px; }
.quick-amount-btn{
  flex:1;
  background:#1C222B;
  border:1px solid var(--panel-border);
  color:var(--text);
  border-radius:7px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  padding:8px 0;
  cursor:pointer;
}
.buy-preview{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px;
  min-height:16px;
}

.holdings-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--muted); margin-bottom:12px;
}
.holding-card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:10px;
  padding:14px 16px;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.holding-left{ display:flex; flex-direction:column; gap:3px; }
.holding-sym{ font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:14px; }
.holding-blurb{ font-size:11.5px; color:var(--muted); }
.holding-right{ display:flex; align-items:center; gap:14px; }
.holding-stats{ text-align:right; }
.holding-value{ font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:14px; }
.holding-pl{ font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600; }
.holding-pl.up{ color:var(--up); }
.holding-pl.down{ color:var(--down); }
.sell-btn{
  background:transparent;
  border:1px solid var(--panel-border);
  color:var(--text);
  border-radius:7px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:600;
  padding:8px 12px;
  cursor:pointer;
  white-space:nowrap;
}
.sell-btn:hover{ border-color:var(--down); color:var(--down); }

.reset-link{
  text-align:center;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  color:var(--muted);
  text-decoration:underline;
  margin-top:20px;
  cursor:pointer;
}
  /* ---- Trending view ---- */
  .trending-intro{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--muted);
    margin-bottom:16px;
  }
  .trending-intro .as-of{ color:var(--amber); }
  .trending-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:10px; align-items:start; }
  .trending-item{
    display:flex;
    align-items:center;
    gap:12px;
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:12px 14px;
  }
  .trending-rank{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--muted);
    width:20px;
    flex-shrink:0;
    text-align:center;
  }
  .trending-item img{
    width:32px; height:32px; border-radius:50%;
    flex-shrink:0;
  }
  .trending-info{ flex:1; min-width:0; }
  .trending-name{ font-size:13.5px; font-weight:600; }
  .trending-sym{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
  }
  .trending-price{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    text-align:right;
    flex-shrink:0;
    min-width:90px;
  }
  .trending-chg{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    font-weight:600;
  }
  .trending-chg.up{ color:var(--up); }
  .trending-chg.down{ color:var(--down); }
  .trending-add-btn{
    background:var(--amber);
    color:#12161B;
    border:none;
    border-radius:7px;
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    font-weight:700;
    letter-spacing:0.3px;
    padding:8px 12px;
    cursor:pointer;
    flex-shrink:0;
  }
  .trending-add-btn:hover{ filter:brightness(1.08); }
  .trending-add-btn:disabled{ opacity:0.55; cursor:default; }

/* ---- Earnings calendar ---- */
.day-group{ margin-bottom:22px; }
.day-heading{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--amber);
  margin-bottom:8px;
  padding-bottom:6px;
  border-bottom:1px solid var(--panel-border);
}
.eq-symbol{ font-weight:700; }
.eq-company{ font-family:'Inter',sans-serif; font-size:12.5px; color:var(--muted); }
.eq-time{
  font-size:10.5px;
  letter-spacing:0.4px;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--panel-border);
  border-radius:4px;
  padding:2px 7px;
  display:inline-block;
}

/* ---- Learn view ---- */
.learn-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:16px;
}
.learn-card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:10px;
  overflow:hidden;
}
.video-embed{
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  background:#000;
}
.video-embed iframe{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  border:none;
}
.learn-card-title{
  font-size:13.5px;
  font-weight:600;
  padding:12px 14px 4px;
}
.learn-card-source{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  color:var(--muted);
  padding:0 14px 14px;
}
  /* ---- Markets overview table ---- */
  .markets-table-wrap{
    overflow-x:auto;
    border:1px solid var(--panel-border);
    border-radius:10px;
    background:var(--panel);
  }
  .markets-table{
    width:100%;
    min-width:720px;
    border-collapse:collapse;
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    white-space:nowrap;
    table-layout:fixed;     
  }
  .markets-table th:nth-child(1), .markets-table td:nth-child(1){ width:44px; }
  .markets-table th:nth-child(2), .markets-table td:nth-child(2){ width:200px; }
  .markets-table th:nth-child(3), .markets-table td:nth-child(3){ width:100px; }
  .markets-table th:nth-child(4), .markets-table td:nth-child(4){ width:80px; }
  .markets-table th:nth-child(5), .markets-table td:nth-child(5){ width:130px; }
  .markets-table th:nth-child(6), .markets-table td:nth-child(6){ width:130px; }
  .markets-table th:nth-child(7), .markets-table td:nth-child(7){ width:90px; }
  .markets-table thead th{
    position:sticky;
    top:0;
    background:#161B22;
    color:var(--muted);
    text-align:left;
    font-weight:600;
    font-size:10.5px;
    letter-spacing:0.8px;
    text-transform:uppercase;
    padding:12px 14px;
    border-bottom:1px solid var(--panel-border);
    cursor:pointer;
    user-select:none;
    white-space:nowrap;
  }
  .markets-table thead th.no-sort{ cursor:default; }
  .markets-table thead th:hover:not(.no-sort){ color:var(--text); }
  .markets-table thead th.sort-active{ color:var(--amber); }
  .markets-table thead th::after{
    content:'';
    display:inline-block;
    margin-left:4px;
    width:0; height:0;
    border-left:3px solid transparent;
    border-right:3px solid transparent;
  }
  .markets-table thead th.sort-active.sort-asc::after{ border-bottom:4px solid var(--amber); }
  .markets-table thead th.sort-active.sort-desc::after{ border-top:4px solid var(--amber); }
  .markets-table tbody tr{
    border-bottom:1px solid var(--panel-border);
    transition:background .15s ease;
  }
  .markets-table tbody tr:last-child{ border-bottom:none; }
  .markets-table tbody tr:hover{ background:#161B22; }
  .markets-table td{
    padding:11px 14px;
    vertical-align:middle;
  }
  .markets-table td{
    padding:11px 14px;
    vertical-align:middle;
  }
  .mt-rank{ color:var(--muted); }
  .mt-coin{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Inter',sans-serif;
  }
  .mt-coin img{ width:22px; height:22px; border-radius:50%; flex-shrink:0; }
  .mt-coin-name{ font-size:13px; font-weight:600; }
  .mt-coin-sym{ color:var(--muted); font-size:11px; margin-left:6px; text-transform:uppercase; }
  .mt-chg.up{ color:var(--up); font-weight:600; }
  .mt-chg.down{ color:var(--down); font-weight:600; }
  .mt-add-btn{
    background:transparent;
    border:1px solid var(--panel-border);
    color:var(--muted);
    border-radius:6px;
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    padding:5px 10px;
    cursor:pointer;
  }
  .mt-add-btn:hover:not(:disabled){ border-color:var(--amber); color:var(--amber); }
  .mt-add-btn:disabled{ opacity:0.5; cursor:default; }

/* Forex table: override the crypto/stock table's wide fixed column widths */
#forexTable th:nth-child(1), #forexTable td:nth-child(1){ width:160px; }
#forexTable th:nth-child(2), #forexTable td:nth-child(2){ width:80px; }
#forexTable th:nth-child(3), #forexTable td:nth-child(3){ width:120px; }

#earningsContainer .markets-table th:nth-child(1), #earningsContainer .markets-table td:nth-child(1){ width:80px; }
#earningsContainer .markets-table th:nth-child(2), #earningsContainer .markets-table td:nth-child(2){ width:300px; }
#earningsContainer .markets-table th:nth-child(3), #earningsContainer .markets-table td:nth-child(3){ width:120px; }
#earningsContainer .markets-table th:nth-child(4), #earningsContainer .markets-table td:nth-child(4){ width:80px; }
#earningsContainer .markets-table th:nth-child(5), #earningsContainer .markets-table td:nth-child(5){ width:100px; }

  /* ---- Search ---- */
  .search-section{
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:14px;
    margin-bottom:20px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
  }
  .mode-toggle{
    display:flex;
    border:1px solid var(--panel-border);
    border-radius:7px;
    overflow:hidden;
    flex-shrink:0;
  }
  .mode-btn{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    letter-spacing:0.5px;
    text-transform:uppercase;
    background:transparent;
    color:var(--muted);
    border:none;
    padding:9px 14px;
    cursor:pointer;
    transition:background .2s ease, color .2s ease;
  }
  .mode-btn.active{ background:var(--amber); color:#12161B; font-weight:700; }
  .search-input-wrap{
    position:relative;
    flex:1;
    min-width:200px;
  }
  .search-input-wrap input{
    width:100%;
    background:#0E1217;
    border:1px solid var(--panel-border);
    border-radius:7px;
    color:var(--text);
    font-family:'IBM Plex Mono',monospace;
    font-size:14px;
    padding:10px 12px;
    outline:none;
  }
  .search-input-wrap input:focus{ border-color:var(--amber); }
  .search-input-wrap input::placeholder{ color:var(--muted); }
  .search-results{
    position:absolute;
    top:calc(100% + 6px);
    left:0; right:0;
    background:#161B22;
    border:1px solid var(--panel-border);
    border-radius:8px;
    max-height:260px;
    overflow-y:auto;
    z-index:20;
    display:none;
  }
  .search-results.open{ display:block; }
  .result-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    cursor:pointer;
    border-bottom:1px solid var(--panel-border);
  }
  .result-item:last-child{ border-bottom:none; }
  .result-item:hover{ background:#1C222B; }
  .result-item img{ width:20px; height:20px; border-radius:50%; }
  .result-name{ font-size:13px; }
  .result-sym{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--muted); margin-left:auto; }
  .result-note{
    padding:10px 12px;
    font-size:12px;
    color:var(--muted);
    font-family:'IBM Plex Mono',monospace;
  }
  .search-hint{
    width:100%;
    font-size:11px;
    color:var(--muted);
    font-family:'IBM Plex Mono',monospace;
    margin-top:2px;
  }

  .section-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    letter-spacing:2px;
    color:var(--muted);
    text-transform:uppercase;
    margin:0 0 12px 2px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .section-label::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--panel-border);
  }

  .grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(230px,1fr));
    gap:14px;
  }
  .card{
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:18px 18px 16px;
    position:relative;
    overflow:hidden;
    transition:border-color .3s ease;
  }
  .card::before{
    content:"";
    position:absolute; left:0; top:0; bottom:0; width:3px;
    background:var(--coin-color, var(--amber));
  }
  .card-top{
    display:flex; justify-content:space-between; align-items:flex-start;
    margin-bottom:14px;
  }
  .coin-id{ display:flex; flex-direction:column; gap:2px; }
  .coin-sym{
    font-family:'IBM Plex Mono',monospace;
    font-size:15px; font-weight:700; letter-spacing:0.5px;
  }
  .coin-name{
    font-size:11px; color:var(--muted);
    text-transform:uppercase; letter-spacing:0.8px;
  }
  .card-top-right{ display:flex; align-items:center; gap:6px; }
  .rank{
    font-family:'IBM Plex Mono',monospace;
    font-size:10px; color:var(--muted);
    border:1px solid var(--panel-border);
    border-radius:4px; padding:2px 6px;
  }
  .remove-btn{
    background:transparent;
    border:1px solid var(--panel-border);
    color:var(--muted);
    border-radius:4px;
    width:19px; height:19px;
    font-size:12px;
    line-height:1;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .remove-btn:hover{ border-color:var(--down); color:var(--down); }
  .price{
    font-family:'IBM Plex Mono',monospace;
    font-size:26px; font-weight:600; letter-spacing:-0.3px;
    margin-bottom:8px;
    transition:color .25s ease;
  }
  .meta-row{
    display:flex; justify-content:space-between; align-items:center;
    font-size:12.5px;
  }
  .chg{
    font-family:'IBM Plex Mono',monospace;
    font-weight:600; padding:3px 8px; border-radius:5px;
  }
  .chg.up{ color:var(--up); background:rgba(0,227,154,0.1); }
  .chg.down{ color:var(--down); background:rgba(255,77,94,0.1); }
  .cap{ color:var(--muted); font-family:'IBM Plex Mono',monospace; font-size:11.5px; }

  .flash-up{ animation:flashUp .6s ease; }
  .flash-down{ animation:flashDown .6s ease; }
  @keyframes flashUp{ 0%{ background:rgba(0,227,154,0.18); } 100%{ background:var(--panel); } }
  @keyframes flashDown{ 0%{ background:rgba(255,77,94,0.18); } 100%{ background:var(--panel); } }

  /* ---- Portfolio ---- */
  .portfolio-form{
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:14px;
    margin-bottom:18px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
  }
  .portfolio-form .search-input-wrap{ flex:1.4; min-width:170px; }
  .qty-input, .price-input{
    background:#0E1217;
    border:1px solid var(--panel-border);
    border-radius:7px;
    color:var(--text);
    font-family:'IBM Plex Mono',monospace;
    font-size:14px;
    padding:10px 12px;
    outline:none;
    width:120px;
  }
  .qty-input:focus, .price-input:focus{ border-color:var(--amber); }
  .qty-input::placeholder, .price-input::placeholder{ color:var(--muted); }
  .add-btn{
    background:var(--amber);
    color:#12161B;
    border:none;
    border-radius:7px;
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    font-weight:700;
    letter-spacing:0.4px;
    text-transform:uppercase;
    padding:10px 16px;
    cursor:pointer;
    flex-shrink:0;
  }
  .add-btn:hover{ filter:brightness(1.08); }
  .add-btn:disabled{ opacity:0.5; cursor:default; }

  .summary-bar{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px,1fr));
    gap:14px;
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:10px;
    padding:16px 18px;
    margin-bottom:18px;
  }
  .summary-item{ display:flex; flex-direction:column; gap:4px; }
  .summary-label{
    font-family:'IBM Plex Mono',monospace;
    font-size:10.5px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:1px;
  }
  .summary-value{
    font-family:'IBM Plex Mono',monospace;
    font-size:19px;
    font-weight:600;
  }
  .summary-value.up{ color:var(--up); }
  .summary-value.down{ color:var(--down); }

  .pf-card .price{ font-size:22px; }
  .pf-row{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    font-family:'IBM Plex Mono',monospace;
    color:var(--muted);
    margin-bottom:4px;
  }
  .pf-row span:last-child{ color:var(--text); }
  .pf-pl{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid var(--panel-border);
    display:flex;
    justify-content:space-between;
    align-items:center;
  }
  .pf-pl-label{ font-size:11px; color:var(--muted); font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:1px; }
  .pf-pl-value{ font-family:'IBM Plex Mono',monospace; font-weight:700; font-size:15px; }

  footer{
    text-align:center; padding:18px; font-size:11px; color:var(--muted);
    font-family:'IBM Plex Mono',monospace;
  }
  .status{ display:inline-flex; align-items:center; gap:6px; }
  .status .led{ width:6px;height:6px;border-radius:50%; background:var(--up); }
  .err, .empty{
    text-align:center; padding:24px 20px; color:var(--muted);
    font-family:'IBM Plex Mono',monospace; font-size:13px;
    grid-column:1/-1;
  }

  @media (max-width:480px){
    .price{ font-size:22px; }
    header{ padding:16px 14px 10px; }
    .qty-input, .price-input{ width:100px; }
    .trending-price{ min-width:70px; font-size:12px;
    #authBtn{ max-width:80px; }
    .greeting{ display:none; }                   }
  }

  /* ---- News article modal ---- */
  .news-modal-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(6,8,10,0.72);
    z-index:100;
    align-items:center;
    justify-content:center;
    padding:24px;
  }
  .news-modal-backdrop.open{ display:flex; }
  .news-modal{
    background:var(--panel);
    border:1px solid var(--panel-border);
    border-radius:12px;
    width:100%;
    max-width:840px;
    height:min(80vh, 720px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
  }
  .news-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding:16px 18px;
    border-bottom:1px solid var(--panel-border);
    flex-shrink:0;
  }
  .news-modal-tag{
    display:inline-block;
    font-family:'IBM Plex Mono',monospace;
    font-size:10px;
    letter-spacing:0.5px;
    text-transform:uppercase;
    color:var(--amber);
    border:1px solid var(--panel-border);
    border-radius:4px;
    padding:1px 6px;
    margin-bottom:6px;
  }
  .news-modal-title{
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    margin-bottom:4px;
  }
  .news-modal-meta{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--muted);
  }
  .news-modal-close{
    background:transparent;
    border:1px solid var(--panel-border);
    color:var(--muted);
    border-radius:6px;
    width:28px; height:28px;
    font-size:16px;
    line-height:1;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .news-modal-close:hover{ border-color:var(--down); color:var(--down); }
  .news-modal-body{
    position:relative;
    flex:1;
    min-height:0;
    background:#fff;
  }
  .news-modal-body iframe{
    width:100%;
    height:100%;
    border:none;
    display:block;
  }
  .news-modal-fallback{
    display:none;
    position:absolute;
    inset:0;
    background:var(--panel);
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    text-align:center;
    padding:20px;
  }
  .news-modal-fallback.show{ display:flex; }
  .news-modal-fallback-text{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    color:var(--muted);
  }
  .news-modal-open-btn{
    background:var(--amber);
    color:#12161B;
    border:none;
    border-radius:7px;
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    font-weight:700;
    letter-spacing:0.4px;
    text-decoration:none;
    padding:10px 18px;
    cursor:pointer;
  }
  .news-modal-open-btn:hover{ filter:brightness(1.08); }

  @media (max-width:600px){
    .news-modal-backdrop{ padding:0; }
    .news-modal{ max-width:100%; height:100%; border-radius:0; }
  }

/* ============================================================
   CALCULATOR FEATURE — STYLES
   Append this block to style.css.
   Scoped under .calc-panel / --calc-* variables so it won't
   collide with your existing ticker dashboard styles.
   ============================================================ */

.calc-panel{
  /* Reuses your site's existing theme variables (--muted, --amber,
     --border, --card, --text, --up/--down, etc.) where they exist,
     falling back to the mockup's palette otherwise. If your actual
     variable names differ from the guesses below (--card-2, --up,
     --blue), just adjust the fallback var() names on the right. */
  --calc-bg: var(--bg, #0B0F19);
  --calc-card: var(--card, #141A29);
  --calc-card-2: var(--card-2, #1B2233);
  --calc-border: var(--border, #252D40);
  --calc-text: var(--text, #E7EAF1);
  --calc-muted: var(--muted, #7C8598);
  --calc-green: var(--up, #34D8A3);
  --calc-green-dim: #1D3B33;
  --calc-blue: var(--blue, #5B9DF9);
  --calc-blue-dim: #1C2C45;
  --calc-amber: var(--amber, #F2B94B);

  font-family:'Inter',sans-serif;
  color:var(--calc-text);
  padding:18px 16px 24px;
  max-width:480px;
}

.calc-subnav{
  display:flex;
  gap:8px;
  margin-bottom:18px;
}
.calc-subtab{
  flex:1;
  background:var(--calc-card);
  border:1px solid var(--calc-border);
  color:var(--calc-muted);
  font-size:12px;
  font-weight:600;
  padding:9px 0;
  border-radius:10px;
  cursor:pointer;
}
.calc-subtab.active{
  background:var(--calc-green-dim);
  color:var(--calc-green);
  border-color:var(--calc-green-dim);
}

.calc-view{ display:none; }
.calc-view.active{ display:block; }

.calc-h2{ font-size:19px; font-weight:700; margin-bottom:4px; }
.calc-sub{ font-size:11.5px; color:var(--calc-muted); margin-bottom:18px; line-height:1.4; }

.calc-input-group{ margin-bottom:14px; }
.calc-input-label{ font-size:10.5px; color:var(--calc-muted); margin-bottom:6px; display:flex; justify-content:space-between; }
.calc-input-box{
  background:var(--calc-card);
  border:1px solid var(--calc-border);
  border-radius:10px;
  padding:9px 13px;
  font-family:'IBM Plex Mono',monospace;
  font-size:14px;
  font-weight:500;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.calc-input-box input[type="number"]{
  background:transparent;
  border:none;
  outline:none;
  color:var(--calc-text);
  font-family:'IBM Plex Mono',monospace;
  font-size:14px;
  font-weight:500;
  width:100%;
}
.calc-input-box .calc-unit{ color:var(--calc-muted); font-size:11px; font-family:'Inter',sans-serif; white-space:nowrap; margin-left:8px; }

.calc-slider{
  width:100%;
  accent-color:var(--calc-green);
  background:transparent;
}
.calc-blue ~ .calc-slider, #mo-rate, #mo-tax-pct{ accent-color:var(--calc-blue); }

.calc-segmented{
  display:flex;
  background:var(--calc-card);
  border:1px solid var(--calc-border);
  border-radius:10px;
  padding:3px;
  margin-bottom:18px;
}
.calc-segmented div{
  flex:1;
  text-align:center;
  padding:7px 0;
  font-size:11px;
  border-radius:8px;
  color:var(--calc-muted);
  font-weight:500;
  cursor:pointer;
}
.calc-segmented div.active{ background:var(--calc-green-dim); color:var(--calc-green); font-weight:600; }
.calc-segmented.calc-blue div.active{ background:var(--calc-blue-dim); color:var(--calc-blue); }

.calc-hero-result{
  background:linear-gradient(160deg, var(--calc-card-2), var(--calc-card));
  border:1px solid var(--calc-border);
  border-radius:16px;
  padding:20px 18px;
  margin-bottom:16px;
  position:relative;
  overflow:hidden;
}
.calc-hero-result .calc-lbl{ font-size:10.5px; color:var(--calc-muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.calc-hero-result .calc-big{
  font-family:'IBM Plex Mono',monospace;
  font-size:29px;
  font-weight:600;
  color:var(--calc-green);
  letter-spacing:-0.01em;
}
.calc-hero-result.calc-blue .calc-big{ color:var(--calc-blue); }
.calc-hero-result .calc-delta{ font-size:11px; color:var(--calc-green); margin-top:6px; font-weight:500; }
.calc-hero-result.calc-blue .calc-delta{ color:var(--calc-blue); }
.calc-hero-result .calc-accent-bar{
  position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--calc-green);
}
.calc-hero-result.calc-blue .calc-accent-bar{ background:var(--calc-blue); }

.calc-chart-card{
  background:var(--calc-card);
  border:1px solid var(--calc-border);
  border-radius:14px;
  padding:16px 14px 10px;
  margin-bottom:16px;
}
.calc-chart-title{ font-size:11px; color:var(--calc-muted); margin-bottom:12px; font-weight:500; }

.calc-bars{ display:flex; align-items:flex-end; gap:6px; height:90px; margin-bottom:8px; }
.calc-bars div{
  flex:1;
  background:linear-gradient(180deg, var(--calc-green), #12604A);
  border-radius:4px 4px 0 0;
  opacity:.9;
  min-height:2px;
}
.calc-bars div:last-child{ opacity:1; }
.calc-chart-axis{ display:flex; justify-content:space-between; font-size:9px; color:var(--calc-muted); font-family:'IBM Plex Mono',monospace; }

.calc-donut-row{ display:flex; align-items:center; gap:18px; }
.calc-donut{
  width:96px; height:96px; border-radius:50%;
  position:relative;
  flex-shrink:0;
}
.calc-donut::after{
  content:"";
  position:absolute; inset:14px;
  background:var(--calc-card);
  border-radius:50%;
}
.calc-donut-legend{ font-size:11px; flex:1; }
.calc-legend-row{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.calc-swatch{ width:9px; height:9px; border-radius:2px; flex-shrink:0; }
.calc-legend-row .calc-amt{ margin-left:auto; font-family:'IBM Plex Mono',monospace; color:var(--calc-text); font-weight:500; }
.calc-legend-row .calc-lbl2{ color:var(--calc-muted); }

.calc-table-card{
  background:var(--calc-card);
  border:1px solid var(--calc-border);
  border-radius:14px;
  overflow:hidden;
}
.calc-table-title{
  font-size:11px; color:var(--calc-muted); font-weight:500;
  padding:12px 14px 10px;
  border-bottom:1px solid var(--calc-border);
}
.calc-scroll-body{ max-height:260px; overflow-y:auto; }
.calc-trow{
  display:flex;
  padding:10px 14px;
  border-bottom:1px solid var(--calc-border);
  font-size:11px;
  font-family:'IBM Plex Mono',monospace;
}
.calc-trow:last-child{ border-bottom:none; }
.calc-trow div{ flex:1; }
.calc-trow div:first-child{ flex:0.6; color:var(--calc-muted); font-family:'Inter',sans-serif; }
.calc-trow.calc-head{ font-family:'Inter',sans-serif; color:var(--calc-muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.calc-trow .calc-pos{ color:var(--calc-green); }
.calc-trow.calc-blue .calc-pos{ color:var(--calc-blue); }

/* ============================================================
   HOME DASHBOARD — STYLES
   Scoped under .home- prefixed classes so they don't collide with
   the rest of the dashboard. Reuses existing theme variables
   (--up, --down, --amber, --panel, --panel-border, --muted, --text)
   plus two extra accents (blue/violet) for the section-card stripes
   and donut, matching the approved mockup.
   ============================================================ */

[data-view-panel="home"]{
  --home-blue:#5B9DF9;
  --home-violet:#A98CF7;
}

.home-hero{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:18px;
  margin-bottom:22px;
}
.home-hero-copy{
  border:1px solid var(--panel-border);
  border-radius:16px;
  padding:26px 26px 24px;
  background:linear-gradient(160deg, rgba(91,157,249,0.08), rgba(18,22,27,0.5));
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.home-eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px; font-weight:700; letter-spacing:1.8px; text-transform:uppercase;
  color:var(--amber); margin-bottom:12px;
}
.home-h1{ font-size:26px; font-weight:800; margin-bottom:12px; line-height:1.18; letter-spacing:-0.01em; }
.home-h1 em{ color:var(--up); font-style:normal; }
.home-sub{ font-size:13px; color:var(--muted); line-height:1.6; max-width:480px; margin-bottom:18px; }
.home-hero-stats{ display:flex; gap:22px; }
.home-hero-stat .n{ font-family:'IBM Plex Mono',monospace; font-size:18px; font-weight:700; color:var(--text); }
.home-hero-stat .l{ font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-top:2px; }

.home-pulse-card{
  border:1px solid var(--panel-border); border-radius:16px; padding:20px 22px 16px;
  background:var(--panel); position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.home-pulse-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:2px; }
.home-pulse-title{ font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.home-pulse-live{ display:flex; align-items:center; gap:5px; font-family:'IBM Plex Mono',monospace; font-size:9.5px; color:var(--up); }
.home-pulse-live .led{ width:5px; height:5px; border-radius:50%; background:var(--up); box-shadow:0 0 5px var(--up); animation:pulse 1.6s ease-in-out infinite; }
.home-pulse-number{ font-family:'IBM Plex Mono',monospace; font-size:26px; font-weight:700; color:var(--up); margin:4px 0 0; }
.home-pulse-delta{ font-size:11px; color:var(--up); font-weight:500; margin-bottom:8px; }
.home-pulse-svg{ width:100%; height:120px; }
.home-pulse-line{
  fill:none; stroke:var(--up); stroke-width:2; stroke-linejoin:round; stroke-linecap:round;
  filter:drop-shadow(0 0 6px rgba(0,227,154,.45));
}
.home-pulse-fill{ opacity:.16; }
.home-pulse-axis{ display:flex; justify-content:space-between; font-size:9px; color:var(--muted); font-family:'IBM Plex Mono',monospace; margin-top:-6px; }

.home-snap-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px;
}
.home-snap-card{
  border:1px solid var(--panel-border); border-radius:12px; background:var(--panel);
  padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.home-snap-info .home-snap-name{ font-size:11px; color:var(--muted); margin-bottom:4px; }
.home-snap-info .home-snap-price{ font-family:'IBM Plex Mono',monospace; font-size:15px; font-weight:700; }
.home-snap-info .home-snap-chg{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; margin-top:2px; }
.home-snap-chg.up{ color:var(--up); } .home-snap-chg.down{ color:var(--down); }
.home-spark{ width:64px; height:30px; flex-shrink:0; }

.home-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-bottom:26px; }
.home-card{
  position:relative; background:var(--panel); border:1px solid var(--panel-border);
  border-radius:14px; padding:16px 16px 17px; cursor:pointer; overflow:hidden;
  transition:border-color .15s, transform .15s;
}
.home-card:hover{ transform:translateY(-2px); }
.home-card::before{ content:""; position:absolute; left:0; top:0; right:0; height:3px; }
.home-card.c-green::before{ background:var(--up); } .home-card.c-green:hover{ border-color:var(--up); }
.home-card.c-blue::before{ background:var(--home-blue); } .home-card.c-blue:hover{ border-color:var(--home-blue); }
.home-card.c-amber::before{ background:var(--amber); } .home-card.c-amber:hover{ border-color:var(--amber); }
.home-card.c-violet::before{ background:var(--home-violet); } .home-card.c-violet:hover{ border-color:var(--home-violet); }
.home-card-top{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:12px; }
.home-card-icon{ font-size:19px; }
.home-card-title{ font-size:14px; font-weight:700; margin-bottom:5px; }
.home-card-sub{ font-size:11.5px; color:var(--muted); line-height:1.45; }

.home-chart-row{ display:grid; grid-template-columns:1fr 1.4fr; gap:14px; }
.home-chart-card{ border:1px solid var(--panel-border); border-radius:14px; background:var(--panel); padding:18px 18px 14px; }
.home-chart-card-title{ font-size:11px; color:var(--muted); font-weight:600; margin-bottom:14px; text-transform:uppercase; letter-spacing:.05em; }
.home-chart-note{ font-size:10.5px; color:var(--muted); margin-top:10px; font-family:'IBM Plex Mono',monospace; }

.home-donut-row{ display:flex; align-items:center; gap:20px; }
.home-donut{ width:104px; height:104px; border-radius:50%; position:relative; flex-shrink:0;
  background:conic-gradient(var(--up) 0deg 158deg, var(--home-blue) 158deg 246deg, var(--amber) 246deg 306deg, var(--home-violet) 306deg 360deg); }
.home-donut::after{ content:""; position:absolute; inset:16px; background:var(--panel); border-radius:50%; }
.home-donut-legend{ font-size:11.5px; flex:1; }
.home-legend-row{ display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.home-swatch{ width:9px; height:9px; border-radius:2px; }
.home-legend-row .home-amt{ margin-left:auto; font-family:'IBM Plex Mono',monospace; color:var(--text); font-weight:600; }
.home-legend-row .home-lbl2{ color:var(--muted); }

.home-bars{ display:flex; align-items:flex-end; gap:10px; height:120px; margin-bottom:8px; }
.home-bars .home-bargroup{ flex:1; display:flex; flex-direction:column; align-items:center; }
.home-bars .home-bar{ width:100%; border-radius:5px 5px 0 0; }
.home-bars .home-bar.up{ background:linear-gradient(180deg, var(--up), #0A5C46); }
.home-bars .home-bar.blue{ background:linear-gradient(180deg, var(--home-blue), #1C4E8F); }
.home-bar-axis{ display:flex; font-size:9.5px; color:var(--muted); font-family:'IBM Plex Mono',monospace; }
.home-bar-axis span{ flex:1; text-align:center; }

.mover-cols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.mover-col-label{
  font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; margin-bottom:8px;
}
.mover-col-label.gainers{ color:var(--up); }
.mover-col-label.losers{ color:var(--down); }
.mover-row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:6px 0; border-bottom:1px solid var(--panel-border); gap:6px;
}
.mover-row:last-child{ border-bottom:none; }
.mover-id{ min-width:0; }
.mover-sym{ font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:700; display:block; }
.mover-name{ font-size:9.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; }
.mover-chg{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; font-weight:700; flex-shrink:0; }
.mover-chg.up{ color:var(--up); }
.mover-chg.down{ color:var(--down); }
@media (max-width:480px){ .mover-cols{ grid-template-columns:1fr; } }

@media (max-width:900px){
  .home-hero{ grid-template-columns:1fr; }
  .home-snap-strip{ grid-template-columns:repeat(2,1fr); }
  .home-grid{ grid-template-columns:repeat(2,1fr); }
  .home-chart-row{ grid-template-columns:1fr; }
}

@media (max-width:480px){
  .home-h1{ font-size:22px; }
  .home-hero-stats{ gap:14px; flex-wrap:wrap; }
}
