:root{
      --bg:#0a0a0f;               /* ink-dark */
      --card:#12121a;             /* card dark */
      --ink:#e9ecf2;              /* text light */
      --muted:#a6aec3;
      --neon:#ff2ea6;             /* WSB pink */
      --gold:#ffd400;             /* tendies gold */
      --grid:#2a2a39;
      --ring:rgba(255,46,166,.35);
    }
    html,body{ background:radial-gradient(900px 600px at 80% -10%, rgba(255,46,166,.08), transparent),
                              radial-gradient(700px 500px at -10% 10%, rgba(255,212,0,.07), transparent),
                              var(--bg);
               color:var(--ink); font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";}
    a{ color:#cfe9ff; } a:hover{ color:#9fd6ff; }

    /* NAV */
    .navbar{
      background:rgba(10,10,15,.7);
      backdrop-filter: blur(6px);
      border-bottom:1px solid rgba(255,255,255,.06);
    }
    .brand-mark{ display:flex; align-items:center; gap:.6rem; }
    .brand-title{ font-weight:800; letter-spacing:.02em; color:#FFF; }
    .login-btn{ border:1px solid rgba(255,255,255,.15); }

    /* HERO SEARCH */
    .hero{ padding:1.2rem 0 2rem; text-align:center; }
    .logo{ width:84px; height:84px; border-radius:14px; background:#1a1a25; display:inline-flex; align-items:center; justify-content:center; }
    .logo img{ max-height:72px; }
    .headline{ margin-top:1rem; font-weight:800; letter-spacing:-.02em; }
    .sub{ color:var(--muted); }
    .search-wrap{ max-width:760px; margin:1.75rem auto 0; }
    .search-box{
      background:var(--card); border:1px solid var(--grid); border-radius:999px; padding:.5rem;
      box-shadow:0 14px 34px rgba(0,0,0,.35);
      transition: box-shadow .2s ease, border-color .2s ease;
    }
    .search-box:focus-within{ border-color:var(--ring); box-shadow: 0 0 0 .2rem var(--ring); }
    .search-input{ border:0; outline:0; box-shadow:none; background:transparent; color:var(--ink); padding:.9rem 1.2rem; font-size:1.125rem; }
    .search-input::placeholder{ color:#8e96ac; }
    .search-btn{ border-radius:999px; background:linear-gradient(90deg, var(--neon), var(--gold)); border:0; font-weight:700; }
    .chip{ border:1px dashed rgba(255,255,255,.18); color:var(--muted); }
      .search-input,
.search-input:focus {
  background-color: transparent !important;
  color: var(--ink);
  border: none;
  box-shadow: none;
}

    /* SECTIONS */
    .section{ padding:2.25rem 0; }
    .section-title{ display:flex; align-items:center; gap:.6rem; margin-bottom:1rem; font-weight:800; letter-spacing:.01em; }
    .title-accent{ color:var(--neon); }

    /* CARDS */
    .card-soft{
      background:var(--card);
      border:1px solid var(--grid);
      border-radius:1rem;
      transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .card-soft:hover{
      transform: translateY(-2px);
      border-color: rgba(255,46,166,.35);
      box-shadow: 0 20px 36px rgba(0,0,0,.45);
    }
    .mini-badge{
      font-size:.75rem; border:1px solid rgba(255,255,255,.20); color:#111;
      background:linear-gradient(90deg, var(--gold), #ffef86);
      font-weight:700;
    }
    .meta{ color:var(--muted); font-size:.925rem; }
    .kpi{ font-variant-numeric: tabular-nums; }

    /* NEWS */
    .news-card h6{ line-height:1.35; margin-bottom:.25rem; }
    .news-src{ color:#c8cee0; font-size:.85rem; }

    /* FOOTER */
    .footer{ border-top:1px solid rgba(255,255,255,.08); color:#9aa3b8; padding:3rem 0 2rem; }

    /* WSB flourishes (subtle) */
    .sticker{ color:var(--bg); background:var(--gold); border-radius:.5rem; padding:.15rem .4rem; font-weight:800; }
    .neon{ color:var(--neon); }

    .rounded-2xl{ border-radius:1rem; }
      /* Make stretched-link stay inside its card */
.card-soft,
.news-card,
article.card-soft {
  position: relative;   /* key line */
  overflow: hidden;     /* optional: keeps the link’s hitbox contained */
}

/* (Optional) ensure hero sits above anything rogue */
.hero { position: relative; z-index: 2; }
      /* Market status badge colors */
.market-open {
  background: linear-gradient(90deg, #2cd67e, #1bbf64);
  color: #0a0a0f;
}
.market-closed {
  background: linear-gradient(90deg, #444, #222);
  color: #ccc;
}
.market-after {
  background: linear-gradient(90deg, #ff6b6b, #ff2ea6);
  color: #fff;
}
.market-early {
  background: linear-gradient(90deg, #ffd400, #ffea70);
  color: #0a0a0f;
}
      /* Movers */
.badge-up {
  background: linear-gradient(90deg, #2cd67e, #1bbf64);
  color: #0a0a0f;
  border: 0;
}
.badge-down {
  background: linear-gradient(90deg, #ff6b6b, #ff2ea6);
  color: #fff;
  border: 0;
}
.badge-flat {
  background: rgba(255,255,255,.1);
  color: #e9ecf2;
  border: 1px solid rgba(255,255,255,.15);
}
.mover-card .meta { font-size: .9rem; }
.mover-card .kpi { font-variant-numeric: tabular-nums; }
.meta{ color:var(--muted); font-size:.95rem; }
.kpi{ font-variant-numeric: tabular-nums; }
hr{ border-color: rgba(255,255,255,.1)!important; }

/* Timeline */
.timeline{ position: relative; margin-left: .5rem; }
.timeline::before{ content:""; position:absolute; left:10px; top:0; bottom:0; width:2px; background:rgba(255,255,255,.12); }
.tl-item{ position:relative; padding-left:2rem; margin-bottom:1rem; }
.tl-item .dot{ position:absolute; left:2px; top:.35rem; width:16px; height:16px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 3px rgba(255,212,0,.15); }
.tl-item .dot.hold{ background:#2cd67e; box-shadow:0 0 0 3px rgba(44,214,126,.2); }
.tl-item .dot.alert{ background:#ff6b6b; box-shadow:0 0 0 3px rgba(255,107,107,.25); }

/* Quote row */
.quote-row .label{ color:var(--muted); }
.quote-row .value{ font-weight:600; }
.mini-badge{
      font-size:.75rem; border:1px solid rgba(255,255,255,.20); color:#111;
      background:linear-gradient(90deg, var(--gold), #ffef86);
      font-weight:700;
    }
/* Tooltip text underline */
.tooltip-text {
  border-bottom: 1px dashed var(--muted);
  cursor: help;
  color:var(--muted);
  text-decoration: none;
}
.tooltip-text:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* Tooltip bubble theme */
.tooltip-inner {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--grid);
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(255,46,166,.25);
}
.tooltip-arrow::before {
  border-top-color: var(--grid) !important;
}
/* TradingView container */
#tvChart{ background:#0f0f16; border:1px dashed rgba(255,255,255,.12); border-radius:1rem; height:420px; display:flex; align-items:center; justify-content:center; color:#9aa3b8;height:420px; }
.list-unstyled li+li{ margin-top:.5rem; }
.table-dark tr td, .table-dark tr th{ vertical-align: middle; }
.btn-grad{ background:linear-gradient(90deg, var(--neon), var(--gold)); border:0; color:#0a0a0f; font-weight:700; }
.tooltip-inner{ background:var(--card); color:var(--ink); border:1px solid var(--grid); font-size:.85rem; box-shadow:0 0 12px rgba(255,46,166,.25); }
.tooltip-arrow::before{ border-top-color:var(--grid)!important; }
.chip{ border:1px dashed rgba(255,255,255,.18); color:var(--muted); }

    /* Quote header band */
    .quote-head{ display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-end; }
    .quote-price{ font-size:2.25rem; font-weight:800; line-height:1; }
    .quote-change.up{ color:var(--green); }
    .quote-change.down{ color:var(--red); }

    /* News sentiments */
    .sent-pos{ background:rgba(44,214,126,.15); color:#a7f3c9; border:1px solid rgba(44,214,126,.35); }
    .sent-neg{ background:rgba(255,107,107,.15); color:#ffb3b3; border:1px solid rgba(255,107,107,.35); }
    .sent-neu{ background:rgba(200,206,224,.15); color:#dae0f0; border:1px solid rgba(200,206,224,.35); }

    .stretched-link-container{ position:relative; overflow:hidden; }

    /* TV chart placeholder */
    .tv-box{ background:#0f0f16; border:1px dashed rgba(255,255,255,.12); border-radius:1rem; height:420px; display:flex; align-items:center; justify-content:center; color:#9aa3b8; }
/* Autocomplete dropdown */
.search-wrap{ position:relative; } /* keeps dropdown anchored below */

.autocomplete-menu{
  position:absolute; left:0; right:0; top:100%;
  z-index:1050;
  background: var(--card);
  border:1px solid var(--grid);
  border-radius:.6rem;
  margin-top:-3.3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  overflow-y:auto;
  max-height: 5 * 44px; /* ~5 items visible without expanding input */
}

/* each row ~44px tall for comfortable click/keys */
.autocomplete-item{
  display:flex; align-items:center; gap:.6rem;
  padding:.6rem .75rem;
  color:var(--ink); cursor:pointer; white-space:nowrap;
}

.autocomplete-item .sym{
  font-weight:800; letter-spacing:.02em; margin-right:.4rem;
}

.autocomplete-item .name{
  color:var(--muted);
  overflow:hidden; text-overflow:ellipsis;
}

.autocomplete-item:hover, .autocomplete-item.active{
  background: rgba(255,255,255,.06);
}

.autocomplete-menu.d-none{ display:none; }
.tt-page-meta{
  margin: 12px 0 8px;
  font-size: 14px;
  opacity: .8;
}

.tt-pagination{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 0;
  border-top:1px solid rgba(0,0,0,.08);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.tt-btn, .tt-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  padding:0;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  border:1px solid rgba(0,0,0,.12);
  background: #fff;
  color:#111;
  transition: all .15s ease-in-out;
}
.tt-btn:hover, .tt-page:hover{ transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08);}
.tt-disabled{ pointer-events:none; opacity:.4;}

.tt-pages{ display:flex; gap:8px; align-items:center; }
.tt-page.tt-active{
  background:#111; color:#fff; border-color:#111;
}

.tt-ellipsis{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:38px; opacity:.6;
}

.tt-jump{
  display:flex; gap:8px; align-items:center; margin-left:auto;
}
.tt-jump-label{ font-size:13px; opacity:.8; }
.tt-jump-input{
  width:70px; height:30px; border-radius:10px; padding:0 10px; border:1px solid rgba(0,0,0,.12);
}
.tt-jump-btn{
  height:38px; padding:0 14px; border-radius:12px; border:1px solid #111; background:#111; color:#fff; cursor:pointer;
  transition: all .15s;
}
.tt-jump-btn:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* Dark mode support if body has .dark */
.dark .tt-btn, .dark .tt-page { background:#1d1f23; color:#eaeaea; border-color: rgba(255,255,255,.12); }
.dark .tt-page.tt-active{ background:#eaeaea; color:#111; border-color:#eaeaea; }
.dark .tt-pagination{ border-color: rgba(255,255,255,.12); }
.dark .tt-jump-input{ background:#1d1f23; color:#eaeaea; border-color: rgba(255,255,255,.12); }
.dark .tt-jump-btn{ background:#eaeaea; color:#111; border-color:#eaeaea; }
/* Default (desktop/tablet): show all */
.tt-mobile-status { display:none; }

/* Small screens: only show first/prev/next/last + compact status */
@media (max-width: 640px) {
  .tt-pages,            /* number buttons */
  .tt-jump {            /* jump-to form */
    display: none !important;
  }

  .tt-mobile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: .8;
    min-width: 90px;
  }

  .tt-pagination {
    gap: 8px;
    justify-content: space-between;
  }

  /* Make the 4 controls easy to tap */
  .tt-btn {
    min-width: 44px;     /* Apple HIG touch target */
    height: 42px;
    padding: 0 12px;
  }

  /* Optional: stretch buttons a bit for symmetry */
  .tt-pagination .tt-btn[aria-label="First page"],
  .tt-pagination .tt-btn[aria-label="Last page"] {
    flex: 0 0 auto;
  }
  .tt-pagination .tt-btn[aria-label="Previous page"],
  .tt-pagination .tt-btn[aria-label="Next page"] {
    flex: 1 1 0;
  }
}
.tt-article-img {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #f6f6f6; /* neutral fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom:10px;
}

/* Handle both oversized and undersized images elegantly */
.tt-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills container, crops overflow */
  object-position: center;   /* centers the image */
  display: block;
}

/* For smaller images — optionally prevent pixelation by constraining scaling */
.tt-article-img img.small {
  object-fit: contain;       /* keeps full image inside, centered */
  background: #fafafa;       /* subtle background behind small images */
}

/* Optional: make it shorter on phones */
@media (max-width: 640px) {
  .tt-article-img {
    height: 250px;
  }
}
#pageOverlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            border: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #FFF;
            backdrop-filter: blur(2px);
            height: 100%;
        }
        /* --- TendieTensor Navbar (always drawer) --- */
.tt-navbar {
  background: #050816;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.tt-navbar .brand-title {
  font-size: 1rem;
}

/* Drawer base */
.tt-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  max-width: 80vw;
  background: #020617;
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: -18px 0 45px rgba(15, 23, 42, 0.9);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.tt-nav-drawer.open {
  transform: translateX(0);
}

.tt-nav-drawer-header .brand-title {
  font-size: 0.95rem;
}

/* User section */
.tt-nav-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.tt-nav-user-plan {
  color: #9ca3af;
}

/* Drawer links */
.tt-nav-drawer-links .tt-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tt-nav-drawer-links .tt-nav-link i {
  font-size: 1rem;
}

.tt-nav-drawer-links .tt-nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  transform: translateX(2px);
  color: #f9fafb;
}

/* Active link highlight */
.tt-nav-drawer-links .tt-nav-link.active {
  background: linear-gradient(90deg, #22c55e, #a855f7);
  color: #020617;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.65);
  transform: translateX(2px);
}

.tt-nav-drawer-links .tt-nav-link.active i {
  color: #020617;
}

/* Divider */
.tt-nav-divider {
  border-color: rgba(148, 163, 184, 0.3);
  margin-block: 0.75rem;
}

/* Backdrop */
.tt-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  z-index: 1040;
}

.tt-nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* Toggle / close buttons */
.tt-nav-toggle,
.tt-nav-close {
  border-radius: 999px;
}

/* Prevent scroll when drawer is open */
body.tt-drawer-open {
  overflow: hidden;
}

/* Small tweaks for market badge */
#marketStatus {
  font-size: 0.7rem;
  padding-block: 0.25rem;
}

/* Optional gold button */
.btn-gold {
  background: #facc15;
  border-color: #facc15;
  color: #0f172a;
}

.btn-gold:hover {
  background: #eab308;
  border-color: #eab308;
  color: #020617;
}
/* Plan card base */
.tt-plan-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent);
  font-size: 0.85rem;
}

.tt-plan-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tt-plan-text {
  display: flex;
  flex-direction: column;
}

.tt-plan-title {
  font-weight: 600;
  color: #e5e7eb;
}

.tt-plan-sub {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* FREE plan */
.tt-plan-free {
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.4));
}

/* DIAMOND HANDS */
.tt-plan-diamond {
  border-color: rgba(129, 140, 248, 0.75);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(236, 72, 153, 0.5));
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.45);
}

.tt-plan-diamond .tt-plan-title {
  color: #f9fafb;
}

.tt-plan-diamond .tt-plan-sub {
  color: #e5e7eb;
}

/* LEGENDARY APE */
.tt-plan-legendary {
  border-color: rgba(250, 204, 21, 0.9);
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.65);
}

.tt-plan-legendary .tt-plan-title {
  color: #111827;
}

.tt-plan-legendary .tt-plan-sub {
  color: #1f2933;
}

.tt-plan-legendary .tt-plan-icon,
.tt-plan-diamond .tt-plan-icon,
.tt-plan-free .tt-plan-icon {
  filter: drop-shadow(0 0 4px rgba(15, 23, 42, 0.75));
}
