@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;1,900&family=Rajdhani:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: #050505;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(20, 184, 166, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Elegant Gaming Panel */
.glass-panel {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
  border-radius: 0;
}

.glass-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #8b5cf6;
}



.access-gate {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 6px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
}

.vip-title {
  text-align: left;
  margin-bottom: 40px;
  line-height: 0.95;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.title-white {
  font-size: 72px;
  color: #f8fafc;
  letter-spacing: -2px;
}

.title-gold {
  font-size: 96px;
  color: #fbbf24;
  letter-spacing: -4px;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  margin: -5px 0;
}

/* Code Block Styling */
.code-block {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.code-line { margin-bottom: 8px; }
.code-line.comment { color: #52525b; font-style: italic; }
.keyword { color: #60a5fa; }
.variable { color: #f8fafc; }
.function { color: #fcd34d; }
.string { color: #34d399; }
.property { color: #93c5fd; }
.number { color: #f472b6; }

.code-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}

.auth-req {
  color: #52525b;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.blinking-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

p.subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 16px;
  letter-spacing: 1px;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: #fbbf24;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #14b8a6;
  padding: 16px;
  color: #fff;
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 0;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: inset 0 0 10px rgba(45, 212, 191, 0.2);
  background: rgba(20, 184, 166, 0.05);
}

button {
  width: 100%;
  padding: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #fbbf24;
  color: #fde68a;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
  transition: all 0.4s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.2);
  color: white;
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(0);
}

/* Background Blobs (Gaming style) */
.blob {
  position: fixed;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.3;
}
.blob.blue {
  background: #14b8a6;
  width: 400px;
  height: 400px;
  top: -150px;
  left: -150px;
}
.blob.purple {
  background: #8b5cf6;
  width: 500px;
  height: 500px;
  bottom: -250px;
  right: -150px;
}

/* Result Box (Removed from index, keeping if needed elsewhere) */
#resultBox {
  display: none;
  margin-top: 32px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 4px solid #10b981;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-text {
  color: #f43f5e;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  display: none;
  background: rgba(244, 63, 94, 0.1);
  padding: 8px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 4px;
}

/* Admin Styles */
.admin-container {
  max-width: 900px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 20px;
}
th, td {
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
}
th { 
  color: #8b5cf6; 
  font-size: 14px; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  background: transparent;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  background: transparent;
  color: #f43f5e;
  border: 1px solid #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}
.btn-small:hover { 
  background: #f43f5e; 
  color: white; 
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

/* Custom File Upload */
.custom-file-upload {
  border: 2px dashed rgba(251, 191, 36, 0.5);
  display: flex;
  padding: 24px;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  color: #fde68a;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  width: 100%;
}
.custom-file-upload input[type="file"] {
  display: none;
}
.custom-file-upload:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Modal Pop-up */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.2), inset 0 0 20px rgba(245, 158, 11, 0.05);
  animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
  background: transparent !important;
  border: 1px solid #ef4444 !important;
  color: #ef4444 !important;
  margin-top: 16px;
  box-shadow: none !important;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #fca5a5 !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .glass-panel {
    padding: 30px 20px;
    max-width: 90%;
    margin: 20px auto;
  }
  .title-white {
    font-size: 42px;
  }
  .title-gold {
    font-size: 64px;
    letter-spacing: -2px;
  }
  .access-gate {
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 16px;
  }
  .vip-title {
    margin-bottom: 24px;
  }
  .code-block {
    padding: 15px;
    font-size: 11px;
  }
  input[type="text"], input[type="password"] {
    font-size: 16px;
    padding: 12px;
  }
  button {
    font-size: 16px;
    padding: 14px;
  }
  .modal-content {
    padding: 24px;
  }
  .modal-content h3 {
    font-size: 22px !important;
  }
  .modal-content p {
    font-size: 15px !important;
  }
}

/* Footer Styling */
.site-footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #475569;
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  z-index: 5;
}
.site-footer span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #334155;
}
