* {
  box-sizing: border-box;
}

.slot-cards-container {
  position: relative;
  width: 100%;
}

.slot-cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.slot-cards-grid.slot-cards-bonuses {
  gap: 15px;
}

.slot-card {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 0 0 20px 0;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  transition: all .3s ease;
  width: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  border: none;
}

.slot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.slot-card.dark {
  background: #2a2a2a;
  color: #e0e0e0;
  border: none;
}

.slot-card.modern-dark {
  background: linear-gradient(145deg, #2c2c2c, #242424);
  color: #f0f0f0;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.slot-card.modern-dark:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
  transform: translateY(-5px);
}

.slot-card .slot-card-image-block {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  border: none;
}

.slot-cards-slots .slot-card-image-block {
  height: 230px;
}

.slot-cards-bonuses .slot-card-image-block {
  height: 140px;
}

.slot-card .slot-card-logo {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.slot-card .slot-card-logo img {
  object-fit: cover;
  transition: transform .5s ease;
  border: none;
  width: 100%;
  height: 100%;
}

.slot-cards-slots .slot-card-logo img {
  height: 230px;
}

.slot-cards-bonuses .slot-card-logo img {
  height: 140px;
}

.slot-card .slot-card-logo img.narrow {
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border: none;
  width: auto;
  max-width: 90%;
}

.slot-cards-slots .slot-card-logo img.narrow {
  height: 230px;
}

.slot-cards-bonuses .slot-card-logo img.narrow {
  height: 140px;
}

.slot-card:hover .slot-card-logo img {
  transform: scale(1.08);
}

.slot-card.modern-dark .slot-card-logo img {
  filter: brightness(0.95);
}

.slot-card .slot-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slot-card .slot-card-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.slot-card .slot-card-badge.hit {
  background: linear-gradient(45deg, #ff6b6b, #ff4444);
  box-shadow: 0 4px 15px rgba(255,107,107,.35);
}

.slot-card .slot-card-badge.new {
  background: linear-gradient(45deg, #4ecdc4, #00cc00);
  box-shadow: 0 4px 15px rgba(78,205,196,.35);
}

.slot-card.modern-dark .slot-card-badge.hit {
  background: linear-gradient(45deg, #ff7b7b, #ff5252);
}

.slot-card.modern-dark .slot-card-badge.new {
  background: linear-gradient(45deg, #56d6ce, #00d600);
}

.slot-card .slot-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 15px;
}

.slot-card .slot-card-title {
  font-size: 1.1em;
  margin: 0 0 12px;
  font-weight: 700;
  color: #1d2327;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.slot-card.dark .slot-card-title {
  color: #f0f0f0;
}

.slot-card.modern-dark .slot-card-title {
  color: #ffffff;
  font-weight: 600;
}

.slot-card .slot-card-description {
  font-size: .95em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
  overflow: hidden;
  line-height: 1.5;
}

.slot-card.dark .slot-card-description {
  color: #cccccc;
}

.slot-card.modern-dark .slot-card-description {
  color: #e0e0e0;
}

.slot-card .slot-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
  position: relative;
  z-index: 10;
}

.slot-card .meta-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .8rem;
  background: rgba(0,0,0,.08);
}

.slot-card .meta-item.rtp {
  color: #0073aa;
}

.slot-card .meta-item.max-win {
  color: #d63638;
}

.slot-card .meta-item.rating {
  color: #f7b731;
}

.slot-card.dark .meta-item {
  background: rgba(255,255,255,.1);
}

.slot-card.dark .meta-item.rtp {
  color: #00a0d2;
}

.slot-card.dark .meta-item.max-win {
  color: #ff6666;
}

.slot-card.dark .meta-item.rating {
  color: #ffcc66;
}

.slot-card.modern-dark .meta-item {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}

.slot-card.modern-dark .meta-item.rtp {
  color: #4fc3f7;
}

.slot-card.modern-dark .meta-item.max-win {
  color: #ff7676;
}

.slot-card.modern-dark .meta-item.rating {
  color: #ffd54f;
}

.slot-card .meta-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.slot-card .slot-card-bonus-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9em;
  padding: 12px 15px;
  background: #f0f7ff;
  border: 1px solid #cce5ff;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
  margin-bottom: 15px;
  position: relative;
  z-index: 10;
}

.slot-card .slot-card-bonus-code:hover {
  background: #e6f0ff;
  border-color: #99ccff;
  transform: translateY(-2px);
}

.slot-card .slot-card-bonus-code.dark {
  background: rgba(26,42,68,.7);
  border-color: #335577;
  color: #cce5ff;
}

.slot-card .slot-card-bonus-code.dark:hover {
  background: rgba(34,51,85,.8);
  border-color: #4477aa;
}

.slot-card.modern-dark .slot-card-bonus-code {
  background: rgba(41,98,158,.25);
  border: 1px solid rgba(76,144,220,.4);
  color: #e3f2fd;
}

.slot-card.modern-dark .slot-card-bonus-code:hover {
  background: rgba(41,98,158,.4);
  border-color: rgba(76,144,220,.7);
}

.slot-card .slot-card-bonus-code .bonus-code-label {
  font-weight: 600;
  color: #0073aa;
}

.slot-card.dark .slot-card-bonus-code .bonus-code-label {
  color: #99ccff;
}

.slot-card.modern-dark .slot-card-bonus-code .bonus-code-label {
  color: #82b1ff;
}

.slot-card .slot-card-bonus-code .bonus-code-value {
  background: rgba(204,229,255,.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  color: #003d5c;
  user-select: all;
  transition: all .3s ease;
}

.slot-card.dark .slot-card-bonus-code .bonus-code-value {
  background: rgba(51,85,119,.7);
  color: #e6f0ff;
}

.slot-card.modern-dark .slot-card-bonus-code .bonus-code-value {
  background: rgba(66,133,244,.25);
  color: #ffffff;
}

.slot-card .slot-card-bonus-code .copy-icon {
  color: #0073aa;
  transition: all .3s ease;
}

.slot-card .slot-card-bonus-code .copy-icon:hover {
  color: #005d8a;
  transform: scale(1.1);
}

.slot-card.dark .slot-card-bonus-code .copy-icon {
  color: #99ccff;
}

.slot-card.dark .slot-card-bonus-code .copy-icon:hover {
  color: #cce5ff;
}

.slot-card.modern-dark .slot-card-bonus-code .copy-icon {
  color: #82b1ff;
}

.slot-card.modern-dark .slot-card-bonus-code .copy-icon:hover {
  color: #448aff;
}

.slot-card .slot-card-bonus-code.copied .copy-icon {
  color: #46b450;
}

.slot-card .slot-card-bonus-code .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.slot-card .slot-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.slot-card .slot-card-button {
  padding: 12px 20px;
  background: linear-gradient(45deg, #0073aa, #005d8a);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all .3s ease;
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: .95em;
}

.slot-card .slot-card-button:hover {
  background: linear-gradient(45deg, #005d8a, #004b6e);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,115,170,.3);
  color: #fff;
  animation: pulse 1s infinite;
}

.slot-card.dark .slot-card-button {
  background: linear-gradient(45deg, #00a0d2, #0082a6);
}

.slot-card.dark .slot-card-button:hover {
  background: linear-gradient(45deg, #0082a6, #006888);
  animation: pulse 1s infinite;
}

.slot-card.modern-dark .slot-card-button {
  background: linear-gradient(45deg, #2196f3, #1976d2);
  box-shadow: 0 4px 15px rgba(33,150,243,.25);
}

.slot-card.modern-dark .slot-card-button:hover {
  background: linear-gradient(45deg, #1976d2, #1565c0);
  box-shadow: 0 6px 20px rgba(33,150,243,.35);
  animation: pulse 1s infinite;
}

.slot-card .slot-card-buttons.rounded .slot-card-button {
  border-radius: 25px;
}

.slot-cards-pagination {
  text-align: center;
  margin-top: 30px;
}

.slot-cards-pagination .page-numbers {
  padding: 10px 16px;
  margin: 0 5px;
  text-decoration: none;
  color: #0073aa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all .3s;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
}

.slot-cards-pagination .page-numbers:hover {
  background: #f1f1f1;
  border-color: #c0c0c0;
}

.slot-cards-pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.slot-cards-load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-button {
  background: linear-gradient(45deg, #0073aa, #005d8a);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 5px 15px rgba(0,115,170,.25);
}

.load-more-button:hover {
  background: linear-gradient(45deg, #005d8a, #004b6e);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,115,170,.35);
  animation: pulse 1s infinite;
}

.load-more-button.loading {
  opacity: 0.7;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(-2px) scale(1); }
}

/* Mobile view (≤768px) */
@media (max-width: 768px) {
  .slot-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    justify-items: center;
  }

  .slot-cards-grid.slot-cards-bonuses {
    gap: 8px;
  }

  .slot-card {
    padding: 0 0 10px 0;
    min-height: auto;
    border: none;
    border-radius: 0 0 16px 16px;
  }

  .slot-cards-slots .slot-card {
    max-width: 210px;
  }

  .slot-cards-bonuses .slot-card {
    max-width: 260px;
  }

  .slot-card .slot-card-image-block {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }

  .slot-cards-slots .slot-card-image-block {
    width: 210px;
    height: 230px;
  }

  .slot-cards-bonuses .slot-card-image-block {
    width: 260px;
    height: 140px;
  }

  .slot-card .slot-card-logo {
    border: none;
  }

  .slot-card .slot-card-logo img {
    border: none;
  }

  .slot-cards-slots .slot-card-logo img {
    width: 210px;
    height: 230px;
    object-fit: cover;
  }

  .slot-cards-bonuses .slot-card-logo img {
    width: 260px;
    height: 140px;
    object-fit: cover;
  }

  .slot-card .slot-card-logo img.narrow {
    width: auto;
    max-width: 90%;
    margin: 0 auto;
    border: none;
  }

  .slot-cards-slots .slot-card-logo img.narrow {
    height: 230px;
    object-fit: contain;
  }

  .slot-cards-bonuses .slot-card-logo img.narrow {
    height: 140px;
    object-fit: contain;
  }

  .slot-card .slot-card-content {
    padding: 10px;
  }

  .slot-card .slot-card-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .slot-card .slot-card-button {
    padding: 10px 15px;
    font-size: .9em;
    margin-bottom: 5px;
  }

  .slot-card .slot-card-title {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .slot-card .slot-card-description {
    font-size: .9em;
    margin-bottom: 10px;
  }

  .slot-card .slot-card-meta {
    gap: 6px;
    margin: 10px 0;
  }

  .slot-card .slot-card-bonus-code {
    padding: 10px 12px;
    margin-bottom: 10px;
  }
}

/* Tablet view (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .slot-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
  }

  .slot-cards-grid.slot-cards-bonuses {
    gap: 12px;
  }

  .slot-card {
    padding: 0 0 15px 0;
    min-height: auto;
    border: none;
    border-radius: 0 0 16px 16px;
  }

  .slot-cards-slots .slot-card {
    max-width: 210px;
  }

  .slot-cards-bonuses .slot-card {
    max-width: 260px;
  }

  .slot-card .slot-card-image-block {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }

  .slot-cards-slots .slot-card-image-block {
    width: 210px;
    height: 230px;
  }

  .slot-cards-bonuses .slot-card-image-block {
    width: 260px;
    height: 140px;
  }

  .slot-card .slot-card-logo {
    border: none;
  }

  .slot-card .slot-card-logo img {
    border: none;
  }

  .slot-cards-slots .slot-card-logo img {
    width: 210px;
    height: 230px;
    object-fit: cover;
  }

  .slot-cards-bonuses .slot-card-logo img {
    width: 260px;
    height: 140px;
    object-fit: cover;
  }

  .slot-card .slot-card-logo img.narrow {
    width: auto;
    max-width: 90%;
    margin: 0 auto;
    border: none;
  }

  .slot-cards-slots .slot-card-logo img.narrow {
    height: 230px;
    object-fit: contain;
  }

  .slot-cards-bonuses .slot-card-logo img.narrow {
    height: 140px;
    object-fit: contain;
  }

  .slot-card .slot-card-content {
    padding: 12px;
  }
}

/* Desktop view (≥1200px) */
@media (min-width: 1200px) {
  .slot-cards-grid {
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 25px;
  }

  .slot-card .slot-card-image-block {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }

  .slot-cards-slots .slot-card-image-block {
    width: 100%;
    height: 230px;
  }

  .slot-cards-bonuses .slot-card-image-block {
    width: 100%;
    height: 140px;
  }

  .slot-card .slot-card-logo {
    border: none;
  }

  .slot-card .slot-card-logo img {
    width: 100%;
    border: none;
  }

  .slot-cards-slots .slot-card-logo img {
    height: 230px;
    object-fit: cover;
  }

  .slot-cards-bonuses .slot-card-logo img {
    height: 140px;
    object-fit: cover;
  }

  .slot-card .slot-card-logo img.narrow {
    width: auto;
    max-width: 90%;
    margin: 0 auto;
    border: none;
  }

  .slot-cards-slots .slot-card-logo img.narrow {
    height: 230px;
    object-fit: contain;
  }

  .slot-cards-bonuses .slot-card-logo img.narrow {
    height: 140px;
    object-fit: contain;
  }

  .slot-card .slot-card-content {
    padding: 15px;
  }
}