/**
 * YNA STORE - PREMIUM AVATAR BORDERS & TITLE BADGES SYSTEM
 * Lightweight, GPU-accelerated, high-fidelity gaming aesthetic.
 */

/* ─── BASE AVATAR WRAPPER ─── */
.yna-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  flex-shrink: 0;
}

.yna-avatar-wrap {
  overflow: visible !important;
}

.yna-avatar-wrap > img:not(.yna-avatar-frame-overlay),
.yna-avatar-wrap .yna-avatar-inner {
  border-radius: 9999px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* ─── REAL PNG TITLE RING OVERLAY (TRANSPARENT CENTER & HIGH FIDELITY) ─── */
.yna-avatar-frame-overlay {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Pseudo-element overlay fallback when no explicit <img> child is present */
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-admin::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_admin.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 12px rgba(255, 0, 85, 0.75));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-vip::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_vip.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.5));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-vvip::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_vvip.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.6));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-prime::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_prime.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.7));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-legendaris::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_legendaris.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.75));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-grandmaster::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_grandmaster.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.8));
}
.yna-avatar-wrap:not(:has(.yna-avatar-frame-overlay)).border-title-mythical::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url('/assets/titles/title_mythical.webp') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.85));
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 1: ADMIN / OWNER (EXCLUSIVE REDDISH-RUBY & OBSIDIAN GOLD CROWN)
   Per user request: "title admin agak ke merahan atau lebih premium"
═════════════════════════════════════════════════════════════════════ */
.border-title-admin {
  position: relative;
  padding: 3.5px;
  background: linear-gradient(135deg, #ff0055 0%, #b91c1c 25%, #881337 50%, #e11d48 75%, #fbbf24 100%);
  background-size: 300% 300%;
  animation: adminAuraGlow 3s ease infinite;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.75), 0 0 35px rgba(185, 28, 28, 0.55), 0 0 15px rgba(251, 191, 36, 0.4);
}
/* Old pulse ring replaced by PNG frame overlay */
@keyframes adminAuraGlow {
  0% { background-position: 0% 50%; box-shadow: 0 0 18px rgba(255, 0, 85, 0.7), 0 0 30px rgba(185, 28, 28, 0.45); }
  50% { background-position: 100% 50%; box-shadow: 0 0 26px rgba(255, 23, 68, 0.95), 0 0 42px rgba(251, 191, 36, 0.65); }
  100% { background-position: 0% 50%; box-shadow: 0 0 18px rgba(255, 0, 85, 0.7), 0 0 30px rgba(185, 28, 28, 0.45); }
}
@keyframes adminPulseRing {
  0% { transform: scale(0.99); opacity: 0.75; border-color: rgba(251, 191, 36, 0.85); }
  100% { transform: scale(1.05); opacity: 1; border-color: rgba(255, 228, 230, 0.95); }
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 2: VIP BIASA (DEFAULT STARTER VIP)
═════════════════════════════════════════════════════════════════════ */
.border-title-vip {
  padding: 2.5px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #c084fc 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), inset 0 0 4px rgba(255, 255, 255, 0.3);
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 3: VVIP (TINGKAT 1 S/D 9 - AMETHYST NEON PURPLE)
═════════════════════════════════════════════════════════════════════ */
.border-title-vvip {
  padding: 2.5px;
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 50%, #ec4899 100%);
  background-size: 200% 200%;
  animation: vvipAmethystShimmer 3s ease infinite;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.55);
}
@keyframes vvipAmethystShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 4: PRIME VVIP (TINGKAT 1 S/D 9 - CYBER CYAN & SAPPHIRE ENERGY)
═════════════════════════════════════════════════════════════════════ */
.border-title-prime {
  padding: 3px;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #67e8f9 100%);
  background-size: 200% 200%;
  animation: primeCyberSpin 4s linear infinite;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.65), 0 0 22px rgba(59, 130, 246, 0.35);
}
@keyframes primeCyberSpin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 5: LEGENDARIS VVIP (TINGKAT 1 S/D 9 - SOLAR GOLD & DRAGON FLAMES)
═════════════════════════════════════════════════════════════════════ */
.border-title-legendaris {
  padding: 3px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 40%, #fbbf24 80%, #b91c1c 100%);
  background-size: 250% 250%;
  animation: legendarisSolarFlames 2.8s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7), 0 0 26px rgba(239, 68, 68, 0.45);
}
@keyframes legendarisSolarFlames {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; box-shadow: 0 0 24px rgba(251, 191, 36, 0.9), 0 0 34px rgba(239, 68, 68, 0.6); }
  100% { background-position: 0% 0%; }
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 6: GRANDMASTER VVIP (TINGKAT 1 S/D 99 - COSMIC GALAXY NEBULA)
═════════════════════════════════════════════════════════════════════ */
.border-title-grandmaster {
  padding: 3.5px;
  background: linear-gradient(135deg, #8b5cf6 0%, #f43f5e 35%, #06b6d4 70%, #fbbf24 100%);
  background-size: 300% 300%;
  animation: grandmasterCosmicNebula 5s ease infinite;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.75), 0 0 32px rgba(6, 182, 212, 0.5);
}
@keyframes grandmasterCosmicNebula {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; box-shadow: 0 0 26px rgba(244, 63, 94, 0.85), 0 0 40px rgba(139, 92, 246, 0.65); }
  100% { background-position: 0% 50%; }
}

/* ═════════════════════════════════════════════════════════════════════
   TIER 7: MYTHICAL (TINGKAT 1 S/D 3 - APEX CELESTIAL IRIDESCENT GOD)
═════════════════════════════════════════════════════════════════════ */
.border-title-mythical {
  padding: 3.5px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 20%, #06b6d4 40%, #10b981 60%, #fbbf24 80%, #f43f5e 100%);
  background-size: 400% 400%;
  animation: mythicalCelestialAurora 4s ease infinite;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 36px rgba(6, 182, 212, 0.65), 0 0 50px rgba(251, 191, 36, 0.45);
}
@keyframes mythicalCelestialAurora {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

/* ═════════════════════════════════════════════════════════════════════
   TITLE BADGES STYLING (FOR CHAT, LEADERBOARDS, AND USER PROFILES)
═════════════════════════════════════════════════════════════════════ */
.yna-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 6px;
  border-radius: 9999px;
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
}

/* ADMIN PILL (REDDISH RUBY & OBSIDIAN GOLD CROWN) */
.yna-title-pill.pill-admin {
  background: linear-gradient(135deg, #991b1b 0%, #e11d48 40%, #881337 75%, #4c0519 100%);
  color: #fff1f2;
  border: 1px solid rgba(254, 205, 211, 0.9);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}
.yna-title-pill.pill-admin i {
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

/* VIP BIASA PILL */
.yna-title-pill.pill-vip {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.35);
}
.yna-title-pill.pill-vip i {
  color: #c084fc;
}

/* VVIP PILL */
.yna-title-pill.pill-vvip {
  background: linear-gradient(135deg, #701a75 0%, #a21caf 100%);
  color: #fae8ff;
  border: 1px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.45);
}
.yna-title-pill.pill-vvip i {
  color: #f472b6;
}

/* PRIME VVIP PILL */
.yna-title-pill.pill-prime {
  background: linear-gradient(135deg, #164e63 0%, #0e7490 50%, #1e40af 100%);
  color: #ecfeff;
  border: 1px solid rgba(103, 232, 249, 0.6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.yna-title-pill.pill-prime i {
  color: #67e8f9;
}

/* LEGENDARIS VVIP PILL */
.yna-title-pill.pill-legendaris {
  background: linear-gradient(135deg, #78350f 0%, #b45309 45%, #991b1b 100%);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}
.yna-title-pill.pill-legendaris i {
  color: #fde047;
}

/* GRANDMASTER VVIP PILL */
.yna-title-pill.pill-grandmaster {
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 40%, #083344 100%);
  color: #ede9fe;
  border: 1px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.65);
}
.yna-title-pill.pill-grandmaster i {
  color: #c084fc;
}

/* MYTHICAL PILL */
.yna-title-pill.pill-mythical {
  background: linear-gradient(135deg, #831843 0%, #4c0519 30%, #1e1b4b 70%, #064e3b 100%);
  color: #fdf2f8;
  border: 1px solid rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.75), 0 0 28px rgba(6, 182, 212, 0.4);
  animation: pillMythicRainbow 3.5s linear infinite;
}
@keyframes pillMythicRainbow {
  0% { border-color: rgba(244, 114, 182, 0.9); }
  33% { border-color: rgba(103, 232, 249, 0.9); }
  66% { border-color: rgba(251, 191, 36, 0.9); }
  100% { border-color: rgba(244, 114, 182, 0.9); }
}
.yna-title-pill.pill-mythical i {
  color: #f472b6;
}

/* ═════════════════════════════════════════════════════════════════════
   ROBLOX ARCADE STYLE - HADIAH HARIAN SOLID OPAQUE CARDS & ANIMATIONS
   100% Zero Transparency / Tidak Tembus Pandang ke Halaman Belakang!
═════════════════════════════════════════════════════════════════════ */
#modalDailyReward {
  background: rgba(4, 2, 12, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.daily-reward-modal-box {
  background: #0d061c !important;
  background-color: #0d061c !important;
  border: 2px solid #f59e0b !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.98), 0 0 35px rgba(168, 85, 247, 0.4) !important;
}

/* Animations */
@keyframes chestFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 10px rgba(217, 70, 239, 0.7));
  }
  50% {
    transform: translateY(-4px) scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(251, 191, 36, 0.9));
  }
}

@keyframes cardReadyAura {
  0% {
    border-color: #fbbf24;
    box-shadow: 0 4px 0 #140900, 0 0 16px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  100% {
    border-color: #f59e0b;
    box-shadow: 0 4px 0 #140900, 0 0 28px rgba(251, 191, 36, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

@keyframes iconGlowPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.6));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 12px rgba(192, 132, 252, 0.95));
  }
}

.animate-chestFloat {
  animation: chestFloat 2.2s ease-in-out infinite !important;
}

.animate-iconGlow {
  animation: iconGlowPulse 2.4s ease-in-out infinite !important;
}

/* Base Card (Solid, Opaque, Beveled Arcade Depth) */
.daily-card-roblox {
  background: linear-gradient(180deg, #1c1038 0%, #0d061c 100%) !important;
  background-color: #0d061c !important;
  border: 1.5px solid #4a2d80 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 0 #070310, 0 8px 18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 7px 6px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 1 !important;
}

.daily-card-roblox:hover {
  transform: translateY(-2px) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 6px 0 #070310, 0 12px 22px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Card Siap Klaim (Current Streak Day) */
.daily-card-roblox.card-current {
  background: linear-gradient(180deg, #381f03 0%, #170d01 100%) !important;
  background-color: #170d01 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 4px 0 #0e0600, 0 0 24px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
  animation: cardReadyAura 2s ease-in-out infinite alternate !important;
  z-index: 10 !important;
}

/* Card Sudah Klaim (Past Days) */
.daily-card-roblox.card-past {
  background: linear-gradient(180deg, #0e241b 0%, #06130d 100%) !important;
  background-color: #06130d !important;
  border: 1.5px solid rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 3px 0 #030805, 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  opacity: 0.95 !important;
}

/* Card Hari ke-7 (Double Wide Featured Card) */
.daily-card-roblox.card-day7 {
  background: linear-gradient(180deg, #3b0f59 0%, #170426 100%) !important;
  background-color: #170426 !important;
  border: 2px solid #d946ef !important;
  box-shadow: 0 4px 0 #0c0214, 0 8px 24px rgba(217, 70, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.daily-card-roblox.card-day7.card-current {
  background: linear-gradient(180deg, #451066 0%, #1d032e 100%) !important;
  background-color: #1d032e !important;
  border: 2.5px solid #fbbf24 !important;
  box-shadow: 0 4px 0 #0e0600, 0 0 32px rgba(251, 191, 36, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  animation: cardReadyAura 2s ease-in-out infinite alternate !important;
}

/* Sub-card Reguler (Inner Slot) */
.daily-subcard-free {
  background: #090514 !important;
  background-color: #090514 !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  border-radius: 11px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  opacity: 1 !important;
}

/* Sub-card VIP (Inner Slot) */
.daily-subcard-vip {
  background: #140b01 !important;
  background-color: #140b01 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  border-radius: 11px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  opacity: 1 !important;
}

/* ═════════════════════════════════════════════════════════════════════
   HARI KE-7: FULL-WIDTH LUXURY CARD (3-3-1 GRID LAYOUT)
   Mewah, Berkilau, 3D Gold & Amethyst Shimmer Bevel
═════════════════════════════════════════════════════════════════════ */
.daily-card-roblox.card-day7-wide {
  background: radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.22), rgba(24, 8, 42, 0.98) 60%), #140626 !important;
  border: 2px solid rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 8px 0 #0a0212, 0 12px 28px rgba(0, 0, 0, 0.85), 0 0 24px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.daily-card-roblox.card-day7-wide::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(251, 191, 36, 0.2) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 60%
  );
  transform: rotate(25deg);
  animation: day7ShineSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes day7ShineSweep {
  0% { transform: translateY(-100%) rotate(25deg); }
  35%, 100% { transform: translateY(100%) rotate(25deg); }
}

.daily-card-roblox.card-day7-wide.card-current {
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.35), rgba(42, 12, 68, 0.98) 65%), #1d0736 !important;
  border: 2.5px solid #fde047 !important;
  box-shadow: 0 8px 0 #0a0212, 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 35px rgba(251, 191, 36, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  animation: cardReadyAura 2.2s ease-in-out infinite alternate !important;
}

/* ═════════════════════════════════════════════════════════════════════
   3D ARTICULATED CHEST OPENING & TAP ANIMATIONS (REALISTIC & HALUS)
═════════════════════════════════════════════════════════════════════ */
.chest-stage-container {
  perspective: 900px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating God Rays Behind Chest */
.chest-stage-godrays {
  position: absolute;
  inset: -15px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(251, 191, 36, 0.18) 0deg 15deg,
    transparent 15deg 30deg,
    rgba(217, 70, 239, 0.15) 30deg 45deg,
    transparent 45deg 60deg
  );
  border-radius: 9999px;
  animation: chestRaysSpin 16s linear infinite;
  pointer-events: none;
  filter: blur(2px);
}

@keyframes chestRaysSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Shockwave Pulse Wave upon Tap */
.chest-tap-ripple {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(251, 191, 36, 0.85);
  animation: chestTapRippleAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes chestTapRippleAnim {
  0% { transform: scale(0.6); opacity: 1; border-color: #fde047; }
  100% { transform: scale(1.4); opacity: 0; border-color: rgba(168, 85, 247, 0); }
}

/* Chest Idle Breathing Float */
.chest-idle-float {
  animation: chestIdleFloatAnim 2.8s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes chestIdleFloatAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.02); }
}

/* Tactile Jelly Bounce on Click/Tap */
.chest-tapped {
  animation: chestTapBounceAnim 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes chestTapBounceAnim {
  0% { transform: scale(1); }
  35% { transform: scale(1.15, 0.88) translateY(6px); }
  70% { transform: scale(0.94, 1.08) translateY(-8px); }
  100% { transform: scale(1) translateY(0); }
}

/* Intense Tremble before Opening */
.chest-tremble {
  animation: chestTrembleAnim 0.1s linear infinite !important;
}

@keyframes chestTrembleAnim {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  25% { transform: translate(-1px, -2px) rotate(-1deg); }
  50% { transform: translate(-3px, 0px) rotate(1deg); }
  75% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(2px, 1px) rotate(0deg); }
}

/* Chest Lid Swing Open (3D Hinge Physics) */
.chest-lid-open {
  transform-origin: 50% 32%;
  animation: chestLidSwingOpen 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes chestLidSwingOpen {
  0% { transform: rotateX(0deg) translateY(0); }
  35% { transform: rotateX(-35deg) translateY(-8px); }
  70% { transform: rotateX(-120deg) translateY(-32px); }
  85% { transform: rotateX(-105deg) translateY(-26px); }
  100% { transform: rotateX(-115deg) translateY(-28px); }
}

/* Volumetric Golden Cavity Light Burst */
.chest-light-beam {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 140px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at bottom, rgba(253, 224, 71, 0.95) 0%, rgba(245, 158, 11, 0.65) 45%, rgba(217, 70, 239, 0.2) 75%, transparent 100%);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0%, 0% 0%);
  animation: chestBeamBurst 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 15;
}

@keyframes chestBeamBurst {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.1); }
  40% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
  100% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }
}

/* Rising Treasure Item from Inside Chest */
.chest-rising-reward {
  animation: treasureEmerge 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 25;
}

@keyframes treasureEmerge {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(60px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) translateY(-25px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(-15px);
  }
}

/* Sparkle Particle Generator */
.gold-sparkle-fly {
  position: absolute;
  pointer-events: none;
  animation: sparkleFlyUp 0.8s ease-out forwards;
  z-index: 30;
}

@keyframes sparkleFlyUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -50px)) scale(0.2);
  }
}




/* ═════════════════════════════════════════════════════════════════════
   PERMANENT RULE: 100% SOLID OPAQUE CARDS & MODALS (ANTI-TRANSPARENCY)
   WAJIB SOLID PEKAT, TIDAK BOLEH TEMBUS PANDANG SAMA SEKALI KE HALAMAN BELAKANG!
═════════════════════════════════════════════════════════════════════ */
#modalNewLimitIntro,
#modalDailyReward,
#modalDailyRewardGuide,
#modalDailyRewardSuccess,
#modalChestGacha,
#modalTitleCollection,
#modalStreakWarning {
  background: rgba(3, 1, 8, 0.98) !important;
  background-color: rgba(3, 1, 8, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 99999 !important;
}

#modalNewLimitIntro > div,
#modalDailyReward > div,
#modalDailyRewardGuide > div,
#modalDailyRewardSuccess > div,
#modalChestGacha > div,
#modalTitleCollection > div,
#modalStreakWarning > div {
  background: #0d061c !important;
  background-color: #0d061c !important;
  opacity: 1 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 1), 0 0 35px rgba(168, 85, 247, 0.3) !important;
}

.intro-modal-box {
  background: #0d061c !important;
  background-color: #0d061c !important;
  border: 2.5px solid #10b981 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 1), 0 0 40px rgba(16, 185, 129, 0.4) !important;
  opacity: 1 !important;
}

.intro-subbox-callout {
  background: #0a1b12 !important;
  background-color: #0a1b12 !important;
  border: 1.5px solid #10b981 !important;
}

.intro-subbox-old {
  background: #200810 !important;
  background-color: #200810 !important;
  border: 1.5px solid #f43f5e !important;
}

.intro-subbox-new {
  background: #081d11 !important;
  background-color: #081d11 !important;
  border: 2px solid #10b981 !important;
}

.intro-subbox-guide {
  background: #15092a !important;
  background-color: #15092a !important;
  border: 1.5px solid #a855f7 !important;
}

.intro-subbox-mockup {
  background: #0c0419 !important;
  background-color: #0c0419 !important;
  border: 1px solid #7c3aed !important;
}

.intro-step-item {
  background: #110524 !important;
  background-color: #110524 !important;
}
