/* ============================================
   PREMIUM HABBO RETRO - COMPLETE UI SYSTEM
   Multi-Theme Implementation
   ============================================ */

/* Theme Variables - Switchable */
:root {
  /* Default: Cyberpunk Chrome */
  --theme-primary: #00f2ff;
  --theme-secondary: #bd00ff;
  --theme-accent: #ff0055;
  --theme-dark: #0a0a0f;
  --theme-darker: #050508;
  --theme-surface: rgba(15, 23, 36, 0.9);
  --theme-border: rgba(0, 242, 255, 0.3);
  --theme-glow: rgba(0, 242, 255, 0.6);
  --theme-text: #ffffff;
  --theme-text-muted: rgba(255, 255, 255, 0.7);
}

/* Theme: Royal Vintage */
[data-theme="royal"] {
  --theme-primary: #d4af37;
  --theme-secondary: #8b4513;
  --theme-accent: #4b0082;
  --theme-dark: #1a1a1a;
  --theme-darker: #0f0f0f;
  --theme-surface: rgba(26, 20, 15, 0.95);
  --theme-border: rgba(212, 175, 55, 0.4);
  --theme-glow: rgba(212, 175, 55, 0.5);
}

/* Theme: Neo Retro Pixel Pop */
[data-theme="neo-retro"] {
  --theme-primary: #ff6b9d;
  --theme-secondary: #c44569;
  --theme-accent: #f8b500;
  --theme-dark: #2d3436;
  --theme-darker: #1e1e1e;
  --theme-surface: rgba(45, 52, 54, 0.95);
  --theme-border: rgba(255, 107, 157, 0.4);
  --theme-glow: rgba(255, 107, 157, 0.6);
}

/* Theme: Arcane Fantasy */
[data-theme="arcane"] {
  --theme-primary: #9d4edd;
  --theme-secondary: #5a189a;
  --theme-accent: #ffbe0b;
  --theme-dark: #0d1b2a;
  --theme-darker: #050a0f;
  --theme-surface: rgba(13, 27, 42, 0.95);
  --theme-border: rgba(157, 78, 221, 0.4);
  --theme-glow: rgba(157, 78, 221, 0.6);
}

/* Theme: Neon Vaporwave */
[data-theme="vaporwave"] {
  --theme-primary: #ff006e;
  --theme-secondary: #8338ec;
  --theme-accent: #3a86ff;
  --theme-dark: #0f0c24;
  --theme-darker: #080510;
  --theme-surface: rgba(15, 12, 36, 0.95);
  --theme-border: rgba(255, 0, 110, 0.4);
  --theme-glow: rgba(255, 0, 110, 0.6);
}

/* ============================================
   LOGIN & REGISTRATION SCREENS
   ============================================ */

.login-container,
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-darker);
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.login-container::before,
.register-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--theme-primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, var(--theme-secondary) 0%, transparent 50%);
  opacity: 0.1;
  animation: backgroundPulse 10s ease-in-out infinite;
  z-index: 0;
}

@keyframes backgroundPulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.15; }
}

.login-box,
.register-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.login-logo,
.register-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img,
.register-logo img {
  max-width: 200px;
  filter: drop-shadow(0 0 20px var(--theme-glow));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 20px var(--theme-glow)); }
  50% { filter: drop-shadow(0 0 30px var(--theme-glow)); }
}

.login-title,
.register-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle,
.register-subtitle {
  text-align: center;
  color: var(--theme-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--theme-text);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.5rem;
  color: var(--theme-text);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1), 0 0 20px var(--theme-glow);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: var(--theme-text-muted);
}

.btn-login,
.btn-register {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow);
  position: relative;
  overflow: hidden;
}

.btn-login::before,
.btn-register::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before,
.btn-register:hover::before {
  width: 300px;
  height: 300px;
}

.btn-login:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 30px var(--theme-glow);
}

.btn-login:active,
.btn-register:active {
  transform: translateY(0);
}

.login-footer,
.register-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--theme-text-muted);
  font-size: 0.875rem;
}

.login-footer a,
.register-footer a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover {
  color: var(--theme-secondary);
}

/* ============================================
   IN-HOTEL NAVIGATION UI
   ============================================ */

.hotel-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--theme-border);
  padding: 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.nav-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--theme-text);
  min-width: 80px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--theme-border);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px var(--theme-glow);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-color: var(--theme-primary);
  box-shadow: 0 0 20px var(--theme-glow);
}

.nav-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 5px var(--theme-glow));
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1) rotate(5deg);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Top HUD Bar */
.hotel-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--theme-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--theme-border);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--theme-text);
}

.currency-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px var(--theme-glow));
}

.currency-amount {
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   INVENTORY UI
   ============================================ */

.inventory-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  z-index: 2000;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--theme-border);
}

.inventory-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inventory-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--theme-text);
}

.inventory-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0055;
  transform: rotate(90deg);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}

.inventory-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.inventory-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inventory-item:hover::before {
  opacity: 0.3;
}

.inventory-item:hover {
  border-color: var(--theme-primary);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow);
}

.inventory-item.selected {
  border-color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.2);
  box-shadow: 0 0 25px var(--theme-glow);
}

.inventory-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  filter: drop-shadow(0 0 5px var(--theme-glow));
}

.inventory-item-count {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ROOMS UI
   ============================================ */

.rooms-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  z-index: 2000;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}

.room-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.room-card:hover::before {
  opacity: 0.1;
}

.room-card:hover {
  border-color: var(--theme-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px var(--theme-glow);
}

.room-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 1px solid var(--theme-border);
}

.room-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.room-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--theme-text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.room-users {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   BADGES UI
   ============================================ */

.badges-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  z-index: 2000;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}

.badge-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}

.badge-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.badge-item:hover::before {
  opacity: 0.4;
}

.badge-item:hover {
  border-color: var(--theme-primary);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px var(--theme-glow);
}

.badge-item.equipped {
  border-color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.2);
  box-shadow: 0 0 20px var(--theme-glow);
}

.badge-item.equipped::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--theme-primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--theme-glow));
  transition: filter 0.3s ease;
}

.badge-item:hover .badge-image {
  filter: drop-shadow(0 0 15px var(--theme-glow));
}

/* ============================================
   FRIENDS UI
   ============================================ */

.friends-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  z-index: 2000;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--theme-primary);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 15px var(--theme-glow);
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--theme-border);
  object-fit: cover;
  filter: drop-shadow(0 0 8px var(--theme-glow));
}

.friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.friend-name {
  font-weight: 600;
  color: var(--theme-text);
  font-size: 1rem;
}

.friend-status {
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 8px var(--status-color);
}

.status-indicator.online {
  --status-color: #10b981;
}

.status-indicator.offline {
  --status-color: #6b7280;
}

.status-indicator.away {
  --status-color: #f59e0b;
}

.friend-actions {
  display: flex;
  gap: 0.5rem;
}

.friend-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--theme-text);
}

.friend-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--theme-primary);
  transform: scale(1.1);
}

/* ============================================
   SETTINGS UI
   ============================================ */

.settings-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--theme-glow);
  z-index: 2000;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--theme-border);
  padding-bottom: 1rem;
}

.settings-tab {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--theme-text-muted);
  font-weight: 600;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--theme-text);
}

.settings-tab.active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-color: var(--theme-primary);
  color: white;
  box-shadow: 0 0 15px var(--theme-glow);
}

.settings-content {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--theme-border);
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.settings-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--theme-primary);
}

.settings-option-label {
  font-weight: 600;
  color: var(--theme-text);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--theme-border);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-color: var(--theme-primary);
  box-shadow: 0 0 15px var(--theme-glow);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* Theme Selector */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.theme-option {
  aspect-ratio: 1;
  border: 3px solid var(--theme-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-option[data-theme="cyberpunk"] {
  background: linear-gradient(135deg, #00f2ff 0%, #bd00ff 100%);
}

.theme-option[data-theme="royal"] {
  background: linear-gradient(135deg, #d4af37 0%, #8b4513 100%);
}

.theme-option[data-theme="neo-retro"] {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.theme-option[data-theme="arcane"] {
  background: linear-gradient(135deg, #9d4edd 0%, #5a189a 100%);
}

.theme-option[data-theme="vaporwave"] {
  background: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
}

.theme-option:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--theme-glow);
}

.theme-option.active {
  border-color: var(--theme-primary);
  box-shadow: 0 0 25px var(--theme-glow);
}

.theme-option.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   POP-UPS, MODALS, TOOLTIPS
   ============================================ */

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
  animation: fadeIn 0.3s ease;
}

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

/* Tooltip */
.tooltip {
  position: absolute;
  padding: 0.5rem 1rem;
  background: var(--theme-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--theme-border);
  border-radius: 0.5rem;
  color: var(--theme-text);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--theme-glow);
  z-index: 3000;
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease;
  max-width: 200px;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.tooltip.top::before {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--theme-border);
}

.tooltip.bottom::before {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--theme-border);
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--theme-glow);
  z-index: 3000;
  animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.success {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.notification.error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.notification.warning {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hotel-nav {
    padding: 0.75rem;
  }

  .nav-items {
    gap: 0.5rem;
  }

  .nav-item {
    padding: 0.5rem 1rem;
    min-width: 60px;
  }

  .nav-label {
    font-size: 0.625rem;
  }

  .hud-left,
  .hud-right {
    gap: 1rem;
  }

  .currency-display {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .inventory-window,
  .rooms-window,
  .badges-window,
  .friends-window,
  .settings-window {
    width: 95%;
    padding: 1.5rem;
  }

  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
  }

  .rooms-list {
    grid-template-columns: 1fr;
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
  }

  .theme-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .login-box,
  .register-box {
    padding: 2rem 1.5rem;
  }

  .nav-items {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: auto;
  }
}

/* ============================================
   SCROLLBAR CUSTOMIZATION
   ============================================ */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-primary) 100%);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--theme-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .loading {
  width: 60px;
  height: 60px;
  border-width: 6px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-effect {
  box-shadow: 0 0 20px var(--theme-glow);
  filter: drop-shadow(0 0 10px var(--theme-glow));
}

.glass-effect {
  background: var(--theme-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--theme-border);
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
