/* ===============================
   NAVBAR — Steel & Frost Theme
   =============================== */

/* === NAVBAR WRAPPER === */
.navbar {
  background: rgba(15, 25, 35, 0.9);
  border-bottom: 1px solid rgba(120, 180, 255, 0.25);
  box-shadow: 0 0 15px rgba(100, 150, 255, 0.15);
  padding: 14px 0;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* === NAVBAR CONTENT === */
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  font-family: 'Cinzel', serif;
}

.navbar a {
  color: #b6d8ff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.25s;
}

.navbar a:hover {
  color: #fff;
  text-shadow: 0 0 12px #7ac6ff;
}

/* === USER INFO (CASH/POINT) === */
.user-info {
  color: #dcecff;
  font-weight: 500;
  font-size: 14px;
  background: rgba(15, 25, 35, 0.55);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(150, 200, 255, 0.15);
  box-shadow: 0 0 10px rgba(120, 170, 255, 0.1);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* === LOGOUT BUTTON === */
.logout-btn {
  color: #ff9090 !important;
  border: 1px solid rgba(255, 100, 100, 0.3);
  padding: 5px 14px;
  border-radius: 6px;
  transition: 0.25s;
}

.logout-btn:hover {
  background: rgba(255, 120, 120, 0.15);
  text-shadow: 0 0 10px #ffb0b0;
}

/* ===============================
   MODAL (Login / Register)
   =============================== */

/* === OVERLAY === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

/* === MODAL BOX === */
.modal-content.glass {
  background: rgba(20, 30, 45, 0.95);
  border: 1px solid rgba(150, 200, 255, 0.3);
  border-radius: 14px;
  padding: 35px 40px;
  width: 400px;
  box-shadow: 0 0 30px rgba(100, 180, 255, 0.35);
  color: #dbe9f4;
  animation: fadeIn 0.3s ease-in-out;
  font-family: 'Cinzel', serif;
}

.modal-content h2 {
  color: #a8d5ff;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(120, 180, 255, 0.4);
}

/* === FORM INPUTS === */
.modal-content label {
  display: block;
  font-size: 0.85rem;
  margin: 8px 0 4px;
  color: #b6d8ff;
  font-weight: 600;
}

.modal-content input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 12px;
  border: 1px solid rgba(150, 200, 255, 0.25);
  border-radius: 8px;
  background: rgba(15, 25, 35, 0.9);
  color: #fff;
  font-size: 15px;
  transition: 0.2s;
}

.modal-content input:focus {
  border-color: #8bb8e6;
  box-shadow: 0 0 12px rgba(120, 180, 255, 0.5);
  outline: none;
}

/* === SUBMIT BUTTON === */
.btn-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to bottom, #4975a6, #1e2d3b);
  color: #e9f3ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(120, 170, 255, 0.25);
  transition: 0.3s;
}

.btn-submit:hover {
  background: linear-gradient(to bottom, #6aa9e6, #223444);
  box-shadow: 0 0 18px rgba(150, 210, 255, 0.55);
  transform: translateY(-2px);
}

/* === CLOSE BUTTON === */
.close {
  color: #9ab0c9;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #fff;
  text-shadow: 0 0 10px #7ac6ff;
}

/* === FOOTER LINK === */
.footer-link {
  margin-top: 10px;
  font-size: 0.9em;
  color: #9ab0c9;
  text-align: center;
}

.footer-link a {
  color: #a8d5ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-link a:hover {
  text-shadow: 0 0 8px #7ac6ff;
}

/* === CAPTCHA (REGISTER USE) === */
.captcha-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
}

.captcha-wrap img {
  border-radius: 6px;
  height: 38px;
  border: 1px solid rgba(150, 200, 255, 0.25);
  box-shadow: 0 0 8px rgba(120, 170, 255, 0.15);
}

.refresh-btn {
  background: none;
  border: none;
  color: #a8d5ff;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.refresh-btn:hover {
  color: #fff;
  text-shadow: 0 0 10px #7ac6ff;
}

/* === ANIMATION === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === MOBILE VIEW === */
@media (max-width: 600px) {
  .modal-content.glass {
    width: 90%;
    padding: 25px 20px;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 25px;
  }
  .user-info {
    display: block;
    text-align: center;
  }
}

/* === SCROLLBAR BEAUTIFY === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(20, 30, 40, 0.7); }
::-webkit-scrollbar-thumb {
  background: rgba(130, 180, 255, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(160, 200, 255, 0.8); }
