/* ============================================
   Locked - Premium Neon Glass UI
   ============================================ */

/* Root vibes */
:root{
  --bg:#0b1020;
  --glass:#101631cc;
  --stroke:rgba(255,255,255,0.08);
  --green:#10b981;
  --green-2:#22c55e;
  --cyan:#06b6d4;
  --blue:#1e40af;
  --text:#e5e7eb;
  --muted:#9ca3af;
}

/* Base reset helpers for this page */
.locked-main{ padding: 3rem 0 4rem; }
.container{ position: relative; z-index: 1; }

/* Hero */
.locked-hero{
  position: relative;
  height: 360px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  perspective: 800px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-bg{
  position:absolute; inset:0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,.25), transparent 60%),
              radial-gradient(1000px 500px at 100% 120%, rgba(16,185,129,.25), transparent 55%),
              linear-gradient(180deg, rgba(8,11,24,1), rgba(10,15,30,1));
  overflow:hidden;
}

.mesh:before{
  content:"";
  position:absolute; inset:-30%;
  background:
   radial-gradient(circle at 30% 40%, rgba(16,185,129,.07), transparent 30%),
   radial-gradient(circle at 70% 60%, rgba(59,130,246,.08), transparent 35%);
  filter: blur(60px);
}

.grid-lines{
  position:absolute; inset:0;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 60%, transparent 85%);
  pointer-events:none;
}

.orb{
  position:absolute;
  width:240px; height:240px; border-radius:50%;
  filter: blur(24px);
  mix-blend-mode: screen;
  opacity:.5;
  animation: float 8s ease-in-out infinite;
}
.orb-1{ left:8%; top:12%; background: radial-gradient(circle, #22c55e, transparent 60%); animation-delay:.2s;}
.orb-2{ right:12%; top:18%; background: radial-gradient(circle, #60a5fa, transparent 60%); animation-delay:1.2s;}
.orb-3{ bottom:-40px; left:40%; background: radial-gradient(circle, #06b6d4, transparent 60%); animation-delay:.6s;}

@keyframes float {
  0%,100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-10px) translateX(6px); }
}

.hero-content{
  position:relative; z-index:2; text-align:center; color:var(--text);
  transform-style: preserve-3d;
}

.lock-crest{
  position:relative; width:110px; height:110px; margin:0 auto 12px;
}
.crest-ring{
  position:absolute; inset:0; border-radius:50%;
  background: conic-gradient(from 0deg, rgba(16,185,129,.9), rgba(99,102,241,.9), rgba(16,185,129,.9));
  filter: blur(12px); opacity:.5; animation: spin 8s linear infinite;
}
.crest-glow{
  position:absolute; inset:10px; border-radius:50%; background:rgba(255,255,255,.08);
  backdrop-filter: blur(6px); border:1px solid rgba(255,255,255,.1);
}
.crest-icon{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:2rem; transform: translateZ(40px);
}

@keyframes spin{ to{ transform: rotate(360deg); } }

.locked-hero h1{
  font-size:2.4rem; color:var(--green); letter-spacing:.4px;
}
.locked-hero .subtitle{
  color:var(--muted); margin-top:8px; font-size:1rem;
}
.user-pill{
  background: rgba(16,185,129,.12);
  color:var(--text);
  padding: .25rem .6rem; border-radius: 999px;
  border:1px solid rgba(16,185,129,.35);
}

.hero-shimmer{
  margin:18px auto 0; width:240px; height:3px; border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.6), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer{
  0%,100%{ opacity:.2; transform: translateX(-10px); }
  50%{ opacity:1; transform: translateX(10px); }
}

/* Grid */
.locked-grid{
  display:grid; gap:1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card */
.locked-card{
  position:relative; overflow:hidden;
  border-radius:18px;
  background: linear-gradient( to bottom right, rgba(255,255,255,.06), rgba(255,255,255,.02) );
  border:1px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.locked-card:hover{
  transform: translateY(-6px);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 24px 70px rgba(16,185,129,.12), inset 0 1px rgba(255,255,255,.08);
}

.card-blur{
  position:absolute; inset:-20%;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(400px 240px at 100% 100%, rgba(99,102,241,.12), transparent 60%);
  filter: blur(30px);
  pointer-events:none;
}

.card-header{ padding:1.4rem 1.4rem .25rem; }
.card-topline{ display:flex; align-items:center; gap:.5rem; margin-bottom:.6rem; }
.chip{
  font-size:.75rem; padding:.35rem .6rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text); letter-spacing:.02em; white-space:nowrap;
}
.chip-green{ border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.12); color:var(--green); }
.chip-dark{ border-color: rgba(148,163,184,.35); background: rgba(2,6,23,.6); color:#a5b4fc; }

.card-header h2{ color:var(--text); font-size:1.3rem; margin:0 0 .4rem; }
.card-header p{ color:var(--muted); margin:0 0 .2rem; }

/* Controls */
.card-controls{ padding:0 1.4rem 1.4rem; }
.input-wrap label{ display:block; color:#cbd5e1; font-weight:600; margin-bottom:.4rem; font-size:.9rem; }
.input-row{
  display:flex; gap:.6rem; align-items:center;
  position:relative;
}
.lock-input{
  flex:1; padding:.85rem 1rem;
  background: rgba(2,6,23,.65);
  color:var(--text);
  border:1px solid rgba(148,163,184,.25);
  border-radius:12px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
  font-size:1.05rem;
}
.lock-input::placeholder{ color:#64748b; }
.lock-input:focus{
  border-color: rgba(16,185,129,.6);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12), 0 10px 30px rgba(16,185,129,.16);
  background: rgba(2,6,23,.8);
}

.btn-unlock{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.9rem 1rem;
  border-radius:12px; border:1px solid rgba(16,185,129,.35);
  color:#03111b; font-weight:800;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  cursor:pointer; white-space:nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn-unlock .btn-icon{ font-size:1.1rem; }
.btn-unlock .btn-glow{
  position:absolute; inset:-40%; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.4), transparent 45%);
  filter: blur(12px); opacity:.35; pointer-events:none;
  animation: btnGlow 2.6s ease-in-out infinite;
}
@keyframes btnGlow{
  0%{ transform: translateX(-10%); opacity:.1; }
  50%{ transform: translateX(10%); opacity:.35;}
  100%{ transform: translateX(-10%); opacity:.1; }
}
.btn-unlock:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16,185,129,.28);
}

.hint{ color:#64748b; font-size:.85rem; margin-top:.35rem; }

/* Link slot */
.link-slot{ min-height: 2.2rem; margin-top:.8rem; }
.locked-link{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .9rem; border-radius:999px; text-decoration:none;
  color:#dbeafe;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(16,185,129,.2));
  border:1px solid rgba(99,102,241,.4);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.locked-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99,102,241,.22);
}
.locked-link .icon{ font-size:1.05rem; }

/* Toaster */
.toaster{
  position:fixed; bottom:24px; right:24px; display:flex; flex-direction:column; gap:.6rem; z-index:9999;
}
.toast{
  display:flex; align-items:center; gap:.6rem;
  padding:.65rem 1rem; border-radius:12px; color:#e2e8f0; font-weight:600;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(2,6,23,.9); backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
  animation: toastIn .25s ease forwards;
}
.toast.success{ border-color: rgba(16,185,129,.45);}
.toast.error{ border-color: rgba(239,68,68,.45);}
@keyframes toastIn{
  from{ opacity:0; transform: translateY(10px);}
  to{ opacity:1; transform: translateY(0);}
}

/* Success pulse on input */
.success-pulse{
  box-shadow: 0 0 0 4px rgba(16,185,129,.14)!important;
  border-color: rgba(16,185,129,.7)!important;
}

/* Shake error */
.shake{
  animation: shake .35s ease;
}
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
}

/* Responsive */
@media (max-width: 768px){
  .locked-hero{ height: 300px; }
  .locked-hero h1{ font-size: 2rem; }
}
