/* ==========================================================================
   VOXEL.WTF - Official Web Portal Stylesheet
   Theme: Cosmic Violet & Neon Fuchsia / Modern High-Performance VoIP
   ========================================================================== */

:root {
  --bg-deep: #09050e;
  --bg-surface: #12091d;
  --bg-card: #180d28;
  --bg-card-hover: #221239;
  --bg-input: #10061c;
  
  --border-subtle: rgba(179, 89, 255, 0.16);
  --border-hover: rgba(179, 89, 255, 0.35);
  --border-focus: #b359ff;
  
  --accent-primary: #b359ff;
  --accent-primary-hover: #9c3bf5;
  --accent-purple: #b359ff;
  --accent-fuchsia: #d946ef;
  --accent-pink: #ec4899;
  --accent-magenta: #ff73fa;
  --accent-indigo: #8b5cf6;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f3e8ff;
  --text-muted: #c4b5fd;
  --text-faint: #9381a8;
  --text-dim: #6b5780;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(179, 89, 255, 0.3);
  --shadow-gem: 0 0 35px rgba(236, 72, 153, 0.4);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(179, 89, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(236, 72, 153, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "gg sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-pink);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(179, 89, 255, 0.22);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(179, 89, 255, 0.45);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(9, 5, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}
.brand-wrap:hover {
  color: var(--text-main);
}
.brand-icon {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
}
.brand-wrap:hover .brand-icon {
  transform: scale(1.05);
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(179, 89, 255, 0.16);
  border: 1px solid rgba(179, 89, 255, 0.35);
  color: #e9d5ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.nav-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  position: relative;
}
.nav-btn:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.1);
}
.nav-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.18);
  border: 1px solid rgba(179, 89, 255, 0.35);
}
.nav-btn.admin-link {
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: rgba(244, 114, 182, 0.08);
}
.nav-btn.admin-link:hover, .nav-btn.admin-link.active {
  color: #ffffff;
  background: rgba(244, 114, 182, 0.2);
  border-color: #ec4899;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-web-app {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #b359ff, #ec4899);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 14px rgba(179, 89, 255, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-web-app:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #9c3bf5, #db2777);
  box-shadow: 0 4px 20px rgba(179, 89, 255, 0.6), 0 0 10px rgba(236, 72, 153, 0.4);
  transform: translateY(-1px);
}

.btn-auth-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(179, 89, 255, 0.25);
  background: rgba(179, 89, 255, 0.06);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.btn-auth-outline:hover {
  background: rgba(179, 89, 255, 0.14);
  border-color: rgba(179, 89, 255, 0.45);
  color: #ffffff;
}
.btn-auth-outline.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* Purple Admin Shield Button (in-app style) */
.admin-shield-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #b359ff;
  border-radius: 0.375rem;
  background: rgba(179, 89, 255, 0.2);
  color: #e9d5ff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}
.admin-shield-btn:hover {
  background: rgba(179, 89, 255, 0.38);
  border-color: #c980ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(179, 89, 255, 0.4);
  transform: translateY(-1px);
}
.admin-shield-btn.active {
  background: rgba(179, 89, 255, 0.45);
  border-color: #d896ff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(179, 89, 255, 0.5);
}
.admin-shield-btn svg {
  display: block;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #180d28;
}
.user-pill-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(179, 89, 255, 0.2);
  color: #f3e8ff;
  border: 1px solid rgba(179, 89, 255, 0.35);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   MAIN CONTENT & TABS
   ========================================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}
.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.hero-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #b359ff 0%, #ec4899 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(179, 89, 255, 0.4);
  transition: all 0.2s ease;
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, #9c3bf5 0%, #db2777 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(179, 89, 255, 0.6), 0 0 12px rgba(236, 72, 153, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(179, 89, 255, 0.08);
  border: 1px solid rgba(179, 89, 255, 0.28);
  color: #f3e8ff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
  background: rgba(179, 89, 255, 0.18);
  border-color: rgba(179, 89, 255, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.btn-hero-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

.hero-platforms-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}
.platform-item:hover {
  color: #ffffff;
}

/* ==========================================================================
   APP SHOWCASE MOCKUP (AUTHENTIC VOXEL STYLE)
   ========================================================================== */
.hero-mockup-wrapper {
  margin-top: 3.5rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.mockup-window {
  background: #0d0617;
  border: 1px solid rgba(179, 89, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 50px rgba(179, 89, 255, 0.18);
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(12px);
}
.mockup-titlebar {
  background: #12081f;
  border-bottom: 1px solid rgba(179, 89, 255, 0.14);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-dots .dot.close { background: #ef4444; }
.mockup-dots .dot.min { background: #f59e0b; }
.mockup-dots .dot.max { background: #10b981; }

.mockup-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #d8b4fe;
  letter-spacing: 0.02em;
}
.mockup-title-icon {
  width: 16px;
  height: 16px;
}
.mockup-status-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
.status-indicator-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mockup-body {
  display: grid;
  grid-template-columns: 68px 230px 1fr;
  height: 590px;
  background: #09050e;
}

/* Left Guild Strip */
.mockup-guilds {
  background: #0b0514;
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  border-right: 1px solid rgba(179, 89, 255, 0.12);
}
.mockup-guild {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #180d28;
  border: 1px solid rgba(179, 89, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  color: #e9d5ff;
}
.mockup-guild:hover {
  border-radius: 14px;
  border-color: #b359ff;
  background: #23123b;
}
.mockup-guild.active {
  border-radius: 14px;
  background: linear-gradient(135deg, #b359ff, #ec4899);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(179, 89, 255, 0.45);
}
.mockup-guild.server-voxel.active {
  background: #180d28;
  border: 2px solid #b359ff;
  box-shadow: 0 0 18px rgba(179, 89, 255, 0.5);
}
.mockup-guild .guild-icon {
  width: 28px;
  height: 28px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.guild-pill {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 36px;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.mockup-guild-separator {
  width: 32px;
  height: 2px;
  background: rgba(179, 89, 255, 0.15);
  margin: 0.2rem 0;
}
.guild-avatar-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.guild-avatar-icon {
  font-size: 1.15rem;
}
.guild-badge-count {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #ec4899;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid #0b0514;
}
.mockup-guild.add-guild {
  color: #d8b4fe;
  font-weight: 800;
  font-size: 1.3rem;
  background: rgba(179, 89, 255, 0.08);
  border: 1px dashed rgba(179, 89, 255, 0.3);
}
.mockup-guild.add-guild:hover {
  color: #ffffff;
  border-color: #b359ff;
  background: rgba(179, 89, 255, 0.2);
}

/* Middle: Channels Sidebar */
.mockup-channels {
  background: #0b0616;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(179, 89, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.mockup-server-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(179, 89, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  background: #0f071e;
}
.server-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.server-crown-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.6));
}
.server-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}
.server-chevron {
  display: flex;
  align-items: center;
  color: #9c84ba;
}

.mockup-boost-pill {
  margin: 0.5rem 0.65rem 0.25rem;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgba(255, 115, 250, 0.15), rgba(179, 89, 255, 0.15));
  border: 1px solid rgba(255, 115, 250, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff73fa;
}
.mockup-boost-pill .boost-icon {
  flex-shrink: 0;
}

.mockup-channels-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 0.5rem;
}

.mockup-channel-category {
  padding: 0.85rem 1rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #7e6896;
  letter-spacing: 0.06em;
}
.mockup-channel-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  margin: 0.12rem 0.5rem;
  border-radius: 6px;
  color: #9c84ba;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.mockup-channel-item:hover {
  background: rgba(179, 89, 255, 0.08);
  color: #d8c7ed;
}
.mockup-channel-item.active {
  background: rgba(179, 89, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
}
.mockup-channel-item .ch-svg {
  color: #7e6896;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.mockup-channel-item:hover .ch-svg {
  color: #c084fc;
}
.mockup-channel-item.active .ch-svg {
  color: #b359ff;
}
.ch-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  margin-left: auto;
  box-shadow: 0 0 6px #ffffff;
}

.mockup-voice-channel {
  margin: 0.25rem 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(179, 89, 255, 0.06);
  border: 1px solid rgba(179, 89, 255, 0.14);
}
.voice-channel-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #d8c7ed;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.voice-channel-name .ch-svg {
  color: #b359ff;
}
.voice-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0.35rem;
}
.voice-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e9d5ff;
}
.voice-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.speaking-ring {
  box-shadow: 0 0 0 2px #22c55e, 0 0 8px rgba(34, 197, 94, 0.6);
  animation: speakingGlow 1.2s ease-in-out infinite alternate;
}
@keyframes speakingGlow {
  0% { box-shadow: 0 0 0 2px #22c55e; }
  100% { box-shadow: 0 0 0 2px #22c55e, 0 0 10px rgba(34, 197, 94, 0.8); }
}
.voice-user-details {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}
.voice-username {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-audio-status {
  margin-left: auto;
  color: #7e6896;
}
.speaking-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.speaking-wave span {
  width: 2px;
  height: 8px;
  background: #22c55e;
  border-radius: 1px;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.speaking-wave span:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.speaking-wave span:nth-child(3) { animation-delay: 0.4s; height: 6px; }
@keyframes waveBar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

/* Voice Connected Bar */
.mockup-voice-connected-bar {
  background: #0e071a;
  border-top: 1px solid rgba(179, 89, 255, 0.14);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.voice-conn-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.voice-conn-icon {
  flex-shrink: 0;
}
.voice-conn-status {
  font-size: 0.75rem;
  font-weight: 800;
  color: #22c55e;
  line-height: 1.1;
}
.voice-conn-sub {
  font-size: 0.65rem;
  color: #9c84ba;
}
.btn-voice-disconnect {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-voice-disconnect:hover {
  background: #ef4444;
  color: #ffffff;
}

/* User Footer Bar */
.mockup-user-bar {
  background: #0e0618;
  border-top: 1px solid rgba(179, 89, 255, 0.12);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-user-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.user-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #180d28;
}
.status-dot-online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0e0618;
}
.user-meta {
  min-width: 0;
}
.user-name-small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.user-status-small {
  font-size: 0.68rem;
  color: #7e6896;
}
.user-controls-icons {
  display: flex;
  gap: 0.25rem;
}
.user-controls-icons button {
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9c84ba;
  transition: all 0.15s ease;
}
.user-controls-icons button:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.16);
}

/* Right: Chat Main Area */
.mockup-chat {
  background: #0e0618;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mockup-mobile-header {
  display: none;
}
.mockup-chat-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(179, 89, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #120820;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.chat-hash-icon {
  flex-shrink: 0;
}
.chat-name {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
}
.chat-desc {
  font-size: 0.8rem;
  color: #7e6896;
  border-left: 1px solid rgba(179, 89, 255, 0.2);
  padding-left: 0.65rem;
  margin-left: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.chat-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  color: #9c84ba;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
}
.chat-action-btn:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.14);
}
.mockup-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #090310;
  border: 1px solid rgba(179, 89, 255, 0.18);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #7e6896;
  margin-left: 0.25rem;
}

.mockup-messages {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
}
.mockup-msg {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(179, 89, 255, 0.25);
  background: #180d28;
}
.msg-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.msg-author-name {
  font-weight: 800;
  font-size: 0.9375rem;
}
.msg-author-name.gradient-author {
  background: linear-gradient(90deg, #ff73fa, #b359ff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(179, 89, 255, 0.35);
}
.msg-author-name.pink-author {
  color: #f472b6;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}
.msg-author-name.cyan-author {
  color: #38bdf8;
}

/* Authentic Voxel App Badges */
.vx-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.vx-badge-item:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 6px rgba(179, 89, 255, 0.6));
}
.vx-badge-item svg {
  display: block;
  width: 18px;
  height: 18px;
}

.vx-bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #b359ff;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.16rem 0.38rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  vertical-align: middle;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(179, 89, 255, 0.35);
}
.vx-bot-tag svg {
  display: inline-block;
  vertical-align: middle;
}

.vx-verified-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(179, 89, 255, 0.5));
  transition: transform 0.15s ease;
}
.vx-verified-icon:hover {
  transform: scale(1.15);
}

.prismatic-gem-svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.5));
}

/* Prismatic Gem Global Asset Elements */
.nav-prismatic-gem {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 5px;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(255, 115, 250, 0.65));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.nav-btn:hover .nav-prismatic-gem,
.nav-btn.active .nav-prismatic-gem {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 115, 250, 0.95)) drop-shadow(0 0 14px rgba(179, 89, 255, 0.6));
}

.user-pill-badge.user-pill-badge-prismatic {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(179, 89, 255, 0.22));
  border: 1px solid rgba(255, 115, 250, 0.5);
  color: #ff73fa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(255, 115, 250, 0.35);
}
.user-pill-gem-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.7));
}

.mockup-prismatic-gem {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.65));
}
.user-bar-prismatic-gem {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  margin-left: 2px;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.65));
}
.prismatic-badge-gem {
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.65));
}
.input-prismatic-gem {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.65));
}
.feature-prismatic-gem {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 115, 250, 0.7));
}
.modal-prismatic-gem {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 8px;
  filter: drop-shadow(0 0 6px rgba(255, 115, 250, 0.7));
}
.admin-prismatic-gem {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.6));
}

.bot-avatar {
  background: #180d28;
  padding: 4px;
  border-color: rgba(179, 89, 255, 0.4);
}
.msg-author-name.bot-author {
  color: #e9d5ff;
}

.mockup-channel-item.unread {
  color: #ffffff;
  font-weight: 700;
}
.mockup-channel-item.unread .ch-svg {
  color: #d8c7ed;
}

.ch-unread-pill {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.reaction-pill.reaction-add {
  padding: 0.25rem 0.5rem;
  color: #9c84ba;
  background: rgba(179, 89, 255, 0.06);
  border: 1px dashed rgba(179, 89, 255, 0.25);
}
.reaction-pill.reaction-add:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.18);
  border-color: #b359ff;
}

.vx-live-badge {
  color: #ffffff;
  text-transform: uppercase;
  background-color: #dc2626;
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  padding: .12rem .45rem;
  font-size: .625rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  margin-left: auto;
}
.vx-bitrate-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #170b28;
  color: #d8b4fe;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  margin-left: auto;
  border: 1px solid rgba(179, 89, 255, 0.28);
}

.msg-timestamp {
  font-size: 0.72rem;
  color: #7e6896;
  margin-left: 0.2rem;
}
.msg-text {
  font-size: 0.9375rem;
  color: #f3e8ff;
  line-height: 1.5;
}
.msg-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Rich Media Embed in Mockup */
.mockup-media-embed {
  margin-top: 0.4rem;
  background: #130922;
  border: 1px solid rgba(179, 89, 255, 0.2);
  border-left: 4px solid #b359ff;
  border-radius: 8px;
  padding: 0.75rem;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.media-thumb-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.4), transparent 55%),
              radial-gradient(circle at 25% 70%, rgba(179, 89, 255, 0.4), transparent 55%),
              linear-gradient(135deg, #15092a, #2b0f4c);
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(179, 89, 255, 0.28);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}
.media-thumb-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  background: repeating-linear-gradient(45deg, rgba(179, 89, 255, 0.04) 0px, rgba(179, 89, 255, 0.04) 12px, transparent 12px, transparent 24px);
}
.media-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b359ff, #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(179, 89, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.media-play-btn:hover {
  transform: scale(1.08);
}
.media-quality-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.media-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-sub {
  font-size: 0.72rem;
  color: #9c84ba;
}

.mockup-reactions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.reaction-pill {
  background: #130922;
  border: 1px solid rgba(179, 89, 255, 0.18);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  color: #d8c7ed;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reaction-pill:hover {
  border-color: #b359ff;
  background: rgba(179, 89, 255, 0.15);
  color: #ffffff;
}
.reaction-pill.active {
  background: rgba(179, 89, 255, 0.22);
  border-color: #b359ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(179, 89, 255, 0.25);
}
.reaction-pill .re-emoji {
  font-size: 0.9rem;
}

.mockup-input-bar {
  margin: 0 1.25rem 1.25rem;
  background: #170b28;
  border: 1px solid rgba(179, 89, 255, 0.2);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.input-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 89, 255, 0.16);
  border: 1px solid rgba(179, 89, 255, 0.3);
  color: #d8b4fe;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.input-plus:hover {
  background: #b359ff;
  color: #ffffff;
}
.input-placeholder {
  flex: 1;
  color: #7e6896;
  font-size: 0.9375rem;
}
.input-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.input-action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 4px;
  color: #9c84ba;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
}
.input-action-btn:hover {
  color: #ffffff;
}
.input-gif-pill {
  background: rgba(179, 89, 255, 0.18);
  color: #d8b4fe;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(179, 89, 255, 0.3);
}
.input-gif-pill:hover {
  background: #b359ff;
  color: #ffffff;
}

/* ==========================================================================
   NARRATIVE FEATURE STORIES
   ========================================================================== */
.features-narrative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem;
}
.feature-story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.feature-story-card:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon-badge.voice {
  background: rgba(179, 89, 255, 0.18);
  color: #b359ff;
}
.feature-icon-badge.stream {
  background: rgba(35, 165, 90, 0.15);
  color: #23a55a;
}
.feature-icon-badge.prismatic {
  background: rgba(235, 69, 158, 0.15);
  color: #eb459e;
}
.feature-icon-badge.speed {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.feature-story-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
}
.feature-story-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   DOWNLOAD HUB
   ========================================================================== */
.download-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.download-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.download-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}
.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.download-card.highlight {
  border-color: rgba(179, 89, 255, 0.35);
  background: linear-gradient(180deg, rgba(179, 89, 255, 0.08) 0%, var(--bg-surface) 100%);
}

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.dl-card-icon.win { background: rgba(179, 89, 255, 0.18); color: #b359ff; }
.dl-card-icon.and { background: rgba(35, 165, 90, 0.15); color: #23a55a; }
.dl-card-icon.lin { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.dl-card-icon.web { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.dl-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}
.dl-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}
.dl-card-tag.warning { color: #facc15; }
.dl-card-tag.info { color: #38bdf8; }
.dl-card-tag.success { color: #34d399; }

.dl-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.dl-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-dl-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #b359ff, #ec4899);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(179, 89, 255, 0.35);
  transition: all 0.2s ease;
  text-align: center;
}
.btn-dl-main:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #9c3bf5, #db2777);
  box-shadow: 0 6px 22px rgba(179, 89, 255, 0.55), 0 0 10px rgba(236, 72, 153, 0.35);
  transform: translateY(-1px);
}

.dl-sub-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.btn-dl-sub {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
.btn-dl-sub:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.15);
  border-color: rgba(179, 89, 255, 0.3);
}

/* ==========================================================================
   PRISMATIC SECTION (DISCORD NITRO EQUIVALENT)
   ========================================================================== */
.prismatic-header {
  text-align: center;
  padding: 2rem 1rem 3.5rem;
  position: relative;
}
.prismatic-gem-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.prismatic-showcase-gem {
  width: 110px;
  height: 110px;
  display: inline-block;
  filter: drop-shadow(0 0 16px rgba(255, 115, 250, 0.65)) drop-shadow(0 0 35px rgba(179, 89, 255, 0.4));
  animation: gemShowcaseFloat 3.6s ease-in-out infinite;
}
@keyframes gemShowcaseFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.plan-header-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.plan-header-row .plan-name {
  margin-bottom: 0;
}
.plan-header-gem {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 115, 250, 0.65));
}
.btn-buy-crypto .btn-gem-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}
.plan-bullet-gem {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(255, 115, 250, 0.6));
}
.prismatic-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ff73fa 0%, #b359ff 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}
.prismatic-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.prismatic-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}
.plan-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gem);
}
.plan-card.popular {
  border: 2px solid var(--accent-fuchsia);
  background: linear-gradient(180deg, rgba(217, 70, 239, 0.1) 0%, var(--bg-surface) 100%);
}
.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-fuchsia), var(--accent-pink));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.plan-price-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-purple);
}
.plan-price-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.plan-price-period {
  color: var(--text-faint);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.plan-check {
  color: var(--accent-emerald);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn-buy-crypto {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(179, 89, 255, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-buy-crypto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.5);
  background: linear-gradient(135deg, #c06eff, #ec4899);
}

/* ==========================================================================
   DISCOVER TAB (EXPLORE COMMUNITIES)
   ========================================================================== */
.discover-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.discover-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.discover-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.community-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.community-card:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.community-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.community-card-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #2a1545;
  border: 1px solid var(--border-subtle);
}
.community-card-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.community-member-count {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.member-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}
.community-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.community-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-join-community {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-join-community:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 89, 255, 0.4);
}
.btn-open-in-app {
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-open-in-app:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* ==========================================================================
   SUPPORT TAB (TICKETS SYSTEM)
   ========================================================================== */
.support-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-height: 620px;
  overflow: hidden;
}

.support-sidebar {
  background: rgba(14, 7, 23, 0.65);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.btn-new-ticket {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-new-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(179, 89, 255, 0.4);
}

.support-tabs-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sup-tab-btn {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-faint);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}
.sup-tab-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.2);
  border: 1px solid rgba(179, 89, 255, 0.35);
}

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

.ticket-item {
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ticket-item:hover, .ticket-item.active {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.ticket-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.ticket-item-sub {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.badge-status {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.badge-status.open {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-status.closed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}
.ticket-item-date {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.support-main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.support-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-align: center;
  gap: 0.75rem;
}
.support-empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.ticket-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ticket-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ticket-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}
.ticket-actions {
  display: flex;
  gap: 0.65rem;
}
.btn-action {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}
.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}
.btn-action.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.btn-action.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.ticket-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0.5rem 1rem 0;
  max-height: 400px;
}

.msg-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  max-width: 85%;
}
.msg-box.admin {
  background: #211138;
  border-color: rgba(179, 89, 255, 0.25);
  margin-left: auto;
}
.msg-box.user {
  margin-right: auto;
}
.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.msg-author {
  font-weight: 800;
  color: #ffffff;
}
.msg-badge-staff {
  background: rgba(179, 89, 255, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(179, 89, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}
.msg-time {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.msg-content {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-word;
}
.msg-attachment {
  margin-top: 0.75rem;
  max-width: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.msg-attachment img, .msg-attachment video {
  width: 100%;
  display: block;
}

.ticket-reply-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.input-reply {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.input-reply:focus {
  border-color: var(--accent-purple);
}
.btn-attach {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
}
.btn-attach:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.btn-send {
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 89, 255, 0.4);
}

/* ==========================================================================
   ADMIN PANEL (FULL WEB MANAGEMENT)
   ========================================================================== */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-title-wrap h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-title-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}

.admin-subnav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}
.admin-tab-btn {
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.admin-tab-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.2);
  border: 1px solid rgba(179, 89, 255, 0.35);
}

.admin-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 1rem 1.25rem;
  background: rgba(14, 7, 23, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  color: var(--text-main);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.trait-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  margin: 0.15rem 0.2rem 0.15rem 0;
  color: #e2e8f0;
}
.trait-pill.prismatic {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.3), rgba(244, 63, 94, 0.3));
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fbcfe8;
}
.trait-pill.admin {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   MODALS (CRYPTO CHECKOUT, AUTH, BALANCE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 2, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(179, 89, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}
.modal-close-btn {
  background: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(179, 89, 255, 0.2);
}

.crypto-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.crypto-chip {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.crypto-chip:hover, .crypto-chip.selected {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(179, 89, 255, 0.25);
}
.crypto-chip-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}
.crypto-chip-rate {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.crypto-order-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.crypto-amount-large {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.crypto-address-box {
  background: var(--bg-input);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: #e9d5ff;
  margin: 1rem 0;
  cursor: pointer;
}
.crypto-address-box:hover {
  background: #19092c;
}
.status-pill-polling {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(179, 89, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 5, 14, 0.95);
  padding: 3.5rem 1.5rem 2.5rem;
  color: var(--text-faint);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Utility components */
.btn-back-to-tickets {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back-to-tickets:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet & Mobile (<= 900px) */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 72px);
    background: rgba(10, 5, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-hover);
    padding: 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow-y: auto;
  }
  .nav-links.mobile-open .nav-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    text-align: left;
    border-radius: var(--radius-md);
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Feature Stories on Tablet */
  .features-narrative-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .mockup-body {
    grid-template-columns: 200px 1fr;
  }
  .mockup-guilds {
    display: none;
  }

  /* Support master-detail on mobile */
  .support-container {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    gap: 0;
  }
  .support-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: none;
    min-height: 480px;
  }
  .support-main {
    width: 100%;
    padding: 1.25rem;
  }
  .btn-back-to-tickets {
    display: inline-flex;
  }
  .support-container:not(.mobile-ticket-open) .support-main {
    display: none;
  }
  .support-container.mobile-ticket-open .support-sidebar {
    display: none;
  }
  .support-container.mobile-ticket-open .support-main {
    display: flex;
    flex: 1;
    min-height: 540px;
  }
  .ticket-messages {
    max-height: 380px;
  }
  .msg-box {
    max-width: 90%;
  }

  /* Admin tables horizontal scroll guarantee */
  .admin-table {
    min-width: 680px;
  }
}

/* Mobile & Tablet Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --radius-xl: 16px;
    --radius-lg: 12px;
  }

  /* Compact Header */
  .header-container {
    height: 64px;
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .nav-links.mobile-open {
    top: 64px;
    height: calc(100dvh - 64px);
    padding: 1.25rem;
  }
  .brand-wrap {
    gap: 0.5rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-badge {
    display: none;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .btn-web-app {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }
  .btn-auth-outline {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }
  .admin-shield-btn {
    width: 2rem;
    height: 2rem;
  }
  .user-pill {
    padding: 0.25rem 0.6rem 0.25rem 0.35rem;
    gap: 0.45rem;
  }
  .user-pill-avatar {
    width: 24px;
    height: 24px;
  }
  .user-pill-name {
    max-width: 80px;
    font-size: 0.8125rem;
  }

  /* Main container */
  .main-wrapper {
    padding: 1.25rem 0.85rem 4rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.25rem 0.25rem 2.5rem;
  }
  .hero-tagline-pill {
    font-size: 0.725rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: 2.15rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }
  .hero-platforms-bar {
    gap: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }

  /* Mockup on Mobile */
  .hero-mockup-wrapper {
    margin-top: 2.25rem;
    padding: 0 0.25rem;
  }
  .mockup-window {
    border-radius: 14px;
    border-color: rgba(179, 89, 255, 0.3);
  }
  .mockup-titlebar {
    display: none !important;
  }
  .mockup-body {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  .mockup-guilds {
    display: none !important;
  }
  .mockup-channels {
    display: none !important;
  }
  .mockup-chat {
    width: 100%;
    min-height: auto;
  }
  .mockup-chat-header {
    display: none !important;
  }
  .mockup-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: #12081f;
    border-bottom: 1px solid rgba(179, 89, 255, 0.16);
  }
  .mobile-mockup-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .mobile-mockup-logo {
    width: 22px;
    height: 22px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }
  .mobile-mockup-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .mobile-server-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
  }
  .mobile-title-sub {
    font-size: 0.75rem;
    color: #c084fc;
    font-weight: 700;
  }
  .mobile-mockup-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    color: #a7f3d0;
  }
  .mockup-status-badge {
    display: none;
  }
  .mockup-messages {
    padding: 1rem 0.75rem;
    gap: 0.85rem;
  }
  .mockup-msg {
    gap: 0.65rem;
  }
  .msg-avatar {
    width: 36px;
    height: 36px;
  }
  .msg-header {
    gap: 0.35rem;
  }
  .msg-author-name {
    font-size: 0.875rem;
  }
  .vx-badge-item svg {
    width: 16px;
    height: 16px;
  }
  .msg-text {
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .mockup-media-embed {
    max-width: 100%;
  }
  .media-thumb-wrap {
    height: 95px;
  }
  .mockup-reactions {
    gap: 0.35rem;
  }
  .reaction-pill {
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
  }
  .reaction-pill .re-emoji {
    font-size: 0.8rem;
  }
  .mockup-input-bar {
    margin: 0 0.75rem 0.75rem;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .input-placeholder {
    font-size: 0.825rem;
  }
  .input-actions {
    gap: 0.45rem;
    font-size: 0.9rem;
  }

  /* Narrative Features */
  .features-narrative-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.75rem;
  }
  .feature-story-card {
    padding: 1.5rem 1.25rem;
  }

  /* Downloads Grid */
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  .download-card {
    padding: 1.5rem 1.25rem;
  }
  .dl-card-actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .btn-download-primary,
  .btn-download-outline {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .dl-sub-links {
    flex-direction: column;
    gap: 0.4rem;
  }

  /* Prismatic Pricing */
  .section-header h1 {
    font-size: 1.85rem;
  }
  .prismatic-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .plan-card {
    padding: 1.75rem 1.25rem;
  }
  .plan-price-num {
    font-size: 2.6rem;
  }

  /* Discover Communities */
  .discover-search-bar {
    flex-direction: column;
    gap: 0.75rem;
  }
  .communities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .community-card {
    padding: 1.25rem;
  }

  /* Support Desk */
  .support-container {
    border-radius: var(--radius-lg);
  }
  .ticket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .ticket-title {
    font-size: 1.15rem;
  }
  .ticket-reply-form {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .input-reply {
    width: 100%;
    flex: none;
  }
  .btn-attach {
    flex: 1;
    text-align: center;
  }
  .btn-send {
    flex: 2;
  }

  /* Admin Console */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .admin-title-wrap h1 {
    font-size: 1.6rem;
  }
  .admin-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .stat-box {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .admin-subnav {
    gap: 0.35rem;
    padding-bottom: 0.5rem;
  }
  .admin-tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-box {
    max-height: 92dvh;
    border-radius: var(--radius-lg);
  }
  .modal-header {
    padding: 1.15rem 1.25rem;
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .crypto-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .crypto-chip {
    padding: 0.6rem 0.4rem;
  }
  .crypto-amount-large {
    font-size: 1.45rem;
  }
  .crypto-address-box {
    font-size: 0.75rem;
    padding: 0.6rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Compact Header Actions (<= 520px) */
@media (max-width: 520px) {
  .btn-web-app-label {
    display: none;
  }
  .btn-web-app::before {
    content: "App ";
  }
  .header-container {
    gap: 0.35rem;
  }
}

/* Extra-Small Phones (<= 400px) */
@media (max-width: 400px) {
  .header-container {
    padding: 0 0.65rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .user-pill-name {
    display: none;
  }
  .btn-web-app {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .btn-auth-outline {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .admin-shield-btn {
    width: 1.85rem;
    height: 1.85rem;
  }
  .admin-stats-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .msg-avatar {
    width: 30px;
    height: 30px;
  }
  .msg-author-name {
    font-size: 0.8125rem;
  }
  .vx-badge-item svg {
    width: 14px;
    height: 14px;
  }
  .vx-bot-tag {
    font-size: 0.5625rem;
    padding: 0.12rem 0.3rem;
  }
  .msg-timestamp {
    font-size: 0.65rem;
  }
  .msg-text {
    font-size: 0.8125rem;
  }
  .input-action-btn:nth-child(2) {
    display: none;
  }
}

/* ==========================================================================
   VOXEL GAMES HUB & CUSTOM SERVER BROWSER (AMONG US & MODS)
   ========================================================================== */

/* Header & Hero */
.games-header {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  position: relative;
}
.games-header-content {
  max-width: 800px;
  margin: 0 auto;
}
.games-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  color: #d8b4fe;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: vxPulse 1.8s infinite;
}
.games-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #e9d5ff 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.games-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Games Hub Selection Cards */
.games-hub-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
}
.games-section-title-row {
  margin-bottom: 1.75rem;
}
.games-section-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.games-section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.games-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-select-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.game-select-card.active-game {
  cursor: pointer;
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.game-select-card.active-game:hover {
  transform: translateY(-5px);
  border-color: var(--accent-fuchsia);
  box-shadow: 0 16px 36px rgba(217, 70, 239, 0.2), 0 0 20px rgba(168, 85, 247, 0.25);
}
.game-select-card.disabled-game {
  opacity: 0.65;
  filter: grayscale(0.2);
}

.game-card-banner {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.among-us-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #be185d 60%, #1e1b4b 100%);
}
.ggd-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
}
.lethal-banner {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
}
.mc-banner {
  background: linear-gradient(135deg, #14532d 0%, #065f46 100%);
}

.game-card-icon-overlay {
  font-size: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.game-card-art-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-select-card:hover .game-card-art-img {
  transform: scale(1.12) rotate(-3deg);
}

.game-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.game-card-badge.live {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid #22c55e;
  color: #86efac;
}
.game-card-badge.coming-soon {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

.game-card-mod-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
  letter-spacing: 0.04em;
}

.game-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-card-header {
  margin-bottom: 0.65rem;
}
.game-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}
.game-card-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-fuchsia);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.game-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.game-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.85rem;
  background: rgba(14, 7, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  text-align: center;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
}
.metric-val.highlight {
  color: #38bdf8;
}
.metric-lbl {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-game-enter {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-game-enter:hover {
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.4);
}
.game-card-action.disabled {
  text-align: center;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   AMONG US SERVER BROWSER
   ========================================================================== */
.amongus-browser-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* Topbar & Breadcrumbs */
.browser-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.browser-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.btn-back-link {
  background: transparent;
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-back-link:hover {
  color: var(--accent-fuchsia);
}
.bc-separator {
  color: var(--text-faint);
}
.bc-current {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
}
.bc-tag {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.browser-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-share-lobby {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.btn-share-lobby:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.35);
}
.btn-refresh-lobbies {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.btn-refresh-lobbies:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}
.btn-refresh-lobbies.spinning .refresh-icon {
  animation: vxSpin 0.7s linear infinite;
}
@keyframes vxSpin {
  100% { transform: rotate(360deg); }
}

/* Subtabs Row */
.browser-subtabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.browser-subtabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.browser-tab-btn {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.browser-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.browser-tab-btn.active {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.tab-count-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  color: #d8b4fe;
}
.browser-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #86efac;
  font-weight: 700;
}
.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: vxPulse 1.5s infinite;
}

/* Toolbar & Filters */
.browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background: rgba(14, 7, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
}
.search-icon {
  font-size: 1rem;
  opacity: 0.6;
}
.browser-search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
}
.browser-search-field::placeholder {
  color: var(--text-faint);
}
.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.browser-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.browser-select:hover,
.browser-select:focus {
  border-color: var(--accent-purple);
  color: #ffffff;
}

/* Subtab Badges */
.tab-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.tab-sub-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* Map Quick-Bar (Among Us In-Game Style) */
.map-quickbar-container {
  background: rgba(14, 7, 23, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
.map-quickbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.map-quickbar-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.map-quickbar-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.map-quickbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}
.map-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}
.map-chip.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(56, 189, 248, 0.2));
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
}
.map-chip-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.map-chip-icon {
  font-size: 0.9rem;
}

/* Lobbies Grid */
.lobbies-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.lobby-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.lobby-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.lobby-card.is-modded-card {
  border-color: rgba(236, 72, 153, 0.25);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.04) 0%, var(--bg-surface) 100%);
}
.lobby-card.is-modded-card:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15), 0 0 15px rgba(168, 85, 247, 0.15);
}

.lobby-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.lobby-mod-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.lobby-mod-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.badge-mod-tohe {
  background: linear-gradient(135deg, #db2777, #9333ea);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.35);
}
.badge-mod-submerged {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}
.badge-mod-tou {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
}
.badge-mod-vanilla {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}
.badge-mod-custom {
  background: linear-gradient(135deg, #ea580c, #c026d3);
  color: #ffffff;
}
.lobby-hostonly-pill {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.lobby-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.lobby-region-pill,
.lobby-map-pill,
.lobby-gamemode-pill,
.lobby-impostor-pill,
.lobby-chat-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pill-icon-img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}
.lobby-gamemode-pill.gamemode-hideandseek {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde047;
}
.lobby-gamemode-pill.gamemode-classic {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}
.lobby-impostor-pill {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.lobby-ping-pill {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.ping-dot.ping-good {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.ping-dot.ping-med {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}
.ping-dot.ping-high {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.lobby-body {
  flex: 1;
  margin-bottom: 1rem;
}
.lobby-host-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.lobby-host-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.crewmate-avatar-wrap {
  width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.crewmate-avatar-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}
.lobby-host-avatar {
  font-size: 1.4rem;
}
.lobby-host-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}
.lobby-subinfo {
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.lobby-players-count {
  text-align: right;
  font-family: var(--font-sans);
}
.player-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: #22c55e;
}
.player-num.nearly-full {
  color: #eab308;
}
.player-max {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 700;
}

.lobby-player-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.meter-fill.fill-full {
  background: linear-gradient(90deg, #eab308, #ef4444);
}

.lobby-desc-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Footer / Connect Bar */
.lobby-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}
.lobby-code-display {
  display: flex;
  flex-direction: column;
}
.code-label {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.code-string {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-copy-code {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}
.btn-copy-code:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #ffffff;
  border-color: var(--accent-fuchsia);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.3);
}
.btn-copy-code.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #86efac;
}

/* Twitch Live Stream Badges & Stream Buttons */
.lobby-live-twitch-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.45);
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
}
.lobby-live-twitch-pill:hover {
  background: rgba(145, 70, 255, 0.35);
  color: #ffffff;
  border-color: #9146ff;
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.4);
}
.twitch-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-live 1.5s infinite;
  display: inline-block;
}
@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.twitch-viewers-count {
  color: #e9d5ff;
  font-weight: 700;
}
.lobby-host-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.host-twitch-link {
  color: #a855f7;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: color 0.15s ease;
}
.host-twitch-link:hover {
  color: #d8b4fe;
}
.stream-live-tag {
  color: #f87171;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.stream-viewer-tag {
  color: #38bdf8;
  font-weight: 700;
}
.btn-lobby-stream {
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.4);
  color: #c084fc;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.btn-lobby-stream:hover {
  background: rgba(145, 70, 255, 0.35);
  color: #ffffff;
  border-color: #9146ff;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.4);
}

.lobbies-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.lobbies-empty-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.lobbies-empty-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 460px;
  margin: 0 auto;
}

/* Modded Info Callout */
.modded-info-callout {
  display: flex;
  gap: 1.25rem;
  background: rgba(22, 11, 38, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  align-items: flex-start;
}
.callout-icon {
  font-size: 2rem;
}
.callout-body h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.callout-body p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.callout-body p:last-child {
  margin-bottom: 0;
}
.callout-body a {
  color: var(--accent-fuchsia);
  font-weight: 700;
  text-decoration: underline;
}

/* Admin Games Control Card */
.admin-games-control-card {
  background: rgba(14, 7, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem;
}
.control-card-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   LOBBY AUTHENTIC IN-GAME STYLES: AVATARS, TIMERS, PLATFORMS & RULES
   ========================================================================== */
.crewmate-avatar-wrap {
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.crewmate-avatar-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  overflow: visible;
}

.lobby-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lobby-status-pill.status-waiting {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.lobby-status-pill.status-starting {
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fdba74;
}
.lobby-status-pill.status-ingame {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.pulse-dot.green {
  background: #22c55e;
  box-shadow: 0 0 7px #22c55e;
  animation: pulseGlowGreen 2s infinite ease-in-out;
}
.pulse-dot.orange {
  background: #f97316;
  box-shadow: 0 0 9px #f97316;
  animation: pulseGlowOrange 1s infinite ease-in-out;
}
.pulse-dot.purple {
  background: #a855f7;
  box-shadow: 0 0 7px #a855f7;
  animation: pulseGlowPurple 2s infinite ease-in-out;
}

@keyframes pulseGlowGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes pulseGlowOrange {
  0%, 100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px #f97316; }
  50% { opacity: 0.35; transform: scale(0.75); box-shadow: 0 0 3px #ea580c; }
}
@keyframes pulseGlowPurple {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.lobby-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.22rem 0.55rem;
}
.lobby-timer-pill svg {
  flex-shrink: 0;
}
.lobby-timer-pill.timer-urgent {
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.25);
  animation: timerUrgentGlow 1.2s infinite ease-in-out;
}
@keyframes timerUrgentGlow {
  0%, 100% { border-color: rgba(249, 115, 22, 0.5); }
  50% { border-color: rgba(249, 115, 22, 0.9); }
}

.lobby-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.lobby-platform-pill .platform-icon-svg {
  flex-shrink: 0;
}
.lobby-platform-pill.platform-steam {
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.lobby-platform-pill.platform-mobile {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.lobby-platform-pill.platform-epic,
.lobby-platform-pill.platform-epic-games {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}
.lobby-platform-pill.platform-nintendo,
.lobby-platform-pill.platform-nintendo-switch {
  background: rgba(153, 27, 27, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.lobby-platform-pill.platform-xbox {
  background: rgba(20, 83, 45, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.lobby-platform-pill.platform-playstation {
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

.lobby-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-lobby-settings {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.52rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: all 0.15s ease;
}
.btn-lobby-settings:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Settings Modal */
.settings-hero-banner {
  background: rgba(14, 7, 26, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.settings-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.settings-host-details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}
.settings-host-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.settings-grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.stat-tile {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
}
.stat-tile-label {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.stat-tile-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-tile-val.on {
  color: #86efac;
}
.stat-tile-val.off {
  color: #f87171;
}

.roles-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.roles-section-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.roles-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.role-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.role-chip.neutral {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}
.role-chip.impostor {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.role-chip.crewmate {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

/* Connect Guide Modal */
.connect-guide-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(217, 70, 239, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.connect-code-badge {
  font-family: monospace;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.6);
  margin: 0.4rem 0;
}
.connect-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.connect-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
}
.step-number-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-instruction h5 {
  margin: 0 0 0.15rem 0;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}
.step-instruction p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .games-title {
    font-size: 2rem;
  }
  .browser-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .browser-breadcrumbs {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .browser-topbar-actions {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }
  .browser-topbar-actions .btn-share-lobby {
    flex: 1;
    justify-content: center;
  }
  .browser-subtabs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .browser-subtabs {
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }
  .browser-tab-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
  }
  .browser-telemetry-badge {
    align-self: flex-start;
  }
  .map-quickbar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .map-quickbar {
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .lobbies-list-container {
    grid-template-columns: 1fr;
  }
  .browser-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .browser-select {
    width: 100%;
  }
  .admin-games-control-card {
    flex-direction: column;
    align-items: stretch;
  }
  .control-card-toggle {
    justify-content: space-between;
  }
}


/* ==========================================================================
   AUTO-JOIN BUTTON, MODAL & BRIDGE STYLES
   ========================================================================== */
.btn-auto-join {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}
.btn-auto-join:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
  border-color: #38bdf8;
}
.btn-auto-join:active {
  transform: translateY(1px) scale(0.98);
}

.modded-empty-card {
  border: 1px dashed rgba(168, 85, 247, 0.4) !important;
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.12) 0%, rgba(10, 6, 24, 0.7) 70%) !important;
  padding: 2.5rem 1.5rem !important;
  text-align: center;
  max-width: 680px;
  margin: 1.5rem auto;
  border-radius: var(--radius-lg);
}
.modded-icon-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}
.modded-empty-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
  margin-bottom: 0.85rem;
}
.empty-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-bridge-guide {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-bridge-guide:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

/* Auto-Join HUD / Modal Content */
.auto-join-hero {
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.15) 0%, rgba(15, 10, 30, 0.6) 80%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.auto-join-radar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #06b6d4;
  margin: 0 auto 0.85rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}
.auto-join-radar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.4);
  animation: radarPulse 1.8s infinite ease-out;
}
@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.auto-join-code-large {
  font-family: monospace;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
  margin: 0.5rem 0 0.75rem;
}
.auto-join-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}
.auto-join-options-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .auto-join-options-box {
    grid-template-columns: 1fr;
  }
}
.auto-join-option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.auto-join-option-card.card-highlight {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.05);
}
.auto-join-option-card h5 {
  margin: 0 0 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.auto-join-option-card p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}
.bridge-download-card {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bridge-download-btn {
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: #f3e8ff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.bridge-download-btn:hover {
  background: rgba(147, 51, 234, 0.45);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.5);
}
