*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:#061019;
  color:#dce8f4;
}

.top{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  background:#081722;
  border-bottom:1px solid #18303e;
}

.brand{
  font-size:26px;
  font-weight:800;
  letter-spacing:2px;
}

.brand span{
  color:#36d6c3;
}

.subtitle{
  color:#7894a6;
  font-size:12px;
  margin-top:4px;
}

.motto{
  color:#7995a8;
  font-size:13px;
}

.live{
  color:#47e59b;
  font-weight:700;
  font-size:13px;
}

.nav{
  display:flex;
  gap:5px;
  padding:12px 30px;
  background:#07131d;
  border-bottom:1px solid #162936;
}

.nav button{
  background:transparent;
  border:0;
  color:#829bac;
  padding:10px 15px;
  cursor:pointer;
}

.nav button.active{
  color:#42d9c6;
  border-bottom:2px solid #42d9c6;
}

main{
  padding:22px 30px 50px;
}

.summary{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.summary-card,
.panel,
.system,
.asset-card{
  background:#0b1a25;
  border:1px solid #17303e;
  border-radius:10px;
}

.summary-card{
  padding:16px 18px;
}

.summary-card span,
.system span{
  color:#7893a5;
  font-size:11px;
}

.summary-card strong{
  display:block;
  font-size:27px;
  margin-top:7px;
}

.warning strong{
  color:#f0bf57;
}

.system{
  margin-top:14px;
  padding:13px 18px;
  display:flex;
  gap:40px;
  align-items:center;
}

.system div{
  font-size:12px;
  color:#7893a5;
}

.system strong{
  color:#d8e8f2;
  margin-left:7px;
}

h2{
  font-size:15px;
  margin-top:28px;
  color:#9bb0bf;
}

.asset-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.asset-card{
  padding:15px;
  cursor:pointer;
  transition:.15s;
}

.asset-card:hover,
.asset-card.selected{
  border-color:#35cdbc;
  transform:translateY(-1px);
}

.asset-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.asset-symbol{
  font-size:17px;
  font-weight:800;
}

.asset-price{
  color:#9cb4c3;
  font-size:13px;
}

.asset-decision{
  margin-top:12px;
  font-weight:700;
  font-size:12px;
}

.buy{
  color:#43df9c;
}

.sell{
  color:#ff6875;
}

.wait{
  color:#f0bd59;
}

.small-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:13px;
  font-size:11px;
}

.small-grid span{
  color:#6f8b9d;
}

.small-grid strong{
  display:block;
  color:#d3e1e9;
  margin-top:2px;
}

.detail{
  margin-top:24px;
}

.detail-head{
  display:flex;
  align-items:center;
  gap:30px;
  background:#091923;
  border:1px solid #183441;
  padding:18px 20px;
  border-radius:10px;
}

.detail-head h1{
  margin:4px 0 0;
}

.detail-head span{
  color:#728e9f;
  font-size:10px;
}

.price{
  margin-left:auto;
}

.price strong{
  display:block;
  font-size:20px;
}

.decision{
  padding:9px 15px;
  border:1px solid currentColor;
  border-radius:7px;
  font-weight:800;
}

.detail-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:12px;
}

.bottom-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.panel{
  padding:17px;
}

.panel h3{
  margin:0 0 15px;
  font-size:13px;
  color:#9cb3c1;
}

.metric-row{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid #132b38;
  font-size:12px;
}

.metric-row span{
  color:#7893a5;
}

.reconciliation div{
  display:flex;
  justify-content:space-between;
  padding:7px 0;
  font-size:12px;
}

.gauge-line{
  display:grid;
  grid-template-columns:80px 1fr 45px;
  gap:8px;
  align-items:center;
  margin:11px 0;
  font-size:11px;
}

.bar{
  height:7px;
  background:#122d39;
  border-radius:10px;
  overflow:hidden;
}

.bar i{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#1e7b9d,#36d7b9);
  transition:.4s;
}

.thermometer{
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:center;
  min-height:150px;
}

.thermo-track{
  width:24px;
  height:130px;
  background:#122d39;
  border-radius:15px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}

.thermo-fill{
  width:100%;
  height:0;
  background:linear-gradient(to top,#2684a8,#40e0a8,#e6c052,#ff675f);
  transition:.4s;
}

#temperatureValue{
  font-size:32px;
  display:block;
}

#temperatureLabel{
  color:#7f9aaa;
}

.note{
  color:#698493;
  font-size:10px;
  line-height:1.5;
}

.levels div{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid #132b38;
  font-size:12px;
}

.levels span{
  color:#718b9b;
}

.levels small{
  display:block;
  color:#657e8d;
  margin-top:12px;
  line-height:1.4;
}

.pending{
  padding:25px 10px;
  text-align:center;
  color:#e2b758;
  border:1px dashed #735e2f;
  border-radius:8px;
}

.alert-panel{
  border-left:3px solid #e5b84e;
}

#whyWait{
  color:#a8bbc6;
  font-size:12px;
  line-height:1.7;
}

.alerts{
  margin-top:12px;
}

.alert-item{
  display:grid;
  grid-template-columns:100px 1fr 120px 120px;
  padding:10px;
  border-bottom:1px solid #14303d;
  font-size:12px;
}

.alert-item strong{
  color:#e7c25d;
}

footer{
  border-top:1px solid #17303e;
  background:#07131c;
  padding:18px 30px;
  display:flex;
  justify-content:space-between;
  color:#607b8b;
  font-size:11px;
}

footer strong{
  color:#8ca5b4;
}

@media(max-width:1100px){
  .asset-grid,
  .detail-grid{
    grid-template-columns:repeat(2,1fr);
  }

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

  .summary{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:650px){
  .asset-grid,
  .detail-grid,
  .bottom-grid,
  .summary{
    grid-template-columns:1fr;
  }

  .motto{
    display:none;
  }

  main{
    padding:15px;
  }
}

/* ===== V300 AUTH FRONTEND V1 ===== */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%,
      rgba(0,255,200,.10),
      transparent 38%),
    rgba(3,8,18,.985);
  backdrop-filter: blur(16px);
}

.auth-gate.auth-hidden {
  display: none;
}

.auth-panel {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid rgba(75,255,215,.22);
  border-radius: 20px;
  background: rgba(8,16,29,.97);
  box-shadow: 0 30px 80px rgba(0,0,0,.50);
}

.auth-brand {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-brand span {
  opacity: .68;
}

.auth-subtitle {
  margin: 7px 0 30px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}

.auth-panel h2 {
  margin: 0 0 24px;
  font-size: 19px;
}

.auth-panel label {
  display: block;
  margin: 15px 0 7px;
  font-size: 12px;
  font-weight: 600;
  opacity: .72;
}

.auth-panel input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,.04);
  color: inherit;
  font: inherit;
}

.auth-panel input:focus {
  border-color: rgba(75,255,215,.60);
  box-shadow: 0 0 0 3px rgba(75,255,215,.07);
}

#v300-login-button {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .08em;
}

#v300-login-button:disabled {
  cursor: wait;
  opacity: .55;
}

#v300-login-error {
  min-height: 18px;
  margin-top: 13px;
  text-align: center;
  font-size: 12px;
}

.auth-userbar {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(5,12,22,.90);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.auth-userbar[hidden] {
  display: none !important;
}

#v300-auth-role {
  opacity: .55;
}

#v300-logout-button {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 10px;
}

@media (max-width: 600px) {
  .auth-panel {
    padding: 28px 22px;
  }

  .auth-userbar {
    top: 8px;
    right: 8px;
  }
}
