@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-light: #fff5f7;
  --bg-dark: #0b0910;
  --card-light: #ffffff;
  --card-dark: #130f1d;
  --border-light: rgba(244, 63, 94, 0.15);
  --border-dark: rgba(244, 63, 94, 0.15);
  --accent-rose: #f43f5e;
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hide scrollbar for clean horizontal chip scrolling on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism effects with sultry tint */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dark .glass-panel {
  background: rgba(19, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* NSFW seductive hover glow */
.glow-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
}

.glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(244, 63, 94, 0.18), 0 0 0 1px rgba(244, 63, 94, 0.3);
}

.dark .glow-card:hover {
  box-shadow: 0 22px 35px -10px rgba(244, 63, 94, 0.25), 0 0 0 1px rgba(244, 63, 94, 0.45);
}

/* Active filter chip: Minimalist Rose Accent */
.chip-active {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25) !important;
}

/* Anti-flicker & subpixel clipping fix for cover banner container */
.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #130f1d;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  border-top-left-radius: 0.95rem;
  border-top-right-radius: 0.95rem;
}

/* Image hover blur & darken effect */
.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.game-card:hover .card-cover-img {
  transform: scale(1.05);
}

/* =========================================================
   NATIVE CONTENT LOCKER MODAL (#my-locker)
========================================================= */
.locker-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.25s ease;
}

.locker-modal.open {
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.locker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .locker-backdrop {
  background: rgba(6, 4, 11, 0.82);
}

.locker-modal.open .locker-backdrop {
  opacity: 1;
}

/* Modal Card Box: Light mode default */
#my-locker.my-locker-box {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(244, 63, 94, 0.22) !important;
  border-radius: 26px !important;
  width: 100% !important;
  max-width: 420px !important;
  padding: 30px 24px 22px !important;
  box-shadow: 0 25px 60px -10px rgba(244, 63, 94, 0.18), 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  z-index: 2;
  overflow: hidden;
  box-sizing: border-box;
  color: #0f172a;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s;
  will-change: transform, opacity;
}

/* Dark mode modal box */
.dark #my-locker.my-locker-box {
  background: #140f20 !important;
  border: 1px solid rgba(244, 63, 94, 0.28) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(244, 63, 94, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #ffffff;
}

.locker-modal.open #my-locker.my-locker-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Language Selector: Sleek theme-responsive pill in header */
.locker-lang-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 4px 8px 4px 9px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.locker-lang-wrapper:hover {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.35);
}

.dark .locker-lang-wrapper {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark .locker-lang-wrapper:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
}

.locker-lang-icon {
  width: 14px;
  height: 14px;
  color: #f43f5e;
  flex-shrink: 0;
  margin-right: 4px;
  pointer-events: none;
}

.locker-lang-select {
  background: transparent;
  border: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  outline: none;
  cursor: pointer;
  padding: 0 2px 0 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.dark .locker-lang-select {
  color: #ffffff;
}

.locker-lang-select option {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  padding: 6px;
}

.dark .locker-lang-select option {
  background: #140f20;
  color: #ffffff;
}

.locker-lang-chevron {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  flex-shrink: 0;
  pointer-events: none;
  margin-left: 1px;
}

.dark .locker-lang-chevron {
  color: #cbd5e1;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.brand-logo {
  max-width: 180px;
  height: auto;
  max-height: 56px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(244, 63, 94, 0.25));
}

.ready-section {
  text-align: center;
  margin-bottom: 22px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.08));
  border: 1.5px solid rgba(244, 63, 94, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  position: relative;
}

.success-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 63, 94, 0.4);
  animation: pulse-ring 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.success-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fb7185;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ready-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #0f172a;
  letter-spacing: -0.3px;
  text-align: center;
}

.dark .ready-title {
  color: #ffffff;
}

.ready-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  padding: 0 6px;
  text-align: center;
}

.dark .ready-desc {
  color: #cbd5e1;
}

.offers-loading {
  padding: 24px 10px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.dark .offers-loading {
  color: #cbd5e1;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(244, 63, 94, 0.25);
  border-top-color: #f43f5e;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 12px auto;
}

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

.offer-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.offer-card {
  display: flex;
  align-items: center;
  background: #fff5f7;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-left: 4px solid #f43f5e;
  border-radius: 14px;
  padding: 12px 14px;
  gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  color: #0f172a !important;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.08);
}

.offer-card:hover {
  background: #ffeef1;
  border-color: #f43f5e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.2);
}

.dark .offer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #f43f5e;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dark .offer-card:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: #f43f5e;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.25);
}

.offer-card-1 {
  border-left-color: #f43f5e !important;
}

.dark .offer-card-1 {
  border-left-color: #f43f5e !important;
}

.offer-card-2 {
  border-left-color: #a855f7 !important;
}

.offer-card-2:hover {
  border-color: #a855f7;
  background: #faf5ff;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.2);
}

.dark .offer-card-2 {
  border-left-color: #a855f7 !important;
}

.dark .offer-card-2:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.25);
}

.offer-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-grow: 1;
  min-width: 0;
}

.offer-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.dark .offer-img {
  background: rgba(255, 255, 255, 0.08);
}

.offer-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.offer-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .offer-title {
  color: #ffffff;
}

.offer-desc {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .offer-desc {
  color: #94a3b8;
}

.offer-action {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border: none;
  border-bottom: 3px solid #9f1239;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.offer-card:hover .offer-action {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.45);
}

.offer-card-2 .offer-action {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  border-bottom: 3px solid #581c87;
  color: #ffffff;
}

.offer-card-2:hover .offer-action {
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45);
}

.status-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .status-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-footer .spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(244, 63, 94, 0.25);
  border-top-color: #f43f5e;
  margin: 0;
}

.status-text {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dark .status-text {
  color: #94a3b8;
}

@media (max-width: 480px) {
  #my-locker.my-locker-box {
    padding: 26px 18px 20px !important;
    border-radius: 22px !important;
  }
  .ready-title {
    font-size: 21px;
  }
  .ready-desc {
    font-size: 13px;
  }
  .offer-card {
    padding: 10px 12px;
  }
  .offer-action {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 63, 94, 0.45);
}
