:root {
  /* Updated color values to match other pages - using standard hex colors instead of OKLCH */
  --color-primary-900: #0f172a;
  --color-secondary-800: #1e293b;
  --color-secondary-600: #475569;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-slate-100: #f1f5f9;
  --color-slate-400: #94a3b8;
  --color-slate-600: #64748b;
  --color-slate-800: #334155;
  
  /* Legacy variables for backward compatibility */
  --primary-bg: var(--color-primary-900);
  --secondary-bg: var(--color-secondary-800);
  --card-bg: rgba(30, 41, 59, 0.8);
  --accent-color: var(--color-blue-500);
  --accent-hover: var(--color-blue-600);
  --text-primary: var(--color-slate-100);
  --text-secondary: var(--color-slate-400);
  --text-muted: var(--color-slate-600);
  --border-color: var(--color-slate-800);
  
  /* Layout variables */
  --modal-max-width: 95vw;
  --modal-max-height: 85vh;
  --left-pane-width: 30%;
  --gap-size: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-bg);
  background-image: linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.15) 0%,
      transparent 50%
    ),
    linear-gradient(
      -45deg,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    );
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Modal open state - prevent body scrolling */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

/* Keep body scroll locked for all modals - we'll make the modal itself scrollable */

/* Glass effect components */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Modern navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2),
    0 2px 4px -1px rgba(59, 130, 246, 0.1);
  outline: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -2px rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.875rem 1.25rem;
  padding-right: 3rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.05);
}

/* Category filters */
.filter-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 0.5rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  justify-content: center;
}

.filter-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.filter-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-width: 5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2),
    0 4px 6px -2px rgba(59, 130, 246, 0.1);
}

.filter-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.filter-btn.active .filter-icon,
.filter-btn:hover .filter-icon {
  opacity: 1;
}

/* View toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 1.75rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(100, 116, 139, 0.5);
  border-radius: 1.75rem;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(1.75rem);
}

.scenepack-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 1rem;
  overflow: hidden;
}

.scenepack-table thead {
  background: rgba(15, 23, 42, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.scenepack-table th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: left;
  color: #94a3b8;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scenepack-table tr {
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.scenepack-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.scenepack-table td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scenepack-table td[colspan="5"] {
  text-align: center;
}

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

/* Scenepack title and metadata styling */
.scenepack-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #f1f5f9;
  margin-bottom: 0.375rem;
  display: block;
}

.scenepack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.meta-item {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.meta-item i {
  color: #60a5fa;
  font-size: 0.75rem;
}

/* Downloads column styling */
.download-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.25rem;
  /* Safari gradient fixes */
  text-shadow: 0px 0px #00000000;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.download-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Category and date styling */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.date-cell {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Download button styling */
.download-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2),
    0 2px 4px -1px rgba(59, 130, 246, 0.1);
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -2px rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.download-btn:active {
  transform: translateY(1px) scale(0.98);
}

.download-btn i {
  font-size: 1rem;
}

/* Media queries for responsiveness */
@media (max-width: 1280px) {
  .scenepack-table {
    display: block;
  }

  .scenepack-table thead {
    display: none; /* Hide headers on smaller screens */
  }

  .scenepack-table tbody {
    display: block;
  }

  .scenepack-table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
  }

  .scenepack-table tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  }

  .scenepack-table td {
    display: block;
    text-align: left;
    padding: 0.5rem 0;
    border: none;
  }

  .td-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
  }

  .td-category,
  .td-date {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
  }

  .td-downloads {
    top: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .scenepack-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .meta-item {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
  }
}

/* Poster view */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 12rem));
  gap: 1.5rem;
  justify-content: center;
}

.poster-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease, opacity 0.4s ease;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  will-change: transform;
  cursor: pointer !important;
}

.poster-item:hover {
  transform: translateY(-0.5rem) scale(1.05);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2),
    0 10px 15px -5px rgba(0, 0, 0, 0.1);
  z-index: 10;

}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.5) 70%,
    transparent
  );
  padding: 1.5rem 0.75rem 0.75rem;
  transform: translateY(3rem);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.poster-item:hover .poster-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  position: relative;
}

.badge-new::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981, #059669);
  z-index: -1;
  opacity: 0.5;
  animation: pulse 3s infinite;
}

.badge-trending {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-primary);
  border-radius: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 600;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.pagination-btn.active {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: var(--secondary-bg);
  border-left: 4px solid var(--accent-color);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.5s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-2px);
  }
  40%,
  60% {
    transform: translateX(1px);
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: blur(0);
  padding: 1rem;
  /* Prevent scrolling on the background */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  background: var(--secondary-bg);
  border-radius: 1rem;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  /* make it a true flex container, kill any user-agent margins/padding */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;

  /* lock the transform origin */
  transform-origin: center center !important;

  /* force a tight line-box */
  line-height: 1 !important;
  text-align: center !important;

  /* your existing size & look */
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

/* 2) Tidy up old span rules (no longer needed) */
.modal-close span {
  display: none;
}

/* 3) Nice hover feedback */
.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

/* Media queries */
@media (max-width: 1280px) {
  .list-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .list-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 9rem));
  }

  .poster-item:hover {
    transform: translateY(-0.25rem) scale(1.03);
  }

  .filter-btn:hover {
    transform: translateY(-2px);
  }
}


@media (max-width: 640px) {
  .filter-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .filter-btn {
    padding: 0.5rem;
    min-width: 68px;
    height: 68px;
    border-radius: 0.5rem;
  }
  .filter-btn img {
    width: 32px;
    height: 32px;
  }
  .filter-btn span {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1;
  }
}

/* Autocomplete styling */
.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  z-index: 10;
}

.autocomplete.show {
  max-height: 16rem;
  opacity: 1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  background: var(--secondary-bg);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.autocomplete-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(5px);
}

.autocomplete-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Report form */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Menu animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease forwards;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  margin-top: 1rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.3s forwards;
}

/* Placeholder loading animation */
.loading-placeholder {
  background: linear-gradient(
    90deg,
    rgba(30, 41, 59, 0.5) 25%,
    rgba(30, 41, 59, 0.8) 50%,
    rgba(30, 41, 59, 0.5) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
  height: 1.25rem;
}

.no-results-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 100%;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: #94a3b8;
}

.no-results-text {
  font-size: 1.125rem;
  color: #94a3b8;
}

.scenepack-table td[colspan="5"] {
  padding: 0;
}

.poster-grid .no-results-container {
  grid-column: 1 / -1;
}

#mobileMenu {
  background-color: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateX(-100%);
  opacity: 0;
}

#mobileMenu.active {
  transform: translateX(0);
  opacity: 1;
}

#mobileMenu .flex-col {
  background-color: rgba(15, 23, 42, 1);
}

#mobileMenu .p-4.border-b {
  background-color: rgba(30, 41, 59, 0.95);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding: 16px 20px; /* Increased padding */
}

#mobileMenu nav a {
  background-color: rgba(30, 41, 59, 0.7);
  margin-bottom: 6px;
  border-left: 3px solid rgba(59, 130, 246, 0.5);
  padding: 12px 16px; /* Increased padding for menu items */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#mobileMenu nav a:hover {
  background-color: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

#mobileMenu .flex.justify-between.items-center {
  background-color: rgba(30, 41, 59, 1);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding: 12px 20px; /* Increased padding */
}

.mobile-menu-divider {
  height: 1px;
  background-color: #374151;
  margin: 0.5rem 0;
}

.ratings-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: space-between;
}

.rating-box {
  flex: 1;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.imdb-rating {
  background: linear-gradient(135deg, rgba(185, 182, 16, 0.2), rgba(150, 133, 5, 0.3));
  border-color: rgba(185, 176, 16, 0.5);
}

.rt-rating {
  background: linear-gradient(135deg, rgba(185, 16, 16, 0.2), rgba(150, 5, 5, 0.3));
  border-color: rgba(185, 16, 16, 0.5);
}

.rating-value {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rating-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-loading {
  opacity: 0.6;
}

/* Modal download count styles */
.modal-download-count {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.modal-download-count:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(31, 41, 55, 0.9);
}

/* Combined Scenepacks Modal Styles - Fixed for Desktop and Mobile */
.combined-modal-content {
  max-width: var(--modal-max-width) !important;
  width: var(--modal-max-width) !important;
  max-height: var(--modal-max-height) !important;
  height: var(--modal-max-height) !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  position: relative !important;
}

.combined-modal-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Desktop Left Pane - Fixed poster sizing */
.combined-modal-left-pane {
  flex: 0 0 var(--left-pane-width);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: var(--gap-size);
  height: 100%;
  overflow: visible;
  min-height: 0;
  max-height: 100%;
}

.combined-modal-poster-container {
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.combined-modal-poster {
  max-width: 100%;
  height: auto;
  max-height: 320px; /* Increased from 280px to show more of poster */
  width: auto; /* Changed from width: 100% to allow proper scaling */
  object-fit: contain; /* Changed from cover to contain to show full poster */
  border-radius: 0.75rem;
  background: oklch(0.157 0.021 247.896 / 0.6);
  box-shadow: 0 10px 25px oklch(0 0 0 / 0.3);
}

.combined-modal-details {
  flex-shrink: 0;
  padding: 0.5rem;
  overflow: visible;
  margin-top: 0.5rem; /* Add space after poster */
}

.combined-modal-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.combined-modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.25rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem;
  overflow: visible;
  white-space: nowrap;
}

/* Vertical Divider */
.combined-modal-divider {
  flex: 0 0 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    oklch(0.968 0.007 247.896 / 0.1) 20%,
    oklch(0.968 0.007 247.896 / 0.2) 50%,
    oklch(0.968 0.007 247.896 / 0.1) 80%,
    transparent
  );
  margin: 0 var(--gap-size);
  position: relative;
}

.combined-modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px oklch(0.623 0.214 259.815 / 0.5);
}

/* Right Pane - Fixed overflow and table container */
.combined-modal-right-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding-left: var(--gap-size);
  overflow: hidden;
  height: 100%;
}

.combined-modal-header {
  flex-shrink: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid oklch(0.968 0.007 247.896 / 0.1);
}

.combined-modal-title {
  color: var(--color-blue-500);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.combined-modal-subtitle {
  margin-bottom: 0.5rem;
}

.combined-modal-count {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.combined-modal-plot {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
  font-size: 0.875rem;
}

/* Scrollable scenepacks container - Fixed overflow issues */
.combined-scenepacks-container {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: oklch(0.086 0.02 240.86 / 0.3);
  border: 1px solid oklch(0.968 0.007 247.896 / 0.1);
  display: flex;
  flex-direction: column;
}

.combined-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.75rem;
  /* Fix overlapping elements */
  position: relative;
  z-index: 1;
}

.combined-scenepacks-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  table-layout: fixed;
  min-width: 100%;
}

.combined-scenepacks-table thead {
  background: black;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.combined-scenepacks-table th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--color-slate-400);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid oklch(0.968 0.007 247.896 / 0.1);
  position: relative;
}

/* Fixed column widths to prevent overlapping */
.combined-scenepacks-table th:nth-child(1) { width: 35%; }
.combined-scenepacks-table th:nth-child(2) { width: 15%; }
.combined-scenepacks-table th:nth-child(3) { width: 20%; }
.combined-scenepacks-table th:nth-child(4) { width: 15%; }
.combined-scenepacks-table th:nth-child(5) { width: 15%; }

.combined-scenepacks-table tr {
  transition: background-color 0.2s ease;
}

.combined-scenepacks-table tbody tr:hover {
  background-color: oklch(0.968 0.007 247.896 / 0.05);
}

.combined-scenepacks-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid oklch(0.968 0.007 247.896 / 0.05);
  vertical-align: top;
  /* Prevent text overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.combined-scenepacks-table td:nth-child(4) {
  text-align: center;
}

.combined-scenepacks-table tr:last-child td {
  border-bottom: none;
}

.combined-scenepack-title {
  font-weight: 600;
  font-size: 1rem;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
  display: block;
}

.combined-scenepack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.combined-meta-item {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.combined-meta-item:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

.combined-meta-item i {
  color: #60a5fa;
  font-size: 0.6875rem;
}

.combined-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  transition: all 0.3s ease;
}

.combined-category-badge:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.combined-date-cell {
  color: #94a3b8;
  font-size: 0.8125rem;
  align-items: center;
  gap: 0.5rem;
}

.combined-date-cell i {
  color: #60a5fa;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.combined-download-count {
  font-size: 1rem;
  font-weight: 700;
  color: #93c5fd;
  text-shadow: 0px 0px #00000000;

}

.combined-download-label {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Safari gradient fixes */
  text-shadow: 0px 0px #00000000;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.combined-download-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2),
    0 2px 4px -1px rgba(59, 130, 246, 0.1);
  border: none;
  cursor: pointer;
}

.combined-download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -2px rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.combined-download-btn:active {
  transform: translateY(1px) scale(0.98);
}

.combined-download-btn i {
  font-size: 0.875rem;
}

/* Count badge for combined posters */
.poster-count-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  z-index: 20;
  min-width: 1.5rem;
  text-align: center;
}

/* Poster loading skeleton */
.poster-skeleton {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 2/3;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.4),
    rgba(30, 41, 59, 0.6)
  );
  animation: posterPulse 2s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.poster-skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1) 50%,
    transparent
  );
  animation: posterShimmer 1.5s infinite ease-in-out;
}

.poster-skeleton-icon {
  font-size: 2rem;
  color: rgba(148, 163, 184, 0.5);
  z-index: 1;
}

/* Poster pulse animation */
@keyframes posterPulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.6;
  }
}

/* Poster shimmer animation */
@keyframes posterShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive design for combined modal */
@media (max-width: 1280px) {
  .combined-modal-content {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 85vh !important;
    height: 85vh !important;
    margin: 0 !important;
  }
  
  .combined-modal-left-pane {
    flex: 0 0 35%;
    padding-right: 1rem;
  }
  
  .combined-modal-right-pane {
    padding-left: 1rem;
  }
  
  .combined-modal-divider {
    margin: 0 1rem;
  }
}

/* Mobile Safari gradient fixes */
@supports (-webkit-touch-callout: none) {
  .download-count,
  .combined-download-count,
  .combined-download-label,
  .combined-modal-title {
    /* Force hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    
    /* Fix mobile Safari rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Force repaint */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Ensure background attachment */
    background-attachment: local;
    
    /* Fix text rendering */
    text-rendering: optimizeLegibility;
    
    /* Force webkit background size */
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
  }
}

/* Mobile Layout - Complete restructure for single scrollable container */
@media (max-width: 1280px) {
  /* Fix modal container for mobile scrolling */
  .modal.combined-modal {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  
  .combined-modal-content {
    max-width: 100vw !important;
    width: 100vw !important;
    max-height: none !important;
    height: auto !important;
    min-height: calc(100vh - 4rem) !important; /* Account for navbar height */
    margin: 4rem 0 0 0 !important; /* Add top margin for navbar */
    border-radius: 0 !important;
    padding: 1rem !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    display: block !important; /* Change to block for vertical flow */
    /* Ensure modal content is properly scrollable */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Remove the complex flex layout on mobile */
  .combined-modal-layout {
    display: block !important; /* Single column layout */
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
  }
  
  /* Mobile left pane - now at the top */
  .combined-modal-left-pane {
    flex: none !important;
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Poster styling for mobile - centered and reasonable size */
  .combined-modal-poster-container {
    max-height: none !important;
    text-align: center;
    margin-bottom: 1rem;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }
  
  .combined-modal-poster {
    max-height: 280px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important; /* Ensure full poster is shown on mobile too */
  }
  
  /* Ratings container on mobile */
  .ratings-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  /* Details grid on mobile - prevent overlapping */
  .combined-modal-details {
    margin-top: 1rem !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  
  .combined-modal-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  
  .combined-modal-detail-item {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }
  
  .detail-row {
    font-size: 0.8rem !important;
    white-space: normal !important; /* Allow text wrapping on mobile */
    overflow: visible !important;
  }
  
  /* Remove divider on mobile */
  .combined-modal-divider {
    display: none !important;
  }
  
  /* Mobile right pane - now below the left content */
  .combined-modal-right-pane {
    flex: none !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid oklch(0.968 0.007 247.896 / 0.1) !important;
    height: auto !important;
    overflow: visible !important;
    min-height: auto !important;
  }
  
  /* Header styling on mobile - prevent overlapping */
  .combined-modal-header {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid oklch(0.968 0.007 247.896 / 0.1) !important;
  }
  
  .combined-modal-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .combined-modal-plot {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
  }
  
  /* Scenepacks container on mobile */
  .combined-scenepacks-container {
    margin-top: 1rem !important;
    height: auto !important;
    min-height: 200px !important;
    overflow: visible !important;
    flex: none !important;
  }
  
  .combined-table-container {
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
  }

  /* Mobile table - card style layout */
  .combined-scenepacks-table {
    display: block !important;
  }

  .combined-scenepacks-table thead {
    display: none !important;
  }

  .combined-scenepacks-table tbody {
    display: block !important;
  }

  .combined-scenepacks-table tr {
    display: block !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 0.5rem !important;
    position: relative !important;
    transition: all 0.3s ease !important;
  }

  .combined-scenepacks-table tr:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
  }

  .combined-scenepacks-table td {
    display: block !important;
    text-align: left !important;
    padding: 0.375rem 0 !important;
    border: none !important;
  }

  .combined-scenepacks-table td:last-child {
    margin-top: 0.75rem !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  /* Show downloads label on mobile since there are no column headers */
  .combined-download-label {
    display: inline !important;
    margin-left: 0.25rem !important;
  }
}

/* Game-specific rating styles */
.game-rating {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border-color: rgba(16, 185, 129, 0.5);
}

.game-rating.rating-good {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
  border-color: rgba(16, 185, 129, 0.7);
}

.game-rating.rating-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
  border-color: rgba(239, 68, 68, 0.5);
}

.platform-count {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.3));
  border-color: rgba(168, 85, 247, 0.5);
}

.platform-count.rating-neutral {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.35));
  border-color: rgba(168, 85, 247, 0.6);
}

.platform-count.rating-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
  border-color: rgba(239, 68, 68, 0.5);
}

/* Modal detail icon fixes */
.modal-content .flex.items-center.gap-2 {
  padding-left: 0.25rem;
  overflow: visible;
}

.modal-content .flex.items-center.gap-2 i {
  flex-shrink: 0;
  min-width: 1rem;
}

.combined-modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 0.25rem; /* Additional padding to prevent icon cutoff */
}

.detail-row i {
  flex-shrink: 0;
  min-width: 1rem;
  text-align: center;
}

/* Partner Banner Styles */
.partner-banner {
  position: relative;
  max-width: 560px; /* Reduced from 800px (30% smaller) */
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.partner-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.partner-link:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
}

.partner-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.partner-banner:hover .partner-image {
  transform: scale(1.02);
}

.partner-banner:hover .partner-overlay {
  opacity: 1;
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.4) 70%,
    transparent
  );
  padding: 1rem;
  transform: translateY(0);
  opacity: 0;
  transition: all 0.3s ease;
}

.partner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.partner-icon {
  font-size: 1.25rem;
  color: #60a5fa;
}

.partner-text {
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive design for partner banner */
@media (max-width: 768px) {
  .partner-banner {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .partner-image {
    aspect-ratio: 3/1;
  }
  
  .partner-overlay {
    padding: 0.75rem;
  }
  
  .partner-content {
    gap: 0.5rem;
  }
  
  .partner-icon {
    font-size: 1rem;
  }
  
  .partner-text {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .partner-banner {
    border-radius: 0.5rem;
  }
  
  .partner-image {
    aspect-ratio: 3/1;
  }
  
  .partner-overlay {
    padding: 0.5rem;
  }
}

/* Hide login button on mobile navbar but keep it in mobile menu */
@media (max-width: 768px) {
  /* Hide login button in main navbar on mobile */
  .flex.items-center.space-x-4.ml-auto > a[href="/login"] {
    display: none !important;
  }
  
  /* Keep login button visible in mobile menu */
  #mobileMenu a[href="/login"] {
    display: flex !important;
  }
}
