/* Modern Design System for Aether */

:root {
  /* Modern Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #ec4899;
  --secondary-dark: #db2777;
  --secondary-light: #f472b6;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background-color: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Card Component */
.modern-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-modern:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-modern-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-modern-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.btn-modern-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
}

.btn-modern-success:hover {
  background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-modern-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
  color: white;
}

.btn-modern-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, var(--danger-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Modern Form Controls */
.form-modern {
  margin-bottom: var(--space-md);
}

.form-modern label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-modern input,
.form-modern select,
.form-modern textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-900);
  background-color: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.form-modern input:focus,
.form-modern select:focus,
.form-modern textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-modern input::placeholder {
  color: var(--gray-400);
}

/* Mobile form adjustments */
@media (max-width: 768px) {
  .form-modern input,
  .form-modern select,
  .form-modern textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Modern Alerts */
.alert-modern {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.alert-modern-success {
  background-color: #d1fae5;
  color: #065f46;
  border-left: 4px solid var(--success-color);
}

.alert-modern-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--danger-color);
}

.alert-modern-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-left: 4px solid var(--warning-color);
}

.alert-modern-info {
  background-color: #dbeafe;
  color: #1e40af;
  border-left: 4px solid var(--info-color);
}

/* Modern Navigation */
.nav-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-modern-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-modern-link:hover {
  color: var(--primary-color);
  background-color: var(--gray-100);
}

.nav-modern-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
  background-color: rgba(99, 102, 241, 0.1);
}

/* Modern Sidebar */
.sidebar-modern {
  background: white;
  box-shadow: var(--shadow);
  height: 100vh;
  overflow-y: auto;
  width: 280px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.sidebar-modern-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-modern-item:hover {
  background-color: var(--gray-50);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-modern-item.active {
  background-color: rgba(99, 102, 241, 0.05);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.sidebar-modern-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  opacity: 0.7;
}

/* Modern Tables */
.table-modern {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-modern thead {
  background-color: var(--gray-50);
}

.table-modern th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-modern td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}

.table-modern tbody tr:hover {
  background-color: var(--gray-50);
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* Modern Badges */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-modern-primary {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.badge-modern-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-modern-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Modern Loading States */
.loading-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner-modern {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modern Hero Section */
.hero-modern {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Logo centering in hero section */
.hero-modern .navbar-brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-modern .navbar-brand img {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: auto;
}

/* Hero title and subtitle */
.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.1;
}

.hero-modern h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-modern p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Modern Dropdown */
.dropdown-modern {
  position: relative;
  display: inline-block;
}

.dropdown-modern-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.dropdown-modern.active .dropdown-modern-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-modern-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-modern-item:hover {
  background-color: var(--gray-50);
  color: var(--primary-color);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar-modern {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1000;
  }
  
  .sidebar-modern.active {
    transform: translateX(0);
  }
  
  .hero-modern h1 {
    font-size: 2rem;
  }
  
  .hero-modern p {
    font-size: 1rem;
  }
  
  /* Keep navbar visible but adjust for mobile */
  nav.navbar.fixed-top {
    background: transparent !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Hide desktop menu items */
  nav.navbar.fixed-top .collapse.navbar-collapse {
    display: none !important;
  }
  
  /* Hide the menu-wrap system and SlickNav button */
  .menu-wrap,
  #close-button,
  .slicknav_btn,
  .slicknav_menu {
    display: none !important;
  }
  
  /* Ensure only navbar toggle button is visible */
  .navbar-toggler {
    display: block !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
  }
  
  .navbar-toggler .lni-menu {
    color: white !important;
  }
  
  /* Hide extra menu icons - keep only the first one */
  .navbar-toggler .lni-menu:nth-child(2),
  .navbar-toggler .lni-menu:nth-child(3) {
    display: none !important;
  }
  
  /* Hide navbar-toggler-icon */
  .navbar-toggler-icon {
    display: none !important;
  }
  
  /* Add background when scrolled */
  nav.navbar.fixed-top.menu-bg {
    background: rgba(0, 0, 0, 0.8) !important;
  }
  
  /* Force mobile menu to stay visible when active */
  ul.mobile-menu {
    display: none !important;
  }
  
  ul.mobile-menu.active,
  ul.mobile-menu.show {
    display: block !important;
    position: fixed !important;
    top: 4rem !important;
    left: 40% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    z-index: 999 !important;
    width: 90% !important;
    max-width: 300px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  }
  
  ul.mobile-menu li {
    margin: 0.5rem 0 !important;
  }
  
  ul.mobile-menu a {
    color: white !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    display: block !important;
    border-radius: 0.25rem !important;
    transition: background 0.2s !important;
  }
  
  ul.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  
  /* Fix logo centering on mobile */
  .hero-modern .container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  .hero-modern .navbar-brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 3rem 0 2rem 0 !important;
    width: 100%;
    padding: 0 !important;
  }
  
  .hero-modern .navbar-brand img {
    width: 200px !important;
    max-width: 80vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Fix text overlap on mobile */
  .hero-modern .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-modern .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Adjust hero section padding on mobile */
  section.hero-modern {
    padding: 5rem 0.5rem 2rem 0.5rem !important;
    min-height: 100vh;
  }
}

/* Ruby Icon Enhancement */
.ruby-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: #92400e;
  box-shadow: var(--shadow-sm);
}

.ruby-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-button:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.mobile-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-700);
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }
}

/* Game Container Styles */
.game-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) auto;
  max-width: 1200px;
}

.game-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.game-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 20%, #fde68a 50%, transparent 80%);
  animation: rotateGold 6s linear infinite;
  transform-origin: center;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

@keyframes rotateGold {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.5); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.5); }
}


.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}


.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Price Cards Enhancement */
.price-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition);
  border: 2px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

/* Store page specific styles */
.store-sidebar {
  width: 280px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  flex-shrink: 0;
}

.store-main {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.price-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.price-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--warning-color) 100%);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Vanilla Toast Mobile Adjustments */
@media (max-width: 768px) {
  #vanillatoasts-container {
    max-width: 45vw !important;
    right: 5px !important;
    bottom: 60px !important;
  }
  
  #vanillatoasts-container .vanillatoasts-toast {
    max-width: 100% !important;
    width: auto !important;
    font-size: 0.8rem !important;
    padding: 0.75rem !important;
  }
  
  #vanillatoasts-container .vanillatoasts-toast .vanillatoasts-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #vanillatoasts-container .vanillatoasts-toast .vanillatoasts-text {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  #vanillatoasts-container .vanillatoasts-toast .vanillatoasts-text > div {
    margin-bottom: 0.5rem !important;
    padding: 0.5rem !important;
  }
}

/* Account page mobile fixes */
@media (max-width: 768px) {
  /* Fix grid layout for account sections */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr))"] {
    grid-template-columns: 1fr !important;
    padding: 0 1rem !important;
  }
  
  /* Fix sidebar margin on main content */
  #mainContent {
    margin: 0 !important;
    padding: 0.5rem !important;
  }
  
  /* Make sidebar toggleable on mobile */
  .sidebar-modern {
    position: fixed !important;
    left: -280px !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
  }
  
  .sidebar-modern.active {
    left: 0 !important;
  }
  
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  
  /* Remove left margin from footer */
  footer[style*="margin-left: 280px"] {
    margin-left: 0 !important;
  }
  
  /* Adjust page container for mobile */
  .page-container {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Adjust main padding */
  main {
    padding: 1rem !important;
  }
  
  /* Ensure cards are properly sized */
  .modern-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Adjust header for mobile */
  .nav-modern > div {
    padding: 1rem !important;
    justify-content: space-between !important;
  }
  
  /* Ensure hamburger button shows on mobile */
  .nav-modern .mobile-menu-button {
    display: block !important;
  }
  
  /* Make dropdown more mobile friendly */
  .dropdown-modern-content {
    right: -10px !important;
    min-width: 160px !important;
  }
  
  /* Adjust ruby icon for mobile */
  .ruby-icon {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.875rem !important;
  }
  
  .ruby-icon img {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
  
  /* Make buttons stack on very small screens */
  @media (max-width: 380px) {
    .nav-modern > div > div {
      flex-direction: column !important;
      gap: 0.75rem !important;
    }
    
    .ruby-icon {
      width: 100% !important;
      justify-content: center !important;
    }
  }
  
  /* Fix Discord link button on mobile */
  .modern-card .btn-modern {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Fix card content spacing */
  .modern-card h2 {
    font-size: 1.25rem !important;
  }
  
  .modern-card p {
    font-size: 0.875rem !important;
  }
}

/* Store page responsive fixes */
@media (max-width: 768px) {
  /* Make store layout stack vertically */
  div[style*="display: flex; gap: 2rem"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  /* Make category sidebar full width on mobile */
  aside[style*="width: 280px"] {
    width: 100% !important;
    position: static !important;
    margin-bottom: 1rem !important;
  }
  
  /* Make main content full width */
  main[style*="flex: 1"] {
    width: 100% !important;
  }
  
  /* Adjust grid for mobile */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr !important;
    padding: 0 0.5rem !important;
  }
  
  /* Adjust store header */
  .modern-card h1 {
    font-size: 1.5rem !important;
  }
  
  /* Fix price cards on mobile */
  .price-card {
    max-width: 100% !important;
  }
  
  /* Fix blockUI modal for mobile */
  .blockUI.blockMsg {
    width: 80% !important;
    left: 10% !important;
    top: 30% !important;
  }
  
  /* Make category links more touch-friendly on mobile */
  .sidebar-modern-item {
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
  }
}