/* ═══════════════════════════════════════════════════════
   HABBO FIVEM ROLEPLAY — CSS DE INTEGRACIÓN 2.5D ISOMÉTRICO
   ====================================================== */

#habbo-rp-view {
  flex: 1;
  height: 100%;
  position: relative;
  background: #090a0f;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary), 'Outfit', sans-serif;
  overflow: hidden;
  user-select: none;
}
#habbo-rp-view.hidden { display: none !important; }

/* Top Game Bar HUD */
.hrp-top-bar {
  height: 60px;
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hrp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hrp-brand-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}
.hrp-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

/* Locations Switcher Bar */
.hrp-loc-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hrp-loc-btn {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--t3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.hrp-loc-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hrp-loc-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Player RP Status & Cash Pill */
.hrp-hud-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hrp-stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hrp-cash-num { color: #10b981; }

.hrp-close-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.hrp-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Main World Area */
.hrp-world-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 60px);
  overflow: hidden;
  background: #0d0f17;
}

#hrp-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Floating Bottom Controls & Voice Bar */
.hrp-bottom-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.hrp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.hrp-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.hrp-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}
.hrp-btn.voice-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
  animation: pulse 1.2s infinite;
}

/* Voice Range Toggle Pill */
.hrp-voice-range-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hrp-range-btn {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--t3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.hrp-range-btn.active {
  background: #3b82f6;
  color: #fff;
}

/* RP Action Chat Box Overlay (Left side) */
.hrp-chat-box {
  position: absolute;
  bottom: 80px;
  left: 20px;
  width: 340px;
  height: 220px;
  background: rgba(11, 14, 22, 0.82);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.hrp-chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}
.hrp-chat-feed::-webkit-scrollbar { width: 3px; }
.hrp-chat-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

.hrp-msg-item {
  line-height: 1.35;
  word-break: break-word;
}
.hrp-msg-me { color: #c084fc; font-weight: 700; font-style: italic; }
.hrp-msg-do { color: #facc15; font-weight: 700; font-style: italic; }
.hrp-msg-ic { color: #ffffff; }
.hrp-msg-ooc { color: #94a3b8; }
.hrp-msg-sys { color: #38bdf8; font-weight: 800; }

.hrp-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hrp-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11.5px;
  outline: none;
  font-family: inherit;
}

/* Modals (Inventory & Jobs & Radio) */
.hrp-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hrp-modal {
  width: 440px;
  background: #0f121d;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  color: #fff;
}
.hrp-modal-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hrp-inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.hrp-inv-slot {
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.hrp-inv-slot:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}
.hrp-inv-icon { font-size: 24px; }
.hrp-inv-label { font-size: 10px; color: var(--t3); font-weight: 700; }
