/* VargaMesh Testnet unified UI v2.0 */
:root{
  --tn:#47d7ff;
  --tn-strong:#7ee7ff;
  --tn-green:#58f2b1;
  --tn-bg:#030811;
  --tn-surface:#08121d;
  --tn-surface-2:#0b1724;
  --tn-line:rgba(126,231,255,.16);
  --tn-line-strong:rgba(126,231,255,.34);
  --tn-text:#edf8ff;
  --tn-muted:#93a8b8;
  --tn-shadow:0 18px 55px rgba(0,0,0,.28);
}

html{background:var(--tn-bg);scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--tn-text);
  background:
    radial-gradient(circle at 82% -8%,rgba(71,215,255,.11),transparent 28rem),
    radial-gradient(circle at 12% 32%,rgba(88,242,177,.045),transparent 24rem),
    #030811;
}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(126,231,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(126,231,255,.018) 1px,transparent 1px);
  background-size:38px 38px;
  mask-image:linear-gradient(to bottom,black,transparent 78%);
}

/* unified warning strip */
.testnet-warning,.tf-networkbar{
  position:relative;z-index:60;
  min-height:38px;
  display:flex;align-items:center;
  background:linear-gradient(90deg,rgba(19,129,169,.18),rgba(10,38,55,.72),rgba(19,129,169,.18));
  border-bottom:1px solid rgba(71,215,255,.22);
  color:var(--tn-muted);
  font-size:.78rem;letter-spacing:.04em;
}
.testnet-warning .wrap,.tf-networkbar{
  justify-content:center;gap:10px;text-align:center;
}
.testnet-warning strong,.tf-networkbar strong{color:var(--tn-strong);letter-spacing:.08em}

/* unified nav */
.topbar,.tf-header{
  position:sticky;top:0;z-index:50;
  background:rgba(3,8,17,.82)!important;
  border-bottom:1px solid rgba(126,231,255,.11)!important;
  backdrop-filter:blur(16px) saturate(130%);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.nav,.tf-headrow{min-height:76px;display:flex;align-items:center;gap:22px}
.brand,.tf-brand{display:inline-flex!important;align-items:center!important;gap:11px!important;text-decoration:none!important;flex:0 0 auto}
.brandmark,.tf-brand>img{
  width:42px!important;height:42px!important;border-radius:13px!important;
  display:grid!important;place-items:center!important;
  background:linear-gradient(145deg,rgba(71,215,255,.2),rgba(88,242,177,.08))!important;
  border:1px solid rgba(126,231,255,.28)!important;
  box-shadow:0 0 24px rgba(71,215,255,.10)!important;
}
.tf-brand>img{padding:5px;object-fit:contain}
.brandmark span{font-size:.74rem;font-weight:900;color:var(--tn-strong);letter-spacing:-.03em}
.brandtext,.tf-brand>span{font-weight:800!important;letter-spacing:-.02em!important;color:var(--tn-text)!important;line-height:1.05!important}
.brandtext small,.tf-brand small{display:block!important;margin-top:5px!important;font-size:.62rem!important;letter-spacing:.13em!important;color:var(--tn)!important;font-weight:700!important}
.navlinks,.tf-nav{display:flex!important;align-items:center!important;gap:4px!important;margin-left:auto!important;min-width:0}
.navlinks a,.tf-nav a{
  padding:9px 10px!important;border-radius:10px!important;text-decoration:none!important;
  color:#a9bac8!important;font-size:.82rem!important;font-weight:650!important;white-space:nowrap;
  border:1px solid transparent!important;transition:.18s ease!important;
}
.navlinks a:hover,.tf-nav a:hover{color:#fff!important;background:rgba(126,231,255,.07)!important;border-color:rgba(126,231,255,.11)!important}
.navlinks a[aria-current="page"],.tf-nav a.active,.tf-nav a[aria-current="page"]{
  color:var(--tn-strong)!important;background:rgba(71,215,255,.10)!important;border-color:rgba(71,215,255,.20)!important;
}
.nav-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.statuspill,.tn-nav-chip{
  display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;
  background:rgba(88,242,177,.075);border:1px solid rgba(88,242,177,.2);color:#8ff4c8;
  font-size:.69rem;font-weight:800;letter-spacing:.06em;white-space:nowrap;
}
.statuspill:before,.tn-nav-chip:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tn-green);box-shadow:0 0 10px var(--tn-green)}

/* hero language */
.hero.testnet-hero,.tf-hero,.tn-page-hero{
  position:relative;overflow:hidden;
  border-bottom:1px solid rgba(126,231,255,.09);
  background:
    radial-gradient(circle at 82% 24%,rgba(71,215,255,.12),transparent 24rem),
    linear-gradient(180deg,rgba(8,18,29,.62),rgba(3,8,17,.08));
}
.hero.testnet-hero:after,.tf-hero:after,.tn-page-hero:after{
  content:"TESTNET";position:absolute;right:-.5vw;bottom:-4vw;pointer-events:none;
  font-weight:900;font-size:clamp(6rem,17vw,17rem);letter-spacing:-.08em;color:rgba(71,215,255,.025);
}
.hero.testnet-hero .wrap,.tf-hero .tf-wrap,.tn-page-hero .wrap{position:relative;z-index:1}
.testnet-badge,.tf-eyebrow,.eyebrow{
  color:var(--tn-strong)!important;letter-spacing:.12em!important;font-weight:800!important;
}
.hero h1,.tf-hero h1,.tn-page-hero h1{letter-spacing:-.045em;line-height:.98}
.hero .lead,.tf-lead,.tn-page-hero .lead{color:#a9bac8;max-width:760px}
.metal,.tf-hero h1 span{color:var(--tn-strong)!important}

/* cards */
.card,.tf-card,.tf-statuscard{
  background:linear-gradient(180deg,rgba(11,23,36,.90),rgba(7,16,26,.92))!important;
  border:1px solid rgba(126,231,255,.12)!important;
  border-radius:18px!important;
  box-shadow:0 12px 38px rgba(0,0,0,.18)!important;
}
.card:hover,.tf-card:hover{border-color:rgba(126,231,255,.20)!important}
.testnet-card-accent,.tf-request-card{border-color:rgba(71,215,255,.28)!important;box-shadow:0 16px 48px rgba(25,159,210,.06)!important}
.testnet-kpi{min-height:128px;padding:22px!important;position:relative;overflow:hidden}
.testnet-kpi:after{content:"";position:absolute;right:-30px;bottom:-42px;width:95px;height:95px;border-radius:50%;border:1px solid rgba(126,231,255,.07)}
.testnet-kpi span{color:var(--tn-muted)!important;text-transform:uppercase;letter-spacing:.055em;font-size:.69rem!important;font-weight:700}
.testnet-kpi strong{font-size:clamp(1.3rem,2vw,1.75rem)!important;color:#f5fbff}
.testnet-kpi small{color:#7d92a2!important}

.section,.tf-section{padding-top:clamp(42px,6vw,76px);padding-bottom:clamp(42px,6vw,76px)}
.section-head{margin-bottom:24px}
.section-head h1,.section-head h2{letter-spacing:-.035em}
.section-head p{color:var(--tn-muted)}

/* controls */
.input,input[type="text"],input[type="password"],input[type="number"],textarea,select{
  background:#040b13!important;color:#edf8ff!important;border:1px solid rgba(126,231,255,.14)!important;
  border-radius:12px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
}
.input:focus,input:focus,textarea:focus,select:focus{outline:none!important;border-color:rgba(71,215,255,.52)!important;box-shadow:0 0 0 3px rgba(71,215,255,.09)!important}
.btn,.tf-btn{
  border-radius:11px!important;font-weight:750!important;letter-spacing:-.01em!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.btn:hover,.tf-btn:hover{transform:translateY(-1px)}
.btn.primary,.tf-btn-primary{background:linear-gradient(135deg,#26bde8,#58d7ff)!important;color:#001019!important;box-shadow:0 9px 24px rgba(38,189,232,.14)!important}

/* code / tables */
.testnet-code,pre,code.tf-code{
  background:linear-gradient(180deg,#02070d,#050c14)!important;border:1px solid rgba(126,231,255,.13)!important;
  border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
}
.testnet-code{padding:20px!important;line-height:1.72!important;color:#cfeaff!important}
.table-wrap,.explorer-table-wrap,.tf-table-wrap{border:1px solid rgba(126,231,255,.10);border-radius:16px;overflow:auto;background:rgba(5,12,20,.52)}
.table,.tf-table{margin:0!important}
.table th,.tf-table th{color:#8fa9bb!important;font-size:.7rem!important;text-transform:uppercase;letter-spacing:.055em;background:rgba(126,231,255,.035)!important}
.table td,.table th,.tf-table td,.tf-table th{border-color:rgba(126,231,255,.075)!important}

.testnet-note,.tf-warning{
  border:1px solid rgba(71,215,255,.18)!important;background:linear-gradient(90deg,rgba(71,215,255,.055),rgba(88,242,177,.03))!important;
  border-radius:16px!important;color:#adbecb!important;
}
.testnet-note strong,.tf-warning strong{color:#dff6ff}

/* uniform small-page hero */
.tn-page-hero{padding:58px 0 46px}
.tn-page-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,390px);gap:42px;align-items:center}
.tn-page-orb{min-height:190px;display:grid;place-items:center;position:relative}
.tn-page-orb:before,.tn-page-orb:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(126,231,255,.14)}
.tn-page-orb:before{width:170px;height:170px;box-shadow:0 0 55px rgba(71,215,255,.08)}
.tn-page-orb:after{width:120px;height:120px;border-color:rgba(88,242,177,.12)}
.tn-page-orb img{position:relative;z-index:2;width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 14px 26px rgba(0,0,0,.4))}
.tn-page-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.tn-page-meta span{padding:7px 9px;border-radius:999px;border:1px solid rgba(126,231,255,.14);background:rgba(126,231,255,.04);color:#9eb5c5;font-size:.72rem;font-weight:700}

/* footer */
.footer,.tf-footer{margin-top:36px!important;border-top:1px solid rgba(126,231,255,.09)!important;background:rgba(2,6,12,.72)!important;color:#8da2b2!important}
.footer-bottom,.tf-footer .tf-wrap{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:.78rem}
.footer-grid a{color:#91a7b6!important}
.footer-grid a:hover{color:var(--tn-strong)!important}

/* faucet normalization */
.tf-wrap{width:min(1180px,calc(100% - 40px))!important;margin-inline:auto!important}
.tf-header .tf-wrap{width:min(1180px,calc(100% - 40px))!important}
.tf-networkbar{padding:9px 20px!important;justify-content:center!important;gap:10px!important}
.tf-hero{padding:64px 0 52px!important}
.tf-hero-grid{gap:42px!important}
.tf-statuscard{padding:24px!important}
.tf-pill{border-radius:999px!important;background:rgba(126,231,255,.05)!important;border-color:rgba(126,231,255,.13)!important;color:#a8bdca!important}
.tf-section-alt{background:transparent!important}

@media(max-width:1060px){
  .nav,.tf-headrow{align-items:flex-start;padding-top:14px;padding-bottom:12px;flex-wrap:wrap;gap:10px}
  .navlinks,.tf-nav{order:3;width:100%;margin-left:0!important;overflow-x:auto!important;padding-bottom:2px;scrollbar-width:none}
  .navlinks::-webkit-scrollbar,.tf-nav::-webkit-scrollbar{display:none}
  .nav-actions{margin-left:auto}
}
@media(max-width:900px){
  .tn-page-hero-grid{grid-template-columns:1fr}.tn-page-orb{display:none}
  .testnet-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tf-hero-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .testnet-warning,.tf-networkbar{font-size:.69rem}.testnet-warning .wrap{padding:8px 14px!important}
  .wrap,.tf-wrap{width:min(100% - 28px,1180px)!important}
  .brandtext small,.tf-brand small{font-size:.56rem!important}
  .nav-actions{display:none}
  .testnet-kpi-grid{grid-template-columns:1fr!important}
  .hero.testnet-hero,.tf-hero,.tn-page-hero{padding-top:42px!important;padding-bottom:38px!important}
  .footer-bottom,.tf-footer .tf-wrap{align-items:flex-start;flex-direction:column;justify-content:center;padding:22px 0}
}
.brandmark img{width:30px;height:30px;object-fit:contain;display:block}
