:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --bg-deep: #06070d;
  --card-bg: #0d0f19;
  --card-bg-hover: #131625;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(99, 102, 241, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Page Layout */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 40px 20px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile Section */
.profile-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.avatar-wrapper {
  position: relative;
  width: 106px;
  height: 106px;
  margin-bottom: 18px;
}

.avatar-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7);
  filter: blur(14px);
  opacity: 0.7;
  animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #090a12;
  object-fit: cover;
  z-index: 2;
}

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 2.5px solid #06070d;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 10px #10b981;
}

.username-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.username-glitch {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 80%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.verified-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tagline {
  font-size: 14.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.bio-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Music Pill Player */
.music-pill {
  width: 100%;
  max-width: 520px;
  background: #0d0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  transition: all 0.25s ease;
}

.music-pill:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(99, 102, 241, 0.15);
}

.vinyl-record {
  font-size: 24px;
  color: #a5b4fc;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.vinyl-record.spinning {
  animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  min-width: 0;
}

.track-title-marquee {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-title {
  color: #f8fafc;
}

.track-artist {
  color: var(--text-muted);
  font-size: 12px;
}

.visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 10px;
}

.visualizer-bars .bar {
  width: 3px;
  height: 3px;
  background: #6366f1;
  border-radius: 2px;
  transition: height 0.1s ease;
}

.visualizer-bars.active .bar:nth-child(1) { animation: soundBar 0.8s infinite ease-in-out; }
.visualizer-bars.active .bar:nth-child(2) { animation: soundBar 1.1s infinite ease-in-out 0.2s; }
.visualizer-bars.active .bar:nth-child(3) { animation: soundBar 0.9s infinite ease-in-out 0.4s; }
.visualizer-bars.active .bar:nth-child(4) { animation: soundBar 1.2s infinite ease-in-out 0.1s; }
.visualizer-bars.active .bar:nth-child(5) { animation: soundBar 0.7s infinite ease-in-out 0.3s; }

@keyframes soundBar {
  0%, 100% { height: 3px; background: #6366f1; }
  50% { height: 10px; background: #06b6d4; }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(1.08);
  border-color: #6366f1;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rocket Ship Custom Volume Slider */
.rocket-slider-wrap {
  display: flex;
  align-items: center;
  width: 85px;
  height: 24px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #06b6d4 0%, #6366f1 70%, rgba(255, 255, 255, 0.12) 70%);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: background 0.1s ease;
}

/* WebKit Rocket Thumb (Pointing Right) */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32'%3E%3Cg transform='rotate(90 16 16)'%3E%3Cpath d='M16 2C16 2 21 8 21 16L24 19L22 23L18 21L16 27L14 21L10 23L8 19L11 16C11 8 16 2 16 2Z' fill='%2367e8f9'/%3E%3Ccircle cx='16' cy='11' r='2.5' fill='%23ffffff'/%3E%3Cpath d='M14 27L16 32L18 27Z' fill='%23f43f5e'/%3E%3Cpath d='M15 27L16 30L17 27Z' fill='%23fbbf24'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: 24px 24px;
  border: none;
  border-radius: 0;
  cursor: grab;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.85)) drop-shadow(-4px 0 6px rgba(244, 63, 94, 0.6));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px #06b6d4) drop-shadow(-5px 0 8px #f43f5e);
}

.volume-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
}

/* Firefox Rocket Thumb */
.volume-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32'%3E%3Cg transform='rotate(90 16 16)'%3E%3Cpath d='M16 2C16 2 21 8 21 16L24 19L22 23L18 21L16 27L14 21L10 23L8 19L11 16C11 8 16 2 16 2Z' fill='%2367e8f9'/%3E%3Ccircle cx='16' cy='11' r='2.5' fill='%23ffffff'/%3E%3Cpath d='M14 27L16 32L18 27Z' fill='%23f43f5e'/%3E%3Cpath d='M15 27L16 30L17 27Z' fill='%23fbbf24'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: 24px 24px;
  border: none;
  border-radius: 0;
  cursor: grab;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.85));
}

/* BULLETPROOF PILL CONTAINERS - STRICT HORIZONTAL ROW LAYOUT */
.links-section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 14px !important;
}

.link-pill {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 72px !important;
  padding: 14px 22px !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 18px !important;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s, background-color 0.25s !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.link-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-pill:hover {
  background: var(--card-bg-hover) !important;
  border-color: var(--card-border-hover) !important;
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(99, 102, 241, 0.2) !important;
}

.link-pill:hover::before {
  opacity: 1;
}

.link-pill:hover .pill-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.pill-icon-box {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  color: #a5b4fc !important;
  margin-right: 18px !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s, background 0.25s !important;
  overflow: hidden !important;
}

.pill-custom-icon {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
}

.link-pill:hover .pill-icon-box {
  transform: scale(1.08);
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #fff !important;
}

.pill-text-box {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 3px !important;
}

.pill-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  flex-wrap: wrap !important;
}

.pill-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.2px !important;
}

.pill-badge {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  letter-spacing: 0.3px !important;
}

.pill-subtitle {
  font-size: 12.5px !important;
  color: var(--text-secondary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pill-arrow {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  padding-left: 14px !important;
  color: var(--text-muted) !important;
  font-size: 14px !important;
  transition: transform 0.25s, color 0.25s !important;
}

/* Footer */
.page-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.admin-link {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-link:hover {
  color: var(--primary);
}

/* 403 Forbidden Page */
.forbidden-body {
  justify-content: center;
}

.forbidden-card {
  position: relative;
  z-index: 10;
  background: #0e101a;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  max-width: 480px;
  margin: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.shield-icon {
  font-size: 48px;
  color: #ef4444;
  margin-bottom: 18px;
}

.forbidden-card h1 {
  font-size: 30px;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 10px;
}

.error-msg {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14.5px;
}

.ip-info-box {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ip-info-box code {
  color: #f87171;
  font-weight: 700;
  font-size: 15px;
}

.return-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.return-btn:hover {
  background: var(--primary);
}

/* CS2 SALT COMPLAINT BANNER & MODAL */
.cs2-salt-banner {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(14, 16, 27, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
  font-family: inherit;
  text-align: left;
}

.cs2-salt-banner:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(19, 22, 37, 0.98) 100%);
}

.cs2-badge {
  background: #f59e0b;
  color: #070714;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cs2-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #fef3c7;
}

.cs2-arrow {
  color: #f59e0b;
  font-size: 13px;
  transition: transform 0.2s;
}

.cs2-salt-banner:hover .cs2-arrow {
  transform: translateX(3px);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0e101b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.cs2-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: #fef3c7;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

#cs2-complaint-form .form-group {
  margin-bottom: 14px;
}

#cs2-complaint-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

#cs2-complaint-form input,
#cs2-complaint-form select,
#cs2-complaint-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: #07080f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

#cs2-complaint-form select option {
  background: #0e101b;
  color: #fff;
}

#cs2-complaint-form input:focus,
#cs2-complaint-form select:focus,
#cs2-complaint-form textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.salt-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  border-radius: 12px;
  color: #070714;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
  font-family: inherit;
}

.salt-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
}

.cs2-response-msg {
  margin-top: 15px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
}

.cs2-response-msg.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 12px 16px;
}

.cs2-response-msg .res-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cs2-response-msg .res-body {
  font-size: 12px;
  color: #94a3b8;
}

.cs2-response-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px;
}
