﻿/* FreeEgg Shop - Custom Styles & Animations */
:root {
  --brand-primary: #0ea5e9;
  --brand-primary-dark: #0284c7;
  --brand-secondary: #f59e0b;
  --brand-accent: #06b6d4;
  /* Locker background variables */
  --bg: #f1ecfb;
  --violet: #7c3aed;
  --cyan: #0891b2;
  --gold: #d97706;
  --white: #2a1b47;
  --w-60: rgba(42,27,71,0.62);
  --w-35: rgba(42,27,71,0.38);
}

/* Hero Background Slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f9ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
}

/* Locker-style Background */
body {
  background-color: var(--bg);
  position: relative;
}

/* Radial glow gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 18% -5%, rgba(124,58,237,0.16), transparent 70%),
    radial-gradient(ellipse 55% 40% at 92% 8%,  rgba(34,211,238,0.22), transparent 70%),
    radial-gradient(ellipse 75% 55% at 50% 115%, rgba(251,191,36,0.22), transparent 75%);
  pointer-events: none;
}

/* Diagonal grid pattern with radial mask */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(135deg, rgba(124,58,237,0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(45deg,  rgba(34,211,238,0.08) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 25%, transparent 95%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 25%, transparent 95%);
  pointer-events: none;
}

/* Floating coins */
.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-decor .coin {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0.35;
  animation: coinBob linear infinite;
}
@keyframes coinBob {
  0%   { transform: translateY(0) rotate(-6deg); }
  50%  { transform: translateY(-26px) rotate(10deg); }
  100% { transform: translateY(0) rotate(-6deg); }
}

/* Input Focus Glow */
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Slow up-and-down motion for the offers image */
@keyframes offerFloatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.offer-float-slow {
  animation: offerFloatSlow 5.5s ease-in-out infinite;
}

/* Fixed frame that stays still while the taller image pans up and back down */
.offers-pan-frame {
  position: relative;
  overflow: hidden;
  height: 12rem;
}
.offers-pan-img {
  height: 30rem; /* taller than the 12rem frame so there is room to travel */
  animation: offersPan 9s ease-in-out infinite alternate;
}
@keyframes offersPan {
  0%   { transform: translateY(0); }        /* top edge of the image visible */
  100% { transform: translateY(-60%); }     /* 18rem = full picture travels past the frame */
}

@keyframes eggPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 10px 15px rgba(14, 165, 233, 0.25)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 15px 25px rgba(6, 182, 212, 0.4)); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.egg-pulse {
  animation: eggPulse 3s ease-in-out infinite;
}

.shimmer-badge {
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Rarity Border Gradients */
.border-mythic {
  border: 2px solid #ec4899 !important;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
}
.border-legendary {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.border-rare {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}
.border-uncommon {
  border: 2px solid #10b981 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* Card Hover Lift */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.15), 0 8px 10px -6px rgba(14, 165, 233, 0.1);
}

/* Responsive Logo */
.responsive-logo {
  height: 42px;
  transition: transform 0.3s ease;
}
@media (min-width: 640px) {
  .responsive-logo {
    height: 50px;
  }
}

/* Nav links under indicator */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Grid / List View Toggle */
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 0.65rem;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.view-btn:hover {
  color: #0ea5e9;
  background: #f0f9ff;
}
.view-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

/* Mobile Niceties */
a, button, .cat-btn, .view-btn, .product-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .cat-btn {
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap;
  }
}

/* Subtle Glow Effect (Glow Khfif) */
@keyframes subtleGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4), 0 0 16px rgba(6, 182, 212, 0.25);
  }
  50% {
    box-shadow: 0 6px 26px rgba(14, 165, 233, 0.65), 0 0 32px rgba(6, 182, 212, 0.45);
  }
}

.btn-glow-subtle {
  animation: subtleGlowPulse 2.8s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow-subtle:hover {
  animation: none;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.75), 0 0 38px rgba(6, 182, 212, 0.55) !important;
  transform: translateY(-2px) scale(1.01);
}

.credits-bubble::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 2.5rem;
  border: 9px solid transparent;
  border-bottom-color: #fb5a12;
}

/* Modal Pop Open Animation */
.animatePop {
  animation: modalPop .4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalPop {
  from {
    transform: scale(0.88) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Welcome Spin Wheel */
.wheel-box {
  width: min(270px, 78vw);
  aspect-ratio: 1;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 6px #fff;
  transition: transform 4.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel .seg-num {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #1f2937;
  z-index: 12;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 3px #fff;
}

/* Claim Payments Pop */
.claim-pop {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.claim-pop.pop-in {
  animation: claimPop .35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes claimPop {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* Tap To Unlock Pop Note */
.tap-note {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.tap-note.pop-in {
  animation: pinsPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tap-note.fade-out {
  animation: pinsFadeOut 0.3s ease both;
}

@keyframes pinsPop {
  0% {
    transform: translateX(-50%) scale(0.3);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes pinsFadeOut {
  to {
    transform: translateX(-50%) translateY(-8px) scale(0.9);
    opacity: 0;
  }
}

/* ===== FIRST VISIT GIFT ANIMATIONS ===== */
@keyframes giftBoxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes giftLidOpen {
  0% { transform: rotateX(0deg) translateY(0); opacity: 1; }
  60% { transform: rotateX(-120deg) translateY(-30px); opacity: 1; }
  100% { transform: rotateX(-135deg) translateY(-40px); opacity: 0; }
}

@keyframes giftBowPop {
  0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(150px) rotate(720deg); opacity: 0; }
}

@keyframes coinFloatUp {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(0.5); opacity: 0; }
}

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
}

.gift-box-float {
  animation: giftBoxFloat 3s ease-in-out infinite;
}

.gift-lid-open {
  animation: giftLidOpen 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gift-bow-pop {
  animation: giftBowPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleBurst 1s ease-out forwards;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall 2s ease-out forwards;
}

.coin-particle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  pointer-events: none;
  animation: coinFloatUp 1.5s ease-out forwards;
}

.stagger-fade-in {
  animation: staggerFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.balance-counter {
  transition: all 0.1s ease-out;
}

.gift-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.gift-card-enter {
  animation: staggerFadeIn 0.4s ease-out forwards;
  opacity: 0;
}

/* Custom scrollbar for gift items grid */
#giftItemsGrid::-webkit-scrollbar {
  width: 4px;
}
#giftItemsGrid::-webkit-scrollbar-track {
  background: transparent;
}
#giftItemsGrid::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #10b981, #14b8a6);
  border-radius: 2px;
}

/* ===== HERO REDESIGN ===== */
.hero-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.3), 0 8px 20px -6px rgba(6, 182, 212, 0.22);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float {
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-bg-wash {
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent 90%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent 90%);
}
@media (max-width: 1023px) {
  .hero-bg-wash {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.12 !important;
  }
}

/* ===== GEMS INFO MODAL - Exact index.php design ===== */
/* CSS Variables for modal */
:root {
  --violet: #7c3aed;
  --cyan: #0891b2;
  --gold: #d97706;
  --green: #059669;
  --pink: #db2777;
  --white: #2a1b47;
  --w-60: rgba(42,27,71,0.62);
  --w-35: rgba(42,27,71,0.38);
  --f-head: 'Oxanium', sans-serif;
  --f-ui: 'Rajdhani', sans-serif;
  --f-body: 'Exo 2', sans-serif;
}

/* Floating coins for modal */
.gems-modal-bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.gems-modal-bg-decor .coin {
  position: absolute;
  font-size: 28px;
  opacity: 0.30;
  filter: drop-shadow(0 0 12px rgba(251,191,36,0.45));
  animation: coinBob linear infinite;
}

/* Modal Card - exact index.php .card */
.gems-modal-card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(165deg, rgba(255,255,255,0.98), rgba(246,241,255,0.98));
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 24px 70px rgba(76,45,150,0.18),
    0 0 50px rgba(124,58,237,0.12);
  animation: cardIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96) rotateX(4deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

/* Top gradient bar */
.gems-modal-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 45%, var(--gold) 100%);
  box-shadow: 0 0 18px rgba(34,211,238,0.45);
}

/* Header - exact index.php .header */
.gems-modal-header {
  padding: 14px 20px 10px;
  text-align: center;
  position: relative;
}
.gems-modal-header::before,
.gems-modal-header::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(8,145,178,0.5);
  border-radius: 2px;
}
.gems-modal-header::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.gems-modal-header::after  { top: 12px; right: 12px; border-left: none; border-bottom: none; }

.gems-modal-coin-badge {
  width: 240px;
  margin: 0 auto 8px;
  display: flex;
  justify-content: center;
}
.gems-modal-coin-badge img { width: 100%; height: auto; display: block; }

.gems-modal-title {
  font-family: var(--f-head);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.15;
  background: linear-gradient(90deg, #f59e0b, #ec4899, #06b6d4, #f59e0b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 300% 0; } }

.gems-modal-subtext {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--w-60);
  line-height: 1.7;
  margin-top: 8px;
}
.gems-modal-subtext strong { color: var(--gold); font-weight: 800; }
.gems-modal-subtext em { color: var(--cyan); font-style: normal; font-weight: 800; }

/* Claim buttons - exact index.php .claim-btn */
.gems-modal-head-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gems-modal-claim-wrap { position: relative; }
.gems-modal-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid rgba(8,145,178,0.30);
  cursor: default;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #06281a;
  background: linear-gradient(135deg, #7ee0ff, #38bdf8);
  box-shadow: 0 4px 12px rgba(8,145,178,0.30), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}
.gems-modal-claim-btn .lock-ico { font-size: 11px; }
.gems-modal-claim-btn .gem-ico { height: 15px; width: auto; display: block; }
.gems-modal-claim-btn:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(8,145,178,0.42); }
.gems-modal-claim-btn:active { transform: translateY(1px) scale(0.96); }

/* Claim popup - exact index.php .pop */
.gems-modal-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  width: 200px;
  padding: 9px 12px;
  border-radius: 12px;
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #5b21b6;
  text-align: center;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(124,58,237,0.35);
  box-shadow: 0 10px 26px rgba(76,45,150,0.25);
}
.gems-modal-pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(124,58,237,0.55);
}
.gems-modal-claim-wrap:hover .gems-modal-pop {
  display: block;
  animation: popIn 0.22s cubic-bezier(0.22,1,0.36,1);
}
@keyframes popIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Steps Grid - exact index.php .steps-grid */
.gems-modal-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
}
.gems-modal-step-card {
  position: relative;
  background: linear-gradient(150deg, rgba(124,58,237,0.06), rgba(124,58,237,0.015));
  border: 1px solid rgba(124,58,237,0.16);
  border-radius: 12px;
  padding: 7px 4px 6px;
  text-align: center;
  transition: 0.2s;
}
.gems-modal-step-card.active {
  border-color: rgba(8,145,178,0.5);
  background: linear-gradient(160deg, rgba(34,211,238,0.16), rgba(124,58,237,0.12));
  box-shadow: 0 0 18px rgba(8,145,178,0.18);
}
.gems-modal-step-ico { display: block; font-size: 14px; margin-bottom: 4px; }
.gems-modal-step-count {
  font-family: var(--f-head);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--w-35);
}
.gems-modal-step-card.active .gems-modal-step-count { color: var(--cyan); }
.gems-modal-step-txt {
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--w-60);
  line-height: 1.4;
  margin-top: 2px;
}
.gems-modal-step-card.active .gems-modal-step-txt { color: var(--white); }

/* Offers Section */
.gems-modal-body { padding: 18px 14px 20px; }

.gems-modal-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: var(--f-ui);
  color: #0e7490;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(8,145,178,0.30);
  box-shadow: 0 4px 14px rgba(8,145,178,0.12);
}

.gems-modal-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.gems-modal-section-label::before,
.gems-modal-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.45));
}
.gems-modal-section-label::after { background: linear-gradient(270deg, transparent, rgba(34,211,238,0.45)); }
.gems-modal-section-title {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(8,145,178,0.30);
}

/* Offer Cards - exact index.php .offer */
.gems-modal-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 12px 10px 12px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.92), rgba(247,243,255,0.88));
  border: 1px solid rgba(124,58,237,0.14);
  box-shadow: 0 8px 22px rgba(76,45,150,0.10);
  transition: transform 0.16s, box-shadow 0.16s;
  animation: offerIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.gems-modal-offer::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(124,58,237,0.55), rgba(34,211,238,0.35), rgba(251,191,36,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.gems-modal-offer:nth-child(1) { animation-delay: 0.08s; }
.gems-modal-offer:nth-child(2) { animation-delay: 0.15s; }
.gems-modal-offer:nth-child(3) { animation-delay: 0.22s; }
@keyframes offerIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.gems-modal-offer:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(76,45,150,0.18), 0 0 22px rgba(124,58,237,0.16);
}
.gems-modal-offer:active { transform: scale(0.98); }

.gems-modal-offer-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(124,58,237,0.18), rgba(229,221,250,0.6));
  border: 1px solid rgba(8,145,178,0.24);
}
.gems-modal-offer-icon img { width: 34px; height: 34px; object-fit: cover; }
.gems-modal-icon-fb { font-size: 22px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.gems-modal-offer-info { flex: 1; min-width: 0; }
.gems-modal-offer-name {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gems-modal-offer-desc {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--w-60);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gems-modal-offer-chips { display: flex; gap: 6px; margin-top: 7px; flex-wrap: nowrap; align-items: center; }
.gems-modal-chip {
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.gems-modal-chip-time { color: #b45309; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.34); }
.gems-modal-chip-free { color: #047857; background: rgba(5,150,105,0.10); border: 1px solid rgba(5,150,105,0.30); }

.gems-modal-offer-cta { flex-shrink: 0; }
.gems-modal-btn-earn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-family: var(--f-head);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #06281a;
  white-space: nowrap;
  background: linear-gradient(135deg, #34d399, #16a34a);
  box-shadow: 0 6px 16px rgba(22,163,74,0.4), inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}
.gems-modal-btn-earn::after { content: '→'; font-size: 13px; }
.gems-modal-btn-earn:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(34,197,94,0.55); }
.gems-modal-btn-earn:active { transform: translateY(1px) scale(0.96); }

/* Mobile responsive for offers - match index.php exactly */
@media (max-width: 480px) {
  .gems-modal-offer {
    gap: 8px;
    padding: 10px 10px 10px 10px;
  }
  .gems-modal-offer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .gems-modal-offer-icon img {
    width: 28px;
    height: 28px;
  }
  .gems-modal-offer-info {
    flex: 1;
    min-width: 0;
  }
  .gems-modal-offer-name {
    font-size: 12px;
  }
  .gems-modal-offer-desc {
    font-size: 9.5px;
  }
  .gems-modal-offer-chips {
    gap: 4px;
    margin-top: 4px;
  }
  .gems-modal-chip {
    padding: 2px 7px;
    font-size: 8px;
  }
  .gems-modal-offer-cta {
    flex-shrink: 0;
    margin-left: 8px;
  }
  .gems-modal-btn-earn {
    width: auto;
    min-width: 80px;
    padding: 8px 12px;
    font-size: 9.5px;
  }
  
  /* Header claim buttons on mobile */
  .gems-modal-head-chips {
    gap: 6px;
  }
  .gems-modal-claim-btn {
    padding: 6px 10px;
    font-size: 9.5px;
    gap: 4px;
  }
  .gems-modal-claim-btn .gem-ico {
    height: 13px;
  }
  
  /* Modal card padding on mobile */
  .gems-modal-card {
    border-radius: 24px;
  }
  .gems-modal-header {
    padding: 12px 16px 8px;
  }
  .gems-modal-coin-badge {
    width: 200px;
  }
  .gems-modal-title {
    font-size: 22px;
  }
  .gems-modal-subtext {
    font-size: 11.5px;
  }
  .gems-modal-body {
    padding: 14px 12px 16px;
  }
  .gems-modal-steps-grid {
    gap: 4px;
  }
  .gems-modal-step-card {
    padding: 5px 3px;
    border-radius: 10px;
  }
  .gems-modal-step-ico {
    font-size: 12px;
  }
  .gems-modal-step-count {
    font-size: 6.5px;
  }
  .gems-modal-step-txt {
    font-size: 6.5px;
  }
  .gems-modal-section-title {
    font-size: 9px;
  }
}

/* Footer - exact index.php .footer */
.gems-modal-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.6);
}
.gems-modal-footer-item {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(42,27,71,0.42);
  text-decoration: none;
  transition: color 0.12s;
}
.gems-modal-footer-item:hover { color: var(--cyan); }
.gems-modal-footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(42,27,71,0.22);
}

