:root{
  --bg:#030303;
  --bg2:#080808;
  --panel:#0b0b09;
  --panel2:#10100d;
  --gold:#f5c451;
  --gold2:#ffda72;
  --gold3:#b9871d;
  --line:rgba(245,196,81,.20);
  --line2:rgba(255,255,255,.07);
  --text:#f7f5ef;
  --muted:#a9a69b;
  --green:#79d79b;
  --sidebar:250px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  min-height:100vh;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:radial-gradient(rgba(245,196,81,.18) 1px,transparent 1px);
  background-size:30px 30px;
  mask-image:linear-gradient(to bottom,black,transparent 90%);
}
button,a,input{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.app-shell{min-height:100vh}
.sidebar{
  position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);
  padding:24px 16px 18px;background:rgba(5,5,4,.96);
  border-right:1px solid var(--line);z-index:100;
  display:flex;flex-direction:column;
}
.sidebar-top{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:11px}
.brand-mark{
  width:40px;height:40px;border:1px solid var(--gold);border-radius:50%;
  display:grid;place-items:center;color:var(--gold);font-family:Orbitron;font-weight:700;
  box-shadow:0 0 22px rgba(245,196,81,.15);
}
.brand-name{font-family:Orbitron;font-size:12px;letter-spacing:1.4px;font-weight:700}
.brand-name span{display:block;color:var(--gold);font-size:8px;letter-spacing:2.6px;margin-top:3px}
.sidebar-close{display:none;background:none;border:0;color:#aaa;font-size:26px}
.profile-mini{
  display:flex;gap:11px;align-items:center;margin:30px 2px 22px;padding:12px;
  background:linear-gradient(135deg,rgba(245,196,81,.09),rgba(255,255,255,.02));
  border:1px solid var(--line);border-radius:12px;
}
.profile-avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--gold2),var(--gold3));color:#111;font-weight:800;
}
.profile-mini strong{display:block;font-size:12px}
.profile-mini small{display:block;color:#888;font-size:9px;margin-top:4px;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.side-nav{display:flex;flex-direction:column;gap:5px}
.nav-link{
  min-height:46px;padding:0 13px;display:flex;align-items:center;gap:12px;
  color:#aaa;border:1px solid transparent;border-radius:10px;font-size:12px;transition:.22s;
}
.nav-link:hover,.nav-link.active{
  color:var(--gold2);background:rgba(245,196,81,.07);border-color:var(--line);
}
.nav-icon{width:20px;text-align:center;color:var(--gold);font-size:16px}
.nav-link b{
  margin-left:auto;font-size:7px;padding:4px 6px;border-radius:20px;
  color:#111;background:var(--gold);
}
.sidebar-bottom{margin-top:auto}
.network-pill{
  font-size:9px;color:#a9b3a5;border:1px solid rgba(121,215,155,.18);
  padding:10px;border-radius:9px;margin-bottom:10px;text-align:center;background:rgba(121,215,155,.03);
}
.network-pill i,.live-status i,.live-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;background:#6ee08e;
  box-shadow:0 0 12px rgba(110,224,142,.7);margin-right:6px;
}
.side-logout{
  width:100%;height:40px;background:transparent;color:#888;border:1px solid var(--line2);border-radius:9px;font-size:10px;
}
.side-logout:hover{color:#ff8e8e;border-color:rgba(255,100,100,.2)}
.main-wrap{margin-left:var(--sidebar);min-height:100vh}
.topbar{
  height:78px;position:sticky;top:0;z-index:50;display:flex;align-items:center;
  justify-content:space-between;padding:0 38px;background:rgba(3,3,3,.88);
  backdrop-filter:blur(18px);border-bottom:1px solid var(--line2);
}
.page-heading .eyebrow{color:var(--gold);font-size:8px;letter-spacing:2.4px}
.page-heading h1{font-family:Orbitron;font-size:18px;margin-top:5px}
.top-actions{display:flex;align-items:center;gap:12px}
.live-status{font-size:9px;color:#9ea69e}
.connect-btn,.gold-btn{
  border:1px solid var(--gold);background:linear-gradient(135deg,var(--gold2),var(--gold));
  color:#111;font-weight:800;border-radius:9px;min-height:40px;padding:0 17px;font-size:10px;
  box-shadow:0 0 24px rgba(245,196,81,.12);transition:.2s;
}
.connect-btn:hover,.gold-btn:hover{transform:translateY(-2px);box-shadow:0 0 30px rgba(245,196,81,.24)}
.connect-btn em{font-style:normal}
.mobile-menu{display:none}
main{padding:32px 38px 60px;max-width:1500px;margin:auto}
.hero-card{
  min-height:365px;display:grid;grid-template-columns:1.05fr .95fr;gap:20px;
  padding:38px;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  background:linear-gradient(135deg,rgba(245,196,81,.055),rgba(0,0,0,.1));
  position:relative;
}
.hero-copy{align-self:center;position:relative;z-index:2}
.badge,.label{
  display:inline-block;color:var(--gold);font-size:8px;letter-spacing:2px;font-weight:700;
}
.badge{
  padding:9px 13px;border:1px solid rgba(245,196,81,.4);border-radius:999px;
  background:rgba(245,196,81,.04);margin-bottom:20px;
}
.hero-copy h2{font-family:Orbitron;font-size:clamp(30px,4vw,55px);line-height:1.08}
.hero-copy h2 span{color:var(--gold2)}
.hero-copy p{max-width:580px;color:#a9a69b;line-height:1.8;font-size:13px;margin:18px 0 24px}
.hero-actions{display:flex;gap:10px}
.ghost-btn{
  min-height:40px;padding:0 17px;border:1px solid var(--line);border-radius:9px;
  display:inline-flex;align-items:center;color:#ddd;font-size:10px;background:rgba(255,255,255,.02)
}
.hero-orbit{min-height:285px;position:relative;display:grid;place-items:center}
.orbit{position:absolute;border:1px solid rgba(245,196,81,.17);border-radius:50%;animation:spin 18s linear infinite}
.orbit-a{width:210px;height:210px}.orbit-b{width:285px;height:145px;transform:rotate(-22deg);animation-duration:24s}.orbit-c{width:330px;height:250px;transform:rotate(35deg);animation-duration:30s}
.hero-coin{
  width:170px;height:170px;border-radius:50%;display:grid;place-items:center;
  background:transparent;
  box-shadow:0 0 55px rgba(245,196,81,.26);z-index:2;
  overflow:visible;
}
.hero-coin img{
  width:100%;height:100%;display:block;object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(245,196,81,.22));
}
.node{
  position:absolute;z-index:3;padding:10px 12px;border:1px solid rgba(245,196,81,.3);
  border-radius:9px;background:rgba(8,8,6,.86);font-size:11px;color:#eee;text-align:center;
  box-shadow:0 0 20px rgba(245,196,81,.07);
}
.node small{font-size:7px;color:var(--gold)}
.node-1{top:15%;left:4%}.node-2{top:12%;right:3%}.node-3{bottom:12%;left:8%}
.wallet-banner{
  margin-top:18px;display:grid;grid-template-columns:.8fr 1.7fr auto;gap:18px;align-items:center;
  padding:20px 22px;border:1px solid var(--line);border-radius:14px;background:var(--panel);
}
.wallet-banner strong{display:block;margin-top:7px;font-family:Orbitron;font-size:16px}
.wallet-banner strong small{font-family:Inter;font-size:9px;color:var(--gold)}
.wallet-address-box strong{font-family:Inter;font-size:12px;color:#d6d2c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.copy-btn,.small-btn{
  border:1px solid var(--line);background:rgba(245,196,81,.06);color:var(--gold);
  border-radius:8px;min-height:38px;padding:0 15px;font-size:10px;font-weight:700;
}
.copy-btn:hover,.small-btn:hover{background:rgba(245,196,81,.13)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:18px}
.stat-card{
  min-height:132px;padding:18px;border:1px solid var(--line2);border-radius:13px;
  background:linear-gradient(145deg,#0d0d0b,#080807);transition:.22s;
}
.stat-card:hover{transform:translateY(-3px);border-color:var(--line);box-shadow:0 15px 35px rgba(0,0,0,.35)}
.stat-top{display:flex;justify-content:space-between;color:#aaa;font-size:10px}
.stat-top i{font-style:normal;color:var(--gold);font-size:16px}
.stat-card strong{display:block;font-family:Orbitron;font-size:19px;margin:22px 0 7px}
.stat-card small{font-size:8px;color:#777}
.content-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:18px}
.panel{
  padding:24px;border:1px solid var(--line2);border-radius:14px;background:var(--panel);
}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start}
.panel h3{font-family:Orbitron;font-size:18px;margin-top:7px}
.panel-icon{font-size:28px;color:var(--gold)}
.panel p{color:#929087;font-size:11px;line-height:1.7;margin:13px 0 17px}
.referral-row{display:flex;gap:8px}
.referral-row input{
  min-width:0;flex:1;background:#070706;border:1px solid var(--line2);border-radius:8px;
  color:#9f9b91;padding:0 12px;font-size:10px;outline:none;
}
.referral-id{display:flex;justify-content:space-between;margin-top:15px;padding-top:13px;border-top:1px solid var(--line2);font-size:9px;color:#777}
.referral-id strong{color:var(--gold)}
.activity-bars{height:145px;display:flex;align-items:flex-end;gap:7px;margin-top:23px;padding:0 4px}
.activity-bars span{
  flex:1;height:var(--h);min-width:5px;border-radius:5px 5px 2px 2px;
  background:linear-gradient(to top,var(--gold3),var(--gold2));opacity:.8;animation:barIn .7s ease both;
}
.activity-bars span:nth-child(2n){opacity:.55}.activity-bars span:nth-child(3n){opacity:.68}
.activity-foot{display:flex;justify-content:space-between;font-size:8px;color:#666;margin-top:12px}
.activity-foot strong{color:var(--green)}
.section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.info-card{
  min-height:190px;padding:24px;border:1px solid var(--line2);border-radius:14px;background:var(--panel);
}
.info-card .number{font-family:Orbitron;color:var(--gold);font-size:10px}
.info-card h3{font-family:Orbitron;margin:24px 0 10px;font-size:17px}
.info-card p{color:#8e8b82;font-size:10px;line-height:1.7;margin-bottom:18px}
.trust-strip{
  margin-top:18px;padding:22px 24px;border:1px solid var(--line);border-radius:14px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  background:linear-gradient(90deg,rgba(245,196,81,.06),rgba(121,215,155,.025));
}
.trust-strip h3{font-family:Orbitron;font-size:16px;margin-top:6px}
.trust-items{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.trust-items span{font-size:9px;color:#c6c1b5;border:1px solid var(--line2);border-radius:999px;padding:9px 11px}
footer{padding:22px 38px;border-top:1px solid var(--line2);display:flex;justify-content:space-between;color:#5f5d56;font-size:9px}
.mobile-overlay{display:none}
.toast{
  position:fixed;right:22px;bottom:22px;z-index:500;transform:translateY(20px);
  opacity:0;pointer-events:none;padding:11px 14px;border-radius:9px;border:1px solid var(--line);
  background:#0d0d0b;color:#eee;font-size:10px;transition:.25s;
}
.toast.show{opacity:1;transform:none}
.reveal{animation:fadeUp .7s ease both}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes barIn{from{height:0}to{height:var(--h)}}

@media(max-width:1050px){
  :root{--sidebar:220px}
  main{padding:25px}
  .topbar{padding:0 25px}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:800px){
  .sidebar{
    transform:translateX(-105%);transition:transform .25s ease;width:280px;
    box-shadow:25px 0 70px rgba(0,0,0,.55);
  }
  .sidebar.open{transform:translateX(0)}
  .sidebar-close{display:block}
  .mobile-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(3px);z-index:90;
  }
  .mobile-overlay.show{display:block}
  .main-wrap{margin-left:0}
  .mobile-menu{
    width:42px;height:42px;display:flex;flex-direction:column;justify-content:center;gap:5px;
    border:1px solid var(--line);background:#090908;border-radius:9px;
  }
  .mobile-menu span{width:19px;height:2px;background:var(--gold);margin:auto}
  .topbar{padding:0 17px;height:70px;gap:12px}
  .page-heading{margin-right:auto}
  .page-heading h1{font-size:15px}
  .top-actions .live-status{display:none}
  .connect-btn{padding:0 11px;min-height:38px}
  .connect-btn em{font-size:9px}
  main{padding:20px 15px 45px}
  .hero-card{grid-template-columns:1fr;padding:25px;min-height:0}
  .hero-orbit{min-height:285px}
  .wallet-banner{grid-template-columns:1fr}
  .wallet-address-box strong{max-width:100%}
  .content-grid,.section-grid{grid-template-columns:1fr}
  .trust-strip{align-items:flex-start;flex-direction:column}
  .trust-items{justify-content:flex-start}
  footer{padding:20px 15px;flex-direction:column;gap:8px}
}
@media(max-width:480px){
  .brand-name{font-size:10px}
  .topbar{padding:0 12px}
  .connect-btn{font-size:9px}
  main{padding-left:11px;padding-right:11px}
  .hero-card{padding:20px}
  .hero-copy h2{font-size:31px}
  .hero-orbit{transform:scale(.86);margin:-15px 0}
  .stats-grid{grid-template-columns:1fr}
  .stat-card{min-height:118px}
  .referral-row{flex-direction:column}
  .referral-row input{min-height:40px}
  .trust-strip{padding:19px}
  .trust-strip h3{font-size:14px}
}

/* Supplied TPT logo */
.brand-mark{
  overflow:hidden;
  background:#050505;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:50%;
}


/* =========================================================
   SHARED PAGES FROM SPECTRA DASHBOARD
   ========================================================= */

body{
  overflow-x:hidden;
}

.main-content{
  max-width:1200px;
  margin:0 auto;
  padding:32px 28px 60px;
}

.dashboard-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 24px;
  color:#f7f5ef;
  font-family:Orbitron,Inter,sans-serif;
  font-size:28px;
  letter-spacing:.2px;
}

.dashboard-title i{
  color:var(--gold);
}

.ai-section{
  margin-bottom:22px;
}

.ai-content{
  width:100%;
}

.ai-insight,
.upgrade{
  background:linear-gradient(145deg,rgba(18,18,15,.98),rgba(8,8,7,.98));
  border:1px solid rgba(245,196,81,.16);
  border-radius:20px;
  padding:24px;
  box-shadow:0 18px 60px rgba(0,0,0,.24);
}

.box-header{
  margin-bottom:22px;
}

.box-title{
  color:#fff;
  font-size:22px;
  font-weight:700;
  margin:0 0 6px;
}

.section-subtitle{
  color:#a9a69b;
  font-size:13px;
  margin:0;
}

.upgrade-options{
  width:100%;
}

.options-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.upgrade-option{
  position:relative;
  min-height:145px;
  padding:22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:17px;
  background:linear-gradient(145deg,#11110e,#090907);
  cursor:pointer;
  transition:.25s ease;
}

.upgrade-option:hover,
.upgrade-option.selected{
  border-color:rgba(245,196,81,.55);
  transform:translateY(-3px);
  box-shadow:0 12px 35px rgba(245,196,81,.08);
}

.option-title{
  color:#fff;
  font-weight:700;
  font-size:16px;
}

.option-price{
  color:var(--gold);
  font-size:25px;
  font-weight:800;
  margin-top:12px;
}

.option-duration{
  color:#aaa79d;
  font-size:12px;
  margin-top:4px;
}

.option-badge{
  position:absolute;
  top:12px;
  right:12px;
  color:#15120a;
  background:var(--gold);
  border-radius:999px;
  padding:4px 8px;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.form-group{
  margin-top:25px;
}

.form-group label{
  display:block;
  color:#ddd8cb;
  font-size:13px;
  margin-bottom:8px;
}

.form-control,
.search-input{
  width:100%;
  height:48px;
  border:1px solid rgba(255,255,255,.10);
  outline:none;
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:#fff;
  padding:0 15px;
  font-family:inherit;
  transition:.2s ease;
}

.form-control:focus,
.search-input:focus{
  border-color:rgba(245,196,81,.55);
  box-shadow:0 0 0 3px rgba(245,196,81,.07);
}

.form-control::placeholder,
.search-input::placeholder{
  color:#77756e;
}

.text-center{
  text-align:center;
}

.btn{
  border:0;
  cursor:pointer;
  border-radius:12px;
  padding:13px 23px;
  color:#15120a;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  font-weight:800;
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
}

.upgrade > div:last-child p{
  color:#aaa79d;
  font-size:12px;
}

.upgrade > div:last-child small{
  color:#f4b84b !important;
}

/* Team / Earnings */

.team-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.stat-card{
  background:linear-gradient(145deg,#11110e,#090907);
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px;
  padding:20px;
  min-width:0;
}

.stat-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#aaa79d;
  font-size:13px;
}

.stat-icon{
  width:38px;
  height:38px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--gold);
  background:rgba(245,196,81,.08);
  border:1px solid rgba(245,196,81,.14);
}

.stat-value{
  margin-top:17px;
  color:#fff;
  font-size:27px;
  font-weight:800;
}

.stat-change{
  margin-top:5px;
  font-size:11px;
}

.stat-change.positive{
  color:#73d995;
}

.team-tabs{
  background:linear-gradient(145deg,#11110e,#090907);
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  overflow:hidden;
}

.tabs-header{
  display:flex;
  gap:4px;
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.07);
  overflow-x:auto;
}

.tab-btn{
  border:0;
  background:transparent;
  color:#8e8b83;
  padding:12px 16px;
  border-radius:10px;
  white-space:nowrap;
  cursor:pointer;
  font-family:inherit;
  font-weight:700;
  font-size:12px;
}

.tab-btn:hover{
  color:#fff;
}

.tab-btn.active{
  color:#17130a;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.tab-content{
  display:none;
  padding:20px;
}

.tab-content.active{
  display:block;
}

.team-filters{
  display:flex;
  justify-content:flex-end;
  margin-bottom:16px;
}

.search-box{
  display:flex;
  width:min(420px,100%);
  gap:8px;
}

.search-input{
  flex:1;
}

.search-btn{
  flex:0 0 46px;
  border:1px solid rgba(245,196,81,.18);
  background:rgba(245,196,81,.08);
  color:var(--gold);
  border-radius:11px;
  cursor:pointer;
}

.table-container{
  width:100%;
  overflow-x:auto;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
}

.team-table{
  width:100%;
  border-collapse:collapse;
  min-width:600px;
}

.team-table th,
.team-table td{
  padding:14px 15px;
  border-bottom:1px solid rgba(255,255,255,.055);
  text-align:left;
  font-size:12px;
}

.team-table th{
  color:var(--gold);
  background:rgba(245,196,81,.035);
  font-weight:800;
  white-space:nowrap;
}

.team-table td{
  color:#c0bdb4;
}

.team-table tbody tr:hover{
  background:rgba(255,255,255,.025);
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
  padding-top:15px;
}

.pagination button{
  min-width:32px;
  height:32px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:#0c0c0a;
  color:#aaa79d;
  cursor:pointer;
}

.pagination button.active{
  color:#15120a;
  background:var(--gold);
}

.ai-section.animated{
  animation:fadePage .55s ease both;
}

@keyframes fadePage{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:900px){
  .main-content{
    padding:25px 18px 45px;
  }

  .options-grid{
    grid-template-columns:1fr;
  }

  .team-stats{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .main-content{
    padding:20px 13px 40px;
  }

  .dashboard-title{
    font-size:22px;
    margin-bottom:18px;
  }

  .ai-insight,
  .upgrade{
    padding:17px;
    border-radius:16px;
  }

  .box-title{
    font-size:19px;
  }

  .upgrade-option{
    min-height:125px;
    padding:17px;
  }

  .option-price{
    font-size:22px;
  }

  .tabs-header{
    padding:7px;
  }

  .tab-btn{
    padding:10px 12px;
    font-size:11px;
  }

  .tab-content{
    padding:13px;
  }

  .search-box{
    width:100%;
  }

  .team-table{
    min-width:560px;
  }

  .stat-card{
    padding:17px;
  }

  .stat-value{
    font-size:23px;
  }
}

/* Header compatibility with source pages */
.header{
  position:sticky;
  top:0;
  z-index:100;
}

.logo-text span{
  color:var(--gold);
}

.wallet-info{
  display:flex;
  align-items:center;
  gap:8px;
}

.connect-btn,
.register-btn,
.logout-btn{
  border:1px solid rgba(245,196,81,.2);
  background:rgba(245,196,81,.07);
  color:#f7f5ef;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
  font:600 12px Inter,sans-serif;
}

.connect-btn:hover,
.register-btn:hover,
.logout-btn:hover{
  border-color:rgba(245,196,81,.5);
  background:rgba(245,196,81,.12);
}

.footer{
  border-top:1px solid rgba(245,196,81,.12);
  padding:22px 28px;
  color:#79776f;
  font-size:11px;
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.footer strong{
  color:var(--gold);
}

@media(max-width:800px){
  .footer{
    flex-direction:column;
    text-align:center;
  }
}

/* =========================================================
   SPECTRA SHELL
   ========================================================= */

:root{
  --sidebar-width:250px;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 10%,rgba(245,196,81,.055),transparent 25%),
    radial-gradient(circle at 85% 90%,rgba(245,196,81,.035),transparent 25%),
    #030303;
  color:#f7f5ef;
  font-family:Inter,Arial,sans-serif;
}

body:before{
  display:none !important;
}

.header{
  position:sticky;
  top:0;
  margin-left:var(--sidebar-width);
  height:78px;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 28px;
  background:rgba(3,3,3,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.header .logo{
  display:none;
}

.header .wallet-info{
  margin-left:auto;
}

.logo-text{
  color:#fff;
  font-family:Orbitron,Inter,sans-serif;
  font-weight:700;
}

.logo-text span{
  color:var(--gold);
}

.mobile-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid rgba(245,196,81,.18);
  background:#0d0d0b;
  color:var(--gold);
  border-radius:10px;
  cursor:pointer;
  font-size:17px;
}

.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--sidebar-width);
  z-index:120;
  padding:22px 15px 18px;
  background:rgba(5,5,4,.97);
  border-right:1px solid rgba(245,196,81,.14);
  display:flex;
  flex-direction:column;
  box-shadow:20px 0 50px rgba(0,0,0,.18);
}

.sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 7px 22px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.sidebar-header .logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-family:Orbitron,Inter,sans-serif;
  font-size:16px;
  font-weight:700;
}

.sidebar-header .logo-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  color:var(--gold);
  border:1px solid rgba(245,196,81,.45);
  border-radius:50%;
}

.sidebar-close{
  display:none;
  border:0;
  background:transparent;
  color:#aaa79d;
  font-size:22px;
  cursor:pointer;
}

.nav-menu{
  list-style:none;
  padding:18px 0;
  margin:0;
  display:grid;
  gap:5px;
}

.nav-item{
  margin:0;
}

.nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 13px;
  border-radius:11px;
  color:#949188;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  transition:.22s ease;
}

.nav-link i{
  width:18px;
  text-align:center;
  color:#79766e;
}

.nav-link:hover,
.nav-item.active .nav-link{
  color:#fff;
  background:rgba(245,196,81,.075);
}

.nav-item.active .nav-link{
  box-shadow:inset 2px 0 0 var(--gold);
}

.nav-item.active .nav-link i,
.nav-link:hover i{
  color:var(--gold);
}

.ai-badge{
  margin-left:auto;
  color:#15120a;
  background:var(--gold);
  border-radius:999px;
  font-size:8px;
  padding:3px 6px;
}

.overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:110;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(3px);
}

.overlay.active{
  display:block;
}

.main-content{
  margin-left:var(--sidebar-width);
  min-height:calc(100vh - 78px);
}

.footer{
  margin-left:var(--sidebar-width);
}

@media(max-width:900px){

  .header{
    margin-left:0;
    height:70px;
    padding:0 15px;
  }

  .mobile-menu-toggle{
    display:grid;
    place-items:center;
  }

  .header .wallet-info{
    gap:5px;
  }

  .connect-btn,
  .register-btn,
  .logout-btn{
    padding:9px 10px;
  }

  .connect-btn span{
    max-width:110px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .sidebar{
    transform:translateX(-105%);
    transition:transform .28s ease;
    width:min(285px,88vw);
    box-shadow:30px 0 70px rgba(0,0,0,.45);
  }

  .sidebar.active{
    transform:translateX(0);
  }

  .sidebar-close{
    display:block;
  }

  .main-content{
    margin-left:0;
  }

  .footer{
    margin-left:0;
  }
}

@media(max-width:520px){

  .header{
    padding:0 11px;
  }

  .header .wallet-info .register-btn,
  .header .wallet-info .logout-btn{
    display:none !important;
  }

  .connect-btn{
    max-width:155px;
  }

  .connect-btn i{
    margin-right:4px;
  }
}


/* Dashboard graph + Activate ID page */
.dashboard-chart-card{margin:0 0 24px;background:linear-gradient(145deg,rgba(22,22,22,.98),rgba(7,7,7,.98));border:1px solid rgba(212,175,55,.24);border-radius:20px;padding:24px;box-shadow:0 14px 45px rgba(0,0,0,.28);position:relative;overflow:hidden}
.dashboard-chart-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(212,175,55,.08),transparent 35%);pointer-events:none}
.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;position:relative;z-index:1}
.chart-kicker{font-size:11px;letter-spacing:2px;color:#d4af37;font-weight:700}
.chart-head h2{margin:7px 0 4px;color:#fff;font-size:22px}
.chart-head p{margin:0;color:#9c9c9c;font-size:13px}
.chart-value{text-align:right}.chart-value strong{display:block;color:#f4d36b;font-size:26px}.chart-value span{font-size:11px;color:#888;letter-spacing:1px}
.chart-wrap{height:250px;margin-top:18px;position:relative}.chart-wrap canvas{width:100%!important;height:100%!important}
.chart-legend{display:flex;gap:20px;align-items:center;margin-top:8px;color:#999;font-size:12px}.chart-legend span{display:inline-flex;align-items:center;gap:7px}.chart-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;background:#d4af37;box-shadow:0 0 9px rgba(212,175,55,.55)}.chart-legend span:nth-child(2) i{background:#fff;box-shadow:none}.chart-legend span:last-child{margin-left:auto;color:#666}
.page-title-row{margin-bottom:20px}.page-title-row .dashboard-title{margin-bottom:5px}
.upgrade-panel{background:linear-gradient(145deg,rgba(18,18,18,.98),rgba(7,7,7,.98));border:1px solid rgba(212,175,55,.22);border-radius:20px;padding:26px;box-shadow:0 15px 50px rgba(0,0,0,.3)}.box-title{margin:0;color:#fff;font-size:22px}.package-input-wrap{margin-top:28px}.package-input-wrap label{display:block;color:#ddd;font-weight:600;margin-bottom:9px}.form-control{width:100%;box-sizing:border-box;background:#0c0c0c;border:1px solid rgba(212,175,55,.25);border-radius:10px;color:#fff;padding:13px 14px;outline:none}.form-control:focus{border-color:#d4af37;box-shadow:0 0 0 3px rgba(212,175,55,.08)}.action-center{margin-top:20px;text-align:center}.activation-note{margin-top:20px;padding:14px 16px;border-radius:12px;background:rgba(212,175,55,.045);border:1px solid rgba(212,175,55,.12);color:#cfcfcf}.activation-note small{color:#e1aa2f;line-height:1.9}
@media(max-width:600px){.dashboard-chart-card,.upgrade-panel{padding:18px;border-radius:16px}.chart-head{display:block}.chart-value{text-align:left;margin-top:12px}.chart-wrap{height:210px}.chart-legend{gap:10px;flex-wrap:wrap}.chart-legend span:last-child{margin-left:0;width:100%}.box-title{font-size:19px}}


/* =========================================================
   FINAL TPT DASHBOARD OVERRIDES
   Keeps the dashboard compact and aligned like the supplied
   desktop reference while sharing the same font system as the
   Activate ID page.
   ========================================================= */
body[data-page="dashboard"] .main-wrap,
body:not([data-page]) .main-wrap{
  margin-left:var(--sidebar-width);
  min-height:100vh;
}

body[data-page="dashboard"] .topbar,
body:not([data-page]) .topbar{
  height:78px;
  padding:0 38px;
}

body[data-page="dashboard"] main,
body:not([data-page]) main{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  padding:32px 38px 60px;
}

body[data-page="dashboard"] .hero-card,
body:not([data-page]) .hero-card{
  width:100%;
  min-height:365px;
  height:auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  align-items:stretch;
  gap:20px;
  padding:38px;
}

body[data-page="dashboard"] .hero-copy,
body:not([data-page]) .hero-copy{
  min-width:0;
  align-self:center;
}

body[data-page="dashboard"] .hero-copy h2,
body:not([data-page]) .hero-copy h2{
  font-family:Orbitron,Inter,sans-serif;
  font-weight:700;
  font-size:clamp(42px,4vw,64px);
  line-height:1.06;
  letter-spacing:-1.5px;
}

body[data-page="dashboard"] .hero-copy p,
body:not([data-page]) .hero-copy p{
  max-width:650px;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  line-height:1.75;
}

body[data-page="dashboard"] .hero-orbit,
body:not([data-page]) .hero-orbit{
  min-width:0;
  min-height:285px;
  height:100%;
  position:relative;
  display:grid;
  place-items:center;
  align-self:center;
}

body[data-page="dashboard"] .hero-coin,
body:not([data-page]) .hero-coin{
  flex:none;
}

body[data-page="dashboard"] .wallet-banner,
body:not([data-page]) .wallet-banner{
  width:100%;
}

body[data-page="dashboard"] .stats-grid,
body:not([data-page]) .stats-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* Do not let the shared Activate/Team stat styles resize dashboard cards. */
body[data-page="dashboard"] .stat-card,
body:not([data-page]) .stats-grid .stat-card{
  min-height:132px;
  padding:18px;
  border-radius:13px;
}

/* Same typography family/weights used by Activate ID. */
body[data-page="dashboard"],
body[data-page="dashboard"] button,
body[data-page="dashboard"] input,
body:not([data-page]){
  font-family:Inter,Arial,sans-serif;
}

body[data-page="dashboard"] h1,
body[data-page="dashboard"] h2,
body[data-page="dashboard"] h3,
body[data-page="dashboard"] .page-heading h1,
body[data-page="dashboard"] .hero-copy h2,
body[data-page="dashboard"] .panel h3,
body[data-page="dashboard"] .info-card h3,
body[data-page="dashboard"] .trust-strip h3{
  font-family:Orbitron,Inter,sans-serif;
}

@media (max-width:1100px){
  body[data-page="dashboard"] .hero-card,
  body:not([data-page]) .hero-card{
    grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);
    padding:30px;
  }
  body[data-page="dashboard"] .hero-copy h2,
  body:not([data-page]) .hero-copy h2{
    font-size:clamp(38px,4vw,54px);
  }
}

@media (max-width:800px){
  body[data-page="dashboard"] .main-wrap,
  body:not([data-page]) .main-wrap{
    margin-left:0;
  }
  body[data-page="dashboard"] .topbar,
  body:not([data-page]) .topbar{
    padding:0 17px;
    height:70px;
  }
  body[data-page="dashboard"] main,
  body:not([data-page]) main{
    padding:20px 15px 45px;
  }
  body[data-page="dashboard"] .hero-card,
  body:not([data-page]) .hero-card{
    grid-template-columns:1fr;
    padding:25px;
    min-height:0;
  }
  body[data-page="dashboard"] .hero-orbit,
  body:not([data-page]) .hero-orbit{
    min-height:285px;
  }
  body[data-page="dashboard"] .stats-grid,
  body:not([data-page]) .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:480px){
  body[data-page="dashboard"] main,
  body:not([data-page]) main{
    padding-left:11px;
    padding-right:11px;
  }
  body[data-page="dashboard"] .hero-card,
  body:not([data-page]) .hero-card{
    padding:20px;
  }
  body[data-page="dashboard"] .hero-copy h2,
  body:not([data-page]) .hero-copy h2{
    font-size:31px;
    letter-spacing:-.8px;
  }
  body[data-page="dashboard"] .hero-orbit,
  body:not([data-page]) .hero-orbit{
    transform:scale(.86);
    margin:-15px 0;
  }
  body[data-page="dashboard"] .stats-grid,
  body:not([data-page]) .stats-grid{
    grid-template-columns:1fr;
  }
}


/* HERO GRID FIX - keep TPT coin/orbit in the right column */
body[data-page="dashboard"] .hero-card .hero-copy,
body:not([data-page]) .hero-card .hero-copy{
  grid-column:1;
  grid-row:1;
}
body[data-page="dashboard"] .hero-card .hero-orbit,
body:not([data-page]) .hero-card .hero-orbit{
  grid-column:2;
  grid-row:1;
  width:100%;
  justify-self:stretch;
}
@media (max-width:800px){
  body[data-page="dashboard"] .hero-card .hero-orbit,
  body:not([data-page]) .hero-card .hero-orbit{
    grid-column:1;
    grid-row:2;
  }
}


/* =========================================================
   FINAL NAVBAR + MOBILE RESPONSIVE FIX
   ========================================================= */

/* Keep the sidebar fixed while page content scrolls. */
body[data-page="dashboard"] .sidebar,
body:not([data-page]) .sidebar{
  position:fixed !important;
  left:0 !important;
  top:0 !important;
  bottom:0 !important;
  height:100dvh !important;
  max-height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(245,196,81,.25) transparent;
}

body[data-page="dashboard"] .sidebar::-webkit-scrollbar,
body:not([data-page]) .sidebar::-webkit-scrollbar{width:4px}
body[data-page="dashboard"] .sidebar::-webkit-scrollbar-thumb,
body:not([data-page]) .sidebar::-webkit-scrollbar-thumb{background:rgba(245,196,81,.25);border-radius:20px}

/* The uploaded dashboard HTML contains spacer <br> tags from the pasted source.
   They must not stretch the fixed navigation. */
body[data-page="dashboard"] .app-shell > br,
body[data-page="dashboard"] .sidebar > br{display:none !important}

body[data-page="dashboard"] .sidebar-top{flex:0 0 auto}
body[data-page="dashboard"] .profile-mini{flex:0 0 auto;margin-top:24px;margin-bottom:20px}
body[data-page="dashboard"] .side-nav{flex:0 0 auto}
body[data-page="dashboard"] .sidebar-bottom{margin-top:auto;padding-top:20px}

body[data-page="dashboard"] .main-wrap{margin-left:250px;min-height:100vh}
body[data-page="dashboard"] .topbar{
  position:sticky !important;
  top:0 !important;
  z-index:80 !important;
  width:100%;
}

/* Desktop: keep navigation compact and stable. */
@media (min-width:901px){
  body[data-page="dashboard"] .sidebar{transform:none !important}
  body[data-page="dashboard"] .mobile-overlay{display:none !important}
}

/* Tablet + mobile navigation */
@media (max-width:900px){
  body[data-page="dashboard"] .hero-coin,
  body:not([data-page]) .hero-coin{
    width:150px;height:150px;
  }
}

@media (max-width:900px){
  body[data-page="dashboard"] .sidebar{
    width:min(290px,88vw) !important;
    padding:18px 14px 16px !important;
    transform:translateX(-110%) !important;
    transition:transform .28s cubic-bezier(.22,.61,.36,1) !important;
    z-index:120 !important;
    box-shadow:24px 0 70px rgba(0,0,0,.55) !important;
  }

  body[data-page="dashboard"] .sidebar.open,
  body[data-page="dashboard"] .sidebar.active{
    transform:translateX(0) !important;
  }

  body[data-page="dashboard"] .sidebar-close{display:block !important}

  body[data-page="dashboard"] .mobile-overlay{
    position:fixed !important;
    inset:0 !important;
    z-index:110 !important;
    display:none !important;
    background:rgba(0,0,0,.68) !important;
    backdrop-filter:blur(3px);
  }
  body[data-page="dashboard"] .mobile-overlay.show,
  body[data-page="dashboard"] .mobile-overlay.active{display:block !important}

  body[data-page="dashboard"] .main-wrap{margin-left:0 !important}
  body[data-page="dashboard"] .topbar{height:68px !important;padding:0 14px !important}
  body[data-page="dashboard"] .mobile-menu{
    display:flex !important;
    flex:0 0 40px;
    width:40px;height:40px;
    align-items:center;justify-content:center;flex-direction:column;gap:4px;
    border:1px solid var(--line) !important;
    background:#090908 !important;
    border-radius:9px;
  }
  body[data-page="dashboard"] .mobile-menu span{width:18px;height:2px;background:var(--gold);display:block}

  body[data-page="dashboard"] main{padding:18px 14px 42px !important}
  body[data-page="dashboard"] .hero-card{
    grid-template-columns:1fr !important;
    min-height:0 !important;
    padding:24px 20px !important;
  }
  body[data-page="dashboard"] .hero-orbit{min-height:280px !important;margin-top:4px}
}

@media (max-width:600px){
  body[data-page="dashboard"] .page-heading .eyebrow{font-size:7px;letter-spacing:1.7px}
  body[data-page="dashboard"] .page-heading h1{font-size:14px}
  body[data-page="dashboard"] .connect-btn{min-height:38px;padding:0 11px;font-size:9px}
  body[data-page="dashboard"] .hero-copy h2{font-size:clamp(29px,9vw,45px) !important}
  body[data-page="dashboard"] .hero-copy p{font-size:12px;line-height:1.65}
  body[data-page="dashboard"] .hero-actions{flex-wrap:wrap}
  body[data-page="dashboard"] .hero-orbit{min-height:245px !important;transform:scale(.86);transform-origin:center}
  body[data-page="dashboard"] .stats-grid{grid-template-columns:1fr !important}
  body[data-page="dashboard"] .wallet-banner{grid-template-columns:1fr !important}
}

@media (max-width:390px){
  body[data-page="dashboard"] .topbar{padding:0 10px !important}
  body[data-page="dashboard"] .top-actions{gap:6px}
  body[data-page="dashboard"] .connect-btn{max-width:132px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body[data-page="dashboard"] .hero-card{padding:20px 15px !important}
  body[data-page="dashboard"] .hero-orbit{transform:scale(.76)}
}


/* =========================================================
   UNIVERSAL TPT SIDEBAR — SAME ON EVERY PAGE
   ========================================================= */
.sidebar{
  position:fixed !important;
  left:0 !important;
  top:0 !important;
  bottom:0 !important;
  width:250px !important;
  height:100dvh !important;
  max-height:100dvh !important;
  padding:24px 16px 18px !important;
  background:rgba(5,5,4,.97) !important;
  border-right:1px solid var(--line) !important;
  z-index:120 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
.sidebar::-webkit-scrollbar{width:4px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(245,196,81,.25);border-radius:20px}
.sidebar-top{display:flex !important;align-items:center !important;justify-content:space-between !important;flex:0 0 auto}
.brand{display:flex !important;align-items:center !important;gap:11px !important}
.brand-mark{width:40px !important;height:40px !important;flex:0 0 40px !important;overflow:hidden !important}
.brand-mark img{width:100% !important;height:100% !important;object-fit:contain !important;display:block !important}
.brand-name{font-family:Orbitron,Inter,sans-serif !important;font-size:12px !important;letter-spacing:1.4px !important;font-weight:700 !important}
.brand-name span{display:block !important;color:var(--gold) !important;font-size:8px !important;letter-spacing:2.6px !important;margin-top:3px !important}
.sidebar .profile-mini{display:flex !important;flex:0 0 auto !important;margin:24px 2px 20px !important}
.sidebar .side-nav{display:flex !important;flex-direction:column !important;gap:5px !important;flex:0 0 auto !important}
.sidebar .nav-link{min-height:46px !important;padding:0 13px !important;display:flex !important;align-items:center !important;gap:12px !important;color:#aaa !important;border:1px solid transparent !important;border-radius:10px !important;font-size:12px !important;font-weight:600 !important;transition:.22s !important}
.sidebar .nav-link:hover,.sidebar .nav-link.active{color:var(--gold2) !important;background:rgba(245,196,81,.07) !important;border-color:var(--line) !important}
.sidebar .nav-icon{width:20px !important;text-align:center !important;color:var(--gold) !important;font-size:16px !important}
.sidebar .nav-link b{margin-left:auto !important;font-size:7px !important;padding:4px 6px !important;border-radius:20px !important;color:#111 !important;background:var(--gold) !important}
.sidebar .sidebar-bottom{margin-top:auto !important;padding-top:20px !important;flex:0 0 auto !important}
.sidebar .network-pill{font-size:9px !important;padding:10px !important;border-radius:9px !important;margin-bottom:10px !important}
.sidebar .side-logout{width:100% !important;height:40px !important}
.mobile-overlay{display:none}

/* Non-dashboard pages use the same sidebar geometry and desktop content offset. */
body[data-page]:not([data-page="dashboard"]) .main-content,
body[data-page]:not([data-page="dashboard"]) .footer{margin-left:250px}

@media (max-width:900px){
  .sidebar{
    width:min(290px,88vw) !important;
    padding:18px 14px 16px !important;
    transform:translateX(-110%) !important;
    transition:transform .28s cubic-bezier(.22,.61,.36,1) !important;
    box-shadow:24px 0 70px rgba(0,0,0,.55) !important;
  }
  .sidebar.open,.sidebar.active{transform:translateX(0) !important}
  .sidebar-close{display:block !important;background:none !important;border:0 !important;color:#aaa !important;font-size:26px !important}
  .mobile-overlay,.overlay{position:fixed !important;inset:0 !important;z-index:110 !important;background:rgba(0,0,0,.68) !important;backdrop-filter:blur(3px);display:none !important}
  .mobile-overlay.show,.mobile-overlay.active,.overlay.show,.overlay.active{display:block !important}
  body[data-page]:not([data-page="dashboard"]) .main-content,
  body[data-page]:not([data-page="dashboard"]) .footer{margin-left:0 !important}
  .header{margin-left:0 !important}
}


/* FINAL REQUESTED SIZE FIXES ONLY */
body[data-page="dashboard"] .hero-coin,
body:not([data-page]) .hero-coin{
  width:108px !important;
  height:108px !important;
}
body[data-page="dashboard"] .hero-coin img,
body:not([data-page]) .hero-coin img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
body[data-page="dashboard"] .content-grid,
body:not([data-page]) .content-grid{
  grid-template-columns:1fr !important;
}
