/* ===== GIVEAWAYS PAGE ===== */

.giveaways-hero {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.giveaways-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-blue));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.giveaways-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
}

.giveaways-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Giveaway search (in filters bar top) */
.filter-group--search {
  flex: 1;
  min-width: 0;
}
.giveaway-search-wrap {
  position: relative; /* keeps dropdown + autocomplete working */
  width: 100%;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  /* NO overflow:hidden — would clip the autocomplete dropdown */
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
/* Clip only the visual pill shape, not the dropdown */
.giveaway-search-icon { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.giveaway-sort-select { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.giveaway-search-wrap:focus-within {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 2px rgba(var(--tech-blue-rgb), 0.2);
}
.giveaway-search-icon {
  flex-shrink: 0;
  padding: 0 8px 0 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  transition: color 0.2s;
}
.giveaway-search-wrap:focus-within .giveaway-search-icon {
  color: var(--text-secondary);
}
.giveaway-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
}
.giveaway-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.giveaway-search-clear {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  margin-right: 6px;
  transition: background 0.2s;
}
.giveaway-search-clear:hover { background: rgba(255, 255, 255, 0.15); }
.giveaway-search-clear.hidden { display: none; }
.giveaway-search-count {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  padding-right: 6px;
}
.giveaway-search-count.hidden { display: none; }

/* Sort select — integrated at right end of search bar */
.giveaway-sort-select {
  flex-shrink: 0;
  padding: 0.45rem 1.75rem 0.45rem 0.75rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 110px;
  transition: color 0.2s;
}
.giveaway-sort-select:focus { color: var(--text-primary); }
.giveaway-sort-select option {
  background: var(--card-bg, #1e1e2e);
  color: var(--text-primary);
}

/* Search autocomplete dropdown */
.giveaway-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: rgba(15, 15, 25, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.giveaway-search-dropdown.hidden { display: none; }
.giveaway-search-dropdown::-webkit-scrollbar { width: 4px; }
.giveaway-search-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

.hsd-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hsd-item:last-child, .hsd-item:has(+ .hsd-more) { border-bottom: none; }
.hsd-item:hover, .hsd-item--active { background: rgba(251, 191, 36, 0.1); }

.hsd-item-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hsd-item-img img { width: 100%; height: 100%; object-fit: cover; }

.hsd-item-info { flex: 1; min-width: 0; }
.hsd-item-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsd-item-title mark {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  border-radius: 2px;
  padding: 0 1px;
}
.hsd-item-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsd-item-sponsor {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.hsd-sponsor-label {
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}
.hsd-sponsor-logo {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  object-fit: contain;
  flex-shrink: 0;
}
.hsd-sponsor-icon {
  font-size: 0.6rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}
.hsd-sponsor-name {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsd-item-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
}
.hsd-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hsd-more {
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(251, 191, 36, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.giveaways-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  min-width: 150px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-card:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.12), rgba(var(--tech-cyan-rgb), 0.06));
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.2);
  transform: translateY(-2px);
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.filters-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0;
  align-items: center;
  margin-bottom: 2rem;
  position: sticky;
  top: var(--sticky-filters-top, 70px);
  z-index: 100;
  transition: box-shadow 0.2s;
}
.filters-bar.filters-sticky-off {
  position: static;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-btn {
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.2), rgba(var(--tech-cyan-rgb), 0.1));
  color: var(--accent-primary);
  border: 1px solid rgba(var(--tech-blue-rgb), 0.4);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.2);
}

.giveaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0.5rem 0;
  align-items: start; /* Prevent cards from stretching to match tallest in row */
}

/* ===== VIEW TOGGLE ===== */

/* Single view toggle button */
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0 0.75rem;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.view-toggle-btn i { font-size: 0.82rem; }
.view-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb),0.15), rgba(var(--tech-cyan-rgb),0.07));
  color: var(--accent-primary);
  border-color: rgba(var(--tech-blue-rgb),0.4);
  box-shadow: 0 0 12px rgba(var(--tech-blue-rgb),0.15);
}

/* ===== FILTERS BAR: COLLAPSIBLE PANEL (all viewports) ===== */

/* Collapsible filter panel — hidden by default, shown on toggle */
.filters-panel {
  display: none;
  width: 100%;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.filters-panel.open {
  display: block;
}

/* Single row of dropdown groups */
.filters-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.filter-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-dd-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  width: 100%;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(var(--tech-blue-rgb), 0.15);
  outline: none;
}
.filter-select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.filter-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Controls row */
.filters-bar-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

/* Order: Search(1) + Filters(2) → line break → Sort(4) + View(5) */
.filter-group--search { order: 1; flex: 1; min-width: 0; }

.filters-toggle-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.filters-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filters-toggle-btn.open,
.filters-toggle-btn.has-active {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.2), rgba(var(--tech-cyan-rgb), 0.1));
  color: var(--accent-primary);
  border-color: rgba(var(--tech-blue-rgb), 0.3);
}

/* Line break after row 1 */
.filters-bar-top::before {
  content: '';
  order: 3;
  flex-basis: 100%;
  height: 0;
}

.filter-group--sort { display: none; } /* sort moved into search wrap */

.filter-group--view { display: none; } /* replaced by #viewToggleBtn */

/* Active-filter count badge on the toggle button */
.filters-active-count {
  background: var(--accent-primary, #0066ff);
  color: #fff;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 17px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.filters-active-count:empty {
  display: none;
}

/* ===== COMPACT LIST VIEW ===== */

.giveaways-grid--compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.giveaway-row-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.giveaway-row-compact:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.grc-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.grc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.grc-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.grc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.grc-badges {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.grc-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.grc-sep {
  opacity: 0.4;
}

.grc-countdown {
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-secondary);
  min-width: 90px;
  text-align: center;
}

.grc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.grc-actions .btn-secondary,
.grc-actions .btn-primary {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.grc-actions .btn-read-more {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tasks dropdown expands below compact row */
.giveaway-row-compact .giveaway-tasks {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
/* Lift the row above its siblings when tasks are expanded */
.giveaway-row-compact:has(.giveaway-tasks:not(.hidden)) {
  z-index: 20;
}

@media (max-width: 640px) {
  .giveaway-row-compact {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .grc-img {
    width: 40px;
    height: 40px;
  }
  .grc-main {
    flex: 1;
    min-width: 0;
  }
  .grc-title {
    max-width: 140px;
    font-size: 0.85rem;
  }
  .grc-title-row {
    gap: 0.4rem;
  }
  .grc-badges .giveaway-tag,
  .grc-badges .giveaway-mode-tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }
  .grc-meta {
    font-size: 0.7rem;
  }
  .grc-countdown {
    display: none;
  }
  .grc-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.4rem;
  }
  .grc-actions .btn-secondary,
  .grc-actions .btn-primary {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  .grc-actions .btn-read-more {
    width: 28px;
    height: 28px;
  }
}

.giveaway-card {
  perspective: 1200px;
  position: relative;
}

.giveaway-card .card-flip-inner {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.giveaway-card.is-flipped .card-flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.giveaway-card .card-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

.giveaway-card .card-front .giveaway-content {
  flex: 1;
}

.giveaway-card .card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.card-back-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-back-header h4 i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.card-back-tasks {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.25) transparent;
}
.card-back-tasks::-webkit-scrollbar { width: 5px; }
.card-back-tasks::-webkit-scrollbar-track { background: transparent; }
.card-back-tasks::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.25); border-radius: 3px; }

.card-back-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-back-footer .giveaway-sponsor-footer {
  margin: 0;
  border-radius: 0;
}

/* Flip back button */
.btn-flip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  border: none;
  background: rgba(var(--tech-blue-rgb), 0.08);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-flip-back:hover {
  background: rgba(var(--tech-blue-rgb), 0.15);
}
.btn-flip-back i {
  font-size: 0.75rem;
}

/* Mobile flip button (icon in corner) */
.btn-card-flip {
  display: none;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}
.btn-card-flip:hover {
  background: rgba(var(--tech-blue-rgb), 0.6);
}
.is-flipped .btn-card-flip {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .btn-card-flip {
    display: flex;
  }
}

.giveaway-card:hover .card-flip-inner {
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.3);
  border-color: var(--border-hover);
}

/* Only apply lift-transform on devices with real hover (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .giveaway-card:not(.is-flipped):hover .card-flip-inner {
    transform: translateY(-4px);
  }
}

/* AAA cards - subtle accent only */
.giveaway-card.is-aaa .card-flip-inner {
  border-color: rgba(251, 191, 36, 0.25);
}

/* Glow enabled cards */
.giveaway-card.has-glow .card-flip-inner {
  --glow-shadow: 0 0 var(--glow-blur, 15px) var(--glow-spread, 5px) var(--glow-color, #00ffff);
  box-shadow: var(--shadow-md), var(--glow-shadow);
}

.giveaway-card.has-glow:hover .card-flip-inner {
  --glow-shadow: 0 0 calc(var(--glow-blur, 15px) * 1.5) calc(var(--glow-spread, 5px) * 1.2) var(--glow-color, #00ffff);
}

/* Glow animations */
.giveaway-card[data-glow-animation="pulse"] .card-flip-inner {
  animation: card-glow-pulse 2s ease-in-out infinite;
}

.giveaway-card[data-glow-animation="breathe"] .card-flip-inner {
  animation: card-glow-breathe 3s ease-in-out infinite;
}

.giveaway-card[data-glow-animation="flicker"] .card-flip-inner {
  animation: card-glow-flicker 0.5s ease-in-out infinite;
}

@keyframes card-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--glow-color, #00ffff));
  }
  50% {
    filter: drop-shadow(0 0 20px var(--glow-color, #00ffff));
  }
}

@keyframes card-glow-breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px var(--glow-color, #00ffff));
  }
  50% {
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--glow-color, #00ffff));
  }
}

@keyframes card-glow-flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}


/* Electric border effect for special cards */
.giveaway-card.electric-border .card-flip-inner {
  position: relative;
}

.giveaway-card.electric-border .card-flip-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    var(--angle, 0deg),
    var(--glow-color, #00ffff),
    transparent 40%,
    transparent 60%,
    var(--glow-color, #00ffff)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: electric-rotate 3s linear infinite;
  pointer-events: none;
}

@keyframes electric-rotate {
  to {
    --angle: 360deg;
  }
}

/* Fallback for browsers without @property support */
@supports not (background: paint(something)) {
  .giveaway-card.electric-border .card-flip-inner::after {
    animation: none;
    background: linear-gradient(135deg, var(--glow-color, #00ffff), transparent, var(--glow-color, #00ffff));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .giveaway-card[data-glow-animation] .card-flip-inner,
  .giveaway-card.electric-border .card-flip-inner::after {
    animation: none;
  }
}

.giveaway-image {
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(15,23,42,0.6);
  overflow: hidden;
}

.giveaway-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Image loading and error states */
.giveaway-image img.loading {
  opacity: 0.5;
  filter: blur(2px);
}

.giveaway-image img.loaded {
  opacity: 1;
  filter: none;
}

.giveaway-image img.image-load-error {
  opacity: 0.8;
  background: linear-gradient(135deg, #141824, #1a1f2e);
}

/* Loading shimmer effect */
.giveaway-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  animation: image-shimmer 1.5s infinite;
  pointer-events: none;
  opacity: 0;
}

.giveaway-image:has(img.loading)::after {
  opacity: 1;
}

@keyframes image-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Video preview overlay + iframe */
.giveaway-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.giveaway-image:hover .giveaway-video-overlay {
  opacity: 1;
}
.giveaway-video-overlay i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  padding-left: 3px;
  transition: transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}
.giveaway-video-overlay:hover i {
  transform: scale(1.15);
  background: rgba(139, 92, 246, 0.8);
  border-color: #a78bfa;
}
.giveaway-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.giveaway-video-iframe.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hide video preview on mobile */
@media (max-width: 768px) {
  .giveaway-video-overlay { display: none; }
}

.giveaway-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.85);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}

/* DRM Platform Logos - Simple colored icons */
.giveaway-tag::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Steam - Simple "S" style logo */
.giveaway-tag[data-platform="steam"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%2366c0f4' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%2366c0f4'/%3E%3Cpath d='M16 11 L16 6' stroke='%2366c0f4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Epic - "E" logo */
.giveaway-tag[data-platform="epic"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='8' y='6' width='16' height='20' rx='2' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M12 11h8M12 16h6M12 21h8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* GOG - Galaxy circle */
.giveaway-tag[data-platform="gog"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23ab82ff' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='6' fill='none' stroke='%23ab82ff' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ab82ff'/%3E%3C/svg%3E");
}

/* Humble Bundle - Heart */
.giveaway-tag[data-platform="humble"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 28l-1.4-1.3C7.4 20.3 3 16.4 3 11.5 3 7.4 6.4 4 10.5 4c2.3 0 4.5 1.1 5.5 2.8C17 5.1 19.2 4 21.5 4 25.6 4 29 7.4 29 11.5c0 4.9-4.4 8.8-11.6 15.2L16 28z' fill='%23cc3333'/%3E%3C/svg%3E");
}

/* Origin/EA - Orange circle */
.giveaway-tag[data-platform="origin"]::before,
.giveaway-tag[data-platform="ea"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23f56c2d' stroke-width='2'/%3E%3Cpath d='M12 12h8v8h-8z' fill='%23f56c2d'/%3E%3C/svg%3E");
}

/* Ubisoft - Swirl */
.giveaway-tag[data-platform="ubisoft"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%230070ff' stroke-width='2'/%3E%3Cpath d='M16 8c4.4 0 8 3.6 8 8s-3.6 8-8 8' fill='none' stroke='%230070ff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%230070ff'/%3E%3C/svg%3E");
}

/* Xbox - X logo */
.giveaway-tag[data-platform="xbox"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23107c10' stroke-width='2'/%3E%3Cpath d='M11 11l10 10M21 11l-10 10' stroke='%23107c10' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* PlayStation - PS symbol */
.giveaway-tag[data-platform="playstation"]::before,
.giveaway-tag[data-platform="ps"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 6v20M12 22h8M10 14h12' stroke='%230070d1' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='10' r='3' fill='none' stroke='%230070d1' stroke-width='2'/%3E%3C/svg%3E");
}

/* Platform-specific tag colors */
.giveaway-tag[data-platform="steam"] {
  background: linear-gradient(135deg, rgba(27, 40, 56, 0.95), rgba(23, 26, 33, 0.95));
  border: 1px solid rgba(102, 192, 244, 0.4);
  color: #66c0f4;
}

.giveaway-tag[data-platform="epic"] {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.95), rgba(18, 18, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.giveaway-tag[data-platform="gog"] {
  background: linear-gradient(135deg, rgba(92, 46, 138, 0.95), rgba(61, 31, 92, 0.95));
  border: 1px solid rgba(171, 130, 255, 0.4);
  color: #ab82ff;
}

.giveaway-tag[data-platform="humble"] {
  background: linear-gradient(135deg, rgba(204, 51, 51, 0.2), rgba(153, 38, 38, 0.3));
  border: 1px solid rgba(204, 51, 51, 0.4);
  color: #cc6666;
}

.giveaway-tag[data-platform="origin"],
.giveaway-tag[data-platform="ea"] {
  background: linear-gradient(135deg, rgba(245, 108, 45, 0.2), rgba(200, 80, 30, 0.3));
  border: 1px solid rgba(245, 108, 45, 0.4);
  color: #f56c2d;
}

.giveaway-tag[data-platform="ubisoft"] {
  background: linear-gradient(135deg, rgba(0, 112, 255, 0.2), rgba(0, 80, 200, 0.3));
  border: 1px solid rgba(0, 112, 255, 0.4);
  color: #0070ff;
}

.giveaway-tag[data-platform="xbox"] {
  background: linear-gradient(135deg, rgba(16, 124, 16, 0.2), rgba(10, 90, 10, 0.3));
  border: 1px solid rgba(16, 124, 16, 0.4);
  color: #107c10;
}

.giveaway-tag[data-platform="playstation"],
.giveaway-tag[data-platform="ps"] {
  background: linear-gradient(135deg, rgba(0, 112, 209, 0.2), rgba(0, 80, 160, 0.3));
  border: 1px solid rgba(0, 112, 209, 0.4);
  color: #0070d1;
}

/* Giveaway Mode Tag (RAFFLE / INSTANT WIN) - top right corner */
.giveaway-mode-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.giveaway-mode-tag.mode-raffle {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(79, 70, 229, 0.9));
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #e0e7ff;
}

.giveaway-mode-tag.mode-instant-win {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(217, 119, 6, 0.9));
  border: 1px solid rgba(252, 211, 77, 0.5);
  color: #fffbeb;
}

.giveaway-content {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.giveaway-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.giveaway-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.giveaway-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.giveaway-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-secondary, rgba(255,255,255,0.05));
  border-radius: var(--radius-sm);
}

.giveaway-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.giveaway-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.giveaway-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-secondary, rgba(255,255,255,0.05));
  border-radius: var(--radius-sm);
}

.stat-badge {
  font-size: 0.72rem;
  background: rgba(var(--color-accent-rgb, 0, 255, 255), 0.12) !important;
  color: var(--color-accent, #00ffff) !important;
  border: 1px solid rgba(var(--color-accent-rgb, 0, 255, 255), 0.25);
  white-space: nowrap;
}
.presence-badge {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
.presence-badge i {
  font-size: 0.7rem;
}
.gdm-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}
.gdm-presence-badge i {
  font-size: 0.7rem;
}

/* Multi-winner badge on cards */
.multi-winner-badge {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}
.multi-winner-badge i {
  font-size: 0.7rem;
}

/* Multi-winner badge in modal */
.gdm-multi-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.gdm-multi-winner-badge i {
  font-size: 0.7rem;
}

/* ===== MORPH (Multi-Title) ===== */

/* Morph card crossfade */
.morph-image {
  position: relative;
  width: 100%;
  height: 100%;
}
.morph-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.morph-slide.active {
  opacity: 1;
}

/* Morph badge — pink */
.morph-badge {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

/* PEGI badge on cards */
.pegi-badge {
  font-weight: 700;
  font-size: 0.68rem;
}
.pegi-badge.pegi-3,
.pegi-badge.pegi-7 {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.pegi-badge.pegi-12 {
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}
.pegi-badge.pegi-16 {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
}
.pegi-badge.pegi-18 {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* PEGI in compact view */
.grc-pegi {
  font-weight: 700;
  font-size: 0.72rem;
}
.grc-pegi.pegi-3, .grc-pegi.pegi-7 { color: #4ade80; }
.grc-pegi.pegi-12 { color: #fbbf24; }
.grc-pegi.pegi-16 { color: #fb923c; }
.grc-pegi.pegi-18 { color: #f87171; }

/* Modal titles grid */
.gdm-titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.gdm-title-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s;
}
.gdm-title-card:hover {
  border-color: rgba(236, 72, 153, 0.3);
}
.gdm-title-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gdm-title-info {
  padding: 0.5rem;
}
.gdm-title-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Claim section — gradient border, purple/pink */
.gdm-claim-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.gdm-claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.gdm-claim-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, transform 0.2s;
}
.gdm-claim-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}
.gdm-claim-btn {
  width: 100%;
  border-radius: 0;
}
.gdm-claim-timer {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-top: 0.35rem;
}
.gdm-claim-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: #34d399;
  font-weight: 600;
  margin-top: 0.75rem;
}

.gdm-claim-deadline-banner {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: #fbbf24;
  font-size: 0.85rem;
}
.gdm-claim-deadline-banner i { margin-right: 0.35rem; }

.gdm-claim-expired-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: #f87171;
  font-size: 0.85rem;
}
.gdm-claim-expired-banner i { margin-right: 0.35rem; }

/* Modal multi-winner list */
.gdm-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.gdm-winner-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}
.gdm-winner-rank {
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  min-width: 1.5rem;
}
.gdm-winner-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.gdm-winner-name {
  font-size: 0.9rem;
  color: var(--text-primary, #e2e8f0);
}

.giveaway-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.giveaway-actions .btn-primary {
  flex: 1;
}

.giveaway-tasks {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  animation: slideDown 0.3s ease-out;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.25) transparent;
}
.giveaway-tasks::-webkit-scrollbar { width: 5px; }
.giveaway-tasks::-webkit-scrollbar-track { background: transparent; }
.giveaway-tasks::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.25); border-radius: 3px; }
.giveaway-tasks::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.4); }

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SPONSOR FOOTER STRIP (regular + wide cards) ===== */

.giveaway-sponsor-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* escape the 1.75rem horizontal padding of .giveaway-content */
  margin: 0.6rem -1.75rem 0;
  padding: 0.45rem 1.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  min-height: 34px;
  flex-shrink: 0;
}

.gsf-clickable {
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.gsf-clickable:hover {
  background: rgba(139, 92, 246, 0.12);
  border-top-color: rgba(139, 92, 246, 0.2);
}
.gsf-clickable:hover .gsf-name {
  color: #a78bfa;
}

.gsf-prefix {
  color: var(--text-muted);
  opacity: 0.75;
  white-space: nowrap;
}

.gsf-logo {
  height: 20px;
  width: auto;
  max-width: 80px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.gsf-icon {
  color: var(--accent, #00bcd4);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.gsf-name {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SPONSOR LINE IN COMPACT ROW ===== */

.grc-sponsor {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.grc-sponsor i {
  color: var(--accent, #00bcd4);
  font-size: 0.65rem;
}

.grc-sponsor-logo {
  height: 14px;
  width: auto;
  max-width: 50px;
  border-radius: 2px;
  object-fit: contain;
}
.grc-sponsor.gsf-clickable {
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 99px;
  transition: background 0.18s, color 0.18s;
}
.grc-sponsor.gsf-clickable:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-top-color: transparent;
}
.grc-sponsor.gsf-clickable:hover i {
  color: #a78bfa;
}

/* ===== GROUPED CARD ===== */

.grouped-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  pointer-events: none;
}

.grouped-card-sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gsf-separator {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.65rem;
  align-self: center;
}

/* ===== GROUPED MODAL SPONSOR TABS ===== */

.gdm-sponsor-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.gdm-sponsor-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: -1px;
}

.gdm-sponsor-tab.active {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.gdm-sponsor-tab:hover:not(.active) {
  background: var(--surface-alt);
  color: var(--text);
}

.gst-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.gst-icon {
  color: var(--primary);
  font-size: 0.9rem;
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.05), rgba(var(--tech-cyan-rgb), 0.02));
  border: 1px solid var(--border);
  transition: var(--transition);
}

.task-item:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  border-color: var(--border-hover);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .task-item:hover {
    transform: translateX(4px);
  }
}

.task-item.completed {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.12);
}

/* Cross-giveaway auto-completed task — muted visual */
.task-item.task-cross-completed {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.07);
}
.cross-giveaway-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}
.cross-giveaway-badge i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── Battle Mode ────────────────────────────────────────── */
.giveaway-mode-tag.mode-battle {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(249, 115, 22, 0.9));
  border: 1px solid rgba(252, 165, 165, 0.5);
  color: #fff1f2;
}
.giveaway-card.is-battle .card-flip-inner {
  border-color: rgba(239, 68, 68, 0.2);
}

/* Battle score header above task list */
.battle-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
}
.battle-score-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.battle-score-label i { margin-right: 0.3rem; }
.battle-score-label strong {
  color: #ef4444;
  font-size: 1.05rem;
}
.battle-rank-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f97316;
}

/* Battle re-task button */
.btn-battle-retask {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-battle-retask:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}
.btn-battle-retask.on-cooldown {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.05);
}
.btn-battle-retask i { font-size: 0.72rem; }

/* Battle count badge on tasks */
.battle-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Battle task score in task meta */
.battle-task-score {
  color: #ef4444;
  font-weight: 600;
}
.battle-task-score i { font-size: 0.7rem; margin-right: 0.15rem; }

/* Participant battle score overlay */
.gdm-participant.has-battle-score {
  position: relative;
}
.gdm-participant-battle-score {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.task-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  margin-right: 0;
  flex-shrink: 0;
}

.task-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-name {
  font-weight: 600;
}

.task-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-link {
  color: var(--accent-info);
  font-size: 0.85rem;
  transition: var(--transition);
}

.task-link:hover {
  color: var(--accent-primary);
}

.empty-state {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-muted);
}

/* Load More Button — styles in base.css (shared with store) */

@media (max-width: 900px) {
  .giveaways-hero {
    flex-direction: column;
    text-align: center;
  }

  .giveaways-metrics {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Mobile: full-width sticky bar, tighter spacing */
  .filters-bar {
    padding: 0.75rem 1rem;
    gap: 0;
    z-index: 999;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .filters-bar-top {
    gap: 0.5rem;
  }

  .giveaway-sort-select { min-width: 90px; font-size: 0.72rem; }

  .view-toggle-btn span { display: none; } /* icon only on mobile */

  .filter-dropdown-group { flex: 1 1 calc(50% - 0.75rem); min-width: 0; }
  .filter-dd-label { font-size: 0.62rem; }
  .filter-select { font-size: 0.8rem; padding: 0.4rem 1.8rem 0.4rem 0.5rem; }
}

@media (max-width: 640px) {
  .task-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .task-icon {
    margin: 0 auto;
  }

  .task-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== COUNTDOWN TIMER STYLES ===== */
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.1), rgba(var(--tech-cyan-rgb), 0.05));
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--tech-blue-rgb), 0.2);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
}

.countdown-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.countdown-separator {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: -8px;
}

.countdown-timer.countdown-urgent {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

.countdown-timer.countdown-urgent .countdown-value {
  color: #ef4444;
}

.countdown-ended {
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}


/* ===== GLOW EFFECT ===== */
/* --glow-color / --glow-blur / --glow-spread are set via JS on .giveaway-card
   and inherited by .card-flip-inner — do NOT re-declare them here */
.giveaway-card.has-glow .card-flip-inner {
  box-shadow: 0 0 var(--glow-blur, 15px) var(--glow-spread, 5px) var(--glow-color, #00ffff);
  border-color: var(--glow-color, #00ffff);
}

.giveaway-card.has-glow[data-glow-animation="pulse"] .card-flip-inner {
  animation: card-glow-pulse 2s ease-in-out infinite;
}

.giveaway-card.has-glow[data-glow-animation="breathe"] .card-flip-inner {
  animation: card-glow-breathe 3s ease-in-out infinite;
}

.giveaway-card.has-glow[data-glow-animation="flicker"] .card-flip-inner {
  animation: card-glow-flicker 1.5s ease-in-out infinite;
}

/* Compact row glow */
.giveaway-row-compact.has-glow {
  box-shadow: 0 0 var(--glow-blur, 15px) var(--glow-spread, 5px) var(--glow-color, #00ffff);
  border-color: var(--glow-color, #00ffff);
}
.giveaway-row-compact.has-glow:hover {
  box-shadow: 0 0 calc(var(--glow-blur, 15px) * 1.5) calc(var(--glow-spread, 5px) * 1.2) var(--glow-color, #00ffff);
}
.giveaway-row-compact[data-glow-animation="pulse"] {
  animation: card-glow-pulse 2s ease-in-out infinite;
}
.giveaway-row-compact[data-glow-animation="breathe"] {
  animation: card-glow-breathe 3s ease-in-out infinite;
}
.giveaway-row-compact[data-glow-animation="flicker"] {
  animation: card-glow-flicker 1.5s ease-in-out infinite;
}

@keyframes card-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 var(--glow-blur) var(--glow-spread) var(--glow-color);
  }
  50% {
    box-shadow: 0 0 calc(var(--glow-blur) * 1.5) calc(var(--glow-spread) * 1.3) var(--glow-color);
  }
}

@keyframes card-glow-breathe {
  0%, 100% {
    box-shadow: 0 0 var(--glow-blur) var(--glow-spread) var(--glow-color);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 calc(var(--glow-blur) * 1.2) calc(var(--glow-spread) * 1.1) var(--glow-color);
    transform: scale(1.01);
  }
}

@keyframes card-glow-flicker {
  0%, 100% {
    box-shadow: 0 0 var(--glow-blur) var(--glow-spread) var(--glow-color);
    opacity: 1;
  }
  25% {
    box-shadow: 0 0 calc(var(--glow-blur) * 0.7) calc(var(--glow-spread) * 0.8) var(--glow-color);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 calc(var(--glow-blur) * 1.3) calc(var(--glow-spread) * 1.2) var(--glow-color);
    opacity: 1;
  }
  75% {
    box-shadow: 0 0 calc(var(--glow-blur) * 0.5) calc(var(--glow-spread) * 0.6) var(--glow-color);
    opacity: 0.85;
  }
}

/* ===== SHARE BUTTONS STYLES ===== */
.share-buttons {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.giveaway-image:hover .share-buttons {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-share {
  width: 44px;
  height: 44px;
  min-width: 44px; /* WCAG touch target minimum */
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  font-size: 1rem;
}

.btn-share:hover {
  transform: scale(1.1);
  background: var(--accent-primary);
}

.btn-share-copy:hover {
  background: #10b981;
}

.btn-share-copy.copy-success {
  background: #10b981;
  animation: copy-pulse 0.3s ease;
}

.btn-share-copy.copy-success i {
  animation: copy-check 0.3s ease;
}

@keyframes copy-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes copy-check {
  0% { transform: scale(0) rotate(-45deg); }
  50% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.btn-share-twitter:hover {
  background: #1da1f2;
}

.btn-share-facebook:hover {
  background: #1877f2;
}

.share-icon {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== BUTTON LOADING/SUCCESS/ERROR STATES ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #10b981 !important;
}

.btn-error {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: #ef4444 !important;
}

.success-checkmark,
.error-icon {
  margin-right: 6px;
  font-weight: 700;
}

/* ===== ENTRY CONFIRMATION FEEDBACK ===== */
.entry-confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: none; /* Prevent invisible element from blocking card button taps */
}

.entry-confirmation.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.entry-success {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-card));
}

.entry-error {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--bg-card));
}

.confirmation-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-icon svg {
  width: 24px;
  height: 24px;
}

.confirmation-icon.success-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.confirmation-icon.error-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.confirmation-content {
  flex: 1;
}

.confirmation-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.confirmation-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.confirmation-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.confirmation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.confirmation-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ===== SITE-WIDE THEME GLOW ON AVATARS ===== */

.cosmetic-theme-glow {
  box-shadow: 0 0 10px var(--theme-glow-color, transparent),
              0 0 4px var(--theme-glow-color, transparent);
  border-radius: 50%;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .countdown-timer {
    gap: 0.15rem;
    padding: 0.5rem;
  }

  .countdown-unit {
    min-width: 35px;
  }

  .countdown-value {
    font-size: 1.1rem;
  }

  .countdown-separator {
    font-size: 1rem;
  }

  .share-buttons {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .entry-confirmation {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* ===== ACHIEVEMENT TOAST ===== */
.achievement-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10001;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.achievement-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.achievement-toast-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.15;
  filter: blur(60px);
  pointer-events: none;
  animation: achievement-glow 2s ease-in-out infinite;
}

@keyframes achievement-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.1); }
}

.achievement-toast-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  animation: achievement-icon-bounce 0.6s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes achievement-icon-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.achievement-toast-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.achievement-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.achievement-toast-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tech-purple);
}

.achievement-toast-tier {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.achievement-toast-name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.achievement-toast-desc {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.achievement-toast-reward {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--status-success);
  background: rgba(34, 197, 94, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.achievement-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 2;
}

.achievement-toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .achievement-toast {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    width: auto;
    transform: translateY(100%) scale(0.9);
  }

  .achievement-toast.show {
    transform: translateY(0) scale(1);
  }

  .achievement-toast-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* ===== SPONSORS SLIDER ===== */

.sponsors-slider[hidden] { display: none; }

.sponsors-slider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.25rem;
  overflow: hidden;
  min-height: 52px;
}

.sponsors-slider__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.sponsors-slider__label:hover {
  color: var(--accent, #00bcd4);
}

.sponsors-slider__label i {
  color: var(--accent, #00bcd4);
  font-size: 0.85rem;
}

/* Fading edges mask */
.sponsors-slider__track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sponsors-slider__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: sponsors-scroll 28s linear infinite;
}

/* Pause on hover only for pointer devices (mouse) — not sticky on touch */
@media (hover: hover) and (pointer: fine) {
  .sponsors-slider__track-wrap:hover .sponsors-slider__track {
    animation-play-state: paused;
  }
}

@keyframes sponsors-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsors-slider__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: background 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

a.sponsors-slider__item:hover {
  background: rgba(255,255,255,0.05);
}

.ssi-logo {
  height: 26px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.ssi-icon {
  color: var(--accent, #00bcd4);
  font-size: 1rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.ssi-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-slider__track {
    animation: none;
  }
}

/* Touch-dragging: pause animation, use JS transform */
.sponsors-slider__track.is-dragging {
  animation-play-state: paused !important;
  transition: none !important;
  cursor: grabbing;
}

@media (max-width: 640px) {
  .sponsors-slider {
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }
  .sponsors-slider__label span {
    display: none;
  }
  .sponsors-slider__label {
    padding-right: 0.75rem;
  }
}

/* ===== GROUPED MODAL — MOBILE ===== */
@media (max-width: 768px) {
  /* Sponsor tabs sit inside the header grid (injected after .gdm-header-meta).
     Span full width and scroll horizontally instead of wrapping. */
  .gdm-sponsor-tabs {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0.6rem 1rem 0;
    scrollbar-width: none;
  }

  .gdm-sponsor-tabs::-webkit-scrollbar {
    display: none;
  }

  .gdm-sponsor-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ============================
   Sponsor Profile Modal (.spm-*)
   ============================ */

.sponsor-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sponsor-profile-modal.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: rgba(15, 17, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #e2e8f0;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: spm-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes spm-enter {
  from { transform: scale(0.95) translateY(-20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.spm-dialog::-webkit-scrollbar { width: 6px; }
.spm-dialog::-webkit-scrollbar-track { background: transparent; }
.spm-dialog::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.spm-dialog::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.spm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spm-error {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

/* Close button */
.spm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.spm-close:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

/* Header */
.spm-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.spm-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.spm-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #8b5cf6;
  flex-shrink: 0;
}

.spm-header-info {
  min-width: 0;
}

.spm-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #f1f5f9;
}

.spm-socials {
  display: flex;
  gap: 0.6rem;
}

.spm-social {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.2s;
  text-decoration: none;
}
.spm-social:hover { color: #8b5cf6; }

.spm-full-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #8b5cf6;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}
.spm-full-profile-link:hover { opacity: 0.8; }

/* Sections */
.spm-section {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.spm-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.spm-section-title i { font-size: 0.85rem; color: #8b5cf6; }

.spm-about-text {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Stats grid */
.spm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.spm-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.spm-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b5cf6;
}

.spm-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team grid */
.spm-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.spm-team-member {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.spm-team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spm-team-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spm-team-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spm-team-role {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: capitalize;
}

/* Giveaway mini cards (horizontal scroll row) */
.spm-giveaways-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.spm-giveaways-row::-webkit-scrollbar { height: 4px; }
.spm-giveaways-row::-webkit-scrollbar-track { background: transparent; }
.spm-giveaways-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.spm-giveaway-mini {
  flex-shrink: 0;
  width: 140px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.spm-giveaway-mini:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.spm-mini-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.spm-mini-img--placeholder {
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #8b5cf6;
}

.spm-mini-info {
  padding: 0.5rem 0.6rem;
}

.spm-mini-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spm-mini-platform {
  display: inline-block;
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Campaign items */
.spm-campaign-item {
  margin-bottom: 0.5rem;
}

.spm-campaign-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.spm-campaign-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.spm-campaign-arrow {
  color: #64748b;
  font-size: 0.7rem;
  transition: transform 0.2s;
  width: 14px;
  text-align: center;
}
.spm-campaign-arrow.spm-arrow-open {
  transform: rotate(90deg);
}

.spm-campaign-name {
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.spm-campaign-count {
  font-size: 0.75rem;
  color: #64748b;
}

.spm-camp-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.spm-camp-badge--ended {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.spm-campaign-giveaways {
  padding: 0.5rem 0 0 1.5rem;
}

.spm-empty {
  color: #475569;
  font-size: 0.8rem;
  font-style: italic;
  margin: 0.5rem 0;
}

/* Winners list */
.spm-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spm-winner-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.spm-winner-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.spm-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spm-winner-info {
  flex: 1;
  min-width: 0;
}

.spm-winner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.spm-winner-detail {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spm-winner-detail strong { color: #cbd5e1; }

.spm-winner-ago {
  font-size: 0.7rem;
  color: #64748b;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================
   All Featured Modal (.afm-*)
   ============================ */
.all-featured-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.all-featured-modal.hidden { display: none !important; }

.afm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.afm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  background: rgba(15,17,30,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow-y: auto;
  color: #e2e8f0;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  animation: spm-enter 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.afm-dialog::-webkit-scrollbar { width: 6px; }
.afm-dialog::-webkit-scrollbar-track { background: transparent; }
.afm-dialog::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.afm-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.afm-close:hover { background: rgba(255,255,255,0.12); color: #e2e8f0; }

.afm-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.afm-title i { color: #f59e0b; }

.afm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.afm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.afm-card:hover {
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.04);
  transform: translateY(-2px);
}

.afm-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.afm-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.afm-card__badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(245,158,11,0.9);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.afm-card__body {
  padding: 0.65rem 0.75rem 0.75rem;
}
.afm-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afm-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.afm-card__platform {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.afm-card__time i { color: #f59e0b; }

/* ============================
   All Sponsors Modal (.asm-*)
   ============================ */

.all-sponsors-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.all-sponsors-modal.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.asm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.asm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: rgba(15, 17, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow-y: auto;
  color: #e2e8f0;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: spm-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.asm-dialog::-webkit-scrollbar { width: 6px; }
.asm-dialog::-webkit-scrollbar-track { background: transparent; }
.asm-dialog::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.asm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.asm-close:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

.asm-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.asm-title i { color: #8b5cf6; }

.asm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.asm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.asm-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

.asm-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.asm-card-logo--placeholder {
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #8b5cf6;
}

.asm-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}

/* ── ASM Tablet portrait ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .all-sponsors-modal {
    align-items: flex-start;
    padding-top: 5rem;
  }

  .asm-dialog {
    max-height: calc(100svh - 5rem - 1rem);
    max-height: calc(100vh - 5rem - 1rem);
  }
}

/* ── ASM Tablet landscape ── */
@media (orientation: landscape) and (min-width: 769px) and (max-height: 900px) {
  .all-sponsors-modal {
    align-items: flex-start;
    padding-top: 4.5rem;
  }

  .asm-dialog {
    max-height: calc(100svh - 4.5rem - 1rem);
    max-height: calc(100vh - 4.5rem - 1rem);
  }
}

/* ── ASM Mobile ── */
@media (max-width: 768px) {
  .asm-dialog {
    max-width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
  }

  .asm-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .asm-card { padding: 1rem 0.5rem; }
  .asm-card-logo, .asm-card-logo--placeholder { width: 52px; height: 52px; }
  .asm-card-name { font-size: 0.75rem; }
}

/* ── SPM Tablet portrait ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .sponsor-profile-modal {
    align-items: flex-start;
    padding-top: 5rem;
  }

  .spm-dialog {
    max-height: calc(100svh - 5rem - 1rem);
    max-height: calc(100vh - 5rem - 1rem);
  }
}

/* ── SPM Tablet landscape ── */
@media (orientation: landscape) and (min-width: 769px) and (max-height: 900px) {
  .sponsor-profile-modal {
    align-items: flex-start;
    padding-top: 4.5rem;
  }

  .spm-dialog {
    max-height: calc(100svh - 4.5rem - 1rem);
    max-height: calc(100vh - 4.5rem - 1rem);
  }
}

/* ── SPM Mobile ── */
@media (max-width: 768px) {
  .sponsor-profile-modal {
    padding: 0;
    padding-top: 56px; /* clear mobile nav (56px fixed) */
    align-items: flex-start;
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    .sponsor-profile-modal {
      padding-top: calc(56px + env(safe-area-inset-top));
    }
  }

  body.has-mobile-subbar .sponsor-profile-modal {
    padding-top: 84px; /* nav 56px + subbar 28px */
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    body.has-mobile-subbar .sponsor-profile-modal {
      padding-top: calc(84px + env(safe-area-inset-top));
    }
  }

  .spm-dialog {
    max-width: 100%;
    max-height: calc(100vh - 56px);
    max-height: calc(100svh - 56px);
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    .spm-dialog {
      max-height: calc(100svh - 56px - env(safe-area-inset-top));
    }
  }

  body.has-mobile-subbar .spm-dialog {
    max-height: calc(100vh - 84px);
    max-height: calc(100svh - 84px);
  }

  .spm-header {
    flex-direction: column;
    text-align: center;
    padding-right: 0;
  }

  .spm-logo, .spm-logo-placeholder {
    width: 56px;
    height: 56px;
  }

  .spm-name { font-size: 1.25rem; }

  .spm-socials { justify-content: center; }

  .spm-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  .spm-stat-card { padding: 0.65rem 0.5rem; }
  .spm-stat-value { font-size: 1.2rem; }
  .spm-stat-label { font-size: 0.65rem; }

  .spm-team-grid { grid-template-columns: 1fr; }

  .spm-giveaway-mini { width: 120px; }
  .spm-mini-img { height: 64px; }

  .spm-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
  }
}


/* ───────────────────────────────────────────────────────────────────────────
   FEATURED CAROUSEL
   ─────────────────────────────────────────────────────────────────────────── */

.featured-carousel[hidden] { display: none; }

.featured-carousel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

/* ── Viewport & Track ── */

.featured-carousel__viewport {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.featured-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Landscape Slide ── */

.fc-slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  cursor: pointer;
}

.fc-slide__img-col {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.fc-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fc-slide:hover .fc-slide__img {
  transform: scale(1.03);
}

.fc-slide__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.fc-slide__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.fc-slide__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fc-slide__platform {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.fc-slide__value {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fbbf24;
}

.fc-slide__value i {
  font-size: 0.58rem;
  margin-right: 0.15rem;
}

.fc-slide__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-slide__desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-slide__footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.fc-slide__time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.fc-slide__time i {
  margin-right: 0.2rem;
  color: #a78bfa;
}

/* ── Sponsor block — sits in the info column ── */

.fc-slide__sponsor-overlay {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.18) 0%, rgba(109, 40, 217, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  margin-top: auto;
  text-decoration: none;
}

.fc-slide__sponsor-overlay:hover {
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.28) 0%, rgba(109, 40, 217, 0.2) 100%);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}

.fc-slide__sponsor-logo-lg {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.fc-slide__sponsor-icon-lg {
  font-size: 1.3rem;
  color: #a78bfa;
  flex-shrink: 0;
}

.fc-slide__sponsor-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fc-slide__sponsor-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a78bfa;
}

.fc-slide__sponsor-name-lg {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(139, 92, 246, 0.5);
}

.fc-slide__cta {
  margin-left: auto;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.fc-slide__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.fc-slide__cta i {
  margin-left: 0.3rem;
  font-size: 0.65rem;
}

/* ── Nav Arrows ── */

.fc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.featured-carousel__viewport:hover .fc-nav,
.featured-carousel__viewport:focus-within .fc-nav {
  opacity: 1;
}

.fc-nav:hover {
  background: rgba(139, 92, 246, 0.7);
}

.fc-nav--prev { left: 10px; }
.fc-nav--next { right: 10px; }
.fc-nav[hidden] { display: none; }

/* ── Footer: dots + view all ── */

.fc-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.35rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  min-height: 30px;
}

.fc-footer[hidden] { display: none; }

.fc-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  display: block;
}

.fc-dot--active {
  background: #8b5cf6;
  transform: scale(1.3);
}

.fc-view-all {
  position: absolute;
  right: 0.85rem;
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fc-view-all:hover {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
}

.fc-view-all i {
  font-size: 0.62rem;
}

/* ── Sponsor styles — used by all-featured modal (openAllFeaturedModal) ── */

.fc-card__sponsor {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.63rem;
  min-height: 26px;
}

.fc-card__sponsor-prefix {
  color: var(--text-muted, #64748b);
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
}

.fc-card__sponsor-logo {
  height: 14px;
  width: auto;
  max-width: 50px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.fc-card__sponsor-icon {
  color: var(--accent, #8b5cf6);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.fc-card__sponsor-name {
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .featured-carousel__viewport {
    height: auto;
  }
  .fc-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 160px auto;
    height: auto;
  }
  .fc-slide__img-col {
    height: 160px;
  }
  .fc-slide__sponsor-logo-lg {
    height: 18px;
  }
  .fc-slide__sponsor-name-lg {
    font-size: 0.8rem;
  }
  .fc-slide__info {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 0.85rem 1rem;
  }
  .fc-slide__title {
    font-size: 0.92rem;
  }
  .fc-slide__desc {
    display: none;
  }
  .fc-nav {
    opacity: 1;
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .fc-nav--prev { left: 6px; }
  .fc-nav--next { right: 6px; }
}

/* ── Sneak Peek — Frosted Glass Style ── */

.giveaway-card.is-sneak-peek .card-flip-inner {
  border-color: rgba(139, 92, 246, 0.2);
}
.giveaway-card.is-sneak-peek:hover .card-flip-inner {
  border-color: rgba(139, 92, 246, 0.4);
}

/* Frosted glass: blurred image + semi-transparent overlay */
.sp-blur-img {
  filter: blur(12px) saturate(0.5) brightness(0.45);
  transform: scale(1.15);
}
.sp-frosted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.sneak-peek-icon {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Badge pulsing */
.sneak-peek-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  animation: sp-pulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 8px rgba(124, 58, 237, 0.3); }
  50%      { opacity: 1;    box-shadow: 0 0 16px rgba(124, 58, 237, 0.6); }
}

/* Redacted text */
.sneak-peek-redacted {
  color: var(--text-muted, #64748b);
  letter-spacing: 0.2em;
  font-style: italic;
  opacity: 0.5;
}

/* Starts-in countdown accent */
.countdown-starts-in { color: #a78bfa; font-weight: 600; }
.cd-prefix {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-right: 0.5rem;
}

/* Stay Tuned button */
.btn-stay-tuned {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

/* Compact row sneak peek */
.giveaway-row-compact.is-sneak-peek {
  border-left: 3px solid rgba(139, 92, 246, 0.3);
}
.grc-img-sneak-peek {
  position: relative;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
}
.sp-blur-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.5) brightness(0.4);
  transform: scale(1.2);
}
.sp-thumb-q {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139, 92, 246, 0.7);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1;
}

/* Modal sneak peek slide */
.sp-modal-slide {
  position: relative;
  overflow: hidden;
}
.sp-modal-slide .sp-blur-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-modal-slide .sp-frosted-overlay {
  border-radius: inherit;
}

/* ── Consolidated Task Requirement Summary ─────────────────── */

.task-req-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.task-req-summary--warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.task-req-summary--ok {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.task-req-summary__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.task-req-summary--warn .task-req-summary__header { color: #f59e0b; }
.task-req-summary--ok .task-req-summary__header   { color: #22c55e; }

.task-req-summary__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-req-summary__items:empty { display: none; }

.task-req-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  position: relative;
  font-size: 1rem;
  transition: transform 0.15s;
}
.task-req-item > i:first-child { font-size: 1rem; }
.task-req-item > i:last-child {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 9px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--bg-deep, #0a0a1a);
}
.task-req-item--connected { opacity: 0.65; }
.task-req-item--connected > i:last-child { background: #22c55e; color: #fff; }
.task-req-item--missing { cursor: pointer; }
.task-req-item--missing:hover { transform: scale(1.12); }
.task-req-item--missing > i:last-child { background: #ef4444; color: #fff; }

/* Platform color variants */
.task-req-item--youtube   { background: rgba(255,0,0,0.12);     color: #ff4444; }
.task-req-item--discord   { background: rgba(88,101,242,0.12);  color: #7289da; }
.task-req-item--twitter   { background: rgba(102,102,102,0.12); color: #999;    }
.task-req-item--steam     { background: rgba(102,192,244,0.12); color: #66c0f4; }
.task-req-item--facebook  { background: rgba(24,119,242,0.12);  color: #4a90d9; }
.task-req-item--tiktok    { background: rgba(254,44,85,0.12);   color: #fe2c55; }
.task-req-item--instagram { background: rgba(225,48,108,0.12);  color: #e1306c; }
.task-req-item--twitch    { background: rgba(145,70,255,0.12);  color: #9146ff; }
.task-req-item--telegram  { background: rgba(0,136,204,0.12);   color: #0088cc; }
.task-req-item--extension { background: rgba(245,158,11,0.12);  color: #f59e0b; }

/* Dimmed task row when requirement unmet */
.task-item.task-unmet {
  opacity: 0.45;
}
.task-item.task-unmet .task-name,
.task-item.task-unmet .task-meta {
  color: var(--text-muted, #666);
}

/* Light theme */
[data-theme="light"] .task-req-summary--warn { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.3); }
[data-theme="light"] .task-req-summary--ok   { background: rgba(34,197,94,0.06);  border-color: rgba(34,197,94,0.3);  }
[data-theme="light"] .task-req-summary--warn .task-req-summary__header { color: #b45309; }
[data-theme="light"] .task-req-summary--ok .task-req-summary__header   { color: #16a34a; }
[data-theme="light"] .task-req-item--connected > i:last-child { border-color: #fff; }
[data-theme="light"] .task-req-item--missing > i:last-child   { border-color: #fff; }
[data-theme="light"] .task-req-item--youtube   { background: rgba(255,0,0,0.07); }
[data-theme="light"] .task-req-item--discord   { background: rgba(88,101,242,0.07); }
[data-theme="light"] .task-req-item--twitter   { background: rgba(0,0,0,0.05); color: #555; }
[data-theme="light"] .task-req-item--steam     { background: rgba(102,192,244,0.09); color: #2a6496; }
[data-theme="light"] .task-req-item--extension { background: rgba(245,158,11,0.09); color: #b45309; }

/* Filters panel - light theme */
[data-theme="light"] .filter-select {
  background-color: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
  color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
[data-theme="light"] .filter-select option { background: #fff; color: #0f172a; }

/* Card flip - light theme */
[data-theme="light"] .card-back-header { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .btn-flip-back { background: rgba(var(--tech-blue-rgb), 0.05); }
[data-theme="light"] .btn-flip-back:hover { background: rgba(var(--tech-blue-rgb), 0.1); }
[data-theme="light"] .btn-card-flip { background: rgba(0, 0, 0, 0.45); }

/* Responsive ≤480px */
@media (max-width: 480px) {
  .task-req-item { width: 30px; height: 30px; border-radius: 6px; font-size: 0.85rem; }
  .task-req-item > i:first-child { font-size: 0.85rem; }
  .task-req-summary { padding: 8px 10px; }
}

/* ═══════════════════════════════════════════════════════════
   POST-GIVEAWAY FEEDBACK
   ═══════════════════════════════════════════════════════════ */

/* Card overlay (bottom of .giveaway-image) */
.giveaway-feedback-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}
.giveaway-feedback-overlay .fa-thumbs-up { color: #22c55e; }
.gfo-pct { color: #22c55e; }
.gfo-count { opacity: 0.7; font-weight: 400; margin-left: auto; }

/* Wide view stat pill */
.feedback-stat { color: #22c55e !important; }
.feedback-stat .fa-thumbs-up { margin-right: 3px; }

/* Compact row feedback */
.grc-feedback { color: #22c55e; }
.grc-feedback .fa-thumbs-up { margin-right: 2px; font-size: 0.7rem; }

/* Modal feedback section */
.gdm-feedback {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.gdm-feedback-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.gdm-feedback-title i { margin-right: 6px; opacity: 0.7; }

.gdm-feedback-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.btn-feedback {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}
.btn-feedback:hover { border-color: var(--accent); color: var(--text); }
.btn-feedback.selected { border-width: 2px; }
.btn-feedback--like.selected    { border-color: #22c55e; background: rgba(34,197,94,0.1);  color: #22c55e; }
.btn-feedback--neutral.selected { border-color: #94a3b8; background: rgba(148,163,184,0.1); color: #94a3b8; }
.btn-feedback--dislike.selected { border-color: #ef4444; background: rgba(239,68,68,0.1);  color: #ef4444; }

/* Reason chips */
.gdm-feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.feedback-reason-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.feedback-reason-chip:hover { border-color: var(--accent); }
.feedback-reason-chip.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb, 99,102,241), 0.1);
  color: var(--accent);
}

/* Feedback results (read-only summary) */
.gdm-feedback-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.75rem;
}
.feedback-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.feedback-bar-fill {
  height: 6px;
  border-radius: 3px;
  flex: 1;
  background: var(--bg-tertiary, rgba(255,255,255,0.06));
  overflow: hidden;
}
.feedback-bar-fill span {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.feedback-bar-fill--like span    { background: #22c55e; }
.feedback-bar-fill--neutral span { background: #94a3b8; }
.feedback-bar-fill--dislike span { background: #ef4444; }

/* Dashboard history rate button */
.btn-feedback-history {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-feedback-history:hover { border-color: #f59e0b; color: #f59e0b; }
.btn-feedback-history.rated { color: #f59e0b; border-color: #f59e0b; }

/* Light theme overrides */
[data-theme="light"] .giveaway-feedback-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}
[data-theme="light"] .feedback-bar-fill {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .btn-feedback {
  border-color: #d1d5db;
  color: #6b7280;
}
[data-theme="light"] .btn-feedback:hover { color: #374151; }
[data-theme="light"] .feedback-reason-chip {
  border-color: #d1d5db;
  color: #6b7280;
}
[data-theme="light"] .btn-feedback-history {
  border-color: #d1d5db;
  color: #9ca3af;
}
[data-theme="light"] .giveaway-tasks {
  scrollbar-color: rgba(139, 92, 246, 0.18) transparent;
}
[data-theme="light"] .giveaway-tasks::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.18); }
[data-theme="light"] .giveaway-tasks::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.3); }

/* ── Sponsor Profile Modal (.spm-*) — light theme ─────────────────── */
[data-theme="light"] .spm-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .spm-dialog::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] .spm-close {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #64748b;
}
[data-theme="light"] .spm-close:hover {
  background: rgba(0,0,0,0.1);
  color: #1e293b;
}
[data-theme="light"] .spm-logo { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .spm-name { color: #1e293b; }
[data-theme="light"] .spm-social { color: #64748b; }
[data-theme="light"] .spm-section { border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .spm-section-title { color: #475569; }
[data-theme="light"] .spm-about-text { color: #475569; }
[data-theme="light"] .spm-stat-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .spm-team-member {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .spm-team-name { color: #1e293b; }
[data-theme="light"] .spm-team-role { color: #64748b; }
[data-theme="light"] .spm-giveaways-row { scrollbar-color: rgba(0,0,0,0.12) transparent; }
[data-theme="light"] .spm-giveaway-mini {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .spm-mini-title { color: #1e293b; }
[data-theme="light"] .spm-mini-platform { color: #64748b; }
[data-theme="light"] .spm-campaign-toggle {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: #1e293b;
}
[data-theme="light"] .spm-campaign-toggle:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .spm-campaign-count { color: #64748b; }
[data-theme="light"] .spm-empty { color: #94a3b8; }
[data-theme="light"] .spm-winner-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .spm-winner-name { color: #1e293b; }
[data-theme="light"] .spm-winner-detail { color: #64748b; }
[data-theme="light"] .spm-winner-detail strong { color: #475569; }
[data-theme="light"] .spm-winner-ago { color: #94a3b8; }

/* ── Sponsor modal — light theme ──────────────────────────────────── */
[data-theme="light"] .asm-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1d2e;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .asm-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #6b7280;
}
[data-theme="light"] .asm-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1d2e;
}
[data-theme="light"] .asm-title {
  color: #1a1d2e;
}
[data-theme="light"] .asm-sponsor-name {
  color: #1a1d2e;
}
[data-theme="light"] .asm-dialog::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* ── Featured modal — light theme ─────────────────────────────────── */
[data-theme="light"] .afm-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1d2e;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .afm-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #6b7280;
}
[data-theme="light"] .afm-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1d2e;
}
[data-theme="light"] .afm-title {
  color: #1a1d2e;
}
[data-theme="light"] .afm-dialog::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
