/* ========== Ultra-modern Offerwalls Grid + Neon Animations ========== */
.ow-grid-section {
  position: relative;
}
.ow-grid-head {
  margin-bottom: 14px;
}
.ow-grid-title {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.ow-grid-title i {
  color: #a78bfa;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7));
  animation: owIconPulse 2.4s ease-in-out infinite;
}
@keyframes owIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.7)); }
}
.ow-grid-count {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Responsive grid */
.ow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 576px) {
  .ow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
  }
}
@media (min-width: 768px) {
  .ow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) {
  .ow-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1200px) {
  .ow-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Card base + entrance */
.ow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  animation: owCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, filter 0.28s ease;
}
.ow-grid .ow-card:nth-child(1)  { animation-delay: 0.04s; }
.ow-grid .ow-card:nth-child(2)  { animation-delay: 0.08s; }
.ow-grid .ow-card:nth-child(3)  { animation-delay: 0.12s; }
.ow-grid .ow-card:nth-child(4)  { animation-delay: 0.16s; }
.ow-grid .ow-card:nth-child(5)  { animation-delay: 0.20s; }
.ow-grid .ow-card:nth-child(6)  { animation-delay: 0.24s; }
.ow-grid .ow-card:nth-child(7)  { animation-delay: 0.28s; }
.ow-grid .ow-card:nth-child(8)  { animation-delay: 0.32s; }
.ow-grid .ow-card:nth-child(9)  { animation-delay: 0.36s; }
.ow-grid .ow-card:nth-child(10) { animation-delay: 0.40s; }
.ow-grid .ow-card:nth-child(n+11) { animation-delay: 0.44s; }

@keyframes owCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Shine sweep */
.ow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 100%
  );
  transform: rotate(18deg);
  animation: owShine 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes owShine {
  0%, 35% { left: -60%; opacity: 0; }
  45%     { opacity: 1; }
  55%     { left: 120%; opacity: 0.55; }
  100%    { left: 120%; opacity: 0; }
}

.ow-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.35);
  filter: brightness(1.08);
  color: inherit;
  z-index: 5;
}
.ow-card:active {
  transform: translateY(-3px) scale(1.02);
}

/* Vibrant gradients (class + nth fallback) */
.ow-grad-0 {
  background: linear-gradient(145deg, #7c3aed 0%, #a855f7 45%, #c026d3 100%) !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}
.ow-grad-1 {
  background: linear-gradient(145deg, #6d28d9 0%, #7c3aed 50%, #4c1d95 100%) !important;
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.35);
}
.ow-grad-2 {
  background: linear-gradient(145deg, #0891b2 0%, #06b6d4 50%, #0e7490 100%) !important;
  box-shadow: 0 8px 28px rgba(8, 145, 178, 0.35);
}
.ow-grad-3 {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%) !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}
.ow-grad-4 {
  background: linear-gradient(145deg, #9333ea 0%, #c084fc 50%, #7e22ce 100%) !important;
  box-shadow: 0 8px 28px rgba(147, 51, 234, 0.35);
}
.ow-grad-5 {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 55%, #4c1d95 100%) !important;
  box-shadow: 0 8px 28px rgba(91, 33, 182, 0.35);
}
.ow-grad-6 {
  background: linear-gradient(145deg, #0e7490 0%, #22d3ee 50%, #06b6d4 100%) !important;
  box-shadow: 0 8px 28px rgba(14, 116, 144, 0.35);
}
.ow-grad-7 {
  background: linear-gradient(145deg, #1d4ed8 0%, #6366f1 50%, #4f46e5 100%) !important;
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.35);
}

/* nth fallback if no ow-grad class */
.ow-grid .ow-card:nth-child(8n+1):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #7c3aed 0%, #a855f7 45%, #c026d3 100%);
}
.ow-grid .ow-card:nth-child(8n+2):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #6d28d9 0%, #7c3aed 50%, #4c1d95 100%);
}
.ow-grid .ow-card:nth-child(8n+3):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #0891b2 0%, #06b6d4 50%, #0e7490 100%);
}
.ow-grid .ow-card:nth-child(8n+4):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
}
.ow-grid .ow-card:nth-child(8n+5):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #9333ea 0%, #c084fc 50%, #7e22ce 100%);
}
.ow-grid .ow-card:nth-child(8n+6):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 55%, #4c1d95 100%);
}
.ow-grid .ow-card:nth-child(8n+7):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #0e7490 0%, #22d3ee 50%, #06b6d4 100%);
}
.ow-grid .ow-card:nth-child(8n+8):not([class*="ow-grad"]) {
  background: linear-gradient(145deg, #1d4ed8 0%, #6366f1 50%, #4f46e5 100%);
}

.ow-grad-0:hover, .ow-grid .ow-card:nth-child(8n+1):hover {
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.55), 0 0 28px rgba(236, 72, 153, 0.28) !important;
}
.ow-grad-2:hover, .ow-grad-6:hover,
.ow-grid .ow-card:nth-child(8n+3):hover,
.ow-grid .ow-card:nth-child(8n+7):hover {
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.5), 0 0 28px rgba(34, 211, 238, 0.28) !important;
}
.ow-grad-3:hover, .ow-grad-7:hover,
.ow-grid .ow-card:nth-child(8n+4):hover,
.ow-grid .ow-card:nth-child(8n+8):hover {
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.5), 0 0 28px rgba(99, 102, 241, 0.28) !important;
}

/* Bonus pill */
.ow-bonus {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  line-height: 1.4;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
  animation: owBadgePulse 2.2s ease-in-out infinite;
}
@keyframes owBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(255,255,255,0.1); }
  50%      { transform: scale(1.08); box-shadow: 0 0 16px rgba(253, 230, 138, 0.4); }
}

/* Logo area */
.ow-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 8px;
  min-height: 0;
}
.ow-logo {
  max-height: 40px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}
.ow-card:hover .ow-logo {
  transform: scale(1.1);
}
.ow-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.ow-card-footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  padding: 7px 10px;
  text-align: center;
  flex-shrink: 0;
}
.ow-card-footer span {
  display: block;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

/* Unavailable */
.ow-card.ow-unavailable {
  opacity: 0.85;
  filter: grayscale(0.15);
}
.ow-card.ow-unavailable .ow-card-body {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  padding: 20px 12px;
  font-weight: 600;
  line-height: 1.35;
}

/* Survey partners colors */
#surveysGrid .ow-card:nth-child(4n+1) {
  background: linear-gradient(145deg, #059669 0%, #10b981 50%, #047857 100%) !important;
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.35);
}
#surveysGrid .ow-card:nth-child(4n+2) {
  background: linear-gradient(145deg, #6d28d9 0%, #8b5cf6 50%, #5b21b6 100%) !important;
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.35);
}
#surveysGrid .ow-card:nth-child(4n+3) {
  background: linear-gradient(145deg, #0e7490 0%, #14b8a6 50%, #0f766e 100%) !important;
  box-shadow: 0 8px 28px rgba(14, 116, 144, 0.35);
}
#surveysGrid .ow-card:nth-child(4n+4) {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 50%, #1e40af 100%) !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

/* Locked offerwall */
.ow-card.ow-locked {
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  filter: grayscale(0.2) brightness(0.78);
}
.ow-card.ow-locked:hover {
  transform: none;
  filter: grayscale(0.2) brightness(0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}
.ow-card.ow-locked::before {
  animation: none;
  opacity: 0;
}
.ow-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 6, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 8px;
  text-align: center;
}
.ow-lock-overlay > .fa-lock {
  font-size: 22px;
  color: #fbbf24;
  margin-bottom: 2px;
  animation: owLockBounce 1.8s ease-in-out infinite;
}
@keyframes owLockBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.ow-lock-text {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}
.ow-lock-text strong {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.ow-lock-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}
.ow-lock-stars i {
  font-size: 9px;
  color: #fbbf24;
  opacity: 0.9;
}