/* ==========================================================================
   Design Tokens & Color Palette
   ========================================================================== */
:root {
  /* Fonts */
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Colors */
  --color-bg: hsl(280, 50%, 4%);
  --color-bg-light: hsl(280, 45%, 8%);
  --color-accent: hsl(324, 100%, 60%); /* Neon Hot Pink */
  --color-accent-glow: hsla(324, 100%, 60%, 0.35);
  --color-primary: hsl(186, 100%, 45%); /* Neon Cyan */
  --color-primary-glow: hsla(186, 100%, 45%, 0.35);
  --color-success: hsl(145, 100%, 50%); /* Bright Neon Green */
  --color-text: hsl(240, 10%, 94%);
  --color-text-dim: hsl(240, 6%, 70%);
  --color-glass: rgba(21, 9, 31, 0.55);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-active: rgba(186, 100%, 45%, 0.3);
}

/* ==========================================================================
   Base Structure
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Neon Grid Background */
.neon-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(186, 45, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 45, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
}

.neon-grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, transparent 20%, var(--color-bg) 80%);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
header {
  background: rgba(21, 9, 31, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  color: #fff;
}

.logo-dot {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--color-text-dim);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  position: relative;
  padding: 5px 0;
}

nav a:hover, nav a.active {
  color: var(--color-primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-success);
}

.status-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-dim);
}

/* ==========================================================================
   Main Arcade Portal Layout
   ========================================================================== */
.arcade-portal {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
}

/* Arcade Cabinet Wrapper */
.arcade-cabinet-wrapper {
  background: radial-gradient(circle at center, #27143a 0%, #0e0517 100%);
  border: 4px solid #331557;
  border-radius: 16px;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    0 0 25px rgba(186, 45, 255, 0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.cabinet-marquee {
  background: #000;
  border-bottom: 2px solid #331557;
  padding: 12px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marquee-glow {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-accent);
  text-shadow: 0 0 8px var(--color-accent-glow);
}

.marquee-p2p {
  font-size: 11px;
  font-weight: 700;
  background: rgba(186, 45, 255, 0.2);
  border: 1px solid rgba(186, 45, 255, 0.3);
  color: #c97bf5;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Aspect Ratio Iframe container 16:9 */
.iframe-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cabinet-panel-footer {
  background: #05010a;
  border-top: 2px solid #331557;
  padding: 12px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cabinet-brand {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-dim);
}

.controller-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.controller-light.green {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.controller-light.blue {
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.game-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--color-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.sidebar-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.game-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.game-desc {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

.game-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Keyboard Controls List */
.controls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.key {
  background: #f8fafc;
  color: #1e293b;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 0 #cbd5e1;
  min-width: 30px;
  text-align: center;
}

.control-row .desc {
  color: var(--color-text-dim);
}

/* Steps list */
.step-guide {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-guide li {
  font-size: 12px;
  color: var(--color-text-dim);
  position: relative;
  padding-left: 20px;
}

.step-guide li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-accent);
}

/* ==========================================================================
   Leaderboard Section
   ========================================================================== */
.leaderboard-section {
  background: radial-gradient(circle at center, #1b0a2b 0%, #0e0517 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 60px 0;
  width: 100%;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--color-text-dim);
}

.leaderboard-grid {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(8px);
}

.leader-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.leader-row:last-child {
  border-bottom: none;
}

.rank {
  font-family: var(--font-display);
  font-size: 16px;
  width: 30px;
  color: var(--color-text-dim);
}

.player-avatar {
  font-size: 18px;
  margin-right: 15px;
}

.player-name {
  flex-grow: 1;
  font-size: 14px;
}

.score {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.leader-row.rank-1 .rank { color: #f1c40f; font-weight: 800; }
.leader-row.rank-1 .score { color: #f1c40f; }
.leader-row.rank-2 .rank { color: #95a5a6; font-weight: 800; }
.leader-row.rank-2 .score { color: #95a5a6; }
.leader-row.rank-3 .rank { color: #d35400; font-weight: 800; }
.leader-row.rank-3 .score { color: #d35400; }

/* ==========================================================================
   More Games Showcase
   ========================================================================== */
.more-games-section {
  padding: 60px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.game-card {
  background: var(--color-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(186, 45, 255, 0.25);
  box-shadow: 0 10px 25px rgba(186, 45, 255, 0.1);
}

.game-card-img {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-card-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.game-card-img.tetris {
  background-image: linear-gradient(135deg, #120024, #3a005c);
}
.game-card-img.snake {
  background-image: linear-gradient(135deg, #001224, #00485c);
}
.game-card-img.pacman {
  background-image: linear-gradient(135deg, #241c00, #5c4400);
}

.game-card-info {
  padding: 20px;
}

.game-card-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.game-card-info p {
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  height: 36px;
  overflow: hidden;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-dim);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 4, 15, 0.95);
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

footer p {
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer-subtext {
  font-size: 11px;
  color: hsla(240, 6%, 70%, 0.4);
  margin-top: 6px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .arcade-portal {
    margin: 20px auto;
  }
}

/* ==========================================================================
   Authentication & Notification Panels Styles
   ========================================================================== */

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-auth-widget {
  display: flex;
  align-items: center;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.header-avatar {
  font-size: 18px;
}

.header-username {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bell-container {
  position: relative;
}

.btn-bell {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  position: relative;
  transition: transform 0.2s ease;
}

.btn-bell:hover {
  transform: scale(1.1);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 6px var(--color-accent-glow);
}

.btn-nav, .btn-primary-neon {
  background: linear-gradient(135deg, var(--color-primary) 0%, #10a3a8 100%);
  color: #0a0b0d;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(16, 163, 168, 0.2);
}

.btn-nav:hover, .btn-primary-neon:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 15px rgba(16, 163, 168, 0.4),
    0 0 10px var(--color-primary-glow);
}

.btn-primary-neon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-nav-secondary {
  background: transparent;
  color: var(--color-text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-nav-icon {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-nav-icon:hover {
  opacity: 1;
}

/* Slide-out Notification Panel */
.notification-panel {
  position: fixed;
  top: 75px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  background: rgba(18, 9, 29, 0.95);
  border: 1px solid rgba(186, 45, 255, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(186, 45, 255, 0.1);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.panel-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

.notifications-list {
  padding: 10px;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--color-text-dim);
  font-size: 13px;
}

.notification-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
  border-color: rgba(186, 45, 255, 0.3);
  background: rgba(186, 45, 255, 0.02);
}

.notif-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.notif-body {
  color: var(--color-text-dim);
  margin-bottom: 10px;
}

.notif-actions {
  display: flex;
  gap: 8px;
}

.btn-action-primary {
  background: var(--color-primary);
  color: #0a0b0d;
  font-weight: 800;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.btn-action-secondary {
  background: transparent;
  color: var(--color-text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.btn-action-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Modals formatting */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(5, 2, 8, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: radial-gradient(circle at center, #1b0a2b 0%, #0e0517 100%);
  border: 2px solid rgba(186, 45, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.auth-toggle {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-dim);
  margin-top: 15px;
}

.auth-toggle a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.error-msg {
  color: #ff5252;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

.status-msg {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

.status-msg.success { color: var(--color-success); }
.status-msg.error { color: #ff5252; }

/* Switch Slider Preferences */
.preference-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preference-row:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

.pref-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 75%;
}

.pref-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.pref-desc {
  font-size: 11px;
  color: var(--color-text-dim);
}

.permission-status {
  font-size: 9px;
  color: var(--color-accent);
  margin-top: 2px;
}

/* Custom Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-left: 10px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider::before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider::before {
  transform: translateX(20px);
}

/* Toast Container & Cards formatting */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: radial-gradient(circle at center, #1b0a2b 0%, #0e0517 100%);
  border: 1px solid rgba(186, 45, 255, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  font-size: 13px;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-header {
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
}

.toast-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Friends & Settings UI Styles
   ========================================================================== */
.friend-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.friend-search-box input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}

.btn-primary-neon-small {
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, hsl(186, 100%, 35%) 100%);
  border: none;
  border-radius: 6px;
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-primary-glow);
  transition: all 0.2s ease;
}

.btn-primary-neon-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px var(--color-primary);
}

.friends-list-container {
  margin-top: 15px;
}

.friends-list-container h4 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.friends-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.friend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.friend-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.friend-name {
  font-weight: 600;
}

.friend-username {
  color: var(--color-text-dim);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.status-dot.offline {
  background-color: #555;
}

.friend-actions {
  display: flex;
  gap: 6px;
}

.btn-action-primary {
  padding: 4px 8px;
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.btn-action-success {
  padding: 4px 8px;
  background: var(--color-success);
  border: none;
  border-radius: 4px;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.btn-action-secondary {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-action-danger {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: 4px;
  color: #ff5252;
  font-size: 10px;
  cursor: pointer;
}

.btn-action-danger:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: #ff5252;
}

.badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.badge.incoming {
  background-color: rgba(255, 165, 0, 0.1);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

.badge.outgoing {
  background-color: rgba(0, 191, 255, 0.1);
  color: #00bfff;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.pref-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}



