/* 
 * Competition Detail Page Specific Styles
 */



 
/* Cashback Display Styles */
.cashback-info {
  animation: slideDown 0.3s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cashback-info .alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  width: fit-content;
  margin: 0 auto;
}

.dark-theme .cashback-info .alert {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.light-theme .cashback-info .alert {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #15803d;
}


.cashback-info .alert strong {
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* User Tickets Row: notice + My Pokemons button */
.user-tickets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.my-pokemons-button-container {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.btn-my-pokemons {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: btn-my-pokemons-pulse 1s ease-in-out infinite;
}
@keyframes btn-my-pokemons-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(246, 205, 7, 0.2); }
  50% { box-shadow: 0 0 14px rgba(246, 205, 7, 0.4); }
}
.btn-my-pokemons:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.45);
  animation: none;
}

@media (hover: none) {
  .btn-my-pokemons {
    animation: none;
  }
}

.my-pokemons-inline-panel {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass-bg, rgba(30, 30, 35, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.my-pokemons-inline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.my-pokemons-inline-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.my-pokemons-inline-count {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.85);
}

.my-pokemons-inline-body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.my-pokemons-inline-body .pokemon-catalogue-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

@media (min-width: 576px) {
  .my-pokemons-inline-body .pokemon-catalogue-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.light-theme .my-pokemons-inline-panel,
html.light-theme .my-pokemons-inline-panel,
[data-theme="light"] .my-pokemons-inline-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .my-pokemons-inline-header,
html.light-theme .my-pokemons-inline-header,
[data-theme="light"] .my-pokemons-inline-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.light-theme .my-pokemons-inline-title,
html.light-theme .my-pokemons-inline-title,
[data-theme="light"] .my-pokemons-inline-title {
  color: #212529;
}

.light-theme .my-pokemons-inline-count,
html.light-theme .my-pokemons-inline-count,
[data-theme="light"] .my-pokemons-inline-count {
  color: #6c757d;
}

.dark-theme .my-pokemons-inline-title,
html.dark-theme .my-pokemons-inline-title,
[data-theme="dark"] .my-pokemons-inline-title {
  color: #fff;
}

.dark-theme .my-pokemons-inline-count,
html.dark-theme .my-pokemons-inline-count,
[data-theme="dark"] .my-pokemons-inline-count {
  color: rgba(255, 255, 255, 0.85);
}

.dark-theme .my-pokemons-inline-close.btn-close,
html.dark-theme .my-pokemons-inline-close.btn-close,
[data-theme="dark"] .my-pokemons-inline-close.btn-close {
  filter: none;
  opacity: 1;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c41c22'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.dark-theme .my-pokemons-inline-close.btn-close:hover,
html.dark-theme .my-pokemons-inline-close.btn-close:hover,
[data-theme="dark"] .my-pokemons-inline-close.btn-close:hover {
  opacity: 0.85;
}

/* User Tickets Notice Styles */
.user-tickets-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.5s ease-out;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.user-tickets-notice .fas.fa-ticket-alt {
  color: #f59e0b;
  font-size: 14px;
}

.user-tickets-notice .tickets-count {
  font-weight: 700;
  color: #374151;
}

.user-tickets-notice .tickets-text {
  color: #6b7280;
}

/* Dark Theme */
.dark-theme .user-tickets-notice {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.15), rgba(55, 65, 81, 0.15));
  border: 1px solid rgba(75, 85, 99, 0.25);
  color: #f3f4f6;
}

.dark-theme .user-tickets-notice .tickets-count {
  color: #f3f4f6;
}

.dark-theme .user-tickets-notice .tickets-text {
  color: #d1d5db;
}

/* Light Theme */
.light-theme .user-tickets-notice {
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.8), rgba(229, 231, 235, 0.8));
  border: 1px solid rgba(209, 213, 219, 0.8);
  color: #374151;
}

.light-theme .user-tickets-notice .tickets-count {
  color: #374151;
}

.light-theme .user-tickets-notice .tickets-text {
  color: #6b7280;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
  .user-tickets-notice {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
  }

  .user-tickets-notice .fas.fa-ticket-alt {
    font-size: 13px;
  }
}

/* Description content styling for HTML content */
.description-content {
  line-height: 1.6;
  color: var(--text-color);
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.description-content h1 {
  font-size: 1.8rem;
}

.description-content h2 {
  font-size: 1.6rem;
}

.description-content h3 {
  font-size: 1.4rem;
}

.description-content h4 {
  font-size: 1.2rem;
}

.description-content h5 {
  font-size: 1.1rem;
}

.description-content h6 {
  font-size: 1rem;
}

.description-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.description-content ul,
.description-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.description-content li {
  margin-bottom: 0.5rem;
}

.description-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.description-content code {
  background: rgba(78, 84, 200, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.description-content pre {
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

.description-content pre code {
  background: none;
  padding: 0;
}

.description-content a {
  color: var(--primary);
  text-decoration: none;
}

.description-content a:hover {
  text-decoration: underline;
}

.description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 1rem 0;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.description-content th,
.description-content td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.description-content th {
  background: rgba(78, 84, 200, 0.1);
  font-weight: 600;
}

/* Light theme adjustments for description content */
:root.light-theme .description-content {
  color: var(--text-color);
}

:root.light-theme .description-content h1,
:root.light-theme .description-content h2,
:root.light-theme .description-content h3,
:root.light-theme .description-content h4,
:root.light-theme .description-content h5,
:root.light-theme .description-content h6 {
  color: var(--text-color);
}

:root.light-theme .description-content blockquote {
  border-left-color: var(--primary);
  color: var(--text-muted);
}

:root.light-theme .description-content code {
  background: rgba(78, 84, 200, 0.1);
}

:root.light-theme .description-content pre {
  background: rgba(0, 0, 0, 0.05);
}

:root.light-theme .description-content th,
:root.light-theme .description-content td {
  border-color: rgba(0, 0, 0, 0.1);
}

:root.light-theme .description-content th {
  background: rgba(78, 84, 200, 0.1);
}

/* Main competition container */
.competition-detail-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent iOS zoom on button clicks */
.competition-detail-container button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Prevent iOS zoom on input focus */
.competition-detail-container input[type="number"] {
  font-size: 16px !important;
  /* Minimum 16px to prevent zoom */
  -webkit-text-size-adjust: 100% !important;
}

.text-warning {
  --bs-text-opacity: 1;
  color: black !important;
  background: rgba(var(--bs-warning-rgb), var(--bs-text-opacity)) !important;
  width: fit-content;
  border-radius: 10px;
  padding: 5px;
}

/* Ticket limit info styling */
.ticket-limit-info {
  color: var(--text-color);
}

.ticket-limit-info small {
  color: var(--text-color);
}

/* Dark theme - make ticket limit info white */
.dark-theme .ticket-limit-info,
.dark-theme .ticket-limit-info small {
  color: white !important;
}

/* Light theme - keep it readable */
.light-theme .ticket-limit-info,
.light-theme .ticket-limit-info small {
  color: #333 !important;
}

/* Skeleton loader alignment fix */
#competition-skeleton {
  margin: 0;
  padding: 0;
}

#competition-skeleton .competition-detail-layout {
  margin-bottom: 1rem;
}

/* Ensure skeleton gallery column matches actual content spacing */
#competition-skeleton .gallery-column {
  margin: 0;
  padding: 0;
}

/* Ensure skeleton details column matches actual content spacing */
#competition-skeleton .details-column {
  margin: 0;
  padding: 0;
}

/* Ensure skeleton compact-product-info matches actual content spacing */
#competition-skeleton .compact-product-info {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure skeleton product-title-row matches actual content spacing */
#competition-skeleton .product-title-row {
  margin-bottom: 0.5rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
}

/* Ensure skeleton product-title-row first element (title) uses flex like actual h1 */
#competition-skeleton .product-title-row>div:first-child {
  width: auto !important;
  flex: 1 !important;
  /* Match actual h1 which has flex: 1 */
  min-width: 0 !important;
  /* Allow shrinking if needed */
  max-width: calc(100% - 120px) !important;
  /* Leave space for price */
}

/* Ensure skeleton product-title-row second element (price) has proper spacing like actual price */
#competition-skeleton .product-title-row>div:nth-child(2) {
  margin-left: 1rem !important;
  /* Match actual .product-price margin-left */
  flex-shrink: 0 !important;
  /* Prevent shrinking like actual price span */
  width: auto !important;
  /* Let it size naturally */
  min-width: 100px !important;
  /* Maintain minimum width */
}

/* Ensure skeleton product-metadata matches actual content spacing */
#competition-skeleton .product-metadata {
  margin-bottom: 0 !important;
  /* Remove the extra margin-bottom from inline style */
}

/* Ensure skeleton tag-group matches actual content spacing (gap: 0.5rem, not 1rem) */
#competition-skeleton .product-metadata>div {
  gap: 0.5rem !important;
  /* Override inline gap: 1rem */
  margin-bottom: 0 !important;
  /* Remove the extra margin-bottom from inline style */
}

/* Ensure skeleton competition-details-card matches actual content spacing */
#competition-skeleton .competition-details-card {
  padding: 1.25rem;
}

/* Ensure skeleton tabs section matches actual content spacing */
#competition-skeleton .competition-tabs {
  margin-top: 1.5rem;
  /* matches mt-4 */
  clear: both;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

/* Ensure skeleton gallery image container matches actual content */
#competition-skeleton .gallery-column>div:first-child {
  margin-bottom: 1rem !important;
}

/* Ensure skeleton gallery thumbnails container matches actual content spacing */
#competition-skeleton .gallery-column>div:nth-child(2) {
  margin-top: 0 !important;
  /* Remove margin-top since main image has margin-bottom */
}

/* Enhanced two-column layout for desktop */
.competition-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gallery-column {
  min-width: 300px;
}

.details-column {
  min-width: 300px;
}

/* Enhanced Gallery Styles */
.competition-gallery {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.main-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.main-image-container:hover .main-gallery-image {
  transform: scale(1.02);
}

/* Gallery navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
}

.gallery-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 40, 0.8);
  border: 1px solid var(--glass-border);
  color: white;
  opacity: 0.7;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-nav button:hover {
  opacity: 1;
  background: var(--primary);
}

/* Thumbnails */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-thumbnail {
  width: 60px;
  height: 45px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.gallery-thumbnail:hover {
  opacity: 0.9;
  border-color: var(--primary);
}

.gallery-thumbnail.active-thumbnail {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--glow-color);
}

/* BRAND NEW MINIMAL PRODUCT HEADER */
.compact-product-info {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.product-title-row h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  flex: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 1rem;
  text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
  letter-spacing: 0.5px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-price small {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.product-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-tag {
  background: rgba(78, 84, 200, 0.15);
  color: var(--primary);
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  font-weight: 500;
  display: inline-block;
}

:root.dark-theme .product-tag {
  background-color: var(--primary);
  color: white;
}

.cash-tag {
  background: #28a745;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  font-weight: 500;
  border: none;
  display: inline-block;
}

:root.dark-theme .cash-tag {
  background: #28a745;
  color: #ffffff;
  border: none;
}

.cash-tag::before {
  content: "";
  margin-right: 0;
}

/* Light theme overrides */
:root.light-theme .compact-product-info {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

:root.light-theme .product-title-row h1 {
  color: #000;
}

:root.light-theme .product-price {
  color: var(--primary);
  text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.2);
}

:root.light-theme .product-price small {
  color: #666;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .cashback-info .alert {
    font-size: 0.7rem;
  }

  .cashback-info .alert strong {
    font-size: 0.8rem;
  }


  .product-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-title-row h1 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .product-price {
    margin-left: 0;
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  .product-price small {
    font-size: 0.9rem;
  }
}

/* Mid-size desktops: detail header must grow with long titles (card grid uses fixed height elsewhere) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .competition-detail .product-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.35rem;
  }

  .competition-detail .product-title-inline .competition-title,
  .competition-detail .product-title-row h1 {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .competition-detail .product-title-inline {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .competition-detail .product-price {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .competition-detail .product-metadata {
    margin-top: 0.25rem;
  }
}

/* Tabbed Content Styles */
.competition-tabs {

  clear: both;
  border-top: 1px solid var(--border-color, #e0e0e0);

}

.nav-tabs {
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

/* Custom scrollbar for tab navigation */
.nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.nav-tabs .nav-item {
  white-space: nowrap;
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-tabs .nav-link:hover {
  color: var(--text-color);
  border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  background: transparent;
  border-bottom: 3px solid var(--primary);
}

.tab-content {
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
  min-height: 200px;
}

.tab-pane {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Competition Details Card */
.competition-details-card {
  border-radius: 15px;
  overflow: hidden;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;

}

.compact-competition-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  min-height: 300px;
}

/* Square Countdown Timer */
.countdown-container {
  background: var(--glass-bg);
  border-radius: 15px;
  width: 100%;
}

.countdown-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.countdown-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  border: none;
}

.time-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.time-unit:hover {
  transform: none;
  box-shadow: none;
}

.time-unit::after {
  content: none;
}

.time-unit:last-child::after {
  display: none;
}

/* Use global .countdown-timer .time-value from style.css */

.time-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

:root.light-theme .time-label {
  color: black !important;
}




/* Progress Bar */
.progress-container {
  margin-bottom: 0.5rem;
}

.progress {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--gradient-mid));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  100% {
    left: 100%;
  }
}

.tickets-info {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Compact Entry List */
.entry-list-container {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.entry-list-container::-webkit-scrollbar {
  width: 8px;
}

.entry-list-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.entry-list-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

.entry-list-table {
  margin-bottom: 0;
}

.entry-list-table th,
.entry-list-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Table header styling with primary color background */
.entry-list-table thead th {
  background-color: var(--primary);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Light theme overrides for the entry list table */
:root.light-theme .entry-list-table.table-dark {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

:root.light-theme .entry-list-table.table-dark td {
  border-color: #dee2e6;
  color: #212529;
}

/* Keep the header styling consistent across themes */
:root.light-theme .entry-list-table.table-dark th {
  background-color: var(--primary);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

:root.light-theme .entry-list-table.table-dark tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
  color: #212529;
}

:root.light-theme .entry-list-table.table-dark td.text-center em {
  color: #6c757d;
}

/* New Expandable Instant Prizes - Theme Aware */
.instant-prizes-expandable {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product__prize {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product__prize:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.prize-card__head {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  background: var(--glass-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.prize-card__head:hover {
  background: var(--glass-bg-hover);
}

.prize-card__img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

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

/* Pokemon Leaderboard instant win level — static border (animated glow was costly with many cards visible) */
.prize-card__img.pokemon-level-standard {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.65), 0 0 10px rgba(34, 197, 94, 0.35);
}
.prize-card__img.pokemon-level-rare {
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.7), 0 0 10px rgba(124, 58, 237, 0.38);
}
.prize-card__img.pokemon-level-legendary {
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.7), 0 0 10px rgba(234, 179, 8, 0.38);
}

.prize-card__name {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.prize-card__points {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prize-card__badge {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.prize-card__badge span {
  font-weight: 700;
  font-size: 1rem;
}

.prize-card__toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  width: max-content;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.prize-card__toggle:hover {
  background: var(--glass-bg-hover);
  transform: scale(1.1);
  border-color: var(--primary);
}

.prize-card__toggle--open {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.svg-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.prize-card__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
}

.prize-card__content--opened {
  max-height: 500px;
  overflow: visible;
}

.prize-card__tab-content {
  padding: 1rem;
}

.prize-card__tickets-box {
  padding: 0.5rem 0;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.prize-card__tickets-box::-webkit-scrollbar {
  width: 6px;
}

.prize-card__tickets-box::-webkit-scrollbar-track {
  background: var(--glass-bg);
  border-radius: 10px;
}

.prize-card__tickets-box::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.prize-card__tickets-box::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.8);
}

.prize-card__tickets-content {
  display: grid;
  grid-template-columns: repeat(10, 1fr);

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}



.prize-ticket-card {
  width: 80px;
  height: 80px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  overflow: visible;
  margin: 10px 0;
}

.prize-ticket-card.available {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.5);
}

.prize-ticket-card.taken {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.5);
}

.prize-ticket-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prize-ticket-card-content {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.prize-ticket-card-footer {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Skeleton loading styles for ticket cards (only while a group is expanded) */
.prize-card__content--opened .prize-ticket-card-skeleton {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  cursor: default !important;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.prize-ticket-card-skeleton {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  cursor: default !important;
}

.prize-ticket-card-skeleton:hover {
  transform: none !important;
  box-shadow: none !important;
}

.prize-card__content--opened .prize-ticket-card-content-skeleton {
  width: 40px;
  height: 20px;
  background: var(--glass-border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.prize-card__content--opened .prize-ticket-card-footer-skeleton {
  width: 50px;
  height: 16px;
  background: var(--glass-border);
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes skeleton-shimmer {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Dark theme adjustments for skeletons */
.dark-theme .prize-ticket-card-skeleton {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .prize-ticket-card-content-skeleton,
.dark-theme .prize-ticket-card-footer-skeleton {
  background: rgba(255, 255, 255, 0.15);
}

/* Light theme adjustments for skeletons */
.light-theme .prize-ticket-card-skeleton {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-theme .prize-ticket-card-content-skeleton,
.light-theme .prize-ticket-card-footer-skeleton {
  background: rgba(0, 0, 0, 0.1);
}

.prize-ticket-card.available .prize-ticket-card-footer {
  background: rgba(40, 167, 69, 0.9);
}

.prize-ticket-card.taken .prize-ticket-card-footer {
  background: rgba(220, 53, 69, 0.9);
}

.winner-tooltip {
  position: absolute;
  bottom: 80% !important;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: normal;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  text-align: center;
  line-height: 1.2;
  max-width: 200px;
}

.winner-tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent transparent;
}

.prize-ticket-card.show-tooltip .winner-tooltip {
  opacity: 1;
  animation: tooltipBounce 0.3s ease-out;
}

@keyframes tooltipBounce {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .prize-card__head {
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .prize-card__img {
    width: 50px;
    height: 50px;
  }

  .prize-card__name {
    font-size: 1rem;
    min-width: 120px;
  }



  .prize-card__badge span {
    font-size: 0.9rem;
  }


}

/* Tablet responsive design */
@media (max-width: 1024px) {
  .prize-card__tickets-content {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
  }
}

@media (max-width: 768px) {
  .prize-card__head {
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .prize-card__img {
    width: 50px;
    height: 50px;
  }

  .prize-card__name {
    font-size: 1rem;
    min-width: 120px;
  }


  .prize-card__badge span {
    font-size: 0.9rem;
  }

  .prize-card__badge {
    padding: 5px;
  }

  .prize-card__tickets-content {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    max-width: 100%;
  }

  .svg-icon {
    width: 16px;
    height: 16px;
  }

  /* Default state: arrow points down (collapsed) */
  .prize-card__badge .svg-icon {
    transform: rotate(90deg);
  }

  /* Expanded state: arrow points right */
  .prize-card__badge.prize-card__toggle--open .svg-icon {
    transform: rotate(0deg);
  }

  .prize-ticket-card {
    width: 70px;
    height: 70px;
    margin: 8px 0;
  }

  .prize-ticket-card-content {
    font-size: 1rem;
  }

  .prize-ticket-card-footer {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }

  .winner-tooltip {
    bottom: calc(100% + 12px);
    min-width: 120px;
    max-width: 180px;
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .prize-card__head {
    padding: 0.5rem;
  }

  .prize-card__name {
    font-size: 0.9rem;
    min-width: 100px;
  }



  .prize-card__tickets-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
  }

  .prize-ticket-card {
    width: 60px;
    height: 60px;
  }

  .prize-ticket-card-content {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .prize-card__tickets-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }
}

/* Prize Card Styles */
.prize-card__badge .svg-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}


/* Enhanced Skill Question */
.skill-question {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.skill-question-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.skill-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  justify-content: center;
}

.skill-answer {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  flex: 1 1 0%;
  min-width: 80px;
  max-width: 200px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.skill-answer:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.skill-answer.selected {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(78, 84, 200, 0.2);
}

/* Enhanced Ticket Selector */
.ticket-selector-container {
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.predefined-ticket-selector {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.2rem;
}

.ticket-preset-btn {
  width: 40px;
  height: 40px;
  background-color: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.ticket-preset-btn:hover {
  background-color: rgba(78, 84, 200, 0.2);
  border-color: var(--primary);
}

.ticket-preset-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(78, 84, 200, 0.2);
}

.ticket-preset-btn:disabled {
  background-color: rgba(30, 30, 40, 0.5);
  border-color: rgba(100, 100, 140, 0.3);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Ticket slider styles */
.ticket-slider-container {
  padding: 0;
  margin-top: 55px;
  margin-bottom: 20px;
  position: relative;
  background: var(--glass-bg);
  border-radius: 4px;
  height: 8px;
  overflow: visible;
}

.ticket-slider {
  top: -7px;
}

/* Slider background effect */
.slider-background {
  position: absolute;
  height: 8px;
  background-color: var(--primary);
  top: 0;
  left: 0;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

/* Override any Bootstrap styles that might interfere */
input[type="range"].ticket-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.ticket-slider::-webkit-slider-runnable-track {
  background: transparent !important;
  border: none;
  height: 8px;
  border-radius: 4px;
}

.ticket-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--primary);
  box-shadow: 0 0 15px var(--glow-color);
  border: 2px solid white;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 3;
  margin-top: -6px;
}

/* Ticket badge */
.ticket-badge {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  position: absolute;
  top: -45px;
  left: 5%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 10px rgba(78, 84, 200, 0.3);
  transition: left 0.1s ease;
  min-width: 60px;
  pointer-events: none;
  /* Prevent badge from interfering with slider events */
}

.ticket-badge::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent transparent;
}

.ticket-badge i {
  color: var(--primary);
}

/* Prize popup styles removed - now using expandable interface */

/* Social share section */
.social-share {
  margin-top: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Social sharing buttons with brand colors */
.social-links .btn-facebook {
  background-color: #3b5998 !important;
  color: white !important;
  border-color: #3b5998 !important;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 40px;
}

.social-links .btn-facebook:hover {
  background-color: #2d4373 !important;
  color: white !important;
  border-color: #2d4373 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 89, 152, 0.3);
}

/* X (formerly Twitter) brand color button */
.social-links .btn-x {
  background-color: #000000 !important;
  color: white !important;
  border-color: #000000 !important;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 40px;
}

.social-links .btn-x:hover {
  background-color: #000000 !important;
  color: white !important;
  border-color: #000000 !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* WhatsApp brand color button */
.social-links .btn-whatsapp {
  background-color: #25d366 !important;
  color: white !important;
  border-color: #25d366 !important;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 40px;
}

.social-links .btn-whatsapp:hover {
  background-color: #1da851 !important;
  color: white !important;
  border-color: #1da851 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Ensure icons are visible */
.social-links .btn-facebook i,
.social-links .btn-x svg,
.social-links .btn-whatsapp i {
  color: white !important;
  display: inline-block;
  vertical-align: middle;
}

/* Media Queries */
@media (max-width: 1200px) {
  .competition-detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .main-image-container {
    height: auto;
  }
}

@media (max-width: 992px) {
  .competition-detail-layout {
    grid-template-columns: 1fr;
  }

  .gallery-column,
  .details-column {
    width: 100%;
  }

  .main-image-container {
    height: auto;
  }

  /* Make tabs more mobile-friendly */
  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .competition-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .competition-meta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .category-badge,
  .cash-alternative {
    margin-bottom: 0.25rem;
  }

  .competition-header .d-flex {
    flex-direction: column;
  }

  .price-info-container {
    align-self: flex-start;
    margin-top: 0.5rem;
  }

  .main-image-container {
    height: auto;
  }

  .time-value {
    font-size: 1.5rem;
  }

  /* Stack the nav tabs for better mobile experience */
  .nav-tabs {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav-tabs .nav-item {
    margin-bottom: 0;
  }

  .countdown-container {
    padding: 0.8rem;
  }

  .countdown-timer {
    gap: 10px;
  }

  .time-value {
    font-size: 1.4rem;
    min-width: 2rem;
  }

  .time-unit::after {
    right: -8px;
    font-size: 1.4rem;
  }

  .time-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .competition-title {
    font-size: 1.2rem;
  }

  .main-image-container {
    height: auto;
  }

  .gallery-thumbnail {
    width: 50px;
    height: 40px;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .competition-detail .social-links {
    justify-content: center;
    gap: 5px;
  }

  .social-links .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .social-links .btn i {
    font-size: 0.9rem;
  }

  .prize-ticket {
    width: 50px;
    height: 35px;
    font-size: 0.8rem;
  }

  .ticket-preset-btn {
    width: 35px;
    height: 35px;
  }

  /* Make countdown more compact on small screens */
  .countdown-timer {
    gap: 5px;
  }

  .competition-header {
    padding: 0.75rem !important;
  }

  .category-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
  }

  .cash-alternative {
    font-size: 0.8rem;
    padding: 2px 8px;
  }

  .price-info-container {
    padding: 5px 10px;
  }
}

/* Tab content responsiveness */
.tab-text-short {
  display: none;
}

@media (max-width: 768px) {
  .tab-text-full {
    display: none;
  }

  .tab-text-short {
    display: inline;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

  .competition-detail .nav-item {
    flex: 1;
    text-align: center;
  }

  .nav-tabs {
    justify-content: space-between;
  }
}

/* Full Width Tabs */
.nav-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.nav-tabs .nav-item {
  flex: 1 !important;
  min-width: 0 !important;
}

.nav-tabs .nav-link {
  width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Hide short text on larger screens */
@media (min-width: 768px) {
  .tab-text-short {
    display: none !important;
  }
}

/* Show short text on mobile */
@media (max-width: 767px) {
  .tab-text-full {
    display: none !important;
  }
}

/* Utility classes for spacing and alignment */
.mt-auto {
  margin-top: auto;
}

.h-100 {
  height: 100%;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Light theme compatibility */
:root.light-theme .competition-header {
  background: rgba(245, 245, 250, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

:root.light-theme .competition-title {
  color: #000;
}

:root.light-theme .competition-details-card,
:root.light-theme .social-share {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

:root.light-theme .countdown-container {
  background: #e3e3e3 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.01) !important;
}

:root.light-theme .skill-question {
  background: #e3e3e3 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03) !important;
}

:root.light-theme .predefined-ticket-selector {
  background: #e3e3e3 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

:root.light-theme .ticket-badge::after {
  border-color: #e3e3e3 transparent transparent transparent !important;
}

:root.light-theme .time-value {
  color: #333 !important;
  text-shadow: none !important;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  :root.light-theme .time-value {
    font-size: 1.5rem;
  }
}

.time-value {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .time-value {
    font-size: 1.5rem;
  }
}

:root.dark-theme .time-value {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  :root.dark-theme .time-value {
    font-size: 1.5rem;
  }
}

:root.light-theme .time-label {
  color: black !important;
}

:root.light-theme .progress {
  background-color: rgba(255 0 0 / 14%) !important
}

:root.light-theme .skill-answer {
  background: #252525 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #ececec !important;
}

:root.light-theme .skill-answer:hover {
  background: var(--primary) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

:root.light-theme .skill-answer.selected {
  background: var(--primary) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

:root.light-theme .ticket-preset-btn {
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #333 !important;
}


:root.light-theme .ticket-preset-btn.active {
  background-color: var(--primary) !important;
  color: white !important;
}

:root.light-theme .ticket-slider-container {
  background: white !important;
}

:root.light-theme .ticket-badge {
  background: white !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #333 !important;
}

/* Light theme overrides for expandable prizes */
:root.light-theme .product__prize {
  background: var(--card-bg);
  border-color: var(--glass-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

:root.light-theme .prize-card__head {
  background: var(--glass-bg);
}

:root.light-theme .prize-card__head:hover {
  background: var(--glass-bg-hover);
}

:root.light-theme .prize-card__name {
  color: #333 !important;
}

:root.light-theme .prize-card__toggle {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-color);
}

:root.light-theme .prize-card__toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

:root.light-theme .prize-card__toggle--open {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

:root.light-theme .prize-card__content {
  background: var(--glass-bg);
  border-top-color: var(--glass-border);
}

:root.light-theme .prize-ticket-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

:root.light-theme .prize-ticket-card.available {
  background: rgba(40, 167, 69, 0.05);
  border-color: rgba(40, 167, 69, 0.3);
}

:root.light-theme .prize-ticket-card.taken {
  background: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.3);
}

:root.light-theme .prize-ticket-card-content {
  color: #333 !important;
}

:root.light-theme .winner-tooltip {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--glass-border);
}

:root.light-theme .tab-content {
  background: #e3e3e3 !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* Final responsive adjustments */

/* Prevent layout shifts on tab change */
.tab-content {
  min-height: 200px;
}

/* Make buttons more touch-friendly on mobile */
/* Skill instruction text styling */
.skill-instruction {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #d12026;
}

@media (max-width: 768px) {
  .buy-btn-container {
    margin-top: 1rem;
  }

  #buy-tickets-btn {
    padding: 0.8rem 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  #buy-tickets-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
  }

  #buy-tickets-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
  }


  .ticket-preset-btn {
    min-width: 38px;
    min-height: 38px;
  }

  /* Adjust spacing in compact areas */
  .competition-details-card {
    padding: 1rem;
  }

  .skill-question,
  .predefined-ticket-selector {
    padding: 0.8rem;
  }

  .skill-answer {
    padding: 0.6rem 1rem;
  }

  /* Style skill instruction text on mobile */
  .skill-instruction {
    font-size: 0.75rem !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-weight: 700;
  }
}

/* Enhance fixed height areas for different screen sizes */
@media (min-width: 1200px) {
  .main-image-container {
    height: auto;
  }
}

@media (min-width: 1400px) {
  .main-image-container {
    height: auto;
  }
}

/* Ensure the layout doesn't get too compressed */
.compact-competition-details {
  min-height: 300px;
}

/* Add missing styles for minus/plus buttons in light theme */
:root.light-theme #minus-btn,
:root.light-theme #plus-btn {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

:root.light-theme #minus-btn:hover,
:root.light-theme #plus-btn:hover {
  background-color: var(--primary-dark, #d12026) !important;
  border-color: var(--primary-dark, #d12026) !important;
}

.question-text {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: capitalize;
  font-family: Orbitron;
}


/* Light theme override for question text */
:root.light-theme .question-text {
  color: var(--primary) !important;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3) !important;
}

/* Free Postal Entries Text Theme Colors */
:root.light-theme .free-postal-text {
  color: black;
}

:root.dark-theme .free-postal-text {
  color: white;
}

:root.dark-theme .product-price small {
  color: white;
  opacity: 0.85;
}

#minus-btn,
#plus-btn {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* Prevent iOS zoom on tap */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure proper touch target */
  touch-action: manipulation;
}

#minus-btn:hover,
#plus-btn:hover {
  background-color: var(--primary-dark, #d12026);
  border-color: var(--primary-dark, #d12026);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#minus-btn:active,
#plus-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

#minus-btn i,
#plus-btn i {
  font-size: 1.5rem;
}

/* Quantity Input Styling */
.quantity-input {
  width: 60px !important;
  height: 32px !important;
  text-align: center !important;
  font-weight: bold !important;
  font-size: 16px !important;
  /* Prevent iOS zoom - minimum 16px */
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  margin: 0 8px !important;
  padding: 0 4px !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  /* Prevent iOS zoom on focus */
  -webkit-text-size-adjust: 100% !important;
  /* Ensure proper touch interaction */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.quantity-input:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Light theme quantity input */
:root.light-theme .quantity-input {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: #333 !important;
}

:root.light-theme .quantity-input:focus {
  background: white !important;
  border-color: var(--primary) !important;
}

/* Light theme styles for prize popup removed - now using expandable interface */

/* Mobile Skill Question Styling */
@media (max-width: 768px) {
  .skill-question-title {
    text-align: center !important;
  }


  .question-text {
    line-height: 1.3 !important;
  }
}

/* ===== GoCollect / instant-win leaderboard (matches site glass + primary theme) ===== */
/* Tab icon: trading card graphic (same as account GoCollect Cards) */
.gocollect-card-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.gocollect-card-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.pokemon-leaderboard-container .pokemon-lb-container {
  position: relative;
  width: 100%;
  font-family: var(--font-primary, "Rajdhani", sans-serif);
}

.pokemon-leaderboard-container .gocollect-lb-hero-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: gocollectLbHeroSpin 5s linear infinite;
}

@keyframes gocollectLbHeroSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.pokemon-leaderboard-container .pokemon-lb-board {
  background: var(--glass-bg);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pokemon-leaderboard-container .pokemon-lb-topbar {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 16px;
}

.pokemon-leaderboard-container .pokemon-lb-topbar-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pokemon-leaderboard-container .pokemon-lb-topbar-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pokemon-leaderboard-container .pokemon-lb-topbar-title {
  font-family: var(--font-heading, "Orbitron", sans-serif);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.pokemon-leaderboard-container .pokemon-lb-topbar-sub {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pokemon-leaderboard-container .pokemon-lb-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.pokemon-leaderboard-container .pokemon-lb-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  animation: pokemonLbPulse 1.4s ease-in-out infinite;
}

@keyframes pokemonLbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.pokemon-leaderboard-container .pokemon-lb-col-headers {
  display: grid;
  grid-template-columns: 60px 1fr 100px 120px;
  padding: 12px 24px;
  background: var(--section-bg-alt2, var(--glass-bg-hover));
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
}

.pokemon-leaderboard-container .pokemon-lb-col-headers span:nth-child(3) { text-align: center; }
.pokemon-leaderboard-container .pokemon-lb-col-headers span:nth-child(4) { text-align: right; }

.pokemon-leaderboard-container .pokemon-lb-rows {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pokemon-leaderboard-container .pokemon-lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 120px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: pokemonLbRowIn 0.4s ease forwards;
}

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

.pokemon-leaderboard-container .pokemon-lb-row:hover {
  background: var(--glass-bg-hover);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--glass-border));
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--primary);
}

.pokemon-leaderboard-container .pokemon-lb-row.pokemon-lb-top1 {
  background: color-mix(in srgb, var(--primary) 14%, var(--glass-bg));
  border-color: color-mix(in srgb, var(--primary) 45%, var(--glass-border));
}

.pokemon-leaderboard-container .pokemon-lb-row.pokemon-lb-top2 {
  background: color-mix(in srgb, #94a3b8 12%, var(--glass-bg));
  border-color: color-mix(in srgb, #94a3b8 35%, var(--glass-border));
}

.pokemon-leaderboard-container .pokemon-lb-row.pokemon-lb-top3 {
  background: color-mix(in srgb, #c08457 12%, var(--glass-bg));
  border-color: color-mix(in srgb, #c08457 38%, var(--glass-border));
}

.pokemon-leaderboard-container .pokemon-lb-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, "Orbitron", sans-serif);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pokemon-leaderboard-container .pokemon-lb-badge-gold {
  background: linear-gradient(145deg, #fde68a, #eab308);
  color: #422006;
  border: 2px solid color-mix(in srgb, #ca8a04 70%, #422006);
  animation: pokemonLbMedalPop 2.5s ease-in-out infinite;
}

.pokemon-leaderboard-container .pokemon-lb-badge-silver {
  background: linear-gradient(145deg, #f1f5f9, #94a3b8);
  color: #1e293b;
  border: 2px solid #94a3b8;
  animation: pokemonLbMedalPop 2.5s ease-in-out infinite 0.3s;
}

.pokemon-leaderboard-container .pokemon-lb-badge-bronze {
  background: linear-gradient(145deg, #fdba74, #c2410c);
  color: #431407;
  border: 2px solid #9a3412;
  animation: pokemonLbMedalPop 2.5s ease-in-out infinite 0.6s;
}

.pokemon-leaderboard-container .pokemon-lb-badge-num {
  background: var(--glass-bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  font-size: 10px;
  font-family: var(--font-primary, "Rajdhani", sans-serif);
}

@keyframes pokemonLbMedalPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pokemon-leaderboard-container .pokemon-lb-player-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.pokemon-leaderboard-container .pokemon-lb-row.pokemon-lb-top1 .pokemon-lb-player-name {
  color: var(--primary);
}

.pokemon-leaderboard-container .pokemon-lb-poke-count {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
}

.pokemon-leaderboard-container .pokemon-lb-poke-value {
  text-align: right;
}

.pokemon-leaderboard-container .pokemon-lb-value-num {
  font-family: var(--font-primary, "Rajdhani", sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.pokemon-leaderboard-container .pokemon-lb-value-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
  opacity: 0.9;
}

.pokemon-leaderboard-container .pokemon-lb-row.pokemon-lb-top1 .pokemon-lb-value-num {
  font-size: 18px;
}

.pokemon-leaderboard-container .pokemon-lb-board-footer {
  background: var(--glass-bg-hover);
  border-top: 1px solid var(--glass-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .pokemon-leaderboard-container .pokemon-lb-topbar {
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .pokemon-leaderboard-container .pokemon-lb-topbar-title {
    font-size: 15px;
  }

  .pokemon-leaderboard-container .pokemon-lb-topbar-sub {
    font-size: 11px;
  }

  .pokemon-leaderboard-container .gocollect-lb-hero-icon {
    width: 22px;
    height: 22px;
  }

  .pokemon-leaderboard-container .pokemon-lb-live-pill {
    display: none;
  }

  .pokemon-leaderboard-container .pokemon-lb-board-footer {
    display: none;
  }

  .pokemon-leaderboard-container .pokemon-lb-col-headers {
    grid-template-columns: 48px 1fr 72px 88px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .pokemon-leaderboard-container .pokemon-lb-rows {
    padding: 0;
    gap: 0;
  }

  .pokemon-leaderboard-container .pokemon-lb-row {
    grid-template-columns: 48px 1fr 72px 88px;
    padding: 10px 8px;
    border-radius: 0;
  }

  .pokemon-leaderboard-container .pokemon-lb-badge {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  .pokemon-leaderboard-container .pokemon-lb-player-name {
    font-size: 14px;
  }

  .pokemon-leaderboard-container .pokemon-lb-poke-count {
    font-size: 14px;
  }

  .pokemon-leaderboard-container .pokemon-lb-value-num {
    font-size: 14px;
  }

  .pokemon-leaderboard-container .pokemon-lb-value-label {
    display: none;
  }
}

/* Light theme: softer shadow on white glass (vars already switch) */
.light-theme .pokemon-leaderboard-container .pokemon-lb-board,
html.light-theme .pokemon-leaderboard-container .pokemon-lb-board,
[data-theme="light"] .pokemon-leaderboard-container .pokemon-lb-board {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Empty / loading states: keep readable in any page theme */
.light-theme .pokemon-leaderboard-empty,
html.light-theme .pokemon-leaderboard-empty,
[data-theme="light"] .pokemon-leaderboard-empty {
  color: #6b7280 !important;
}

.dark-theme .pokemon-leaderboard-empty,
html.dark-theme .pokemon-leaderboard-empty,
[data-theme="dark"] .pokemon-leaderboard-empty {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* My Pokemons modal – same card design as account Pokemon catalogue */
.my-pokemons-modal .modal-body {
  min-height: 120px;
}

.my-pokemons-catalogue .pokemon-catalogue-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .my-pokemons-catalogue .pokemon-catalogue-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.my-pokemons-catalogue .pokemon-catalogue-card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.my-pokemons-catalogue .pokemon-catalogue-card {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.my-pokemons-catalogue .pokemon-catalogue-card:hover {
  transform: translateY(-4px);
}

.my-pokemons-catalogue .pokemon-catalogue-card--standard {
  background: #0d0d12;
  border: 2.5px solid #22c55e;
  box-shadow: 0 0 16px 3px rgba(34, 197, 94, 0.45), 0 0 36px 8px rgba(34, 197, 94, 0.22);
}

.my-pokemons-catalogue .pokemon-catalogue-card--standard:hover {
  box-shadow: 0 0 22px 6px rgba(34, 197, 94, 0.6), 0 0 50px 12px rgba(34, 197, 94, 0.32);
}

.my-pokemons-catalogue .pokemon-catalogue-card--rare {
  background: #0d0d12;
  border: 2.5px solid #a855f7;
  box-shadow: 0 0 18px 4px rgba(168, 85, 247, 0.5), 0 0 44px 10px rgba(168, 85, 247, 0.25);
}

.my-pokemons-catalogue .pokemon-catalogue-card--rare:hover {
  box-shadow: 0 0 26px 8px rgba(168, 85, 247, 0.65), 0 0 60px 16px rgba(168, 85, 247, 0.35);
}

.my-pokemons-catalogue .pokemon-catalogue-card--legendary {
  background: #0d0d12;
  border: 2.5px solid #FFCB05;
  box-shadow: 0 0 16px 3px rgba(255, 203, 5, 0.4), 0 0 36px 8px rgba(255, 203, 5, 0.2);
}

.my-pokemons-catalogue .pokemon-catalogue-card--legendary:hover {
  box-shadow: 0 0 22px 6px rgba(255, 203, 5, 0.55), 0 0 50px 12px rgba(255, 203, 5, 0.3);
}

.my-pokemons-catalogue .pokemon-catalogue-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

.my-pokemons-catalogue .pokemon-catalogue-card--locked {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(158deg, #182452 0%, #223F6F 50%, #182452 100%);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(500px) rotateX(1.5deg) rotateY(-0.5deg);
  transform-style: preserve-3d;
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked:hover {
  transform: perspective(500px) rotateX(1.5deg) rotateY(-0.5deg) translateY(-3px);
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked.pokemon-catalogue-card--mystery {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked.pokemon-catalogue-card--mystery::after {
  display: none;
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked .pokemon-catalogue-card-inner {
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked .pokemon-catalogue-card-inner--mystery {
  flex-direction: row;
  gap: 0;
  padding: 0;
}
.my-pokemons-catalogue .pokemon-catalogue-mystery-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
.my-pokemons-catalogue .pokemon-catalogue-card--locked::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%,
    transparent 100%
  );
  animation: pokemon-locked-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pokemon-locked-shine {
  0% { transform: translateX(-100%); }
  35% { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}
.my-pokemons-catalogue .pokemon-catalogue-card-unknown {
  display: block;
  font-size: 75px;
  color: rgb(0 0 0 / 34%);
  line-height: 1;
}
.my-pokemons-catalogue .pokemon-catalogue-card-find-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #F6CD07;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-shadow:
    -2px -2px 0 #0d1a33,
    2px -2px 0 #0d1a33,
    -2px 2px 0 #0d1a33,
    2px 2px 0 #0d1a33,
    -1px -1px 0 #0d1a33,
    1px -1px 0 #0d1a33,
    -1px 1px 0 #0d1a33,
    1px 1px 0 #0d1a33;
}
.light-theme .my-pokemons-catalogue .pokemon-catalogue-card--locked:not(.pokemon-catalogue-card--mystery),
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card--locked:not(.pokemon-catalogue-card--mystery),
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card--locked:not(.pokemon-catalogue-card--mystery) {
  border-color: rgba(24, 36, 82, 0.4);
  background: linear-gradient(158deg, #182452 0%, #223F6F 50%, #182452 100%);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.15);
}
.light-theme .my-pokemons-catalogue .pokemon-catalogue-card--locked.pokemon-catalogue-card--mystery,
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card--locked.pokemon-catalogue-card--mystery,
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card--locked.pokemon-catalogue-card--mystery {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-unknown,
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-unknown,
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card-unknown {
  color: rgb(0 0 0 / 34%);
}
.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-find-text,
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-find-text,
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card-find-text {
  color: #F6CD07;
  text-shadow:
    -2px -2px 0 #0d1a33,
    2px -2px 0 #0d1a33,
    -2px 2px 0 #0d1a33,
    2px 2px 0 #0d1a33,
    -1px -1px 0 #0d1a33,
    1px -1px 0 #0d1a33,
    -1px 1px 0 #0d1a33,
    1px 1px 0 #0d1a33;
}

.my-pokemons-catalogue .pokemon-catalogue-card-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.my-pokemons-catalogue .pokemon-catalogue-card-placeholder {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px;
  text-align: center;
}

.my-pokemons-catalogue .pokemon-catalogue-label {
  margin-top: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
}

.my-pokemons-catalogue .pokemon-catalogue-card-value {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.my-pokemons-catalogue .pokemon-catalogue-label.lbl-standard {
  color: #22c55e;
}

.my-pokemons-catalogue .pokemon-catalogue-label.lbl-rare {
  color: #a855f7;
}

.my-pokemons-catalogue .pokemon-catalogue-label.lbl-legendary {
  color: #FFCB05;
}

/* Light theme: My Pokemons modal (match account page Pokemon catalogue) */
.light-theme .my-pokemons-modal .modal-content,
html.light-theme .my-pokemons-modal .modal-content,
[data-theme="light"] .my-pokemons-modal .modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .my-pokemons-modal .modal-header,
html.light-theme .my-pokemons-modal .modal-header,
[data-theme="light"] .my-pokemons-modal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #212529;
}

.light-theme .my-pokemons-modal .modal-title,
html.light-theme .my-pokemons-modal .modal-title,
[data-theme="light"] .my-pokemons-modal .modal-title {
  color: #212529;
}

.light-theme .my-pokemons-modal .modal-body,
html.light-theme .my-pokemons-modal .modal-body,
[data-theme="light"] .my-pokemons-modal .modal-body {
  color: #212529;
}

.light-theme .my-pokemons-modal .btn-close,
html.light-theme .my-pokemons-modal .btn-close,
[data-theme="light"] .my-pokemons-modal .btn-close {
  filter: none;
}

.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-value,
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-value,
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card-value {
  color: #374151;
}

.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-placeholder,
html.light-theme .my-pokemons-catalogue .pokemon-catalogue-card-placeholder,
[data-theme="light"] .my-pokemons-catalogue .pokemon-catalogue-card-placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.light-theme .my-pokemons-modal .text-muted,
html.light-theme .my-pokemons-modal .text-muted,
[data-theme="light"] .my-pokemons-modal .text-muted {
  color: #6c757d !important;
}

/* Light theme: My Pokemons button next to tickets */
.light-theme .btn-my-pokemons,
html.light-theme .btn-my-pokemons,
[data-theme="light"] .btn-my-pokemons {
  background: linear-gradient(135deg, #c41c22 0%, #a0181d 100%);
  border-color: rgba(196, 28, 34, 0.5);
  color: #fff;
}

.light-theme .btn-my-pokemons:hover,
html.light-theme .btn-my-pokemons:hover,
[data-theme="light"] .btn-my-pokemons:hover {
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 28, 34, 0.35);
}

/* Dark theme: My Pokemons modal (match account page) */
.dark-theme .my-pokemons-modal .modal-content,
html.dark-theme .my-pokemons-modal .modal-content,
[data-theme="dark"] .my-pokemons-modal .modal-content {
  background: var(--glass-bg, rgba(30, 30, 35, 0.98));
  border-color: var(--glass-border, rgba(255, 255, 255, 0.1));
}

.dark-theme .my-pokemons-modal .modal-header,
html.dark-theme .my-pokemons-modal .modal-header,
[data-theme="dark"] .my-pokemons-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.dark-theme .my-pokemons-modal .modal-title,
html.dark-theme .my-pokemons-modal .modal-title,
[data-theme="dark"] .my-pokemons-modal .modal-title {
  color: rgba(255, 255, 255, 0.95);
}

.dark-theme .my-pokemons-modal .modal-body,
html.dark-theme .my-pokemons-modal .modal-body,
[data-theme="dark"] .my-pokemons-modal .modal-body {
  color: rgba(255, 255, 255, 0.9);
}

.dark-theme .my-pokemons-modal .btn-close,
html.dark-theme .my-pokemons-modal .btn-close,
[data-theme="dark"] .my-pokemons-modal .btn-close {
  filter: invert(1);
}

.dark-theme .my-pokemons-catalogue .pokemon-catalogue-card-value,
html.dark-theme .my-pokemons-catalogue .pokemon-catalogue-card-value,
[data-theme="dark"] .my-pokemons-catalogue .pokemon-catalogue-card-value {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .my-pokemons-catalogue .pokemon-catalogue-card-placeholder,
html.dark-theme .my-pokemons-catalogue .pokemon-catalogue-card-placeholder,
[data-theme="dark"] .my-pokemons-catalogue .pokemon-catalogue-card-placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.dark-theme .my-pokemons-modal .text-muted,
html.dark-theme .my-pokemons-modal .text-muted,
[data-theme="dark"] .my-pokemons-modal .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Dark theme: My Pokemons button */
.dark-theme .btn-my-pokemons,
html.dark-theme .btn-my-pokemons,
[data-theme="dark"] .btn-my-pokemons {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border-color: rgba(34, 197, 94, 0.55);
  color: #fff;
}

.dark-theme .btn-my-pokemons:hover,
html.dark-theme .btn-my-pokemons:hover,
[data-theme="dark"] .btn-my-pokemons:hover {
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.45);
}

/* ═══════════════════════════════════════════════════════════
   GOCOLLECT GUIDE SECTION
   Shown above the competition tabs when GoCollect instant
   prizes are active. Scoped to .gc-guide-section to avoid
   conflicts with Bootstrap or existing site styles.
   ─ ".gc-tc" replaces Bootstrap's ".card" class inside stacks
═══════════════════════════════════════════════════════════ */
.gc-guide-section {
  width: 100%;
  position: relative;
  font-family: 'Barlow', 'Rajdhani', sans-serif;
  --gc-panel-bg: var(--glass-bg);
  --gc-panel-border: var(--glass-border);
  --gc-panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --gc-step-divider: var(--glass-border);
  --gc-title-color: var(--text-color);
  --gc-title-accent: var(--text-color);
  --gc-title-shadow: none;
  --gc-body-text: var(--text-color);
  --gc-muted-text: var(--text-muted);
  --gc-faint-text: var(--text-muted);
  --gc-dot-inactive: var(--glass-border);
  --gc-particles-opacity: 0.35;
}

/* ── Section headline ── */
.gc-guide-section .gc-headline {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.gc-guide-section .gc-headline::before {
  content: '';
  display: block;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  margin: 0 auto 14px;
}
.gc-guide-section .gc-eyebrow {
  font-family: 'Cinzel', 'Orbitron', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #c9a227;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
}
.gc-guide-section .gc-title {
  font-family: 'Cinzel', 'Orbitron', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: var(--gc-title-color);
  text-shadow: var(--gc-title-shadow);
  letter-spacing: 0.04em;
}
.gc-guide-section .gc-title span { color: var(--gc-title-accent); }
.gc-guide-section .gc-headline::after {
  content: '';
  display: block;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  margin: 14px auto 0;
}

/* ── Main panel ── */
.gc-guide-section .gc-panel {
  position: relative;
  background: var(--gc-panel-bg);
  border-radius: 18px;
  border: 1px solid var(--gc-panel-border);
  overflow: hidden;
  box-shadow: var(--gc-panel-shadow);
}
.gc-guide-section .gc-panel::before {
  display: none;
}

/* Corner ornaments */
.gc-guide-section .gc-corner { position: absolute; z-index: 1; pointer-events: none; }
.gc-guide-section .gc-corner-tl { top: 10px; left: 10px; }
.gc-guide-section .gc-corner-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.gc-guide-section .gc-corner-bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.gc-guide-section .gc-corner-br { bottom: 10px; right: 10px; transform: scale(-1); }

/* ── Particle canvas ── */
.gc-guide-section .gc-particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--gc-particles-opacity);
}

/* ── Steps grid ── */
.gc-guide-section .gc-steps-carousel {
  position: relative;
  z-index: 2;
}

.gc-guide-section .gc-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.gc-guide-section .gc-steps-nav {
  display: none;
}

.gc-guide-section .gc-steps-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gc-dot-inactive);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gc-guide-section .gc-steps-dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #e8c96a;
  box-shadow: 0 0 8px rgba(232, 201, 106, 0.45);
}
.gc-guide-section .gc-step:not(:last-child) {
  border-right: 1px solid var(--gc-step-divider);
}
.gc-guide-section .gc-step {
  position: relative;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* rarity colour tokens */
/* Tier colours: Standard = green, Rare = purple, Legendary = gold */
.gc-guide-section .gc-step[data-r="common"]    { --c:#22c55e; --cd:rgba(34,197,94,0.14); --cg:rgba(34,197,94,0.24); --ct:#052e16; }
.gc-guide-section .gc-step[data-r="rare"]      { --c:#a855f7; --cd:rgba(168,85,247,0.12); --cg:rgba(168,85,247,0.28); --ct:#180d26; }
.gc-guide-section .gc-step[data-r="legendary"] { --c:#e8c96a; --cd:rgba(232,201,106,0.12); --cg:rgba(232,201,106,0.28); --ct:#1a1508; }

/* Long vs short step copy — short shown on mobile only */
.gc-guide-section .gc-step-body--short { display: none; }

/* top glow line per step */
.gc-guide-section .gc-step::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0.6;
}

/* ── Step head ── */
.gc-guide-section .gc-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

/* ── Animated card stack – .gc-tc replaces Bootstrap's .card ── */
.gc-guide-section .gc-card-stack {
  position: relative;
  width: 52px; height: 68px;
  flex-shrink: 0;
}
.gc-guide-section .gc-card-stack .gc-tc {
  position: absolute;
  width: 42px; height: 56px;
  border-radius: 5px;
  border: 1.5px solid var(--c);
  background: var(--ct);
  box-shadow: 0 0 10px var(--cg);
}
.gc-guide-section .gc-card-stack .gc-tc:nth-child(1) {
  top: 0; left: 0;
  transform: rotate(-6deg);
  opacity: 0.4;
}
.gc-guide-section .gc-card-stack .gc-tc:nth-child(2) {
  top: 4px; left: 4px;
  transform: rotate(-2deg);
  opacity: 0.65;
}
.gc-guide-section .gc-card-stack .gc-tc:nth-child(3) {
  top: 8px; left: 8px;
  transform: rotate(1deg);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gcFloatCard 3s ease-in-out infinite;
}
@keyframes gcFloatCard {
  0%,100% { transform: rotate(1deg) translateY(0); }
  50%      { transform: rotate(1deg) translateY(-3px); }
}

/* card inner */
.gc-guide-section .gc-card-inner {
  width: 100%; height: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gc-guide-section .gc-card-inner-top {
  height: 8px;
  background: var(--c);
  opacity: 0.9;
}
.gc-guide-section .gc-card-inner-art {
  flex: 1;
  background: var(--ct);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.gc-guide-section .gc-card-inner-bot {
  padding: 3px 4px;
  background: rgba(0,0,0,0.4);
}
.gc-guide-section .gc-card-inner-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.6;
  margin-bottom: 2px;
}
.gc-guide-section .gc-card-inner-bar2 {
  height: 2px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.3;
  width: 60%;
}

/* ── Step number badge ── */
.gc-guide-section .gc-step-num-wrap { flex: 1; }
.gc-guide-section .gc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  background: var(--cd);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  box-shadow: 0 0 8px var(--cg);
  margin-bottom: 8px;
}
.gc-guide-section .gc-step-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gc-title-color);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.gc-guide-section .gc-rarity-pill {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c);
  background: var(--cd);
  border: 1px solid var(--c);
  border-radius: 3px;
  padding: 2px 7px;
  margin-top: 5px;
  opacity: 0.9;
}

.gc-guide-section .gc-guide-highlight {
  color: #e8c96a;
  font-weight: 700;
}

/* ── Step body text ── */
.gc-guide-section .gc-step-body {
  font-size: 13px;
  color: var(--gc-body-text);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ── Rarity tier rows ── */
.gc-guide-section .gc-rarity-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gc-guide-section .gc-rarity-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gc-guide-section .gc-rarity-glow {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gc-guide-section .gc-rarity-row-label {
  font-size: 11px;
  color: var(--gc-muted-text);
  font-weight: 500;
  flex: 1;
}
.gc-guide-section .gc-rarity-row-val {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--gc-faint-text);
}

/* ── Vault meter (step 2) ── */
.gc-guide-section .gc-vault {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(232,201,106,0.25);
  border-radius: 8px;
  padding: 12px 14px;
}
.gc-guide-section .gc-vault-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.gc-guide-section .gc-vault-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(201,162,39,0.85);
  text-transform: uppercase;
}
.gc-guide-section .gc-vault-count {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #e8c96a;
}
.gc-guide-section .gc-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gc-guide-section .gc-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
}
.gc-guide-section .gc-bar-fill.gc-bar-animate {
  animation: gcBarGrow 1.6s 0.7s ease forwards;
}
@keyframes gcBarGrow { to { width: 68%; } }
.gc-guide-section .gc-bar-fill-gold { background: linear-gradient(90deg,#b45309,#e8c96a); }
.gc-guide-section .gc-vault-icons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.gc-guide-section .gc-mini-card {
  width: 18px; height: 24px;
  border-radius: 2px;
  border: 1px solid #22c55e;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .gc-guide-section .gc-headline {
    margin-bottom: 14px;
  }
  .gc-guide-section .gc-headline::before,
  .gc-guide-section .gc-headline::after {
    width: 72px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .gc-guide-section .gc-title {
    font-size: 18px;
  }
  .gc-jackpot-notice {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
  }
  .gc-jackpot-notice-text {
    font-size: 13px;
  }
  .gc-jackpot-notice-amount-row {
    padding: 10px 14px;
  }
  .gc-jackpot-notice-icon {
    font-size: 2rem;
  }
  .gc-jackpot-notice-value {
    font-size: clamp(1.55rem, 6vw, 1.9rem);
  }
  .gc-jackpot-notice-footnote {
    font-size: 11px;
  }
  .gc-jackpot-breakdown-btn {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 100%;
  }
  .gc-jpm-hero-amount {
    font-size: 1.5rem;
  }
  .gc-jpm-equal-share {
    font-size: 1.25rem;
  }
  .gc-jpm-table {
    font-size: 13px;
  }
  .gc-jpm-table thead th,
  .gc-jpm-table tbody td {
    padding: 8px 6px;
  }
  .gc-guide-section .gc-panel {
    border-radius: 12px;
  }
  .gc-guide-section .gc-corner,
  .gc-guide-section .gc-particles-canvas {
    display: none;
  }
  .gc-guide-section .gc-steps {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .gc-guide-section .gc-steps::-webkit-scrollbar {
    display: none;
  }
  .gc-guide-section .gc-step {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 14px 16px 10px;
    box-sizing: border-box;
  }
  .gc-guide-section .gc-step:not(:last-child) {
    border-right: none;
    border-bottom: none;
  }
  .gc-guide-section .gc-steps-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 10px;
  }
  .gc-guide-section .gc-step::before {
    left: 8%;
    right: 8%;
  }
  .gc-guide-section .gc-step-head {
    gap: 10px;
    margin-bottom: 8px;
  }
  .gc-guide-section .gc-card-stack {
    display: none;
  }
  .gc-guide-section .gc-step-title {
    font-size: 15px;
  }
  .gc-guide-section .gc-rarity-pill {
    font-size: 9px;
    padding: 2px 7px;
  }
  .gc-guide-section .gc-step-body--full {
    display: none;
  }
  .gc-guide-section .gc-step-body--short {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0;
  }
  .gc-guide-section .gc-step-body {
    font-size: 13px;
    line-height: 1.45;
  }
  .gc-guide-section .gc-rarity-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    margin-top: 8px;
  }
  .gc-guide-section .gc-rarity-row {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 0;
    gap: 5px;
  }
  .gc-guide-section .gc-rarity-row-val {
    display: none;
  }
  .gc-guide-section .gc-rarity-row-label {
    flex: 0 1 auto;
    font-size: 10px;
    white-space: nowrap;
  }
}

/* GoCollect guide + leaderboard — match competition-details-card surfaces */
:root.light-theme .gc-guide-section .gc-panel,
html.light-theme .gc-guide-section .gc-panel,
[data-theme="light"] .gc-guide-section .gc-panel,
:root.light-theme .gcollect-global-lb .gclb-root,
html.light-theme .gcollect-global-lb .gclb-root,
[data-theme="light"] .gcollect-global-lb .gclb-root {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

:root.light-theme .gcollect-global-lb .gclb-row--gold .gclb-items,
:root.light-theme .gcollect-global-lb .gclb-row--gold .gclb-value-num,
html.light-theme .gcollect-global-lb .gclb-row--gold .gclb-items,
html.light-theme .gcollect-global-lb .gclb-row--gold .gclb-value-num,
[data-theme="light"] .gcollect-global-lb .gclb-row--gold .gclb-items,
[data-theme="light"] .gcollect-global-lb .gclb-row--gold .gclb-value-num {
  color: var(--text-color);
}

:root.light-theme .gcollect-global-lb .gclb-row--silver .gclb-items,
:root.light-theme .gcollect-global-lb .gclb-row--silver .gclb-value-num,
html.light-theme .gcollect-global-lb .gclb-row--silver .gclb-items,
html.light-theme .gcollect-global-lb .gclb-row--silver .gclb-value-num,
[data-theme="light"] .gcollect-global-lb .gclb-row--silver .gclb-items,
[data-theme="light"] .gcollect-global-lb .gclb-row--silver .gclb-value-num {
  color: var(--text-color);
}

:root.light-theme .gcollect-global-lb .gclb-stat-num,
html.light-theme .gcollect-global-lb .gclb-stat-num,
[data-theme="light"] .gcollect-global-lb .gclb-stat-num {
  color: var(--text-color);
}

:root.light-theme .gc-guide-section .gc-headline::before,
:root.light-theme .gc-guide-section .gc-headline::after,
html.light-theme .gc-guide-section .gc-headline::before,
html.light-theme .gc-guide-section .gc-headline::after,
[data-theme="light"] .gc-guide-section .gc-headline::before,
[data-theme="light"] .gc-guide-section .gc-headline::after {
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

:root.light-theme .gc-guide-section .gc-step[data-r="common"],
html.light-theme .gc-guide-section .gc-step[data-r="common"],
[data-theme="light"] .gc-guide-section .gc-step[data-r="common"],
:root.light-theme .gc-guide-section .gc-step[data-r="rare"],
html.light-theme .gc-guide-section .gc-step[data-r="rare"],
[data-theme="light"] .gc-guide-section .gc-step[data-r="rare"],
:root.light-theme .gc-guide-section .gc-step[data-r="legendary"],
html.light-theme .gc-guide-section .gc-step[data-r="legendary"],
[data-theme="light"] .gc-guide-section .gc-step[data-r="legendary"] {
  --ct: var(--card-bg);
}

:root.light-theme .gc-guide-section .gc-card-inner-bot,
html.light-theme .gc-guide-section .gc-card-inner-bot,
[data-theme="light"] .gc-guide-section .gc-card-inner-bot {
  background: var(--glass-border);
}

/* Light theme — readable pills + gold highlight on white panels */
:root.light-theme .gc-guide-section .gc-guide-highlight,
html.light-theme .gc-guide-section .gc-guide-highlight,
[data-theme="light"] .gc-guide-section .gc-guide-highlight {
  color: #b45309;
}

:root.light-theme .gc-guide-section .gc-rarity-pill,
html.light-theme .gc-guide-section .gc-rarity-pill,
[data-theme="light"] .gc-guide-section .gc-rarity-pill {
  opacity: 1;
}

:root.light-theme .gc-guide-section .gc-step[data-r="common"] .gc-rarity-pill,
html.light-theme .gc-guide-section .gc-step[data-r="common"] .gc-rarity-pill,
[data-theme="light"] .gc-guide-section .gc-step[data-r="common"] .gc-rarity-pill {
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
  border-color: #16a34a;
}

:root.light-theme .gc-guide-section .gc-step[data-r="rare"] .gc-rarity-pill,
html.light-theme .gc-guide-section .gc-step[data-r="rare"] .gc-rarity-pill,
[data-theme="light"] .gc-guide-section .gc-step[data-r="rare"] .gc-rarity-pill {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
  border-color: #7c3aed;
}

:root.light-theme .gc-guide-section .gc-step[data-r="legendary"] .gc-rarity-pill,
html.light-theme .gc-guide-section .gc-step[data-r="legendary"] .gc-rarity-pill,
[data-theme="light"] .gc-guide-section .gc-step[data-r="legendary"] .gc-rarity-pill {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
  border-color: #d97706;
}

/* Tickets — link to view your numbers (same API as My Account → View Tickets) */
.competition-tickets-view-link {
  font-size: 0.9rem;
  line-height: 1.4;
}
.competition-tickets-view-link .competition-view-my-tickets-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
/* Red quotation marks so the line reads clearly */
.competition-tickets-view-link .competition-view-my-tickets-link::before,
.competition-tickets-view-link .competition-view-my-tickets-link::after {
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 1.15em;
  line-height: 0;
}
.competition-tickets-view-link .competition-view-my-tickets-link::before {
  content: '\201C';
  margin-right: 0.12em;
}
.competition-tickets-view-link .competition-view-my-tickets-link::after {
  content: '\201D';
  margin-left: 0.12em;
}
.competition-tickets-view-link .competition-view-my-tickets-link:hover {
  color: var(--primary, #d12026);
}
.competition-tickets-view-link .competition-tickets-click-hint {
  text-decoration: underline;
  font-weight: 600;
}
:root.light-theme .competition-tickets-view-link .competition-view-my-tickets-link,
html.light-theme .competition-tickets-view-link .competition-view-my-tickets-link,
[data-theme="light"] .competition-tickets-view-link .competition-view-my-tickets-link {
  color: #334155;
}
.dark-theme .competition-tickets-view-link .competition-view-my-tickets-link,
html.dark-theme .competition-tickets-view-link .competition-view-my-tickets-link,
[data-theme="dark"] .competition-tickets-view-link .competition-view-my-tickets-link {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 576px) {
  .competition-tickets-view-link,
  .competition-tickets-view-link .competition-view-my-tickets-link {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .competition-tickets-view-link .competition-view-my-tickets-link::before,
  .competition-tickets-view-link .competition-view-my-tickets-link::after {
    font-size: 1.05em;
  }
}



/* Ticket details modal (aligned with account page) */
#ticketDetailsModal .btn-close {
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) !important;
  opacity: 1 !important;
}
#ticketDetailsModal .btn-close:hover {
  opacity: 0.8 !important;
}
@media (max-width: 768px) {
  #ticketDetailsModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  #ticketDetailsModal .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  #ticketDetailsModal .ticket-numbers {
    gap: 0.5rem;
  }
  #ticketDetailsModal .ticket-number {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   GOCOLLECT GLOBAL LEADERBOARD PREVIEW (under guide section)
   Scoped: .gcollect-global-lb — matches gocollect_global_leaderboard.html
═══════════════════════════════════════════════════════════ */
.gcollect-global-lb {
  width: 100%;
  font-family: 'Barlow', 'Rajdhani', sans-serif;
  --gclb-bg: var(--glass-bg);
  --gclb-border: var(--glass-border);
  --gclb-head-bg: transparent;
  --gclb-head-border: var(--glass-border);
  --gclb-footer-bg: transparent;
  --gclb-footer-border: var(--glass-border);
  --gclb-title: var(--text-color);
  --gclb-eyebrow: var(--text-muted);
  --gclb-subtitle: var(--text-muted);
  --gclb-label: var(--text-color);
  --gclb-label-border: var(--glass-border);
  --gclb-footer-text: var(--text-color);
  --gclb-player-name: var(--text-color);
  --gclb-player-sub: var(--text-muted);
  --gclb-row-border: var(--glass-border);
  --gclb-empty-text: var(--text-muted);
  --gclb-stat-bg: var(--card-bg);
  --gclb-stat-border: var(--glass-border);
  --gclb-stat-label: var(--text-muted);
  --gclb-jackpot-bg: var(--card-bg);
  --gclb-jackpot-border: var(--glass-border);
  --gclb-jackpot-muted: var(--text-muted);
  --gclb-dim-rank: var(--text-color);
  --gclb-dim-value: var(--text-color);
  --gclb-dim-row-bg: transparent;
  --gclb-prize-empty: var(--text-muted);
}
.gcollect-global-lb .gclb-root {
  background: var(--gclb-bg);
  border-radius: 16px;
  border: 1px solid var(--gclb-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.gcollect-global-lb .gclb-root::before {
  display: none;
}
.gcollect-global-lb .gclb-corner {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 28px;
  height: 28px;
}
.gcollect-global-lb .gclb-corner svg { width: 100%; height: 100%; }
.gcollect-global-lb .gclb-tl { top: 8px; left: 8px; }
.gcollect-global-lb .gclb-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.gcollect-global-lb .gclb-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.gcollect-global-lb .gclb-br { bottom: 8px; right: 8px; transform: scale(-1); }

.gcollect-global-lb .gclb-head {
  position: relative;
  z-index: 1;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gclb-head-border);
  background: var(--gclb-head-bg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gcollect-global-lb .gclb-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gclb-eyebrow);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gcollect-global-lb .gclb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8c96a;
  animation: gclbLivePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes gclbLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.gcollect-global-lb .gclb-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gclb-title);
  letter-spacing: 0.03em;
  line-height: 1;
}
.gcollect-global-lb .gclb-tie-note {
  margin: 8px 0 0;
  max-width: 42rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gclb-subtitle);
}
.gcollect-global-lb .gclb-subtitle {
  font-size: 11px;
  color: var(--gclb-subtitle);
  margin-top: 6px;
  font-weight: 500;
}
.gcollect-global-lb .gclb-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.gcollect-global-lb .gclb-stat-box {
  background: var(--gclb-stat-bg);
  border: 1px solid var(--gclb-stat-border);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
}
.gcollect-global-lb .gclb-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #e8c96a;
  display: block;
}
.gcollect-global-lb .gclb-stat-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gclb-stat-label);
  text-transform: uppercase;
}

.gcollect-global-lb .gclb-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gcollect-global-lb .gclb-cols {
  display: grid;
  grid-template-columns: 36px 1fr 60px 70px 80px;
  gap: 0;
  padding: 10px 20px 0;
  margin-bottom: 2px;
  min-width: 320px;
}
.gcollect-global-lb .gclb-col-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gclb-label);
  font-weight: 600;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--gclb-label-border);
}
.gcollect-global-lb .gclb-col-label.right { text-align: right; }
.gcollect-global-lb .gclb-col-label.center { text-align: center; }

.gcollect-global-lb .gclb-rows {
  position: relative;
  z-index: 1;
  padding: 0 20px 6px;
  min-width: 320px;
}
.gcollect-global-lb .gclb-row {
  display: grid;
  grid-template-columns: 36px 1fr 60px 70px 80px;
  align-items: center;
  gap: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--gclb-row-border);
  position: relative;
  opacity: 0;
  transform: translateX(10px);
  animation: gclbRowIn 0.35s ease forwards;
}
.gcollect-global-lb .gclb-row:last-child { border-bottom: none; }
@keyframes gclbRowIn {
  to { opacity: 1; transform: translateX(0); }
}

.gcollect-global-lb .gclb-row-accent {
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0;
}
.gcollect-global-lb .gclb-rank-num {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.gcollect-global-lb .gclb-rank-trophy { font-size: 14px; line-height: 1; }

.gcollect-global-lb .gclb-player {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.gcollect-global-lb .gclb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  border: 1.5px solid;
}
.gcollect-global-lb .gclb-player-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gclb-player-name);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcollect-global-lb .gclb-player-sub {
  font-size: 10px;
  color: var(--gclb-player-sub);
  margin-top: 1px;
}

.gcollect-global-lb .gclb-items {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.gcollect-global-lb .gclb-item-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 3px;
  flex-wrap: wrap;
}
.gcollect-global-lb .gclb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.gcollect-global-lb .gclb-value { text-align: right; }
.gcollect-global-lb .gclb-value-num {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  display: block;
}
.gcollect-global-lb .gclb-value-label {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gcollect-global-lb .gclb-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gclb-footer-border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--gclb-footer-bg);
}
.gcollect-global-lb .gclb-footer-left {
  font-size: 11px;
  color: var(--gclb-footer-text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.gcollect-global-lb .gclb-footer-left span {
  line-height: 1.4;
}
.gcollect-global-lb .gclb-pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #e8c96a;
  animation: gclbRingPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes gclbRingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.gcollect-global-lb .gclb-loading,
.gcollect-global-lb .gclb-empty,
.gcollect-global-lb .gclb-error {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--gclb-empty-text);
}

.gcollect-global-lb .gclb-jackpot-wrap {
  display: none;
  padding: 16px 24px;
  background: var(--gclb-jackpot-bg);
  border-top: 1px solid var(--gclb-jackpot-border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.gcollect-global-lb .gclb-jackpot-amount {
  font-size: 1.15rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.gcollect-global-lb .gclb-jackpot-split {
  font-size: 0.9rem;
  color: var(--gclb-jackpot-muted);
}

.gcollect-global-lb .gclb-prize-share {
  color: #22c55e;
  font-size: 13px;
  font-weight: bold;
}

.gcollect-global-lb .gclb-prize-tied {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.gcollect-global-lb .gclb-prize-empty {
  color: var(--gclb-prize-empty);
}

/* Leaderboard row tiers */
.gcollect-global-lb .gclb-row--gold {
  background: transparent;
}
.gcollect-global-lb .gclb-row--gold .gclb-row-accent { background: #e8c96a; }
.gcollect-global-lb .gclb-row--gold .gclb-avatar {
  background: rgba(232, 201, 106, 0.15);
  border-color: #c9a227;
  color: #e8c96a;
}
.gcollect-global-lb .gclb-row--gold .gclb-items,
.gcollect-global-lb .gclb-row--gold .gclb-value-num { color: #e8c96a; }

.gcollect-global-lb .gclb-row--silver {
  background: transparent;
}
.gcollect-global-lb .gclb-row--silver .gclb-row-accent { background: #c0c0c0; }
.gcollect-global-lb .gclb-row--silver .gclb-avatar {
  background: rgba(192, 192, 192, 0.12);
  border-color: #b0b0b0;
  color: #c0c0c0;
}
.gcollect-global-lb .gclb-row--silver .gclb-items,
.gcollect-global-lb .gclb-row--silver .gclb-value-num { color: #c0c0c0; }

.gcollect-global-lb .gclb-row--bronze {
  background: transparent;
}
.gcollect-global-lb .gclb-row--bronze .gclb-row-accent { background: #cd7f32; }
.gcollect-global-lb .gclb-row--bronze .gclb-avatar {
  background: rgba(205, 127, 50, 0.15);
  border-color: #b06820;
  color: #cd7f32;
}
.gcollect-global-lb .gclb-row--bronze .gclb-items,
.gcollect-global-lb .gclb-row--bronze .gclb-value-num { color: #cd7f32; }

.gcollect-global-lb .gclb-row--dim {
  background: var(--gclb-dim-row-bg);
}
.gcollect-global-lb .gclb-row--dim .gclb-row-accent { background: var(--glass-border); }
.gcollect-global-lb .gclb-row--dim .gclb-avatar {
  background: var(--card-bg);
  border-color: var(--glass-border);
  color: var(--gclb-dim-rank);
}
.gcollect-global-lb .gclb-row--dim .gclb-rank-num,
.gcollect-global-lb .gclb-row--dim .gclb-items,
.gcollect-global-lb .gclb-row--dim .gclb-value-num {
  color: var(--gclb-dim-value);
}

.gc-jackpot-notice {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.gc-jackpot-notice-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.gc-jackpot-notice-amount-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 201, 106, 0.2) 0%, rgba(232, 201, 106, 0.06) 100%);
  border: 1px solid rgba(232, 201, 106, 0.4);
  box-shadow: 0 8px 24px rgba(232, 201, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gc-jackpot-notice-amount-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.gc-jackpot-notice-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.gc-jackpot-notice-value {
  display: block;
  font-family: var(--font-heading, "Orbitron", sans-serif);
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #e8c96a;
  text-shadow: 0 0 24px rgba(232, 201, 106, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.gc-jackpot-notice-amount {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.gc-jackpot-notice-amount strong {
  letter-spacing: 0.04em;
}

.gc-jackpot-notice-footnote {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  font-style: italic;
}

.gc-jackpot-breakdown-btn {
  margin-top: 12px;
  padding: 0.55rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.5rem;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 4px 12px rgba(209, 32, 38, 0.35);
}

.gc-jackpot-breakdown-btn:hover,
.gc-jackpot-breakdown-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(209, 32, 38, 0.45);
}

.gc-jackpot-breakdown-btn:active {
  transform: translateY(0);
}

.gc-jackpot-breakdown-icon {
  font-size: 0.95rem;
  opacity: 0.95;
}

.gc-jackpot-breakdown-label {
  color: inherit;
}

.gc-jackpot-breakdown-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.gc-jackpot-modal .modal-body {
  padding-top: 0.75rem;
}

.gc-jpm-hero {
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(232, 201, 106, 0.1);
  border: 1px solid rgba(232, 201, 106, 0.25);
}

.gc-jpm-hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gc-jpm-hero-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e8c96a;
  line-height: 1.1;
}

.gc-jpm-hero-tag {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #22c55e;
}

.gc-jpm-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-color);
}

.gc-jpm-growth-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-color);
}

.gc-jpm-growth-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.gc-jpm-panel {
  margin-bottom: 4px;
}

.gc-jpm-equal-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.gc-jpm-equal-share {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.2;
}

.gc-jpm-equal-prize {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.gc-jpm-equal-prize strong {
  color: #22c55e;
  font-size: 1.25rem;
}

.gc-jpm-equal-now {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

.gc-jpm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gc-jpm-table thead th {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.gc-jpm-table thead th.gc-jpm-th-prize {
  text-align: right;
}

.gc-jpm-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

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

.gc-jpm-place {
  font-weight: 700;
  color: var(--text-color);
}

.gc-jpm-share {
  color: var(--text-muted);
}

.gc-jpm-prize {
  text-align: right;
  font-weight: 700;
  color: #22c55e;
}

.gc-jpm-row--gold .gc-jpm-place { color: #e8c96a; }
.gc-jpm-row--silver .gc-jpm-place { color: #c0c0c0; }
.gc-jpm-row--bronze .gc-jpm-place { color: #cd7f32; }

.gc-jpm-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

/* GoCollect jackpot breakdown modal — theme tokens */
.light-theme .gc-jackpot-modal .modal-content,
html.light-theme .gc-jackpot-modal .modal-content,
[data-theme="light"] .gc-jackpot-modal .modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-color);
}

.light-theme .gc-jackpot-modal .modal-header,
html.light-theme .gc-jackpot-modal .modal-header,
[data-theme="light"] .gc-jackpot-modal .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-theme .gc-jackpot-modal .modal-title,
html.light-theme .gc-jackpot-modal .modal-title,
[data-theme="light"] .gc-jackpot-modal .modal-title {
  color: var(--text-color);
}

.light-theme .gc-jackpot-modal .btn-close,
html.light-theme .gc-jackpot-modal .btn-close,
[data-theme="light"] .gc-jackpot-modal .btn-close {
  filter: none;
}

.dark-theme .gc-jackpot-modal .modal-content,
html.dark-theme .gc-jackpot-modal .modal-content,
[data-theme="dark"] .gc-jackpot-modal .modal-content {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
}

.dark-theme .gc-jackpot-modal .modal-header,
html.dark-theme .gc-jackpot-modal .modal-header,
[data-theme="dark"] .gc-jackpot-modal .modal-header {
  border-bottom-color: var(--glass-border);
}

.dark-theme .gc-jackpot-modal .modal-title,
html.dark-theme .gc-jackpot-modal .modal-title,
[data-theme="dark"] .gc-jackpot-modal .modal-title {
  color: var(--text-color);
}

.dark-theme .gc-jackpot-modal .btn-close,
html.dark-theme .gc-jackpot-modal .btn-close,
[data-theme="dark"] .gc-jackpot-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.gc-jackpot-notice-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(30deg);
  animation: gcShineEffect 3s infinite;
}

.gc-jackpot-notice-icon {
  font-size: 2.75rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(232, 201, 106, 0.75));
  position: relative;
  z-index: 1;
}

.gc-jackpot-notice-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: none;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Light theme — match competition-details-card */
.light-theme .gc-jackpot-notice,
html.light-theme .gc-jackpot-notice,
[data-theme="light"] .gc-jackpot-notice {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

.light-theme .gc-jackpot-notice-text,
html.light-theme .gc-jackpot-notice-text,
[data-theme="light"] .gc-jackpot-notice-text {
  color: var(--text-color);
  text-shadow: none;
}

:root.light-theme .gc-jackpot-notice-amount,
html.light-theme .gc-jackpot-notice-amount,
[data-theme="light"] .gc-jackpot-notice-amount {
  color: #b45309;
}

.light-theme .gc-jackpot-notice-amount-row,
html.light-theme .gc-jackpot-notice-amount-row,
[data-theme="light"] .gc-jackpot-notice-amount-row {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12) 0%, rgba(252, 243, 236, 0.9) 100%);
  border-color: rgba(180, 83, 9, 0.28);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.1);
}

.light-theme .gc-jackpot-notice-value,
html.light-theme .gc-jackpot-notice-value,
[data-theme="light"] .gc-jackpot-notice-value {
  color: #b45309;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(180, 83, 9, 0.2);
}

.light-theme .gc-jackpot-breakdown-btn,
html.light-theme .gc-jackpot-breakdown-btn,
[data-theme="light"] .gc-jackpot-breakdown-btn {
  box-shadow: 0 4px 12px rgba(196, 28, 34, 0.28);
}

.light-theme .gc-jackpot-breakdown-btn:hover,
.light-theme .gc-jackpot-breakdown-btn:focus-visible,
html.light-theme .gc-jackpot-breakdown-btn:hover,
html.light-theme .gc-jackpot-breakdown-btn:focus-visible,
[data-theme="light"] .gc-jackpot-breakdown-btn:hover,
[data-theme="light"] .gc-jackpot-breakdown-btn:focus-visible {
  box-shadow: 0 6px 16px rgba(196, 28, 34, 0.38);
}

.light-theme .gc-jackpot-breakdown-hint,
html.light-theme .gc-jackpot-breakdown-hint,
[data-theme="light"] .gc-jackpot-breakdown-hint {
  color: rgba(255, 255, 255, 0.9);
}

.light-theme .gc-jpm-growth-callout,
html.light-theme .gc-jpm-growth-callout,
[data-theme="light"] .gc-jpm-growth-callout {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
}

.light-theme .gc-jpm-hero,
html.light-theme .gc-jpm-hero,
[data-theme="light"] .gc-jpm-hero {
  background: rgba(252, 243, 236, 0.08);
  border-color: rgba(180, 83, 9, 0.2);
}

.light-theme .gc-jpm-hero-amount,
html.light-theme .gc-jpm-hero-amount,
[data-theme="light"] .gc-jpm-hero-amount {
  color: #b45309;
}

.light-theme .gc-jpm-equal-card,
html.light-theme .gc-jpm-equal-card,
[data-theme="light"] .gc-jpm-equal-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .gc-jpm-table tbody td,
html.light-theme .gc-jpm-table tbody td,
[data-theme="light"] .gc-jpm-table tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.light-theme .gc-jackpot-notice-shine,
html.light-theme .gc-jackpot-notice-shine,
[data-theme="light"] .gc-jackpot-notice-shine {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
}

@keyframes gcShineEffect {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

@media (max-width: 480px) {
  .gcollect-global-lb .gclb-cols,
  .gcollect-global-lb .gclb-row {
    grid-template-columns: 30px minmax(0,1fr) 48px 56px 66px;
  }
  .gcollect-global-lb .gclb-title { font-size: 16px; }
}