/* ===== NexoraHQ - NEON VIOLET THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --primary: #a855f7;
  --primary-dark: #7c3aed;
  --primary-glow: rgba(168,85,247,0.3);
  --secondary: #d946ef;
  --accent: #818cf8;
  --bg-void: #05030a;
  --bg-deep: #090615;
  --bg-dark: #0d0a1a;
  --bg-panel: #151126;
  --bg-card: #1c1730;
  --bg-hover: #26203b;
  --border: rgba(168,85,247,0.2);
  --border-bright: rgba(168,85,247,0.6);
  --text-primary: #f3edff;
  --text-secondary: #b7a9cf;
  --text-muted: #776a91;
  --owner: #ff6b35;
  --owner-glow: rgba(255,107,53,0.4);
  --admin: #ff3366;
  --admin-glow: rgba(255,51,102,0.4);
  --vip: #ffd700;
  --vip-glow: rgba(255,215,0,0.4);
  --mod: #a855f7;
  --mod-glow: rgba(168,85,247,0.4);
  --user: #a855f7;
  --danger: #ff3355;
  --warning: #ffaa00;
  --success: #34d399;
  --info: #38bdf8;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== MATRIX BACKGROUND ===== */
#matrix-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: 'Orbitron', monospace; font-weight: 700; letter-spacing: 0.05em; }
.mono { font-family: 'Share Tech Mono', monospace; }

/* ===== GLITCH EFFECT ===== */
.glitch {
  position: relative;
  animation: glitch 3s infinite;
}
.glitch::before,.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--secondary);
  animation: glitch-1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-2px);
}
.glitch::after {
  color: var(--accent);
  animation: glitch-2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(2px);
}
@keyframes glitch { 0%,90%,100% { transform: none; } 92% { transform: translateX(-2px); } 94% { transform: translateX(2px); } }
@keyframes glitch-1 { 0%,90%,100% { opacity: 0; } 91%,93% { opacity: 0.8; } }
@keyframes glitch-2 { 0%,90%,100% { opacity: 0; } 92%,94% { opacity: 0.8; } }

/* ===== NEON GLOW TEXT ===== */
.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
}
.neon-text-sm { color: var(--primary); text-shadow: 0 0 8px var(--primary); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(9,6,21,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}
.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
  text-decoration: none;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-brand .nexora-icon { font-size: 1.8rem; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--primary);
  background: var(--primary-glow);
  text-shadow: 0 0 8px var(--primary);
}
.navbar-nav a .nav-icon { font-size: 1rem; }
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-notifications {
  position: relative;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-notifications:hover { color: var(--primary); }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 10px var(--primary-glow);
}
.nav-avatar:hover { box-shadow: 0 0 20px var(--primary); }

/* ===== SIDEBAR ===== */
#sidebar {
  position: fixed;
  left: 0; top: 64px; bottom: 0;
  width: 240px;
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 900;
  padding: 16px 0;
  transition: transform 0.3s ease;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 20px 4px;
  font-family: 'Orbitron', monospace;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.sidebar-item:hover {
  color: var(--primary);
  background: var(--primary-glow);
  border-left-color: var(--primary);
}
.sidebar-item.active {
  color: var(--primary);
  background: rgba(168,85,247,0.08);
  border-left-color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}
.sidebar-item .s-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-online {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 6px var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== MAIN CONTENT ===== */
#main-content {
  margin-left: 240px;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  padding: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-glow); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.05; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #000;
  box-shadow: 0 0 15px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 0 25px var(--primary), 0 0 40px var(--primary-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-glow); box-shadow: 0 0 15px var(--primary-glow); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { box-shadow: 0 0 15px rgba(255,51,85,0.5); }
.btn-warning { background: var(--warning); color: #000; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }

/* ===== RANK TAGS ===== */
.rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  animation: tagpulse 2s infinite;
}
.rank-owner {
  position: relative;
  overflow: hidden;
  padding-right: 12px;
  font-weight: 900;
  background: linear-gradient(110deg, rgba(91,220,255,.2), rgba(191,137,255,.25), rgba(255,230,145,.2));
  border: 1px solid #d5f6ff;
  color: #eafcff;
  text-shadow: 0 0 6px #65dfff, 0 0 14px #b58aff, 0 0 22px #fff;
  box-shadow: 0 0 12px rgba(101,223,255,.65), 0 0 22px rgba(181,138,255,.3), inset 0 0 10px rgba(255,255,255,.2);
  animation: founderShine 2.4s ease-in-out infinite;
}
.rank-owner::before,
.rank-owner::after {
  position: absolute;
  left: -12px;
  top: 50%;
  z-index: 1;
  color: #fff4bd;
  text-shadow: 0 0 8px #fff, 0 0 14px #70e7ff;
  pointer-events: none;
}
.rank-owner::before {
  content: '✦';
  animation: founderStarFly 1.7s linear infinite;
}
.rank-owner::after {
  content: '✧';
  animation: founderStarFly 2.2s linear infinite .65s;
}
.rank-admin {
  background: rgba(255,51,102,0.15);
  border: 1px solid var(--admin);
  color: var(--admin);
  text-shadow: 0 0 8px var(--admin);
  box-shadow: 0 0 10px var(--admin-glow);
}
.rank-vip {
  background: rgba(255,215,0,0.15);
  border: 1px solid var(--vip);
  color: var(--vip);
  text-shadow: 0 0 8px var(--vip);
  box-shadow: 0 0 10px var(--vip-glow);
  animation: vipShine 3s ease-in-out infinite;
}
.rank-mod {
  background: rgba(168,85,247,0.15);
  border: 1px solid var(--mod);
  color: var(--mod);
  text-shadow: 0 0 8px var(--mod);
}
.rank-user {
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--user);
  color: var(--user);
}
@keyframes ownerGlow {
  from { box-shadow: 0 0 10px var(--owner-glow), 0 0 20px rgba(255,107,53,0.2); }
  to { box-shadow: 0 0 20px var(--owner-glow), 0 0 40px rgba(255,107,53,0.3), 0 0 60px rgba(255,107,53,0.1); }
}
@keyframes vipShine {
  0%,100% { box-shadow: 0 0 10px var(--vip-glow); }
  50% { box-shadow: 0 0 20px var(--vip-glow), 0 0 40px rgba(255,215,0,0.2); }
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: 'Orbitron', monospace;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }

/* ===== STATS CARDS ===== */
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-glow); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--primary-glow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-info { flex: 1; }
.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.stat-change { font-size: 0.75rem; color: var(--success); margin-top: 2px; }

/* ===== GAME CARDS ===== */
.game-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(168,85,247,0.2);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-dark);
}
.game-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}
.game-card-body { padding: 16px; }
.game-card-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.game-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.game-tag {
  padding: 2px 8px;
  background: var(--primary-glow);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}
.game-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.game-rating { color: var(--vip); }
.download-count { color: var(--text-muted); font-size: 0.8rem; }
.game-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: var(--bg-dark);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: 20px;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.5s ease;
}

/* ===== XP BAR ===== */
.xp-section { margin-top: 12px; }
.xp-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.xp-bar-wrap {
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--primary-glow);
  transition: width 1s ease;
}

/* ===== CHAT ===== */
#chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px - 48px);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.chat-msg-content { flex: 1; }
.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.chat-msg-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.chat-msg-time { font-size: 0.7rem; color: var(--text-muted); }
.chat-msg-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.own { flex-direction: row-reverse; }
.chat-msg.own .chat-msg-header { flex-direction: row-reverse; }
.chat-msg.own .chat-msg-text {
  background: rgba(168,85,247,0.08);
  border-color: var(--primary-dark);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
}
.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-muted { opacity: 0.5; pointer-events: none; }

/* ===== SPIN WHEEL ===== */
#wheel-canvas { border-radius: 50%; box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(168,85,247,0.1); }
.wheel-pointer {
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
  margin: 0 auto;
}
.wheel-timer {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  text-align: center;
  margin-top: 12px;
}
.wheel-cooldown {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== PROFILE ===== */
.profile-banner {
  height: 200px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-panel));
  position: relative;
  overflow: visible;
}
.profile-banner > img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-wrap {
  position: absolute;
  bottom: -28px;
  left: 32px;
}
.profile-avatar-large {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 0 20px var(--primary-glow);
}
.profile-info { padding: 56px 32px 24px; }
.profile-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-bio { color: var(--text-secondary); margin-top: 8px; font-size: 0.95rem; }
.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profile-stat-item { text-align: center; }
.profile-stat-val { font-family: 'Orbitron', monospace; font-size: 1.2rem; color: var(--primary); }
.profile-stat-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-achievement { background: rgba(255,215,0,0.15); border: 1px solid var(--vip); color: var(--vip); }
.badge-special { background: rgba(168,85,247,0.1); border: 1px solid var(--primary); color: var(--primary); }

/* ===== TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(168,85,247,0.05); font-size: 0.9rem; }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: 0 0 60px var(--primary-glow);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--danger); }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(168,85,247,0.1); border-color: var(--success); color: var(--success); }
.alert-danger { background: rgba(255,51,85,0.1); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: rgba(255,170,0,0.1); border-color: var(--warning); color: var(--warning); }
.alert-info { background: rgba(0,204,255,0.1); border-color: var(--info); color: var(--info); }

/* ===== BADGES / ACHIEVEMENTS ===== */
.achievement-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.achievement-card.unlocked { border-color: var(--vip); background: rgba(255,215,0,0.05); }
.achievement-card:hover { border-color: var(--primary); }
.achievement-icon { font-size: 2rem; width: 48px; text-align: center; }
.achievement-info { flex: 1; }
.achievement-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.achievement-desc { font-size: 0.8rem; color: var(--text-muted); }
.achievement-locked { opacity: 0.4; filter: grayscale(1); }

/* ===== ANNOUNCEMENT ===== */
.announcement-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--transition);
}
.announcement-card:hover { border-color: var(--border-bright); }
.announcement-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.announcement-title { font-family: 'Orbitron', monospace; font-size: 1rem; color: var(--primary); }
.announcement-body { padding: 20px; color: var(--text-secondary); line-height: 1.7; }
.announcement-pinned { border-color: var(--warning); }
.announcement-pinned .announcement-header { background: rgba(255,170,0,0.05); }
.pinned-badge {
  padding: 2px 8px;
  background: rgba(255,170,0,0.15);
  border: 1px solid var(--warning);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--warning);
  font-weight: 700;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  min-width: 200px;
  padding: 8px;
  z-index: 1500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}
.dropdown-item:hover { color: var(--primary); background: var(--primary-glow); }
.dropdown-item.danger:hover { color: var(--danger); background: rgba(255,51,85,0.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 20px var(--primary-glow);
  animation: toastIn 0.3s ease;
  font-size: 0.9rem;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: none; } }
.toast-icon { font-size: 1.2rem; }
.toast-text { flex: 1; color: var(--text-primary); }
.toast-close { color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.info { border-color: var(--info); }

/* ===== STREAK ===== */
.streak-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.streak-day {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: 'Orbitron', monospace;
  color: var(--text-muted);
  transition: var(--transition);
}
.streak-day.claimed { background: rgba(168,85,247,0.15); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.streak-day.today { border-color: var(--vip); animation: pulse 2s infinite; }

/* ===== LEADERBOARD ===== */
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.lb-row:hover { background: var(--bg-hover); }
.lb-rank { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 900; width: 32px; text-align: center; }
.lb-rank.gold { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.lb-name { flex: 1; font-weight: 600; }
.lb-score { font-family: 'Orbitron', monospace; color: var(--primary); }

/* ===== POINT SHOP ===== */
.shop-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.shop-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.shop-item-icon { font-size: 2.5rem; margin-bottom: 12px; }
.shop-item-name { font-family: 'Orbitron', monospace; font-size: 0.85rem; margin-bottom: 8px; }
.shop-item-price { color: var(--vip); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; }
.shop-item-owned { border-color: var(--success); background: rgba(168,85,247,0.05); }

/* ===== UTILITIES ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary-c { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; } .p-6 { padding: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.separator { height: 1px; background: var(--border); margin: 16px 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== DRAG AND DROP ===== */
.draggable-handle { cursor: grab; }
.draggable-handle:active { cursor: grabbing; }
.drag-over { border: 2px dashed var(--primary) !important; background: var(--primary-glow) !important; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { border-color: var(--primary) !important; }

/* ===== ONLINE USERS SIDEBAR ===== */
.online-user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.online-user-item:hover { background: var(--bg-hover); }
.online-user-avatar { width: 28px; height: 28px; border-radius: 50%; position: relative; object-fit: cover; }
.online-indicator {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}
.online-indicator.online { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.online-indicator.offline { background: var(--text-muted); }
.online-indicator.away { background: var(--warning); }

/* ===== DM BADGE ===== */
.dm-badge {
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}

/* ===== INSTALL PAGE ===== */
.install-step {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.install-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}
.install-step-num.done { background: var(--primary); color: #000; }
.install-step-num.error { border-color: var(--danger); color: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: none; }
  #main-content { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  #navbar { padding: 0 12px; gap: 12px; }
  .navbar-nav { display: none; }
  #main-content { padding: 16px; }
  .modal { padding: 20px; }
}

/* ===== NEON ENHANCEMENTS v1.1 ===== */

/* Global neon scanlines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(168,85,247,0.006) 2px,
    rgba(168,85,247,0.006) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanlines 10s linear infinite;
}
@keyframes scanlines { 0%{background-position:0 0} 100%{background-position:0 100%} }

/* Enhanced navbar with neon glow */
#navbar {
  box-shadow: 0 0 30px rgba(168,85,247,0.06), 0 1px 0 rgba(168,85,247,0.15);
}
#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
  opacity: 0.6;
  animation: navlineflow 4s linear infinite;
}
@keyframes navlineflow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Neon brand pulse */
.navbar-brand {
  animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
  0%,100% { text-shadow: 0 0 12px var(--primary), 0 0 24px rgba(168,85,247,.2); }
  50% { text-shadow: 0 0 20px var(--primary), 0 0 40px rgba(168,85,247,.3), 0 0 60px rgba(168,85,247,.1); }
}

/* Enhanced card neon borders */
.card {
  box-shadow: 0 0 0 rgba(168,85,247,0), inset 0 0 0 rgba(168,85,247,0);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.card:hover {
  box-shadow: 0 0 20px rgba(168,85,247,0.08), 0 4px 20px rgba(0,0,0,0.4);
}

/* Glowing stat cards */
.stat-card:hover .stat-value {
  text-shadow: 0 0 12px var(--primary), 0 0 24px rgba(168,85,247,0.3);
}

/* Neon rank tags - enhanced */
.rank-tag.rank-owner {
  box-shadow: 0 0 12px rgba(101,223,255,.55), 0 0 24px rgba(181,138,255,.3), inset 0 0 10px rgba(255,255,255,.16);
  animation: founderShine 2.4s ease-in-out infinite;
}
@keyframes founderShine {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
@keyframes founderStarFly {
  0% { opacity: 0; transform: translate(-4px, -50%) scale(.55) rotate(0); }
  15%,75% { opacity: 1; }
  100% { opacity: 0; transform: translate(120px, -50%) scale(.8) rotate(90deg); }
}
.rank-tag.rank-admin {
  box-shadow: 0 0 10px rgba(255,51,102,0.3);
  animation: adminNeon 2.5s ease-in-out infinite alternate;
}
@keyframes adminNeon {
  from { box-shadow: 0 0 6px rgba(255,51,102,0.2); }
  to   { box-shadow: 0 0 14px rgba(255,51,102,0.5), 0 0 28px rgba(255,51,102,0.15); }
}
.rank-tag.rank-vip {
  animation: vipNeon 3s ease-in-out infinite;
}
@keyframes vipNeon {
  0%,100% { box-shadow: 0 0 8px rgba(255,215,0,0.3), 0 0 16px rgba(255,215,0,0.1); }
  50%     { box-shadow: 0 0 18px rgba(255,215,0,0.5), 0 0 36px rgba(255,215,0,0.2), 0 0 60px rgba(255,215,0,0.05); }
}

/* Neon buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.12);
  transform: skewX(-25deg);
  transition: left 0.5s;
  pointer-events: none;
}
.btn-primary:hover::before {
  left: 130%;
}

/* Neon progress bars */
.progress-bar-fill {
  box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(168,85,247,0.3);
  animation: progressGlow 2s ease-in-out infinite;
}
@keyframes progressGlow {
  0%,100% { box-shadow: 0 0 6px var(--primary), 0 0 12px rgba(168,85,247,0.2); }
  50%     { box-shadow: 0 0 12px var(--primary), 0 0 24px rgba(168,85,247,0.4); }
}

/* Enhanced sidebar item active state */
.sidebar-item.active {
  box-shadow: inset 3px 0 0 var(--primary), inset 0 0 20px rgba(168,85,247,0.05);
  text-shadow: 0 0 8px var(--primary);
}

/* Neon input focus */
.form-control:focus {
  box-shadow: 0 0 0 2px rgba(168,85,247,0.15), 0 0 15px rgba(168,85,247,0.1);
}

/* Online dot pulsing neon */
.online-dot {
  box-shadow: 0 0 6px var(--primary), 0 0 12px rgba(168,85,247,0.4);
}

/* Announcement cards neon accent */
.announcement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.announcement-card:hover::before { opacity: 0.7; }

/* Game cards neon hover */
.game-card:hover {
  box-shadow: 0 0 25px rgba(168,85,247,0.15), 0 8px 30px rgba(0,0,0,0.5);
}
.game-card:hover .game-title {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

/* Leaderboard gold/silver/bronze neon */
.lb-rank-gold { text-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255,215,0,0.4); }
.lb-rank-silver { text-shadow: 0 0 8px #c0c0c0, 0 0 16px rgba(192,192,192,0.3); }
.lb-rank-bronze { text-shadow: 0 0 8px #cd7f32, 0 0 16px rgba(205,127,50,0.3); }

/* Feed activity card neon line */
.activity-neon-line {
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
  box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(168,85,247,0.2);
}

/* Clan card hover glow */
.clan-card:hover {
  box-shadow: 0 0 20px rgba(168,85,247,0.1), 0 4px 20px rgba(0,0,0,0.4);
}

/* VIP elements extra glow */
.rank-tag.rank-vip + * { filter: drop-shadow(0 0 4px rgba(255,215,0,0.2)); }

/* Spin wheel glow */
#wheel-canvas, #wheel-canvas-main {
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.3));
}

/* Toast neon */
.toast {
  box-shadow: 0 0 20px rgba(168,85,247,0.15), 0 4px 20px rgba(0,0,0,0.6);
}

/* Modal glow */
.modal {
  box-shadow: 0 0 60px rgba(168,85,247,0.1), 0 0 120px rgba(168,85,247,0.04), 0 20px 60px rgba(0,0,0,0.7);
}

/* Neon separator */
.neon-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
  opacity: 0.35;
  box-shadow: 0 0 8px var(--primary);
  margin: 24px 0;
}

/* Pinned badge neon */
.pinned-badge {
  box-shadow: 0 0 6px rgba(255,170,0,0.3);
}

/* Leaderboard row hover */
.lb-row:hover {
  background: var(--bg-hover);
  box-shadow: inset 2px 0 0 var(--primary);
}

/* Chat message new animation */
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.chat-message { animation: msgSlideIn 0.25s ease; }

/* NEON GRID LINES (subtle background grid) */
#main-content::before {
  content: '';
  position: fixed;
  inset: 54px 0 0 220px;
  background-image:
    linear-gradient(rgba(168,85,247,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Activity feed timeline glow */
.feed-timeline-line {
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(168,85,247,.1));
  box-shadow: 0 0 8px rgba(168,85,247,.3);
}

/* Extra: neon avatar border on hover */
img[style*="border-radius:50%"]:hover {
  box-shadow: 0 0 16px var(--primary-glow);
  transition: box-shadow .2s;
}

/* Neon coin/points display */
.nav-points-display {
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
  box-shadow: 0 0 10px rgba(255,215,0,0.1);
}

/* ===== NAME EFFECTS ===== */
.username-neon, .name-effect-neon {
  text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px var(--primary); }
  50% { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

.username-rainbow, .name-effect-rainbow {
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.username-gold, .name-effect-gold {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
  animation: goldShimmer 2s infinite;
}

@keyframes goldShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

.username-fire, .name-effect-fire {
  color: #ff4500;
  text-shadow: 0 0 10px #ff6600, 0 0 20px #ff3300;
  animation: fireFlicker 0.15s infinite;
}

@keyframes fireFlicker {
  0%, 100% { text-shadow: 0 0 10px #ff6600, 0 0 20px #ff3300; }
  50% { text-shadow: 0 0 15px #ff8800, 0 0 25px #ff4400, 0 0 5px #ffaa00; }
}

.username-ice, .name-effect-ice {
  color: #00d4ff;
  text-shadow: 0 0 10px #00aaff, 0 0 20px #0088ff;
  animation: iceGlow 3s infinite;
}

@keyframes iceGlow {
  0%, 100% { text-shadow: 0 0 10px #00aaff, 0 0 20px #0088ff; }
  50% { text-shadow: 0 0 15px #38bdf8, 0 0 30px #00aaff, 0 0 5px #88ddff; }
}

.name-font-orbitron { font-family: 'Orbitron', monospace; font-weight: 700; }
.name-font-rajdhani { font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.name-font-mono { font-family: 'Share Tech Mono', monospace; }
.name-font-serif { font-family: Georgia, 'Times New Roman', serif; }

/* ===== MOBILE & SAFARI IMPROVEMENTS ===== */

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix viewport height issues on iOS */
  body {
    min-height: -webkit-fill-available;
  }
  
  /* Prevent iOS zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }
  
  /* Improve touch targets */
  button, a, .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  /* Better touch targets */
  .btn, button, a.btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Improve navbar on mobile */
  #navbar {
    height: 56px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Better modal sizing */
  .modal {
    max-width: 95vw;
    margin: 20px auto;
  }
  
  /* Improve form inputs on mobile */
  .form-control {
    font-size: 16px;
    padding: 12px;
  }
  
  /* Better card spacing */
  .card {
    margin-bottom: 16px;
  }
  
  /* Improve table scrolling */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better grid layouts */
  .g2, .g3, .g4, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Landscape mobile improvements */
@media (max-width: 896px) and (orientation: landscape) {
  #navbar {
    height: 48px;
  }
  
  .modal {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  
  /* Compact padding */
  .card {
    padding: 16px;
  }
  
  #main-content {
    padding: 12px;
  }
}

/* Fix Safari button appearance */
button, input[type="submit"], input[type="button"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius);
}

/* Prevent text size adjustment on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling on iOS */
* {
  -webkit-overflow-scrolling: touch;
}

/* Fix position fixed on mobile Safari */
@media (max-width: 768px) {
  #navbar {
    position: -webkit-sticky;
    position: sticky;
  }
}
