/* ===== WORK PASS + Partículas (Black/White Molino) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap');
@import url('dashboard.css');
@import url('styles/themes.css');
@import url('styles/animations.css');
@import url('styles/particles.css');

:root {
  --wp-bg: #050505;
  --wp-ink: #fff;
  --wp-mist: rgba(255, 255, 255, .10);
  --wp-line: rgba(255, 255, 255, .14);
  --wp-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --wp-font-secondary: 'Outfit', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #000;
  font-family: var(--wp-font-primary);
  overflow-x: hidden;
  overflow-y: auto;
  /* Enable natural scrolling */
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Global Visual Polish */
.wp-grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  width: 200%;
  height: 200%;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Noise_Texture.png");
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
  animation: noiseDrift 0.2s steps(4) infinite;
}

.wp-vignette {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Global Background System */
.app-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--wp-bg);
  overflow: hidden;
  pointer-events: none;
}

/* MOLINO (Moved from hero::before) */
.wp-molino {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 68% 62%, var(--wp-mist), rgba(0, 0, 0, 0) 55%),
    conic-gradient(from 210deg at 68% 62%,
      rgba(255, 255, 255, .16),
      rgba(255, 255, 255, .08) 25%,
      rgba(0, 0, 0, 0) 35%,
      rgba(255, 255, 255, .12) 55%,
      rgba(0, 0, 0, 0) 70%,
      rgba(255, 255, 255, .08) 100%),
    conic-gradient(from 260deg at 70% 60%,
      rgba(255, 255, 255, .10),
      rgba(0, 0, 0, 0) 30%,
      rgba(255, 255, 255, .08) 60%,
      rgba(0, 0, 0, 0) 100%);
  filter: blur(18px);
  transform: translate3d(0, 0, 0) scale(1.1);
  animation: wpSwirlRotate 25s linear infinite, wpSwirlBreath 10s ease-in-out infinite;
}

/* APP SHELL */
.app-shell {
  width: 100vw;
  min-height: 100vh;
  /* Allow it to grow */
  position: relative;
  display: flex;
  flex-direction: column;
}

.workpass-view {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.wp-card-premium {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 0.72;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
}

.wp-card-premium:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  border-color: rgba(255, 255, 255, 0.2);
}

.wp-card-overlay {
  position: absolute;
  top: 40px;
  right: 40px;
}

/* CONTENIDO ARRIBA */
.wp-card-content {
  position: relative;
  z-index: 10;
}

.workpass-header {
  margin-bottom: 24px;
}

.workpass-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.workpass-avatar-container:hover {
  transform: rotate(0deg) scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.workpass-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1);
}

/* Card Actions Bar */
.wp-card-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.card-action-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.card-action-btn i {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* Carbon Copy Elements: Social & QR */
.wp-card-extra {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 24px;
}

.wp-card-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-btn i {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.wp-card-qr {
  width: 60px;
  height: 60px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%);
  background-size: 8px 8px;
  opacity: 0.5;
}

.workpass-id {
  font-family: var(--wp-font-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.5;
  margin-bottom: 8px;
  display: block;
}

.workpass-title {
  margin: 0;
  font: 700 42px/1.1 var(--wp-font-secondary);
  letter-spacing: -0.04em;
  color: #fff;
}

.workpass-description {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.6;
  max-width: 32ch;
  margin: 16px 0 0 0;
}

/* ===== PARTÍCULAS ===== */
.wp-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .7;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .20) 0 1px, rgba(0, 0, 0, 0) 2px) 0 0 / 120px 120px,
    radial-gradient(circle, rgba(255, 255, 255, .15) 0 1px, rgba(0, 0, 0, 0) 2px) 20px 30px / 180px 180px,
    radial-gradient(circle, rgba(255, 255, 255, .10) 0 1px, rgba(0, 0, 0, 0) 2px) 60px 10px / 240px 240px;
  animation: wpParticlesDrift 20s linear infinite;
  filter: blur(.2px);
}

.wp-particles::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .35) 0 1px, rgba(0, 0, 0, 0) 2px) 10px 10px / 160px 160px;
  opacity: .45;
  animation: wpParticlesTwinkle 3.5s ease-in-out infinite;
}

/* CHIP / OVERLAY DETAILS */
.wp-card-overlay {
  z-index: 5;
  text-align: right;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 12px #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes wpParticlesDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-80px, 60px, 0);
  }
}

@keyframes wpParticlesTwinkle {

  0%,
  100% {
    opacity: .25;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: .55;
    transform: translate3d(20px, -10px, 0);
  }
}

/* Animaciones base */
@keyframes wpSwirlRotate {
  from {
    transform: translate3d(0, 0, 0) scale(1.08) rotate(0deg);
  }

  to {
    transform: translate3d(0, 0, 0) scale(1.08) rotate(360deg);
  }
}

@keyframes wpSwirlBreath {

  0%,
  100% {
    filter: blur(18px);
    opacity: .92;
  }

  50% {
    filter: blur(24px);
    opacity: .80;
  }
}

@keyframes wpGrainDrift {

  0%,
  100% {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
  }

  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.08);
  }
}

/* ===== ADDITIONAL UI COMPONENTS ===== */
.workpass-footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-divider span {
  padding: 0 10px;
}

.edition-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

.wp-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 20px;
  border-radius: 12px;
  font-family: var(--wp-font-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.wp-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.wp-button.primary {
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
}

.wp-button.primary:hover {
  background: #e0e0e0;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* AUTH MODAL TABS */
.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--wp-font-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}

.modal-content {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
  transform: translateY(20px);
  animation: slideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

#auth-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--wp-font-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

#auth-form input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-switch {
  font-size: 14px;
  opacity: 0.5;
  text-align: center;
}

#switch-mode {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.3;
}

.close-modal:hover {
  opacity: 1;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .workpass-hero::before,
  .workpass-hero::after,
  .wp-particles,
  .wp-particles::before,
  .modal-overlay,
  .modal-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Close Button for Card */
.close-card-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.close-card-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.close-card-btn i {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

/* ===== PASSWORD RESET & SECURITY STYLES ===== */

/* Forgot Password Link Button */
.forgot-pwd-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-family: var(--wp-font-primary);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  margin-top: 8px;
}

.forgot-pwd-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.forgot-pwd-link .link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Auth Footer Links */
.auth-footer-links {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

/* Reset Password Modal */
.reset-modal {
  text-align: center;
}

.reset-icon-container {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIcon 3s ease-in-out infinite;
}

.reset-header-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  stroke-width: 1.5;
}

.reset-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-top: 8px;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Reset Success State */
.reset-success {
  text-align: center;
  padding: 20px 0;
}

.reset-success .success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.reset-success h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 12px;
}

.reset-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 8px 0;
}

.reset-success .success-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Back to Login Button */
.back-to-login {
  margin-top: 12px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.back-to-login:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Button Icons */
.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  stroke-width: 2px;
}

.wp-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SECURITY CARD STYLES ===== */
.security-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.security-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4ade80, #22c55e, #4ade80);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.security-badge {
  background: rgba(74, 222, 128, 0.1) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.2) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2px;
}

/* Security Form Styling */
.security-form {
  margin-top: 16px;
}

.security-form .form-group {
  margin-bottom: 16px;
}

.security-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 8px;
}

.label-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.toggle-password-btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.toggle-password-btn .eye-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5px;
}

/* Password Strength Indicator */
.password-strength {
  margin: 16px 0 20px;
}

.strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
}

.strength-fill.weak {
  width: 25%;
  background: linear-gradient(90deg, #ff4444, #ff6b6b);
}

.strength-fill.fair {
  width: 50%;
  background: linear-gradient(90deg, #ffaa00, #ffc107);
}

.strength-fill.good {
  width: 75%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.strength-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e, #10b981);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.strength-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.strength-label.weak {
  color: #ff6b6b;
}

.strength-label.fair {
  color: #ffc107;
}

.strength-label.good {
  color: #4ade80;
}

.strength-label.strong {
  color: #22c55e;
}

/* Change Password Button */
.change-pwd-btn {
  margin-top: 8px;
  font-weight: 600;
}

.change-pwd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* W-Full Utility */
.w-full {
  width: 100%;
}

/* Auth Header Styling */
.auth-header {
  text-align: center;
  margin-bottom: 8px;
}

.auth-header h2 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.auth-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Auth Field Styling */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PASSWORD ERROR TOAST ===== */
.password-error-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff4444, #dc2626);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
  animation: toastSlideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.password-error-toast i {
  width: 18px;
  height: 18px;
}

.password-error-toast.fade-out {
  animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideUp {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  to {
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
  }
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

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

/* =====================================================
   TACTICAL CHAT & LEADERBOARD STYLES
   ===================================================== */

/* Chat Messages Refinement */
.message-item {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.3s ease-out;
}

.message-header {
  display: flex;
  justify-content: span-between;
  margin-bottom: 4px;
  padding: 0 4px;
}

.message-sender {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp-accent);
}

.message-sender[data-role="admin"],
.message-sender[data-role="admin_main"] {
  color: #ff4444;
}

.message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.message-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 4px 12px 12px 12px;
  position: relative;
  max-width: 85%;
  align-self: flex-start;
}

.message-item.own {
  align-items: flex-end;
}

.message-item.own .message-bubble {
  background: rgba(var(--wp-accent-rgb), 0.1);
  border-color: rgba(var(--wp-accent-rgb), 0.2);
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
}

.message-item.pinned .message-bubble {
  border-left: 3px solid #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.message-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.pin-btn {
  position: absolute;
  top: 5px;
  right: -25px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.pin-btn:hover,
.pin-btn.active {
  color: #ffc107;
}

/* Leaderboard Styles */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 40px 50px 1fr 60px;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.leaderboard-item.top-tier {
  background: linear-gradient(90deg, rgba(var(--wp-accent-rgb), 0.08), transparent);
  border-left: 3px solid var(--wp-accent);
}

.rank-badge {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.top-tier[data-rank="1"] .rank-badge {
  color: #ffd700;
  font-size: 24px;
}

.top-tier[data-rank="2"] .rank-badge {
  color: #c0c0c0;
}

.top-tier[data-rank="3"] .rank-badge {
  color: #cd7f32;
}

.op-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.op-main {
  display: flex;
  flex-direction: column;
}

.op-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.op-rank-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.op-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.op-xp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.op-xp-fill {
  height: 100%;
  background: var(--wp-accent);
  box-shadow: 0 0 10px var(--wp-accent);
}

.op-xp-text {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--wp-accent);
}

.op-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 4px;
}

.lvl-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.lvl-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}