/* === GLOBAL === */
:root {
  --bg-primary: #282828;
  --bg-secondary: #1a1a1a;
  --bg-card: #333333;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --border-color: #404040;
  --accent-green: #24e6a8;
  --accent-green-light: rgba(36, 230, 168, 0.15);
  --accent-red: #ef4444;
  --accent-red-light: rgba(239, 68, 68, 0.15);
  --accent-blue: #24e6a8;
  --accent-yellow: #ffe418;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #000;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background Banner */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/banner-welcome.jpg');
  background-size: cover;
  background-position: center;
  /* Removed background-attachment: fixed for better scroll performance */
  opacity: 0.15;
  /* Low opacity to not distract */
  z-index: -1;
  pointer-events: none;
  /* GPU acceleration */
  transform: translateZ(0);
}

/* === SPLASH SCREEN === */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}

.splash-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.splash-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 15px;
}

.splash-loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-card);
  border-top: 4px solid var(--accent-blue);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HEADER === */
header {
  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(64, 64, 64, 0.5);
  z-index: 1000;
  transition: transform 0.3s ease;
  /* GPU acceleration for smooth scroll */
  will-change: transform;
  transform: translateZ(0);
}

/* === SEARCH DROPDOWN === */
.search-dropdown {
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

}

.search-dropdown .input-group {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.search-dropdown .input-group-text,
.search-dropdown .form-control {
  border: none;
  background: var(--bg-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.search-dropdown .form-control:focus {
  box-shadow: none;
  background: var(--bg-secondary);
}

#search-toggle-btn {
  font-size: 1rem;
  transition: color 0.2s;
}

#search-toggle-btn:hover {
  color: var(--text-primary) !important;
}

.navbar-brand {
  color: var(--accent-blue) !important;
  font-size: 1.25rem;
}

/* === MAIN CATEGORY NAV TABS === */
#mainCategoryTabs {
  border-bottom: none;
  margin-left: 1rem;
}

#mainCategoryTabs .nav-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
}

#mainCategoryTabs .nav-link:hover {
  color: var(--text-primary);
  border-color: transparent;
}

#mainCategoryTabs .nav-link.active {
  color: var(--accent-green);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-green);
}

.search-wrapper .input-group {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  top: 2px;
}

/* === SEARCH === */
.search-wrapper .input-group-text,
.search-wrapper .form-control {
  border: none;
  background: var(--bg-secondary);
  font-size: 0.875rem;
  /* Smaller font */
  padding: 0.3rem 0.75rem;
  /* Reduced padding */
}

.search-wrapper .input-group-text i {
  font-size: 0.8rem;
  /* Smaller icon */
}

.search-wrapper .form-control:focus {
  box-shadow: none;
  background: var(--bg-secondary);
}

/* === CATEGORY TABS === */
.category-tabs {
  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
}

.category-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.category-tab.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* === MOBILE TICKER === */
.mobile-ticker {
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 8px 0;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  gap: 24px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item strong {
  font-weight: 700;
}

.ticker-item.up strong {
  color: var(--accent-green);
}

.ticker-item.down strong {
  color: var(--accent-red);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === MOBILE CATEGORIES SECTION === */
.mobile-categories {
  background: transparent;
}

.category-circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.category-circle-item span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
}

.category-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(36, 230, 168, 0.15);
  border: 1px solid rgba(36, 230, 168, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.category-circle i {
  font-size: 1.2rem;
  color: var(--accent-green);
}

.category-circle .category-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.category-circle:hover {
  background: rgba(36, 230, 168, 0.25);
  transform: scale(1.05);
}

/* === FILTER CHIPS === */
.filter-chips {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-chips .d-flex {
  flex-wrap: nowrap !important;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--accent-green);
  /* Changed to green */
  border-radius: 8px;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  color: var(--accent-green);
  /* Kept green on hover */
}

.chip {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.chip.active {
  background: #24e6a8;
  color: black;
  border-color: #24e6a8
}

/* === MARKETS GRID === */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1400px) {
  .markets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }
}

/* === MARKET CARD === */
.market-card {
  background: rgba(51, 51, 51, 0.95);
  /* Slightly more opaque to compensate for no blur */
  /* Removed backdrop-filter: blur for better scroll performance */
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: auto;
  display: block;
  /* GPU acceleration */
  will-change: transform;
}

.market-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Restore simpler shadow */
}

/* Restore Card Elements */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.market-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.market-icon-placeholder {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.65rem !important;
  border-radius: 6px !important;
}

.badge-volume {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  height: auto;
  max-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  /* Ensure title is white */
  text-shadow: none;
  /* Remove shadows */
}

.market-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.market-option:last-child {
  border-bottom: none;
}

.option-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.option-name {
  font-size: 0.8rem;
  font-weight: 500;
}

.option-percent {
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
}

/* === YES/NO BUTTONS === */
.btn-yes,
.btn-no {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  transition: all 0.2s;
}

.btn-yes {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.btn-yes:hover {
  background: var(--accent-green);
  color: white;
}

.btn-no {
  background: var(--accent-red-light);
  color: var(--accent-red);
}

.btn-no:hover {
  background: var(--accent-red);
  color: white;
}

.btn-yes-full,
.btn-no-full {
  flex: 1;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.2s;
}

.btn-yes-full {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.btn-yes-full:hover {
  background: var(--accent-green);
  color: white;
}

.btn-no-full {
  background: var(--accent-red-light);
  color: var(--accent-red);
}

.btn-no-full:hover {
  background: var(--accent-red);
  color: white;
}

/* Bet Button - Green Accent */
.btn-bet {
  background: var(--accent-green);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-bet:hover {
  background: #1fcf96;
  color: #000;
}

/* === MARKET FOOTER === */
.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.market-volume {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.market-volume i {
  margin-right: 4px;
}

.market-actions {
  display: flex;
  gap: 8px;
}

.market-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.market-actions button:hover {
  color: var(--text-primary);
}

/* === LIVE BADGE === */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-red);
  background: var(--accent-red-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* === TEAM CHIPS === */
.team-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.team-chip {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.team-chip.home {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.team-chip.away {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.team-chip.draw {
  border-color: var(--text-secondary);
}

/* === WALLET MODAL === */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  /* Make close button white */
}

.modal-backdrop.show {
  opacity: 0.85;
  /* Darker backdrop as requested */
}

.btn-wallet {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 8px;
  /* Add spacing between buttons */
}

/* Wallet Brand Colors */
#connect-phantom {
  background: #AB9FF2;
  border-color: #AB9FF2;
  color: white;
}

#connect-phantom:hover {
  background: #9a8ee0;
  border-color: #9a8ee0;
  color: white;
}

#connect-solflare {
  background: #FCB808;
  border-color: #FCB808;
  color: #1a1a1a;
  /* Dark text for contrast on yellow */
}

#connect-solflare:hover {
  background: #e5a707;
  border-color: #e5a707;
  color: #1a1a1a;
}

#connect-backpack {
  background: #E33E3F;
  border-color: #E33E3F;
  color: white;
}

#connect-backpack:hover {
  background: #cc3637;
  border-color: #cc3637;
  color: white;
}



/* === BUTTONS === */
.btn-primary {
  background: #AB9FF2 !important;
  /* Phantom Purple */
  border-color: #AB9FF2 !important;
  color: white !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: #9a8ee0 !important;
  border-color: #9a8ee0 !important;
  color: white !important;
}

#connect-wallet-btn {
  position: relative;
  top: 2px;
}

/* === FOOTER === */
footer {
  background: var(--bg-primary);
  margin-top: auto;
}

footer a {
  text-decoration: none;
}

/* Live Indicator with Sonar Effect */
.live-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  z-index: 10;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #ef4444;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.7;
  }

  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

footer a:hover {
  color: var(--text-primary) !important;
}

/* === UTILITIES === */
.vr {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

/* === RESPONSIVE - TABLET (768px - 992px) === */
@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 1rem !important;
  }

  .search-wrapper {
    max-width: 280px !important;
  }

  .category-tabs .container-fluid {
    padding: 0 1rem;
  }

  .markets-grid {
    gap: 12px;
  }

  .market-card {
    padding: 14px;
  }

  .market-title {
    font-size: 0.875rem;
  }

  .market-chance {
    font-size: 1.25rem;
  }
}

/* === RESPONSIVE - MOBILE (max 768px) === */
@media (max-width: 768px) {

  /* Header */
  .navbar {
    flex-wrap: wrap;
    padding: 0.5rem !important;
  }

  header {
    position: relative !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .search-wrapper {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 0 0 !important;
  }

  .navbar-nav {
    display: none !important;
  }

  .d-flex.align-items-center.gap-2 {
    gap: 0.5rem !important;
  }

  #login-btn {
    display: none;
  }

  #connect-wallet-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  /* Category tabs */
  .category-tabs {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .category-tabs .container-fluid {
    padding: 0 0.5rem;
  }

  .category-tab {
    font-size: 0.8125rem;
    padding: 0.4rem 0.6rem;
  }

  /* Filter chips */
  .filter-chips {
    margin-bottom: 0.75rem !important;
  }

  .filter-chips .d-flex {
    gap: 0.375rem !important;
  }

  .chip {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
  }

  .btn-icon {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
  }

  .team-chips {
    display: none;
  }

  /* Main content */
  main.container-fluid {
    padding: 0.75rem !important;
  }

  .markets-grid {
    gap: 10px;
  }

  /* Market cards */
  .market-card {
    padding: 12px;
    border-radius: 10px;
  }

  .market-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .market-icon-placeholder {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .market-title {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .market-chance {
    font-size: 1.125rem;
  }

  .market-chance-label {
    font-size: 0.6875rem;
  }

  /* Options */
  .market-option {
    padding: 6px 0;
  }

  .option-name {
    font-size: 0.8125rem;
  }

  .option-percent {
    font-size: 0.8125rem;
    margin-right: 6px;
  }

  .btn-yes,
  .btn-no {
    padding: 3px 8px;
    font-size: 0.6875rem;
  }

  .btn-yes-full,
  .btn-no-full {
    padding: 8px;
    font-size: 0.8125rem;
  }

  /* Team chips */
  .team-chips {
    gap: 4px;
    margin-bottom: 10px;
  }

  .team-chip {
    font-size: 0.6875rem;
    padding: 3px 8px;
  }

  /* Footer */
  .market-footer {
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .market-volume {
    font-size: 0.6875rem;
  }

  .live-badge {
    font-size: 0.625rem;
    padding: 2px 6px;
  }
}

/* === RESPONSIVE - SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem;
  }

  #connect-wallet-btn {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }

  .category-tab {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }

  .chip {
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
  }

  .market-card {
    padding: 10px;
  }

  .market-icon-placeholder {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .market-title {
    font-size: 0.75rem;
  }

  .option-name {
    font-size: 0.75rem;
  }

  .btn-yes,
  .btn-no {
    padding: 2px 6px;
    font-size: 0.625rem;
  }
}

/* === SIDEBAR LAYOUT === */
.d-flex.wrapper {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 250px;
  background: rgba(40, 40, 40, 0.5);
  border-right: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: rgba(36, 230, 168, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(36, 230, 168, 0.2);
}

.sidebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--accent-green);
}

.sidebar-item:hover .sidebar-icon,
.sidebar-item.active .sidebar-icon {
  color: var(--accent-green);
}

.sidebar-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
}

.main-content-wrapper {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
}

/* === RIGHT SIDEBAR (Room List) === */
.right-sidebar {
  width: 300px;
  background: rgba(40, 40, 40, 0.5);
  border-left: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  overflow-y: auto;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.room-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.room-host {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.room-game {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-detail {
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.room-detail span:first-child {
  color: var(--text-secondary);
}

.room-action {
  margin-top: 10px;
  display: grid;
}

.btn-join-room {
  background: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid rgba(36, 230, 168, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-join-room:hover {
  background: var(--accent-green);
  color: #000;
}

@media (max-width: 1200px) {
  .right-sidebar {
    display: none;
  }
}

/* Leaderboard Styles */
.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lb-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.8rem;
  margin-right: 12px;
  color: #888;
  background: rgba(255, 255, 255, 0.1);
}

.lb-rank.rank-1 {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lb-rank.rank-2 {
  background: #C0C0C0;
  color: #000;
}

.lb-rank.rank-3 {
  background: #CD7F32;
  color: #000;
}

.lb-info {
  flex: 1;
}

.lb-wallet {
  font-family: monospace;
  font-size: 0.9rem;
  color: #eee;
}

.lb-score {
  font-size: 0.8rem;
  font-weight: 600;
}