:root{
      --bg: #06010a;
      --bg2:#0a0211;

      --text: rgba(255,255,255,.92);
      --muted: rgba(255,255,255,.70);
      --muted2: rgba(255,255,255,.54);

      --accent: #d946ef;     /* fuchsia */
      --accent2:#7c3aed;     /* violet */
      --good:#22c55e;
      --blue:#38bdf8;
      --cyan:#06b6d4;

      --shadow: 0 20px 80px rgba(0,0,0,.55);
      --glow: 0 0 0 1px rgba(255,255,255,.06), 0 0 28px rgba(217,70,239,.30);
      --glowBlue: 0 0 0 1px rgba(255,255,255,.06), 0 0 28px rgba(56,189,248,.25);
      --radius: 18px;
      --radius2: 26px;
      --max: 1180px;
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; width:100%; min-width:100%; overflow-x:clip; }
    html{
      background:
        radial-gradient(900px 420px at 18% 9%, rgba(217,70,239,.24), transparent 55%),
        radial-gradient(700px 360px at 85% 18%, rgba(124,58,237,.22), transparent 58%),
        radial-gradient(900px 520px at 80% 78%, rgba(217,70,239,.12), transparent 60%),
        linear-gradient(180deg, var(--bg2), var(--bg) 30%, #040007 100%);
    }
    body{
      margin:0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color:var(--text);
      background: transparent;
      overflow-x:hidden;
      width:100%;
      min-width:100vw;
      font-size: 16.5px;
    }

    /* Decorative orbs */
    .orb{ position:fixed; filter: blur(70px); opacity:.55; z-index:0; pointer-events:none; }
    .orb.one{ width:420px; height:420px; left:-140px; top:70px; background:rgba(217,70,239,.55); border-radius:50%; }
    .orb.two{ width:420px; height:420px; right:-180px; top:220px; background:rgba(124,58,237,.45); border-radius:50%; }
    .orb.three{ width:520px; height:520px; left:50%; transform:translateX(-50%); bottom:-270px; background:rgba(217,70,239,.25); border-radius:50%; }

    .wrap{ width:min(var(--max), calc(100% - 40px)); margin-inline:auto; }

    /* Navbar */
    header{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(14px);
      background: linear-gradient(180deg, rgba(6,1,10,.88), rgba(6,1,10,.58));
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .navWrap{
      display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
      gap:10px; width:100%;
    }
    .navbar-collapse{ flex-basis: 100%; }

    .brand{
      display:flex; align-items:center; gap:10px;
      text-decoration:none;
    }
    .logo{
      width:30px; height:30px; border-radius:11px;
      background: linear-gradient(135deg, rgba(217,70,239,1), rgba(124,58,237,1));
      box-shadow: 0 14px 40px rgba(217,70,239,.22);
      position:relative; flex: 0 0 auto;
    }
    .logo:after{
      content:""; position:absolute; inset:7px;
      border-radius:8px; background: rgba(0,0,0,.22);
      border:1px solid rgba(255,255,255,.18);
    }
    .brandTitle{ color: rgba(255,255,255,.92); font-weight:900; letter-spacing:.10em; font-size:13px; margin:0; line-height:1.1; }
    .brandSub{ color: rgba(255,255,255,.68); margin:0; font-size:12px; line-height:1.1; }

    .nav-link{
      color: rgba(255,255,255,.72) !important;
      font-weight:700;
      padding: .85rem .9rem !important;
      border-radius: 14px;
      transition: .18s ease;
    }
    .nav-link:hover{ color: rgba(255,255,255,.95) !important; background: rgba(255,255,255,.04); }
    .nav-link.active{
      color: rgba(255,255,255,.95) !important;
      position:relative;
    }
    .nav-link.active:after{
      content:"";
      position:absolute;
      left: 18%;
      right: 18%;
      bottom: 7px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      box-shadow: 0 0 20px rgba(217,70,239,.35);
    }

    .navbar-toggler{
      border: 1px solid rgba(255,255,255,.18) !important;
      box-shadow: none !important;
      padding: .55rem .7rem;
      border-radius: 14px;
      background: rgba(255,255,255,.03);
    }
    .navbar-toggler:focus{ box-shadow: var(--glow) !important; border-color: rgba(217,70,239,.35) !important; }
    .navbar-toggler-icon{ filter: invert(1) opacity(.9); }

    /* Buttons */
    .xbtn{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      border-radius: 16px;
      padding: 12px 18px;
      font-weight: 800;
      font-size: 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: var(--text);
      text-decoration:none;
      transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
      user-select:none;
      white-space:nowrap;
    }
    .xbtn:hover{ transform: translateY(-1px); border-color: rgba(217,70,239,.35); box-shadow: var(--glow); }
    .xbtn:active{ transform: translateY(0px); }
    .xbtn.primary{
      border-color: rgba(217,70,239,.55);
      background: linear-gradient(135deg, rgba(217,70,239,1), rgba(124,58,237,1));
      box-shadow: 0 16px 50px rgba(217,70,239,.18);
    }
    .xbtn.success{
      border-color: rgba(34,197,94,.35);
      background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.85));
      box-shadow: 0 14px 45px rgba(34,197,94,.16);
    }
    .xbtn.info{
      border-color: rgba(56,189,248,.35);
      background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(6,182,212,.85));
      box-shadow: 0 14px 45px rgba(56,189,248,.14);
    }
    .xbtn.secondary{
      border-color: rgba(217,70,239,.30);
      background: rgba(217,70,239,.12);
      box-shadow: 0 14px 45px rgba(217,70,239,.10);
    }
    .xbtn.dark{
      border-color: rgba(255,255,255,.12);
      background: rgba(0,0,0,.25);
    }

    /* Page */
    main{ position:relative; z-index:1; padding: 40px 0 64px; }
    .pageTitle{
      font-size: clamp(34px, 4vw, 54px);
      font-weight: 900;
      letter-spacing: -.02em;
      margin: 0 0 6px;
    }
    .pageTitle span{ color: var(--accent); }
    .pageSub{ color: var(--muted); margin:0; font-size: 15.5px; line-height: 1.7; }

    /* Floating welcome chip */
    .welcome{
      border-radius: 16px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      padding: 10px 12px;
      display:flex; align-items:center; gap:10px;
      max-width: 280px;
      justify-content:flex-start;
    }
    .avatar{
      width:34px; height:34px; border-radius: 999px;
      background: linear-gradient(135deg, rgba(217,70,239,1), rgba(124,58,237,1));
      display:grid; place-items:center;
      font-weight: 900;
      box-shadow: 0 10px 30px rgba(217,70,239,.20);
    }
    .welcome small{ display:block; color: var(--muted2); font-weight:700; font-size: 12px; margin-top:-1px;}
    .welcome b{ display:block; font-weight: 900; font-size: 13px; }

    /* Card base */
    .cardX{
      border-radius: var(--radius2);
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .cardPad{ padding: 18px 18px; }

    /* Tabs bar */
    .tabsBar{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.20);
      box-shadow: 0 16px 60px rgba(0,0,0,.35);
      padding: 10px;
    }
    .tabBtn{
      display:inline-flex; align-items:center; gap:10px;
      padding: 12px 14px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 13.5px;
      color: rgba(255,255,255,.70);
      border: 1px solid transparent;
      background: transparent;
      cursor:pointer;
      transition: .16s ease;
      user-select:none;
    }
    .tabBtn:hover{ color: rgba(255,255,255,.92); background: rgba(255,255,255,.03); }
    .tabBtn.active{
      color: rgba(255,255,255,.96);
      background: linear-gradient(135deg, rgba(217,70,239,.40), rgba(124,58,237,.18));
      border-color: rgba(217,70,239,.30);
      box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 0 24px rgba(217,70,239,.18);
    }
    .tabIcon{
      width:18px; height:18px; display:inline-grid; place-items:center;
      opacity:.95;
    }

    /* Stat mini cards */
    .miniStat{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.08);
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      box-shadow: 0 16px 60px rgba(0,0,0,.35);
      padding: 16px;
      text-align:center;
    }
    .miniStat small{
      display:block;
      color: var(--muted2);
      font-weight: 800;
      letter-spacing: .08em;
      font-size: 12px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .miniStat b{
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -.02em;
    }

    /* Main compound card */
    .cardHeader{
      padding: 16px 18px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      background: linear-gradient(90deg, rgba(217,70,239,.10), rgba(124,58,237,.04), transparent 70%);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .cardHeader .left{
      display:flex; align-items:center; gap:10px;
    }
    .chipIcon{
      width:40px; height:40px;
      border-radius: 16px;
      display:grid;
      place-items:center;
      background: rgba(217,70,239,.18);
      border:1px solid rgba(217,70,239,.34);
      box-shadow: 0 0 26px rgba(217,70,239,.18);
    }
    .cardHeader h3{ margin:0; font-size: 18px; font-weight: 900; }
    .cardHeader p{ margin:0; color: var(--muted2); font-size: 13px; }
    .status{
      display:inline-flex; align-items:center; gap:8px;
      border-radius: 999px;
      padding: 8px 12px;
      font-weight: 900;
      font-size: 12px;
      color: rgba(255,255,255,.78);
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      white-space:nowrap;
    }
    .status .dot{
      width:8px; height:8px; border-radius:999px;
      background: rgba(239,68,68,.95);
      box-shadow: 0 0 14px rgba(239,68,68,.25);
    }

    .cpBig{
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,.08);
      background: linear-gradient(180deg, rgba(217,70,239,.10), rgba(255,255,255,.02));
      padding: 22px;
      height: 100%;
      position:relative;
      overflow:hidden;
      box-shadow: 0 16px 60px rgba(0,0,0,.35);
    }
    .cpBig:before{
      content:"";
      position:absolute;
      right:-40px; top:-50px;
      width:220px; height:220px; border-radius:50%;
      background: radial-gradient(circle at 35% 35%, rgba(217,70,239,.28), transparent 62%);
    }
    .cpLabel{
      color: rgba(255,255,255,.55);
      font-weight: 900;
      letter-spacing: .10em;
      font-size: 12px;
      text-transform: uppercase;
      text-align:center;
      margin-top: 6px;
    }
    .cpCircle{
      width:86px; height:86px;
      border-radius: 999px;
      margin: 16px auto 10px;
      display:grid; place-items:center;
      background: radial-gradient(circle at 35% 35%, rgba(217,70,239,.95), rgba(124,58,237,.65));
      box-shadow: 0 18px 60px rgba(217,70,239,.25);
      border: 1px solid rgba(255,255,255,.10);
    }
    .cpValue{
      text-align:center;
      font-weight: 900;
      font-size: 44px;
      letter-spacing: -.02em;
      margin: 0;
      color: rgba(255,255,255,.95);
    }
    .cpUnit{
      text-align:center;
      font-weight: 900;
      color: rgba(217,70,239,.95);
      margin-top: -6px;
    }

    .infoCard{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.20);
      box-shadow: 0 16px 60px rgba(0,0,0,.35);
      padding: 16px;
      height: 100%;
    }
    .infoRow{
      display:flex; align-items:flex-start; justify-content:space-between;
      gap:12px;
    }
    .infoRow small{ color: var(--muted2); font-weight: 800; }
    .infoRow b{ font-size: 22px; font-weight: 900; }
    .pillRight{
      display:inline-flex; align-items:center; gap:8px;
      padding: 8px 10px;
      border-radius: 999px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      color: rgba(255,255,255,.70);
      font-weight: 900;
      font-size: 12px;
      white-space:nowrap;
    }
    .pillRight.good{ border-color: rgba(34,197,94,.26); color: rgba(34,197,94,.95); background: rgba(34,197,94,.08); }
    .pillRight.purple{ border-color: rgba(217,70,239,.26); color: rgba(217,70,239,.95); background: rgba(217,70,239,.08); }

    .divider{
      height:1px;
      background: rgba(255,255,255,.07);
      margin: 12px 0;
    }

    .btnGrid{
      display:grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 12px;
    }
    .btnGrid .xbtn{ width:100%; }

    /* Returns table */
    .tableWrap{
      padding: 16px 18px 18px;
    }
    .tableTitle{
      text-align:center;
      font-weight: 900;
      margin: 0;
      padding: 16px 0 4px;
      font-size: 18px;
      letter-spacing: -.01em;
    }
    .tableX{
      width:100%;
      border-collapse:collapse;
      font-size: 14.5px;
      min-width: 860px;
    }
    .tableX th, .tableX td{
      padding: 14px 14px;
      border-bottom: 1px solid rgba(255,255,255,.07);
      text-align:left;
      vertical-align:middle;
    }
    .tableX th{
      color: var(--muted2);
      font-size: 13px;
      font-weight: 900;
      letter-spacing:.02em;
    }
    .tableX tr:last-child td{ border-bottom:0; }
    .badgeFire{
      display:inline-flex; align-items:center; gap:6px;
      font-weight: 900;
    }
    .noteBar{
      margin-top: 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.20);
      padding: 12px 14px;
      color: rgba(255,255,255,.70);
      font-size: 13px;
      text-align:center;
    }

    
    /* Safety: prevent accidental horizontal overflow */
    main, header, footer, section, .wrap{ max-width:100vw; overflow-x:clip; }
    
    /* Footer */
    footer{
      position:relative; z-index:1;
      padding: 44px 0 24px;
      border-top: 1px solid rgba(255,255,255,.06);
      background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
    }
    footer h4{
      margin:0 0 12px;
      font-size: 13px;
      letter-spacing:.10em;
      text-transform:uppercase;
      color: rgba(255,255,255,.78);
      font-weight: 900;
    }
    .footText{ color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
    .links a{
      display:block;
      color: var(--muted);
      font-size: 14px;
      padding: 7px 0;
      text-decoration:none;
    }
    .links a:hover{ color: var(--text); }
    .chip{
      border-radius: 14px;
      padding: 10px 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-size: 14px;
      text-decoration:none;
      display:inline-block;
      margin: 6px 8px 0 0;
    }
    .chip:hover{ color:var(--text); border-color: rgba(217,70,239,.28); box-shadow: var(--glow); }
    .copyright{
      margin-top: 18px;
      text-align:center;
      color: rgba(255,255,255,.42);
      font-size: 13px;
    }

    
    /* Bootstrap fallback (works even if CDN blocked) */
    .table-responsive{
      width:100%;
      max-width:100%;
      overflow-x:auto;
      -webkit-overflow-scrolling:touch;
    }
    .table-responsive > table{ margin-bottom:0; }
    
    /* Responsive */
    @media (max-width: 991.98px){
      .navbar-collapse{
        margin-top: 12px;
        padding: 14px 14px 16px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,.08);
        background: rgba(0,0,0,.16);
        box-shadow: 0 16px 60px rgba(0,0,0,.45);
        backdrop-filter: blur(10px);
      }
      .navbar-nav{ align-items: stretch !important; }
      .nav-link{ text-align:center; }
      .nav-link.active:after{ left: 30%; right: 30%; }
      .welcome{ max-width: 100%; }
      .btnGrid{ grid-template-columns: 1fr; }
      .tableX{ min-width: 760px; }
    }
    @media (max-width: 575.98px){
      .wrap{ width: calc(100% - 26px); }
      main{ padding-top: 28px; }
      .pageTitle{ font-size: 34px; }
    }


:root{
      --bg:#06010a;
      --bg2:#0a0211;

      --text: rgba(255,255,255,.92);
      --muted: rgba(255,255,255,.70);
      --muted2: rgba(255,255,255,.52);

      --accent:#d946ef;
      --accent2:#7c3aed;
      --violet:#c084fc;

      --good:#22c55e;
      --info:#3b82f6;
      --amber:#f59e0b;
      --pink:#ec4899;

      --line: rgba(255,255,255,.08);
      --card: rgba(10,6,16,.55);
      --shadow: 0 18px 70px rgba(0,0,0,.45);
      --glow: 0 0 0 1px rgba(255,255,255,.06), 0 0 28px rgba(217,70,239,.30);

      --r: 18px;
      --r2: 26px;
      --max: 1180px;
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; width:100%; min-width:100%; overflow-x:clip; }
    html{
      background:
        radial-gradient(900px 420px at 18% 9%, rgba(217,70,239,.22), transparent 55%),
        radial-gradient(700px 360px at 85% 18%, rgba(124,58,237,.20), transparent 58%),
        radial-gradient(900px 520px at 80% 78%, rgba(217,70,239,.12), transparent 60%),
        linear-gradient(180deg, var(--bg2), var(--bg) 30%, #040007 100%);
    }
    body{
      margin:0;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color:var(--text);
      background: transparent;
      overflow-x:clip;
      min-width:100vw;
      font-size: 16.5px;
    }

    /* container */
    .wrap{ width:min(var(--max), calc(100% - 40px)); margin-inline:auto; }
    @media (max-width: 575.98px){ .wrap{ width: calc(100% - 26px);} }

    /* soft orbs */
    .orb{ position:fixed; filter: blur(70px); opacity:.32; z-index:0; pointer-events:none; border-radius:50%; }
    .orb.one{ width:420px; height:420px; left:-140px; top:70px; background:rgba(217,70,239,.55); }
    .orb.two{ width:420px; height:420px; right:-180px; top:240px; background:rgba(124,58,237,.45); }
    .orb.three{ width:520px; height:520px; left:50%; transform:translateX(-50%); bottom:-270px; background:rgba(217,70,239,.25); }

    /* navbar */
    header{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(14px);
      background: linear-gradient(180deg, rgba(6,1,10,.88), rgba(6,1,10,.58));
      border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .navWrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; width:100%; }
    .navbar-collapse{ flex-basis:100%; }

    .brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
    .logo{
      width:30px; height:30px; border-radius:11px;
      background: linear-gradient(135deg, rgba(217,70,239,1), rgba(124,58,237,1));
      box-shadow: 0 14px 40px rgba(217,70,239,.22);
      position:relative; flex:0 0 auto;
    }
    .logo:after{ content:""; position:absolute; inset:7px; border-radius:8px; background: rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.18); }
    .brandTitle{ color: rgba(255,255,255,.92); font-weight:900; letter-spacing:.10em; font-size:13px; margin:0; line-height:1.1; }
    .brandSub{ color: rgba(255,255,255,.68); margin:0; font-size:12px; line-height:1.1; }

    .nav-link{
      color: rgba(255,255,255,.72) !important;
      font-weight:800;
      padding: .85rem .9rem !important;
      border-radius: 14px;
      transition: .18s ease;
    }
    .nav-link:hover{ color: rgba(255,255,255,.95) !important; background: rgba(255,255,255,.04); }
    .nav-link.active{ color: rgba(255,255,255,.95) !important; position:relative; }
    .nav-link.active:after{
      content:"";
      position:absolute;
      left: 18%;
      right: 18%;
      bottom: 7px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      box-shadow: 0 0 20px rgba(217,70,239,.35);
    }

    .navbar-toggler{
      border: 1px solid rgba(255,255,255,.18) !important;
      box-shadow: none !important;
      padding: .55rem .7rem;
      border-radius: 14px;
      background: rgba(255,255,255,.03);
    }
    .navbar-toggler:focus{ box-shadow: var(--glow) !important; border-color: rgba(217,70,239,.35) !important; }
    .navbar-toggler-icon{ filter: invert(1) opacity(.9); }

    /* buttons */
    .xbtn{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      border-radius: 16px;
      padding: 12px 18px;
      font-weight: 900;
      font-size: 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: var(--text);
      text-decoration:none;
      transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
      user-select:none;
      white-space:nowrap;
    }
    .xbtn:hover{ transform: translateY(-1px); border-color: rgba(217,70,239,.35); box-shadow: var(--glow); }
    .xbtn.primary{
      border-color: rgba(217,70,239,.55);
      background: linear-gradient(135deg, rgba(217,70,239,1), rgba(124,58,237,1));
      box-shadow: 0 16px 50px rgba(217,70,239,.18);
    }
    .xbtn.green{
      border-color: rgba(34,197,94,.55);
      background: rgba(34,197,94,.18);
      color: rgba(255,255,255,.95);
    }
    .xbtn.wallet{ padding: 12px 16px; }

    /* page */
    main{ position:relative; z-index:1; padding: 30px 0 72px; }
    main::before{
      content:"";
      position:absolute; inset:0;
      pointer-events:none;
      background:
        radial-gradient(900px 520px at 12% 42%, rgba(217,70,239,.10), transparent 60%),
        radial-gradient(900px 520px at 88% 44%, rgba(124,58,237,.08), transparent 60%);
      z-index:0;
    }
    main > .wrap{ position:relative; z-index:1; }

    .pageTitle{
      font-size: clamp(34px, 4vw, 52px);
      font-weight: 900;
      letter-spacing: -.02em;
      margin: 6px 0 6px;
      color: rgba(196, 140, 255, .95);
      text-shadow: 0 0 30px rgba(168,85,247,.22);
    }
    .pageSub{ margin:0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

    /* cards */
    .cardX{
      border-radius: var(--r2);
      border: 1px solid rgba(255,255,255,.10);
      background: var(--card);
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
      backdrop-filter: blur(10px);
    }
    .cardX::before{
      content:"";
      position:absolute; inset:0;
      pointer-events:none;
      background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.30));
    }
    .cardX > *{ position:relative; z-index:1; }

    /* tabs */
    .tabsBar{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.18);
      padding: 10px;
      box-shadow: 0 18px 60px rgba(0,0,0,.25);
    }
    .tabBtn{
      border:none;
      background: transparent;
      color: rgba(255,255,255,.72);
      font-weight: 900;
      padding: 10px 12px;
      border-radius: 14px;
      display:inline-flex;
      align-items:center;
      gap:10px;
      transition: .18s ease;
      white-space:nowrap;
    }
    .tabBtn:hover{ color: rgba(255,255,255,.92); background: rgba(255,255,255,.04); }
    .tabBtn.active{
      color: rgba(255,255,255,.95);
      background: linear-gradient(135deg, rgba(217,70,239,.42), rgba(124,58,237,.22));
      border: 1px solid rgba(217,70,239,.22);
      box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 26px rgba(217,70,239,.28);
    }
    .tabIcon{ display:inline-grid; place-items:center; width:20px; height:20px; }

    .tabPanel{ display:none; }
    .tabPanel.active{ display:block; }

    /* overview stat cards */
    .statCard{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.22);
      padding: 16px 16px;
      position:relative;
      overflow:hidden;
      min-height: 92px;
    }
    .statCard::after{
      content:"";
      position:absolute;
      right:-26px; top:-26px;
      width: 92px; height: 92px;
      border-radius: 28px;
      border: 1px solid rgba(255,255,255,.14);
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 62%);
      opacity:.35;
      transform: rotate(12deg);
      pointer-events:none;
    }
    .statCard .k{
      color: rgba(255,255,255,.55);
      font-weight: 900;
      font-size: 11px;
      letter-spacing:.08em;
      text-transform: uppercase;
    }
    .statCard .v{ margin-top: 6px; font-weight: 900; font-size: 24px; line-height: 1.1; }
    .statCard .unit{ color: rgba(255,255,255,.58); font-weight: 900; font-size: 12px; margin-left: 6px; }

    .statCard .actionPill{
      position:absolute;
      right: 12px; bottom: 12px;
      border-radius: 12px;
      padding: 7px 10px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
      color: rgba(255,255,255,.88);
      font-weight: 900;
      font-size: 12px;
      text-decoration:none;
    }
    .statCard .actionPill:hover{ border-color: rgba(217,70,239,.28); box-shadow: var(--glow); }

    .gBlue{ border-color: rgba(59,130,246,.20); background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(0,0,0,.22)); }
    .gViolet{ border-color: rgba(217,70,239,.20); background: linear-gradient(135deg, rgba(217,70,239,.18), rgba(0,0,0,.22)); }
    .gPink{ border-color: rgba(236,72,153,.20); background: linear-gradient(135deg, rgba(236,72,153,.16), rgba(0,0,0,.22)); }
    .gAmber{ border-color: rgba(245,158,11,.18); background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(0,0,0,.22)); }
    .gGreen{ border-color: rgba(34,197,94,.18); background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(0,0,0,.22)); }
    .gIndigo{ border-color: rgba(99,102,241,.18); background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(0,0,0,.22)); }

    /* section headers */
    .sectionTitle{
      font-weight: 900;
      font-size: 18px;
      color: rgba(255,255,255,.92);
      margin: 0;
    }
    .sectionSub{
      margin: 4px 0 0;
      color: rgba(255,255,255,.60);
      font-weight: 700;
      font-size: 13px;
    }

    /* levels list */
    .levelList{ display:flex; flex-direction:column; gap:10px; margin-top: 14px; }
    .levelItem{
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.22);
      padding: 14px 14px;
      display:flex;
      align-items:flex-start;
      gap:12px;
      position:relative;
      overflow:hidden;
    }
    .levelItem.active{
      border-color: rgba(217,70,239,.28);
      background: linear-gradient(135deg, rgba(217,70,239,.20), rgba(0,0,0,.22));
      box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 0 26px rgba(217,70,239,.24);
    }
    .levelNum{
      width: 34px; height: 34px;
      border-radius: 14px;
      display:grid; place-items:center;
      font-weight: 900;
      color: rgba(255,255,255,.92);
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
      flex:0 0 auto;
    }
    .levelItem.active .levelNum{
      background: linear-gradient(135deg, rgba(217,70,239,.95), rgba(124,58,237,.95));
      border-color: rgba(217,70,239,.35);
      box-shadow: 0 0 18px rgba(217,70,239,.25);
    }
    .levelItem h5{ margin:0; font-weight: 900; font-size: 14px; color: rgba(255,255,255,.92); }
    .levelItem .meta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.64); font-weight: 700; line-height: 1.7; }
    .levelItem .meta b{ color: rgba(255,255,255,.86); }
    .badgeActive{
      position:absolute;
      right: 12px; top: 12px;
      border-radius: 999px;
      padding: 6px 10px;
      font-weight: 900;
      font-size: 11px;
      border: 1px solid rgba(217,70,239,.22);
      background: rgba(217,70,239,.10);
      color: rgba(217,70,239,.92);
    }
    .hintRow{
      margin-top: 12px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
      padding: 12px 14px;
      font-weight: 800;
      font-size: 12.5px;
      color: rgba(255,255,255,.70);
    }

    /* make deposit */
    .inputWrap{
      margin-top: 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.25);
      padding: 12px 12px;
      display:flex;
      align-items:center;
      gap:10px;
    }
    .inputWrap .ic{
      width: 34px; height: 34px;
      border-radius: 14px;
      border:1px solid rgba(34,197,94,.25);
      background: rgba(34,197,94,.10);
      display:grid;
      place-items:center;
      flex:0 0 auto;
    }
    .amountInput{
      width: 100%;
      background: transparent;
      border:none;
      outline:none;
      color: rgba(255,255,255,.92);
      font-weight: 900;
      font-size: 16px;
    }
    .amountInput::placeholder{ color: rgba(255,255,255,.45); font-weight: 800; }

    .quickRow{
      margin-top: 12px;
      display:flex;
      flex-wrap:wrap;
      gap: 10px;
    }
    .qbtn{
      border-radius: 12px;
      padding: 8px 12px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: rgba(255,255,255,.84);
      font-weight: 900;
      font-size: 12px;
    }
    .qbtn:hover{ border-color: rgba(217,70,239,.25); box-shadow: var(--glow); }
    .depositInfo{
      margin-top: 18px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.06);
      background: rgba(0,0,0,.20);
      padding: 22px 14px;
      text-align:center;
      color: rgba(255,255,255,.58);
      font-weight: 700;
      font-size: 12.5px;
    }
    .depositInfo .i{
      width: 42px; height: 42px;
      border-radius: 18px;
      border: 1px solid rgba(217,70,239,.22);
      background: rgba(217,70,239,.10);
      display:grid; place-items:center;
      margin: 0 auto 12px;
      color: rgba(217,70,239,.95);
      font-weight: 900;
    }
    .bigCTA{
      margin-top: 14px;
      width:100%;
      border:none;
      border-radius: 16px;
      padding: 14px 16px;
      font-weight: 900;
      color: rgba(255,255,255,.95);
      background: linear-gradient(90deg, rgba(124,58,237,1), rgba(217,70,239,1));
      box-shadow: 0 18px 70px rgba(217,70,239,.20);
    }
    .bigCTA:hover{ box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 0 36px rgba(217,70,239,.32); transform: translateY(-1px); }
    .ctaMeta{
      margin-top: 8px;
      color: rgba(255,255,255,.50);
      font-weight: 700;
      font-size: 11px;
      text-align:center;
    }

    /* compound rewards */
    .subGrid{ margin-top: 14px; display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .subCard{
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.22);
      padding: 14px 14px;
      min-height: 86px;
    }
    .subCard small{ display:block; color: rgba(255,255,255,.55); font-weight: 900; font-size: 11px; letter-spacing:.08em; text-transform: uppercase; }
    .subCard .v{ margin-top: 6px; font-weight: 900; font-size: 16px; color: rgba(255,255,255,.90); }
    .btnDuo{
      margin-top: 14px;
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .btnDuo button{
      border-radius: 14px;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: rgba(255,255,255,.86);
      font-weight: 900;
    }
    .btnDuo button:hover{ border-color: rgba(217,70,239,.25); box-shadow: var(--glow); }

    /* empty */
    .empty{
      height: 178px;
      display:grid;
      place-items:center;
      text-align:center;
      color: rgba(255,255,255,.55);
      font-weight: 700;
      font-size: 13px;
    }
    .empty .ic{
      width:44px; height:44px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      display:grid;
      place-items:center;
      margin: 0 auto 10px;
      opacity:.9;
    }

    /* footer */
    footer{
      position:relative; z-index:1;
      padding: 44px 0 24px;
      border-top: 1px solid rgba(255,255,255,.06);
      background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
    }
    footer h4{
      margin:0 0 12px;
      font-size: 13px;
      letter-spacing:.10em;
      text-transform:uppercase;
      color: rgba(255,255,255,.78);
      font-weight: 900;
    }
    .footText{ color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
    .links a{
      display:block;
      color: var(--muted);
      font-size: 14px;
      padding: 7px 0;
      text-decoration:none;
    }
    .links a:hover{ color: var(--text); }
    .chip{
      border-radius: 14px;
      padding: 10px 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-size: 14px;
      text-decoration:none;
      display:inline-block;
      margin: 6px 8px 0 0;
    }
    .chip:hover{ color:var(--text); border-color: rgba(217,70,239,.28); box-shadow: var(--glow); }
    .copyright{ margin-top: 18px; text-align:center; color: rgba(255,255,255,.42); font-size: 13px; }

    /* mobile nav panel */
    @media (max-width: 991.98px){
      .navbar-collapse{
        margin-top: 12px;
        padding: 14px 14px 16px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,.08);
        background: rgba(0,0,0,.16);
        box-shadow: 0 16px 60px rgba(0,0,0,.45);
        backdrop-filter: blur(10px);
      }
      .navbar-nav{ align-items: stretch !important; }
      .nav-link{ text-align:center; }
      .nav-link.active:after{ left: 30%; right: 30%; }

      .subGrid{ grid-template-columns: 1fr; }
      .btnDuo{ grid-template-columns: 1fr; }
    }
    
    /* ===============================
   FIX: header fixed + mobile scroll
   Paste this at the VERY END
================================= */
:root{ --headerH: 76px; } /* adjust if your header height differs */

/* Sticky/fixed issues on mobile: don't clip/hidden overflow on html/body */
html, body{
  overflow-x: visible !important;
}

/* Keep only safe horizontal overflow protection */
body{
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Make header truly fixed on all mobiles */
header{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

/* Push page content below fixed header */
main{
  padding-top: calc(var(--headerH) + 32px) !important; /* 32px = your original top padding approx */
}

/* Mobile menu panel should scroll inside itself */
@media (max-width: 991.98px){
  .navbar-collapse{
    max-height: calc(100vh - var(--headerH));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Active Investments UI (Tether DeFi style) ===== */
.tdf-investments{
  --bg:#07040d;
  --panel:#0f0a18;
  --panel2:#120a1c;
  --stroke:rgba(255,255,255,.08);
  --text:#ffffff;
  --muted:rgba(255,255,255,.55);
  --muted2:rgba(255,255,255,.70);

  --p1:#b84cff;
  --p2:#ff3fb0;
  --p3:#7a35ff;

  padding: 44px 0;
  background: radial-gradient(1200px 500px at 18% 10%, rgba(184,76,255,.22), transparent 60%),
              radial-gradient(900px 450px at 78% 28%, rgba(255,63,176,.16), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.02), transparent 20%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

.tdf-wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.tdf-title{
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 18px 0;
  font-weight: 800;
}

.tdf-tabs{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.tdf-tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tdf-tab:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.tdf-tab.is-active{
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(184,76,255,.95), rgba(255,63,176,.92));
  box-shadow: 0 10px 30px rgba(184,76,255,.18), 0 8px 18px rgba(255,63,176,.12);
}

.tdf-card{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    radial-gradient(700px 220px at 10% 50%, rgba(184,76,255,.14), transparent 65%),
    radial-gradient(700px 220px at 90% 50%, rgba(255,63,176,.10), transparent 65%);
  overflow: hidden;
  padding: 22px;
  min-height: 150px;
}

.tdf-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px 180px at 18% 60%, rgba(184,76,255,.16), transparent 60%),
              radial-gradient(500px 180px at 82% 40%, rgba(255,63,176,.12), transparent 60%);
  filter: blur(10px);
  opacity: .9;
  pointer-events:none;
}

.tdf-empty{
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 106px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

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

.tdf-cta{
  appearance: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(184,76,255,.95), rgba(255,63,176,.92));
  box-shadow: 0 12px 28px rgba(184,76,255,.16), 0 10px 22px rgba(255,63,176,.10);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.tdf-cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(184,76,255,.22), 0 12px 26px rgba(255,63,176,.14);
}

.tdf-infobar{
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(18,10,28,.68);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted2);
  font-size: 13px;
  justify-content: center;
}

.tdf-bulb{
  filter: drop-shadow(0 6px 14px rgba(255,215,0,.12));
}

/* Responsive */
@media (max-width: 560px){
  .tdf-title{ font-size: 30px; }
  .tdf-tabs{ flex-wrap: wrap; }
  .tdf-card{ padding: 18px; }
}
