/* ==========================================================================
   Pleasure Portal & Admin Console - Custom Stylesheet (portal.css)
   - Rule 9: Modern Glassmorphism & Premium Dark Theme
   - Rule 21: Modal & Toast Animations (Zero Native Alert)
   - Rule 10: Seamless Badge & Meter Radiance
   ========================================================================== */

:root {
  --bg-deep: #090d16;
  --bg-card: rgba(15, 23, 42, 0.72);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.6);
  --glow-indigo: rgba(99, 102, 241, 0.35);
  --glow-emerald: rgba(16, 185, 129, 0.35);
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(79, 70, 229, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  min-height: 100vh;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Glassmorphism Modals (Rule 21) */
.modal-overlay {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease-out;
}

.modal-content {
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toasts */
.toast-item {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Avatar Ranks Aura (Hall of Fame) */
.avatar-rank-bronze {
  box-shadow: 0 0 0 2px #cd7f32, 0 0 12px rgba(205, 127, 50, 0.6);
}
.avatar-rank-iron {
  box-shadow: 0 0 0 2px #94a3b8, 0 0 12px rgba(148, 163, 184, 0.6);
}
.avatar-rank-silver {
  box-shadow: 0 0 0 2px #e2e8f0, 0 0 16px rgba(226, 232, 240, 0.8);
}
.avatar-rank-gold {
  box-shadow: 0 0 0 2px #fbbf24, 0 0 20px rgba(251, 191, 36, 0.85);
}
.avatar-rank-platinum {
  box-shadow: 0 0 0 2px #93c5fd, 0 0 20px rgba(147, 197, 253, 0.85);
}
.avatar-rank-mithril {
  box-shadow: 0 0 0 2px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.9);
}
.avatar-rank-adamantite {
  box-shadow: 0 0 0 2px #a855f7, 0 0 26px rgba(168, 85, 247, 0.95);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

/* Form inputs */
.portal-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s;
}
.portal-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
