*{box-sizing:border-box}

:root{
  --bg:#08080b;
  --surface:#101014;
  --surface2:#17171d;
  --line:#27272f;
  --text:#f7f7fb;
  --muted:#9999a7;
  --pink:#ff1688;
  --pink2:#ff48a6;
}

html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{overflow-x:hidden}

a{color:inherit;text-decoration:none}

.glow{
  position:fixed;
  width:500px;
  height:500px;
  filter:blur(150px);
  opacity:.11;
  border-radius:50%;
  pointer-events:none;
}

.glow-a{
  background:var(--pink);
  top:-240px;
  right:-180px;
}

.glow-b{
  background:#743cff;
  bottom:-300px;
  left:-250px;
}

header{
  width:min(1220px,calc(100% - 38px));
  margin:auto;
  min-height:82px;
  display:flex;
  align-items:center;
  gap:34px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:relative;
  z-index:2;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:17px;
  letter-spacing:.7px;
}

.brandmark{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--pink),#7515ff);
  border-radius:11px;
}

.brand strong{color:var(--pink)}

nav{
  display:flex;
  gap:25px;
  color:#bcbcc6;
  font-size:14px;
  flex:1;
}

nav a:hover{color:white}

.account{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
}

.account img{
  width:32px;
  height:32px;
  border-radius:50%;
}

main{
  width:min(1160px,calc(100% - 38px));
  margin:0 auto;
  padding:70px 0 100px;
  position:relative;
  z-index:1;
}

.hero{
  padding:55px 0 70px;
  max-width:800px;
}

.hero.compact{max-width:680px}

.eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:17px;
}

.pink{color:var(--pink)}

h1{
  margin:0;
  font-size:clamp(44px,8vw,91px);
  line-height:.98;
  letter-spacing:-4px;
}

.pagehead h1{
  font-size:clamp(37px,5vw,60px);
  letter-spacing:-2px;
}

h1 span{
  background:linear-gradient(90deg,var(--pink),#a641ff);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}

.hero>p{
  color:var(--muted);
  max-width:610px;
  font-size:17px;
  line-height:1.7;
  margin:28px 0;
}

.actions{display:flex;gap:12px;flex-wrap:wrap}

.button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:48px;
  padding:0 20px;
  border-radius:11px;
  background:linear-gradient(135deg,var(--pink),#bd1975);
  color:white;
  font-weight:700;
  font-size:14px;
  box-shadow:0 10px 35px rgba(255,22,136,.18);
}

.button.small{
  min-height:38px;
  padding:0 14px;
}

.button.ghost{
  background:#17171d;
  border:1px solid #2b2b33;
  box-shadow:none;
}

.tiny{
  color:var(--muted);
  font-size:11px;
}

.connectBox{
  margin-top:45px;
  width:min(500px,100%);
  padding:18px 20px;
  background:rgba(17,17,22,.75);
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
}

.connectBox div{flex:1}
.connectBox small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.5px;margin-bottom:4px}
.connectBox b{font-size:17px}

.onlineDot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#42e78d;
  box-shadow:0 0 18px rgba(66,231,141,.7);
}

.online{color:#42e78d}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.card,.panel,.stat{
  background:linear-gradient(145deg,rgba(23,23,29,.94),rgba(13,13,17,.94));
  border:1px solid var(--line);
  border-radius:17px;
}

.card{
  padding:24px;
  min-height:180px;
  transition:.2s ease;
}

a.card:hover{
  transform:translateY(-3px);
  border-color:#555;
}

.card.danger{
  border-color:rgba(255,22,136,.35);
}

.card .icon{
  width:40px;
  height:40px;
  border-radius:11px;
  background:#282831;
  display:grid;
  place-items:center;
  color:var(--pink);
  margin-bottom:25px;
}

.card h3,.panel h3{
  margin:0 0 9px;
}

.card p,.panel p{
  color:var(--muted);
  line-height:1.55;
}

.card a{color:var(--pink);font-size:13px}

.panel{
  padding:30px;
}

.panel.narrow{
  width:min(620px,100%);
}

.center{text-align:center}

.statusIcon{font-size:48px;margin-bottom:20px}

.userChip{
  background:#1a1a20;
  border:1px solid #292932;
  border-radius:10px;
  padding:11px;
  margin:25px 0;
  color:#bbb;
  font-size:13px;
}

.pagehead{
  margin-bottom:35px;
}

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

.stat{
  padding:19px;
}

.stat span,.stat small{
  display:block;
  color:var(--muted);
  font-size:12px;
}

.stat b{
  display:block;
  font-size:25px;
  margin:9px 0 4px;
}

.pill{
  display:inline-block;
  border:1px solid #33333c;
  color:#aaa;
  padding:5px 8px;
  border-radius:100px;
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
  margin-bottom:18px;
}

.pill.pending{
  border-color:#644a22;
  color:#e7bd72;
}

.statusRow{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0;
}

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

footer{
  width:min(1160px,calc(100% - 38px));
  margin:auto;
  padding:28px 0 45px;
  border-top:1px solid #1d1d23;
  display:flex;
  justify-content:space-between;
  font-size:12px;
}

@media(max-width:800px){
  header{
    min-height:70px;
    width:calc(100% - 26px);
  }

  nav{display:none}

  .brand{flex:1}

  .account span{display:none}

  main{
    width:calc(100% - 28px);
    padding-top:35px;
  }

  .hero{
    padding-top:28px;
  }

  h1{
    letter-spacing:-2.7px;
  }

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

  footer{
    width:calc(100% - 28px);
  }
}

/* OngakuRP header logo fix */
.brandLogo{
  width:42px !important;
  height:42px !important;
  min-width:42px;
  min-height:42px;
  max-width:42px;
  max-height:42px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
}

@media(max-width:800px){
  .brandLogo{
    width:38px !important;
    height:38px !important;
    min-width:38px;
    min-height:38px;
    max-width:38px;
    max-height:38px;
  }
}

.applicationForm{
  display:grid;
  gap:18px;
}

.formSection{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(
    145deg,
    rgba(23,23,29,.96),
    rgba(11,11,15,.96)
  );
}

.formSectionTitle{
  grid-column:1/-1;
  display:flex;
  gap:14px;
  margin-bottom:5px;
}

.formSectionTitle>span{
  width:40px;
  height:40px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,22,136,.4);
  color:var(--pink);
  border-radius:11px;
  font-size:11px;
  font-weight:900;
}

.formSectionTitle h3{
  margin:0 0 4px;
}

.formSectionTitle p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.applicationForm label,
.reviewPanel label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  font-weight:650;
}

.applicationForm input,
.applicationForm textarea,
.reviewPanel textarea{
  width:100%;
  background:#0b0b0f;
  border:1px solid #303039;
  border-radius:11px;
  padding:14px;
  color:white;
  font:inherit;
  font-size:16px;
  outline:none;
}

.applicationForm textarea{
  min-height:140px;
  resize:vertical;
}

.applicationForm input:focus,
.applicationForm textarea:focus,
.reviewPanel textarea:focus{
  border-color:var(--pink);
}

.wide{
  grid-column:1/-1;
}

.formActions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
}

.submitButton{
  border:0;
  cursor:pointer;
}

.notice{
  margin-bottom:18px;
  padding:18px;
  border:1px solid #6c5126;
  background:#1b160e;
  border-radius:13px;
}

.staffNote{
  padding:17px;
  background:#111116;
  border-left:3px solid var(--pink);
  margin-top:20px;
}

.staffNote small{
  color:var(--muted);
  font-size:10px;
  letter-spacing:1px;
}

.successBox{
  margin-top:20px;
  padding:15px;
  color:#64e99d;
  border:1px solid rgba(66,231,141,.35);
  border-radius:11px;
  background:rgba(66,231,141,.06);
}

.applicationList{
  display:grid;
  gap:9px;
}

.applicationRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
}

.applicationRow:hover{
  border-color:#555;
}

.applicationRow>div:first-child{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.applicationRow span{
  color:var(--muted);
  font-size:12px;
}

.applicationRowRight{
  text-align:right;
}

.applicationRowRight small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:5px;
}

.emptyState{
  padding:40px;
  border:1px dashed #34343d;
  border-radius:15px;
  text-align:center;
  color:var(--muted);
}

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

.reviewGrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:17px;
  align-items:start;
}

.reviewAnswers{
  display:grid;
  gap:12px;
}

.answer{
  padding:22px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}

.answer small{
  color:var(--pink);
  font-size:9px;
  font-weight:800;
  letter-spacing:1.4px;
}

.answer p{
  white-space:pre-wrap;
  line-height:1.7;
  color:#c9c9d2;
}

.reviewPanel{
  position:sticky;
  top:20px;
  padding:20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:15px;
}

.reviewPanel textarea{
  min-height:120px;
  resize:vertical;
}

.reviewButton{
  width:100%;
  min-height:46px;
  margin-top:9px;
  border-radius:10px;
  border:1px solid #34343d;
  background:#18181e;
  color:white;
  font-weight:700;
  cursor:pointer;
}

.reviewButton.accept{
  color:#6deb9f;
  border-color:rgba(66,231,141,.45);
}

.reviewButton.reject{
  color:#ff7c7c;
  border-color:rgba(255,82,82,.45);
}

.reviewButton.changes{
  color:#eac06e;
  border-color:rgba(232,180,82,.4);
}

.pill.reviewing{color:#75b7ff}
.pill.accepted{color:#62e99c}
.pill.rejected{color:#ff7979}
.pill.changes_requested{color:#d6a6ff}

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

  .wide,
  .formSectionTitle{
    grid-column:1;
  }

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

  .reviewPanel{
    position:static;
  }

  .applicationRow{
    flex-direction:column;
    align-items:flex-start;
  }

  .applicationRowRight{
    text-align:left;
  }
}
