body{
  margin:0;
  background:#07132C;
  color:white;
  font-family:'Open Sans',sans-serif;
}

.certificate-dashboard{
  display:flex;
  min-height:100vh;
}

.certificate-sidebar{
  width:260px;
  background:#081028;
  border-right:1px solid rgba(255,255,255,0.06);
  padding:35px 20px;
  position:fixed;
  height:100vh;
}

.sidebar-logo{
  font-size:42px;
  font-weight:700;
  margin-bottom:40px;
}

.sidebar-logo span{
  color:#6C63FF;
}

.sidebar-menu{
  list-style:none;
  padding:0;
}

.sidebar-menu li{
  margin-bottom:15px;
}

.sidebar-menu a{
  width:100%;
  height:55px;
  display:flex;
  align-items:center;
  padding:0 18px;
  border-radius:16px;
  color:white;
  text-decoration:none;
  transition:0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu .active{
  background:#6C63FF;
}

.certificate-main{
  flex:1;
  margin-left:260px;
  padding:40px;
}

.certificate-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px;
}

.certificate-topbar h1{
  font-size:48px;
}

.topbar-profile{
  display:flex;
  align-items:center;
  gap:15px;
}

.topbar-profile img{
  width:60px;
  height:60px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #6C63FF;
}

.certificate-grid{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(350px,1fr));
  gap:30px;
}

.certificate-card{
  background:#13203B;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
  transition:0.3s;
}

.certificate-card:hover{
  transform:translateY(-8px);
}

.certificate-card-header{
  background:
  linear-gradient(
    135deg,
    #6C63FF,
    #4F46E5
  );
  padding:40px;
  text-align:center;
}

.certificate-card-header span{
  font-size:60px;
}

.certificate-card-content{
  padding:30px;
}

.certificate-card-content h3{
  font-size:28px;
  margin-bottom:15px;
}

.certificate-btn{
  width:100%;
  height:55px;
  border:none;
  border-radius:16px;
  background:#6C63FF;
  color:white;
  cursor:pointer;
  font-weight:600;
}

.certificate-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.certificate-modal-content{
  width:95%;
  max-width:1200px;
  position:relative;
}

.close-modal-btn{
  position:absolute;
  top:-60px;
  right:0;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#EF4444;
  color:white;
  cursor:pointer;
}

.certificate-preview{
  background:white;
  border-radius:30px;
  padding:40px;
  position:relative;
  overflow:hidden;
}

.certificate-watermark{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:120px;
  font-weight:700;
  opacity:0.03;
  color:#000;
  transform:rotate(-20deg);
}

.certificate-inner{
  position:relative;
  z-index:2;
  border:14px solid #6C63FF;
  border-radius:24px;
  padding:70px;
  text-align:center;
  color:#111827;
}

.certificate-top{
  display:flex;
  justify-content:space-between;
  margin-bottom:40px;
}

.certificate-logo{
  font-size:32px;
  font-weight:700;
  color:#6C63FF;
}

.certificate-id{
  font-size:15px;
}

.certificate-inner h1{
  font-size:64px;
  margin-bottom:25px;
}

.certificate-subtitle{
  font-size:20px;
}

.certificate-inner h2{
  font-size:58px;
  color:#6C63FF;
  margin:30px 0;
}

.certificate-inner h3{
  font-size:42px;
  margin:25px 0;
}

.certificate-date-text{
  margin-top:25px;
  font-size:18px;
}

.certificate-qr{
  margin:40px auto;
  width:220px;
  height:220px;
  border:10px solid #6C63FF;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  border-radius:20px;
}

.certificate-footer{
  display:flex;
  justify-content:space-between;
  margin-top:70px;
}

.footer-sign{
  width:250px;
  text-align:center;
}

.sign-line{
  width:100%;
  height:2px;
  background:#111827;
  margin-bottom:10px;
}

.certificate-actions{
  margin-top:25px;
}

.download-btn{
  width:100%;
  height:58px;
  border:none;
  border-radius:18px;
  background:#6C63FF;
  color:white;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}