.hv-navbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #1a2f42;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  border-bottom: 1px solid #2f5e85;
  flex-shrink: 0;
}

.hv-navbar-brand {
  font-weight: 700;
  font-size: 16px;
  color: #9fd4ff;
  text-decoration: none;
}

.hv-navbar-spacer {
  flex: 1;
}

.hv-user-menu {
  position: relative;
}

.hv-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #244967;
  border: 1px solid #2f5e85;
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.hv-user-btn:hover {
  background: #2f5e85;
}

.hv-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3e3e3e;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
}

.hv-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: #244967;
  border: 1px solid #2f5e85;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  overflow: hidden;
}

.hv-dropdown.open {
  display: block;
}

.hv-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.hv-dropdown button:hover {
  background: #2f5e85;
}

/* Shared cyberpunk profile card (home / rooms / career) */
.hv-profile-card {
  position: relative;
}

.hv-profile-btn.hv-user-btn,
.hv-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.08) 0%, transparent 55%),
    rgba(6, 14, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e8f4ff;
  cursor: pointer;
  font-size: 14px;
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hv-profile-btn.hv-user-btn:hover,
.hv-profile-btn:hover {
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.14) 0%, transparent 55%),
    rgba(10, 24, 42, 0.95);
  border-color: rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.hv-profile-btn .hv-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  background: #122033;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv-profile-btn .hv-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-profile-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hv-profile-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  margin-left: -2px;
  color: #7fdfff;
}

.hv-profile-dropdown.hv-dropdown,
.hv-profile-dropdown {
  border: 1px solid rgba(0, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.06) 0%, transparent 30%),
    rgba(6, 14, 28, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 255, 255, 0.1);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  overflow: hidden;
}

.hv-profile-dropdown button {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 16px;
  color: #dceeff;
  background: none;
}

.hv-profile-dropdown button:hover {
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
}

.hv-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.hv-modal-backdrop.open {
  display: flex;
}

.hv-modal {
  background: #1e3a52;
  color: #fff;
  border: 1px solid #2f5e85;
  border-radius: 10px;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
}

.hv-modal h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.hv-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hv-form-row label {
  min-width: 120px;
  font-size: 14px;
}

.hv-form-row input,
.hv-form-row select {
  flex: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #2f5e85;
  background: #0f2233;
  color: #fff;
}

.hv-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.hv-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.hv-btn-primary {
  background: #2f5e85;
  color: #fff;
}

.hv-btn-primary:hover {
  background: #3a74a3;
}

.hv-btn-ghost {
  background: transparent;
  color: #9fd4ff;
  border: 1px solid #2f5e85;
}

.hv-auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050b14;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: #e8f4ff;
  overflow: hidden;
}

.hv-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(0, 255, 255, 0.16), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 0, 128, 0.08), transparent 45%),
    linear-gradient(160deg, #050b14 0%, #0a1524 48%, #061018 100%);
}

.hv-auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
}

.hv-auth-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.07) 0%, transparent 34%),
    rgba(8, 16, 30, 0.94);
  border: 1px solid rgba(0, 255, 255, 0.32);
  border-radius: 0;
  padding: 32px 28px 26px;
  width: min(420px, 92vw);
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.hv-auth-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hv-auth-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0, 255, 255, 0.75);
  border-style: solid;
}

.hv-auth-corner-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hv-auth-corner-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hv-auth-corner-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hv-auth-corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hv-auth-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(127, 223, 255, 0.72);
  text-align: center;
}

.hv-auth-card h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 22px rgba(0, 255, 255, 0.35);
}

.hv-auth-subtitle {
  margin: 4px 0 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 212, 255, 0.7);
}

.hv-auth-card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(4, 12, 22, 0.9);
  color: #fff;
  font-family: inherit;
}

.hv-auth-error {
  color: #ff8a8a;
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
  text-align: center;
}

.hv-discord-btn {
  position: relative;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  border: 1px solid rgba(160, 180, 255, 0.35);
  border-radius: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hv-discord-btn:hover {
  background: linear-gradient(135deg, #6772f5 0%, #5865f2 100%);
  box-shadow: 0 0 26px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.hv-discord-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: hvAuthShine 3.2s ease-in-out infinite;
}

@keyframes hvAuthShine {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.hv-auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(200, 220, 240, 0.75);
}

.hv-auth-link a {
  color: #7fdfff;
  text-decoration: none;
  font-weight: 700;
}

.hv-auth-link a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.45);
}
