:root{
  --bg:#020611;
  --panel:rgba(4,14,28,.78);
  --panel2:rgba(7,25,42,.78);
  --line:rgba(93,224,255,.26);
  --line2:rgba(89,255,194,.28);
  --text:#eaffff;
  --muted:#a8bfca;
  --cyan:#5de0ff;
  --green:#59ffc2;
  --gold:#ffd166;
  --danger:#ff6b8a;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 12% 12%,rgba(93,224,255,.18),transparent 30%),
    radial-gradient(circle at 82% 8%,rgba(89,255,194,.13),transparent 28%),
    linear-gradient(135deg,#01030a,#03111f 52%,#01040b);
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:38px 38px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.78),transparent 78%);
}

.billing-page{
  width:min(1180px,calc(100% - 34px));
  margin:0 auto;
  padding:24px 0 56px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  background:linear-gradient(180deg,rgba(2,6,17,.96),rgba(2,6,17,.72));
  backdrop-filter:blur(14px);
}

.brand{
  color:var(--text);
  text-decoration:none;
  font-weight:950;
  letter-spacing:.24em;
  text-transform:uppercase;
  text-shadow:0 0 18px rgba(93,224,255,.45);
}

.top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
  overflow:visible;
}

.mini-link{
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(3,10,20,.65);
  padding:10px 14px;
  color:var(--text);
  font-size:13px;
  text-decoration:none;
}

.mini-link:hover{
  border-color:rgba(93,224,255,.78);
  box-shadow:0 0 22px rgba(93,224,255,.18);
}

.billing-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
  align-items:stretch;
  margin-top:26px;
  border:1px solid var(--line);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(7,25,42,.84),rgba(2,8,18,.76));
  padding:28px;
  box-shadow:0 0 48px rgba(93,224,255,.10);
}

.terminal-label{
  color:var(--green);
  letter-spacing:.22em;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  margin-bottom:12px;
}

h1,h2{
  margin:0;
  letter-spacing:0;
}

h1{
  font-size:clamp(38px,6vw,72px);
  line-height:.98;
  max-width:760px;
}

h2{
  font-size:30px;
  color:var(--cyan);
}

.lead,.muted{
  color:var(--muted);
  line-height:1.65;
}

.lead{
  max-width:720px;
  margin:18px 0 0;
  font-size:16px;
}

.access-card,
.privilege-panel,
.status-box,
.plan-card,
.quota-card{
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(4,14,28,.82),rgba(2,8,18,.72));
  box-shadow:0 0 32px rgba(93,224,255,.08);
}

.access-card{
  padding:20px;
}

.access-label{
  color:var(--green);
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.access-main{
  margin-top:12px;
  font-size:26px;
  font-weight:950;
}

.access-sub{
  margin-top:8px;
  color:var(--muted);
  line-height:1.45;
}

.privilege-panel{
  margin-top:18px;
  padding:18px;
  color:var(--text);
}

.privilege-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0 8px 8px 0;
  border:1px solid var(--line2);
  border-radius:999px;
  padding:7px 10px;
  color:var(--green);
  background:rgba(5,22,30,.72);
  font-size:12px;
  font-weight:900;
}

.privilege-badge.gold{
  border-color:rgba(255,209,102,.42);
  color:var(--gold);
}

.quota-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin-top:18px;
}

.quota-card{
  padding:18px;
}

.quota-card span{
  display:block;
  color:var(--muted);
  margin-bottom:8px;
}

.quota-card strong{
  display:block;
  font-size:24px;
  color:var(--text);
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:22px;
  margin:34px 0 16px;
}

.section-head p{
  max-width:520px;
  margin:0;
}

.plan-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

.plan-card{
  position:relative;
  overflow:hidden;
  min-height:360px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.plan-card.featured{
  border-color:rgba(89,255,194,.58);
  box-shadow:0 0 38px rgba(89,255,194,.13);
}

.plan-card h3{
  margin:0;
  color:var(--text);
  font-size:22px;
}

.price-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}

.old-price{
  color:var(--muted);
  text-decoration:line-through;
}

.new-price{
  color:var(--cyan);
  font-size:34px;
  font-weight:950;
}

.per{
  color:var(--muted);
}

.save-badge,
.active-badge{
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}

.save-badge{
  border:1px solid rgba(255,209,102,.36);
  color:var(--gold);
  background:rgba(255,209,102,.08);
}

.active-badge{
  border:1px solid rgba(89,255,194,.46);
  color:var(--green);
  background:rgba(89,255,194,.08);
}

.plan-card ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.65;
}

.plan-card .btn{
  margin-top:auto;
}

.btn{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:0 16px;
  background:rgba(3,10,20,.74);
  color:var(--text);
  cursor:pointer;
  font-weight:950;
  transition:.22s ease;
}

.btn.primary{
  border-color:rgba(89,255,194,.55);
  background:linear-gradient(135deg,rgba(89,255,194,.18),rgba(93,224,255,.10));
}

.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(89,255,194,.86);
  box-shadow:0 0 28px rgba(89,255,194,.18);
}

.status-box{
  margin-top:18px;
  padding:14px 16px;
  color:var(--muted);
}

.status-box.error{
  color:var(--danger);
  border-color:rgba(255,107,138,.42);
}

.status-box.success{
  color:var(--green);
  border-color:rgba(89,255,194,.42);
}

@media(max-width:820px){
  .topbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .top-actions{
    width:100%;
    justify-content:flex-start;
  }

  .billing-hero{
    grid-template-columns:1fr;
    padding:22px;
    border-radius:22px;
  }

  .section-head{
    display:block;
  }

  .section-head p{
    margin-top:10px;
  }
}
