/* authGuard.css - Smart Running Trade Terminal Access Lock & Auth Gatekeeper */

/* User Header Status Widget */
.auth-header-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.auth-user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  color: #f8fafc;
  line-height: 1;
}

.auth-user-name {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-status-badge.trial {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.auth-status-badge.pro {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.auth-logout-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
  text-decoration: underline;
}

.auth-logout-btn:hover {
  color: #ef4444;
}

/* Fullscreen Lock Overlay for Expired / Unauthorized Users */
.auth-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--font-mono, monospace);
  animation: authFadeIn 0.3s ease forwards;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-lock-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 36px 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
}

.auth-lock-badge {
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}

.auth-lock-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.auth-lock-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-lock-btn-wa {
  display: block;
  width: 100%;
  background: #25d366;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.auth-lock-btn-wa:hover {
  background: #22c35e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.auth-lock-btn-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-lock-btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}
