*{
  box-sizing:border-box
}

:root{
  --bg:#07090f;
  --panel:#10131c;
  --panel2:#141824;
  --border:#252a38;
  --text:#f5f7fb;
  --muted:#8e96ab;
  --purple:#7957ff;
  --cyan:#35d3d0;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -20%,rgba(121,87,255,.15),transparent 40%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;
}

button,input,textarea{
  font:inherit
}

.topbar{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  border-bottom:1px solid var(--border);
  background:rgba(7,9,15,.82);
  backdrop-filter:blur(20px);
  position:sticky;
  top:0;
  z-index:10;
}

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

.brand .logo,
.modal-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  font-weight:800;
  background:linear-gradient(135deg,var(--purple),var(--cyan));
}

.brand b{
  display:block;
  font-size:15px;
}

.brand span{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

main{
  max-width:1200px;
  margin:auto;
  padding:70px 24px;
}

.hero{
  max-width:720px;
  margin-bottom:70px;
}

.badge{
  display:inline-block;
  padding:7px 11px;
  border:1px solid rgba(121,87,255,.4);
  background:rgba(121,87,255,.1);
  border-radius:999px;
  color:#b7a9ff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
}

.hero h1{
  font-size:54px;
  margin:18px 0 12px;
  line-height:1;
}

.hero p{
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.section-head{
  margin-bottom:22px;
}

.section-head h2{
  margin:0;
  font-size:26px;
}

.section-head p{
  margin:7px 0 0;
  color:var(--muted);
}

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

.card{
  background:linear-gradient(145deg,#11141d,#0c0f16);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  min-height:190px;
  display:flex;
  flex-direction:column;
  transition:.2s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(121,87,255,.55);
  box-shadow:0 16px 45px rgba(0,0,0,.25);
}

.card-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(121,87,255,.12);
  color:#a995ff;
  font-weight:700;
}

.card h3{
  margin:18px 0 8px;
  font-size:18px;
}

.card p{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin:0 0 20px;
}

.card button{
  margin-top:auto;
}

button{
  cursor:pointer;
}

.primary,
.ghost{
  border-radius:11px;
  padding:10px 15px;
}

.primary{
  border:0;
  background:linear-gradient(135deg,#7957ff,#6243ec);
  color:white;
  font-weight:650;
}

.ghost{
  border:1px solid var(--border);
  background:#11141d;
  color:white;
}

.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(10px);
  z-index:100;
}

.hidden{
  display:none!important;
}

.modal-card{
  width:min(620px,100%);
  max-height:90vh;
  overflow:auto;
  position:relative;
  background:#10131c;
  border:1px solid var(--border);
  border-radius:22px;
  padding:28px;
  box-shadow:0 30px 100px rgba(0,0,0,.55);
}

.modal-card.small{
  width:min(500px,100%);
}

.close{
  position:absolute;
  top:17px;
  right:17px;
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  color:#9da5b7;
  background:#191d28;
  font-size:22px;
}

.modal h2{
  margin:18px 0 8px;
}

.modal p{
  color:var(--muted);
}

label{
  display:block;
  font-size:12px;
  font-weight:600;
  margin-top:17px;
}

input,
textarea{
  width:100%;
  margin-top:8px;
  border:1px solid var(--border);
  border-radius:11px;
  background:#080b12;
  color:white;
  padding:12px 13px;
  outline:none;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:focus,
textarea:focus{
  border-color:#7957ff;
  box-shadow:0 0 0 3px rgba(121,87,255,.1);
}

form .primary{
  width:100%;
  margin-top:22px;
  padding:13px;
}

.error{
  color:#ff7272;
  font-size:12px;
  margin-top:12px;
}

.success{
  text-align:center;
}

.success-icon{
  margin:auto;
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(60,210,135,.15);
  color:#4ce09a;
  font-size:28px;
}

.request-number{
  margin:24px auto;
  border:1px solid var(--border);
  background:#080b12;
  border-radius:14px;
  padding:17px;
  font-size:28px;
  font-weight:800;
}

.status-search{
  display:flex;
  gap:10px;
  margin-top:20px;
}

.status-search input{
  margin:0;
}

.status-result{
  margin-top:18px;
  background:#080b12;
  border:1px solid var(--border);
  border-radius:14px;
  padding:17px;
}

.status{
  display:inline-block;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  margin-top:8px;
}

.status-new{
  background:#272c38
}

.status-review{
  background:#362f13;
  color:#ffd866
}

.status-approved{
  background:#123122;
  color:#5ee6a3
}

.status-rejected{
  background:#35191c;
  color:#ff7d87
}

.status-closed{
  background:#222632
}

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

@media(max-width:850px){
  .cards{
    grid-template-columns:1fr
  }

  .hero h1{
    font-size:40px
  }

  .topbar{
    padding:0 18px
  }
}

.top-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.steam-offline{
  color:var(--muted);
  font-size:12px;
}

.steam-user{
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--border);
  background:#10131c;
  border-radius:13px;
  padding:6px 8px;
}

.steam-user img,
.steam-avatar-placeholder{
  width:32px;
  height:32px;
  border-radius:9px;
}

.steam-avatar-placeholder{
  display:grid;
  place-items:center;
  background:#1b2838;
  color:white;
  font-weight:800;
}

.steam-user b{
  display:block;
  font-size:11px;
  max-width:140px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.steam-user span{
  display:block;
  margin-top:2px;
  color:#66c0f4;
  font-size:9px;
}

.mini-ghost{
  border:0;
  background:transparent;
  color:#9199aa;
  font-size:10px;
  padding:5px 7px;
}

.mini-ghost:hover{
  color:white;
}

@media(max-width:700px){
  .steam-offline{
    display:none;
  }

  .steam-user>div:nth-child(2){
    display:none;
  }
}

/* ===== PROFILE FIX ===== */

.hidden{
  display:none !important;
}

#profileBtn.profile-btn{
  appearance:none !important;
  -webkit-appearance:none !important;

  border:1px solid #252a38 !important;
  background:#0d1018 !important;
  color:#fff !important;

  border-radius:14px !important;
  padding:6px 10px 6px 6px !important;

  display:flex !important;
  align-items:center !important;
  gap:9px !important;

  font-family:Inter,system-ui,Segoe UI,Arial,sans-serif !important;
  cursor:pointer !important;
}

#profileBtn.profile-btn:hover{
  border-color:#66c0f4 !important;
  background:#111722 !important;
}

#profileAvatar.profile-avatar{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;

  border-radius:10px !important;
  display:grid !important;
  place-items:center !important;

  background:linear-gradient(135deg,#1b2838,#2a475e) !important;
  color:#66c0f4 !important;

  font-weight:800 !important;
  overflow:hidden !important;
}

#profileAvatar img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

#profilePanel.profile-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:500 !important;

  background:rgba(0,0,0,.68) !important;
  backdrop-filter:blur(8px);
}

#profilePanel .profile-panel{
  position:absolute !important;
  top:0 !important;
  left:0 !important;

  width:min(430px,92vw) !important;
  height:100vh !important;

  padding:26px !important;
  overflow-y:auto !important;

  background:#0b0e15 !important;
  border-right:1px solid #252a38 !important;

  color:#f5f7fb !important;
}


/* ===== PROFILE PANEL FINAL UI ===== */

#profilePanel{
  font-family:Inter,system-ui,Segoe UI,Arial,sans-serif !important;
}

#profilePanel .profile-panel{
  padding:28px !important;
}

#profilePanel .profile-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin-bottom:20px !important;
}

#profilePanel .profile-caption{
  display:block !important;
  color:#66c0f4 !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
  margin-bottom:8px !important;
}

#profilePanel .profile-head h2{
  margin:0 0 6px !important;
  color:#fff !important;
  font-size:24px !important;
}

#profilePanel .profile-head p{
  margin:0 !important;
  color:#8e96ab !important;
  font-size:12px !important;
}

#closeProfile.close-profile{
  appearance:none !important;
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  padding:0 !important;
  border:1px solid #282d3a !important;
  border-radius:11px !important;
  background:#151923 !important;
  color:#aeb6c7 !important;
  font-size:22px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

#closeProfile:hover{
  background:#1d2230 !important;
  color:white !important;
}

#profilePanel .profile-stats{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin:22px 0 26px !important;
}

#profilePanel .profile-stats > div{
  padding:16px !important;
  border:1px solid #252a38 !important;
  border-radius:14px !important;
  background:#10131c !important;
}

#profilePanel .profile-stats b{
  display:block !important;
  color:#fff !important;
  font-size:25px !important;
  line-height:1 !important;
  margin-bottom:6px !important;
}

#profilePanel .profile-stats span{
  color:#8e96ab !important;
  font-size:10px !important;
}

#profilePanel .profile-section-title{
  margin:0 0 12px !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:800 !important;
}

#myRequests{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}

#myRequests .my-request{
  padding:16px !important;
  border:1px solid #252a38 !important;
  border-radius:15px !important;
  background:linear-gradient(145deg,#11151f,#0d1018) !important;
}

#myRequests .my-request-top{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:12px !important;
}

#myRequests .my-request h4{
  margin:0 !important;
  color:#f5f7fb !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

#myRequests .status{
  flex:none !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  font-size:9px !important;
  font-weight:700 !important;
}

#myRequests .queue{
  display:inline-flex !important;
  align-items:center !important;
  margin-top:12px !important;
  padding:7px 9px !important;
  border-radius:9px !important;
  background:rgba(121,87,255,.13) !important;
  color:#b9aaff !important;
  font-size:10px !important;
}

#myRequests .meta{
  margin-top:11px !important;
  color:#747d90 !important;
  font-size:9px !important;
}

#myRequests .admin-answer{
  margin-top:11px !important;
  padding:11px !important;
  border:1px solid #202532 !important;
  border-radius:10px !important;
  background:#080b12 !important;
  color:#cbd1dc !important;
  font-size:11px !important;
  line-height:1.5 !important;
}

#profileLogout.logout-btn{
  appearance:none !important;
  width:100% !important;
  margin-top:22px !important;
  padding:12px !important;
  border:1px solid #54252c !important;
  border-radius:11px !important;
  background:#271419 !important;
  color:#ff818c !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

#profileLogout:hover{
  background:#35181f !important;
}


.review-profile-btn{
  display:block;
  width:100%;
  margin-top:22px;
  padding:12px;
  border:1px solid rgba(121,87,255,.45);
  border-radius:11px;
  background:rgba(121,87,255,.14);
  color:#c5b9ff;
  text-decoration:none;
  text-align:center;
  font-weight:700;
}

.review-profile-btn:hover{
  background:rgba(121,87,255,.22);
  color:white;
}

