:root{
  --bg:#080d1d;
  --panel:#111a34;
  --panel2:#18213f;
  --line:#273353;
  --text:#f7f9ff;
  --muted:#9aa8c8;
  --aqua:#41dfca;
  --blue:#69bfff;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 2%,#49349677,transparent 32rem),
    radial-gradient(circle at 90% 25%,#168f8b44,transparent 28rem),
    var(--bg);
}

button,input{font:inherit}

.shell{
  max-width:1180px;
  margin:auto;
  padding:32px 24px 70px;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:70px;
}

.brand{
  color:#fff;
  text-decoration:none;
  font-weight:950;
  letter-spacing:.08em;
}

.brand span{
  display:inline-grid;
  place-items:center;
  width:31px;
  height:31px;
  margin-right:8px;
  border-radius:10px;
  color:#071126;
  background:linear-gradient(135deg,var(--aqua),var(--blue));
}

.header-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.platform-label{
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
}

.auth-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(380px,.8fr);
  gap:70px;
  align-items:start;
}

.intro{
  padding:45px 10px 0;
}

.eyebrow{
  margin:0 0 12px;
  color:#9af0e4;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.14em;
}

h1{
  margin:0;
  max-width:720px;
  font-size:clamp(3rem,7vw,5.4rem);
  line-height:.95;
  letter-spacing:-.065em;
}

.lead{
  max-width:600px;
  margin:26px 0;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.7;
}

.benefits{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:32px;
}

.benefits div{
  min-width:160px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#ffffff08;
}

.benefits b{
  display:block;
  color:var(--aqua);
  font-size:.7rem;
}

.benefits span{
  display:block;
  margin-top:5px;
  font-size:.84rem;
  font-weight:750;
}

.auth-card,
.panel,
.summary article{
  border:1px solid var(--line);
  background:linear-gradient(145deg,#18213fe8,#0d142be8);
  box-shadow:0 25px 70px #0005;
}

.auth-card{
  padding:25px;
  border-radius:24px;
}

.tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:5px;
  border-radius:13px;
  background:#080d1d;
}

.tab{
  height:42px;
  color:var(--muted);
  border:0;
  border-radius:10px;
  background:transparent;
  cursor:pointer;
  font-weight:800;
}

.tab.active{
  color:#071126;
  background:linear-gradient(135deg,var(--aqua),var(--blue));
}

form{
  padding:25px 6px 5px;
}

form h2{
  margin:0;
  font-size:1.6rem;
}

form>p{
  color:var(--muted);
}

label{
  display:block;
  margin-top:16px;
  color:#dfe5f5;
  font-size:.8rem;
  font-weight:750;
}

input{
  width:100%;
  height:48px;
  margin-top:7px;
  padding:0 13px;
  color:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  outline:0;
  background:#080d1d;
}

input:focus{
  border-color:var(--aqua);
  box-shadow:0 0 0 4px #41dfca1e;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.primary,
.quiet,
.manage{
  border:0;
  border-radius:11px;
  cursor:pointer;
  font-weight:850;
}

.primary{
  width:100%;
  min-height:49px;
  margin-top:21px;
  color:#071126;
  background:linear-gradient(135deg,var(--aqua),var(--blue));
}

.primary.small{
  width:auto;
  padding:0 20px;
}

.quiet{
  padding:9px 12px;
  color:#fff;
  background:#ffffff12;
}

.message{
  min-height:20px;
  color:#ff9f9f!important;
  font-size:.78rem;
}

.dashboard-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
}

.dashboard-head h1{
  font-size:clamp(2.4rem,5vw,4rem);
}

.dashboard-head>div>p:last-child{
  color:var(--muted);
}

.summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:30px 0 16px;
}

.summary article{
  padding:22px;
  border-radius:17px;
}

.summary small{
  color:var(--muted);
  font-size:.67rem;
  font-weight:850;
  letter-spacing:.1em;
}

.summary strong{
  display:block;
  margin-top:8px;
  font-size:1.55rem;
}

.panel{
  padding:25px;
  border-radius:20px;
}

.panel h2{
  margin:0;
}

.location{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:15px;
  margin-top:13px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#080d1d80;
}

.location-code{
  display:grid;
  place-items:center;
  min-width:55px;
  height:40px;
  padding:0 9px;
  border-radius:10px;
  color:#071126;
  background:var(--aqua);
  font-weight:950;
}

.location-info strong,
.location-info small{
  display:block;
}

.location-info small{
  margin-top:4px;
  color:var(--muted);
}

.status{
  padding:6px 9px;
  border-radius:100px;
  font-size:.7rem;
  font-weight:850;
  text-transform:capitalize;
}

.status.active{
  color:#9af0e4;
  background:#41dfca18;
}

.manage{
  padding:9px 13px;
  color:#a7b1c9;
  background:#ffffff0c;
}

.empty{
  margin-top:16px;
  padding:20px;
  color:var(--muted);
  text-align:center;
}

[hidden]{display:none!important}

@media(max-width:800px){
  .shell{padding:22px 15px 50px}
  header{margin-bottom:35px}
  .auth-layout{grid-template-columns:1fr;gap:25px}
  .intro{padding:10px 0}
  h1{font-size:3.1rem}
  .two{grid-template-columns:1fr}
  .summary{grid-template-columns:1fr}
  .dashboard-head{align-items:start;flex-direction:column}
  .location{grid-template-columns:auto 1fr}
  .location .status,.location .manage{grid-column:2}
  .platform-label{display:none}
}

.location-detail{
  margin-top:18px;
  padding:25px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(145deg,#18213fe8,#0d142be8);
  box-shadow:0 25px 70px #0005;
}

.location-detail-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:start;
}

.location-detail-head h2{
  margin:0;
  font-size:1.8rem;
}

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

.detail-card{
  padding:17px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#080d1d80;
}

.detail-card small{
  display:block;
  color:var(--muted);
  font-size:.67rem;
  font-weight:850;
  letter-spacing:.08em;
}

.detail-card strong{
  display:block;
  margin-top:7px;
  font-size:1.25rem;
}

.owner-plans{
  margin-top:22px;
}

.owner-plan{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:15px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.owner-plan:last-child{
  border-bottom:0;
}

.owner-plan small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}

.back-button{
  padding:9px 13px;
  border:0;
  border-radius:10px;
  color:#fff;
  background:#ffffff12;
  cursor:pointer;
  font-weight:800;
}

@media(max-width:800px){
  .detail-grid{
    grid-template-columns:1fr 1fr;
  }

  .location-detail-head{
    flex-direction:column;
  }

  .owner-plan{
    grid-template-columns:1fr;
  }
}

dialog{
  width:min(92vw,470px);
  padding:0;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--panel);
  box-shadow:0 30px 90px #0009;
}

dialog::backdrop{
  background:#02050fcc;
  backdrop-filter:blur(5px);
}

.plan-form{
  position:relative;
  padding:28px;
}

.close{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  color:#fff;
  background:#ffffff12;
  cursor:pointer;
  font-size:1.2rem;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
