:root{
  --bg:#070814;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.10);
  --text:#f5f6ff;
  --muted:rgba(245,246,255,.65);
  --muted2:rgba(245,246,255,.45);
  --accent:#a855f7;
  --accent2:#7c3aed;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(124,58,237,.12), transparent 55%),
    radial-gradient(800px 700px at 10% 20%, rgba(168,85,247,.10), transparent 50%),
    linear-gradient(180deg, #070814 0%, #050612 55%, #05050f 100%);
  background-attachment: fixed;
  overflow-x:hidden;
}

/* Starfield */
.stars{
  position:fixed; 
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow: hidden;
}
.stars,.stars::before,.stars::after{
  background-image:
    radial-gradient(2px 2px at 20% 10%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 80% 25%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 30% 60%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.6), transparent);
  background-size: 100% 200%;
  background-repeat:repeat-y;
  animation: falling 12s linear infinite;
}
.stars::before, .stars::after{
  content:"";
  position:absolute;
  inset:0;
}
.stars::before{ 
  opacity:.5; 
  animation: falling 18s linear infinite; 
  background-position: 0 -50%;
}
.stars::after{ 
  opacity:.3; 
  animation: falling 24s linear infinite;
  background-position: 0 -100%;
}
@keyframes falling{ 
  0% { background-position-y: 0; } 
  100% { background-position-y: 200%; } 
}

.wrap{ max-width:1150px; margin:0 auto; padding:28px 20px 70px; position: relative; z-index: 1; }

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  top:12px;
  z-index:50;
  padding:12px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 8, 20, .4);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  padding:8px 12px;
  border-radius:14px;
  transition: all 0.2s ease;
}
.brand:hover{ 
  background: rgba(168,85,247,.1);
  transform: translateY(-1px);
}

.logo{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(124,58,237,.08));
  border:1px solid rgba(168,85,247,.3);
  box-shadow: 0 4px 12px rgba(168,85,247,.15);
  overflow:hidden;
  position: relative;
}
.logo::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.brand:hover .logo::before{
  opacity: 1;
}
.logo img{ 
  width:24px; 
  height:24px; 
  object-fit:contain;
  position: relative;
  z-index: 1;
}
.brand span{ 
  font-weight:700; 
  font-size: 18px;
  letter-spacing:-.3px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topRight{ display:flex; align-items:center; gap:12px; }

.search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  min-width: min(400px, 50vw);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: all 0.2s ease;
}
.search:focus-within{
  background: rgba(255,255,255,.08);
  border-color: rgba(168,85,247,.5);
  box-shadow: 0 4px 24px rgba(168,85,247,.2);
}
.search svg{opacity:.6; transition: opacity 0.2s;}
.search:focus-within svg{opacity:.9;}
.search input{
  flex:1;
  background:transparent;
  border:0;
  outline:none;
  color:var(--text);
  font-size:14px;
  font-weight: 500;
}
.search input::placeholder{
  color: var(--muted2);
}

.kbd{
  font-size:12px;
  color:var(--muted);
  border:1px solid rgba(255,255,255,.12);
  padding:4px 8px;
  border-radius:10px;
  background: rgba(255,255,255,.04);
  user-select:none;
  white-space:nowrap;
}

.hero{
  padding:56px 0 24px;
  text-align:center;
}

.heroMark{
  width:92px;height:92px;
  margin: 0 auto 16px;
  border-radius:26px;
  display:grid;place-items:center;
  background: radial-gradient(circle at 35% 25%, rgba(168,85,247,.75), rgba(0,0,0,.15) 60%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 80px rgba(168,85,247,.22);
  overflow:hidden;
}
.heroMark img{ width:70px;height:70px; object-fit:contain; }

.hero h1{
  font-size: clamp(34px, 4vw, 50px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.hero p{
  margin:0 auto;
  max-width:680px;
  color: var(--muted);
  line-height:1.6;
  font-size:15px;
}

.actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:18px 0 30px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius:14px;
  padding:10px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  box-shadow: 0 14px 50px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  user-select:none;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 22px 70px rgba(168,85,247,.15);
}
.btn.primary{
  background: linear-gradient(180deg, rgba(168,85,247,.95), rgba(124,58,237,.78));
  border-color: rgba(255,255,255,.14);
}

.mutedLine{
  text-align:center;
  margin:26px 0 10px;
  color: var(--muted2);
  font-size:12.5px;
}

/* Statistics Dashboard */
.stats-dashboard{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-box{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  opacity: 0;
  transition: opacity .3s ease;
}

.stat-box:hover{
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.3);
  box-shadow: 0 12px 40px rgba(168,85,247,.2);
  background: rgba(255,255,255,.06);
}

.stat-box:hover::before{
  opacity: 1;
}

.stat-icon{
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(124,58,237,.1));
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.stat-content{
  flex: 1;
}

.stat-value{
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, #e0d7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label{
  font-size: 13px;
  color: var(--muted2);
  font-weight: 500;
}

/* Section Titles */
.section-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--text);
}

.section-title svg{
  color: var(--accent);
}

/* Popular Scripts Section */
.popular-section{
  margin: 40px 0;
}

.popular-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.popular-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.popular-item:hover{
  transform: translateX(4px);
  border-color: rgba(168,85,247,.3);
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 24px rgba(168,85,247,.15);
}

.popular-rank{
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(124,58,237,.2));
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.popular-info{
  flex: 1;
  min-width: 0;
}

.popular-name{
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-views{
  font-size: 12px;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-views svg{
  width: 12px;
  height: 12px;
}

/* Update Notification */
.update-notification{
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,.95), rgba(124,58,237,.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 48px rgba(168,85,247,.4);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  z-index: 9999;
  transform: translateX(400px);
  opacity: 0;
  transition: all .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.update-notification.show{
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.notification-icon{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  flex-shrink: 0;
  animation: bellRing 2s ease infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.notification-content{
  flex: 1;
  min-width: 0;
}

.notification-title{
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 2px;
}

.notification-message{
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

.notification-close{
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.notification-close:hover{
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

/* AD Blocker Warning Modal */
.adblocker-modal{
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.adblocker-modal.show{
  opacity: 1;
  pointer-events: all;
}

.adblocker-notice{
  background: linear-gradient(135deg, rgba(239, 68, 68, .1), rgba(220, 38, 38, .05));
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  font-size: 15px;
}

.adblocker-notice p{
  margin: 0;
}

/* Verification Modal */
.verification-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.verification-modal.show{
  opacity: 1;
  pointer-events: all;
}

.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
}

.modal-content{
  position: relative;
  background: linear-gradient(135deg, rgba(15,15,30,.98), rgba(10,10,20,.98));
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 100px rgba(168,85,247,.2);
  animation: modalSlideIn .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from { 
    transform: scale(0.9) translateY(20px); 
    opacity: 0;
  }
  to { 
    transform: scale(1) translateY(0); 
    opacity: 1;
  }
}

.modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
}

.modal-close:hover{
  background: rgba(255,255,255,.1);
  border-color: rgba(168,85,247,.3);
  transform: scale(1.1);
}

.modal-header{
  text-align: center;
  margin-bottom: 32px;
}

.modal-icon{
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(124,58,237,.1));
  border: 2px solid rgba(168,85,247,.3);
  border-radius: 20px;
  color: var(--accent);
  animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.modal-header h2{
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.modal-header p{
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.modal-steps{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.verification-step{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: all .3s ease;
}

.verification-step.loading{
  background: rgba(168,85,247,.05);
  border-color: rgba(168,85,247,.2);
}

.verification-step.loading .step-checkbox{
  background: rgba(168,85,247,.15);
  border-color: rgba(168,85,247,.3);
}

.verification-step.completed{
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.3);
}

.verification-step.completed .step-checkbox{
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
}

.verification-step.completed .step-checkbox svg{
  opacity: 1;
}

.step-left{
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.step-checkbox{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: white;
  flex-shrink: 0;
  transition: all .3s ease;
}

.step-checkbox svg{
  opacity: 0;
  transition: opacity .3s ease;
}

.spinner{
  opacity: 1 !important;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.step-info h3{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.step-info p{
  font-size: 13px;
  color: var(--muted2);
  margin: 0;
}

.step-action{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(124,58,237,.1));
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  flex-shrink: 0;
}

.step-action:hover{
  background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(124,58,237,.2));
  border-color: rgba(168,85,247,.5);
  transform: translateY(-2px);
}

.modal-continue{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all .3s ease;
  opacity: .5;
}

.modal-continue.enabled{
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: rgba(255,255,255,.2);
  color: white;
  cursor: pointer;
  opacity: 1;
}

.modal-continue.enabled:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,85,247,.4);
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:20px;
  margin-top:20px;
}

.card{
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  padding:0;
  position:relative;
  overflow:hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover{
  transform: translateY(-8px);
  border-color: rgba(168,85,247,.4);
  box-shadow: 0 20px 60px rgba(168,85,247,.25), 0 0 80px rgba(168,85,247,.15);
  background: rgba(255,255,255,.06);
}

.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  opacity:0;
  transition: opacity .3s ease;
}
.card:hover::before{ opacity:1; }

.card::after{
  content:"";
  position:absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(168,85,247,.1) 50%, transparent 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: shine 3s infinite;
}

.card:hover::after{
  opacity: 1;
}

@keyframes shine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

.cardTop{
  display:flex;
  flex-direction: column;
  gap:8px;
  padding:20px 20px 0;
  flex-shrink: 0;
}

.title{
  font-weight:700;
  margin:0;
  font-size:20px;
  letter-spacing:-.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:12px;
}

.desc{
  margin:0;
  color: var(--muted);
  font-size:14px;
  line-height:1.6;
}

.script-stats{
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat-item{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(168,85,247,.08);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.stat-item:hover{
  background: rgba(168,85,247,.12);
  border-color: rgba(168,85,247,.3);
}

.stat-item svg{
  color: var(--accent);
  flex-shrink: 0;
}

.stat-number{
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  min-width: 35px;
  text-align: center;
}

.stat-number.loaded{
  animation: fadeIn 0.3s ease;
}

.stat-label{
  color: var(--muted2);
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag{
  font-size:11px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(124,58,237,.2));
  border: 1px solid rgba(168,85,247,.4);
  padding:6px 12px;
  border-radius:8px;
  white-space:nowrap;
  user-select:none;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag.active{
  background: linear-gradient(135deg, rgba(34,197,94,.25), rgba(22,163,74,.15));
  border: 1px solid rgba(34,197,94,.4);
  color: rgba(134,239,172,1);
}

.status-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34,197,94,0);
  }
}

.thumb{
  width:calc(100% - 40px);
  height:220px;
  margin:16px 20px 0;
  padding:0;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(124,58,237,.05));
  position: relative;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  line-height:0;
}
.thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  margin:0;
  padding:0;
  transition: transform .5s ease, filter .3s ease;
  vertical-align:top;
}
.card:hover .thumb img{
  transform: scale(1.08);
  filter: brightness(1.1);
}

.thumb-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s ease;
}

.card:hover .thumb-overlay{
  opacity: 1;
}

.feature-badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cardActions{
  display:flex;
  gap:10px;
  padding:16px 20px 20px;
  flex-wrap:wrap;
  margin-top: auto;
}

.mini.secondary{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini.secondary:hover{
  background: rgba(255,255,255,.1);
  border-color: rgba(168,85,247,.3);
}

.mini{
  flex:1;
  padding:12px 16px;
  border-radius:12px;
  font-size:14px;
  font-weight: 600;
  background: rgba(168,85,247,.15);
  border: 1px solid rgba(168,85,247,.3);
  cursor:pointer;
  color:var(--text);
  transition: all .2s ease;
  text-align: center;
}
.mini:hover{ 
  transform: translateY(-2px); 
  background: rgba(168,85,247,.25);
  border-color: rgba(168,85,247,.5);
  box-shadow: 0 8px 20px rgba(168,85,247,.2);
}
.mini.copyScript{
  background: linear-gradient(135deg, rgba(168,85,247,.8), rgba(124,58,237,.7));
  border-color: rgba(255,255,255,.2);
}
.mini.copyScript:hover{
  background: linear-gradient(135deg, rgba(168,85,247,.9), rgba(124,58,237,.8));
  box-shadow: 0 8px 24px rgba(168,85,247,.4);
}

.showMore{
  display:flex;
  justify-content:center;
  margin-top: 8px;
}
.extraGrid{ margin-top:16px; }

footer{
  text-align:center;
  color: var(--muted2);
  margin-top:42px;
  font-size:12.5px;
  padding-bottom:18px;
}

.hidden{ display:none !important; }

/* Scroll Down Indicator */
.scroll-indicator{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span{
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(168,85,247,.5);
}

.scroll-indicator svg{
  width: 32px;
  height: 32px;
  color: rgba(168,85,247,1);
  filter: drop-shadow(0 4px 12px rgba(168,85,247,.6));
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
}

/* Video Tutorial Section */
.tutorial-section{
  padding: 0 0 40px;
  max-width: 900px;
  margin: 0 auto;
}

.tutorial-container{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.tutorial-container h2{
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.tutorial-desc{
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.video-wrapper{
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
}

.video-wrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.video-placeholder{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.video-placeholder svg{
  opacity: 0.4;
}

.video-placeholder p{
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

/* Key System Page Styles */
.key-systems{
  padding: 20px 0 40px;
}

.key-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.key-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.key-card:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.key-icon{
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid;
}

.key-card h2{
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.key-stats{
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.stat{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}

.key-desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.steps-container{
  width: 100%;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.steps-header{
  font-size: 11px;
  font-weight: 700;
  color: rgba(168,85,247,.9);
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: rgba(168,85,247,.15);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.step-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.step-item:last-child{
  border-bottom: none;
}

.step-num{
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(168,85,247,.2);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(168,85,247,1);
}

.key-btn{
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.key-btn.linkvertise{
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 24px rgba(251, 191, 36, .3);
}

.key-btn.linkvertise:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(251, 191, 36, .5);
}

.key-btn.lootlabs{
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 8px 24px rgba(168, 85, 247, .3);
}

.key-btn.lootlabs:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, .5);
}

.back-action{
  text-align: center;
  margin-top: 40px;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.copy-notification svg {
  flex-shrink: 0;
}

/* Tablet Optimization */
@media (max-width: 980px){
  .wrap{ padding: 20px 16px 50px; }
  
  header{
    padding: 10px 16px;
    margin-bottom: 16px;
    top: 8px;
  }
  
  .search{ 
    min-width: min(300px, 50vw);
  }
  
  .hero{
    padding: 50px 0 60px;
  }
  
  .hero h1{
    font-size: clamp(32px, 6vw, 42px);
  }
  
  .heroMark img{
    width: 60px;
    height: 60px;
  }
  
  .grid{
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
  
  .card{
    min-height: 380px;
  }
  
  .actions{
    gap: 8px;
  }
  
  .btn{
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .key-grid{
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 20px;
  }
  
  .video-section{
    padding: 50px 16px;
  }
  
  .copy-notification{
    right: 16px;
    top: 16px;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Mobile Optimization */
@media (max-width: 640px){
  .wrap{ padding: 16px 12px 40px; }
  
  header{ 
    padding: 8px 12px;
    flex-direction: column;
    gap: 12px;
    top: 8px;
    margin-bottom: 12px;
  }
  
  .brand{
    padding: 6px 10px;
  }
  
  .brand span{ 
    font-size: 16px;
  }
  
  .logo img{
    width: 32px;
    height: 32px;
  }
  
  .topRight{ 
    width: 100%;
  }
  
  .search{ 
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }
  
  .hero{
    padding: 40px 0 50px;
  }
  
  .hero h1{
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 8px;
  }
  
  .hero p{
    font-size: 14px;
    padding: 0 10px;
  }
  
  .heroMark{
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }
  
  .heroMark img{
    width: 50px;
    height: 50px;
  }
  
  .actions{
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 16px auto 25px;
  }
  
  .btn{
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .scroll-indicator{
    font-size: 13px;
    margin-top: 30px;
  }
  
  .mutedLine{
    font-size: 12px;
    margin: 20px 0 8px;
  }
  
  .grid{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  
  .card{
    min-height: 380px;
  }
  
  .card:hover{
    transform: translateY(-4px);
  }
  
  .cardTop{
    padding: 16px 16px 0;
  }
  
  .title{
    font-size: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .desc{
    font-size: 13px;
  }
  
  .tag{
    font-size: 10px;
    padding: 5px 10px;
  }
  
  .thumb{
    width:calc(100% - 32px);
    height: 200px;
    margin: 12px 16px 0;
  }
  
  .cardActions{
    padding: 14px 16px 16px;
    gap: 8px;
  }
  
  .cardBtn{
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Key System Mobile */
  .video-section{
    padding: 40px 12px;
  }
  
  .video-section h2{
    font-size: 24px;
  }
  
  .video-placeholder{
    height: 200px;
    font-size: 14px;
  }
  
  .key-card{
    padding: 20px;
  }
  
  .key-card h3{
    font-size: 20px;
  }
  
  .key-steps{
    gap: 12px;
  }
  
  .step-item{
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .key-btn{
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .copy-notification{
    right: 12px;
    left: 12px;
    top: 12px;
    padding: 12px 16px;
    font-size: 13px;
  }
  
  footer{
    padding: 30px 12px;
    font-size: 13px;
  }
}

/* Loading and Error States */
.loading-state,
.no-scripts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
  animation: fadeIn 0.3s ease;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-state::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--stroke);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Patched badge */
.tag.patched {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Badge styles */
.badge.verified {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
