.notification-badge::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 8px;
height: 8px;
background-color: #10B981;
border-radius: 50%;
}
body {
font-family: 'Chakra Petch', sans-serif;
background-color: #0A0E1A;
color: #ffffff;
overflow-x: hidden;
}
.game-card {
transition: all 0.3s ease;
background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(16, 185, 129, 0.2));
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 0, 0, 0.05);
}
.nav-item {
transition: all 0.3s ease;
}
.nav-item.active {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(30, 58, 138, 0.4));
box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}
.tab-button {
transition: all 0.3s ease;
}
.tab-button.active {
background: linear-gradient(90deg, #10B981, #1E3A8A);
box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.pixel-border {
position: relative;
overflow: hidden;
}
.pixel-border::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, #10B981, #8B5CF6, #1E3A8A);
z-index: -1;
margin: -2px;
border-radius: inherit;
animation: borderAnimation 3s infinite linear;
}
@keyframes borderAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.glow-effect {
position: relative;
}
.glow-effect::before {
content: "";
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -5px;
background: linear-gradient(45deg, #10B981, transparent, #1E3A8A);
z-index: -1;
border-radius: inherit;
filter: blur(10px);
opacity: 0;
transition: opacity 0.3s ease;
}
.glow-effect:hover::before {
opacity: 1;
}
.banner-container {
position: relative;
overflow: hidden;
}
.banner-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at center, transparent 0%, rgba(10, 14, 26, 0.8) 100%);
z-index: 1;
}
.stat-card {
background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(16, 185, 129, 0.1));
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 0, 0, 0.05);
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}
.rank-item {
background: linear-gradient(90deg, rgba(30, 58, 138, 0.4), rgba(16, 185, 129, 0.1));
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 0, 0, 0.05);
transition: all 0.3s ease;
}
.rank-item:hover {
transform: translateX(3px);
box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.crown-icon {
position: absolute;
top: -10px;
left: 10px;
color: #FFD700;
filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}
.rate-button {
background: linear-gradient(90deg, #10B981, #1E3A8A);
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.rate-button::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.1), transparent);
transform: rotate(45deg);
animation: shineEffect 3s infinite;
}
@keyframes shineEffect {
0% { left: -50%; }
100% { left: 150%; }
}
.progress-bar {
height: 6px;
background: rgba(255, 0, 0, 0.05);
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #10B981, #1E3A8A);
border-radius: 3px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}

/* --- Task Page Specific Styles (moved from task.html) --- */
#game-carousel {
  perspective: 1000px;
  position: relative;
  height: 380px; /* height includes reflection */
  display: flex;
  justify-content: center;
  align-items: center;
}
#game-carousel .carousel-item {
  position: absolute;
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 0.75rem;
  -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(0,0,0,0.4));
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
              z-index 0.7s;
}
#game-carousel .pos0 {
  transform: translateZ(0) rotateY(0deg) scale(1.1);
  z-index: 3;
  filter: brightness(1) drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}
#game-carousel .pos1 {
  transform: translateX(-160px) rotateY(30deg) scale(0.9);
  z-index: 2;
  filter: brightness(0.5);
}
#game-carousel .pos2 {
  transform: translateX(160px) rotateY(-30deg) scale(0.9);
  z-index: 2;
  filter: brightness(0.5);
}

.stat-card-enhanced {
  background-color: rgba(30, 41, 59, 0.5); /* slate-800 with opacity */
  border: 1px solid rgba(51, 65, 85, 0.5); /* slate-700 with opacity */
  border-radius: 1rem;
  padding: 1.25rem; /* increased padding for larger size */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.stat-card-enhanced:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/**
 * TikTok Shop–inspired UI layer (dark + #FE2C55 / #25F4EE accents)
 * Loaded after base styles; uses !important to override utility colors.
 */

:root {
  --tt-bg: #000000;
  --tt-surface: #161823;
  --tt-surface-2: #1e1e27;
  --tt-border: rgba(255, 255, 255, 0.08);
  --tt-pink: #fe2c55;
  --tt-pink-deep: #d9204d;
  --tt-cyan: #25f4ee;
  --tt-text: #ffffff;
  --tt-muted: rgba(255, 255, 255, 0.55);
}

.bg-\[\#0f0f0f\] {
  background-color: var(--tt-bg) !important;
}
.bg-\[\#1a1a1a\] {
  background-color: var(--tt-surface) !important;
}
.bg-\[\#141414\] {
  background-color: #0d0d12 !important;
}
.bg-\[\#252525\] {
  background-color: var(--tt-surface-2) !important;
}
.bg-\[\#303030\] {
  background-color: #2f2f38 !important;
}
.bg-\[\#FF0000\] {
  background: linear-gradient(135deg, var(--tt-pink) 0%, var(--tt-pink-deep) 100%) !important;
}
.bg-\[\#1a2332\] {
  background-color: #161823 !important;
}
.bg-\[\#1a2e1a\] {
  background-color: #142018 !important;
}
.bg-\[\#2e1a1a\] {
  background-color: #2a1518 !important;
}
.bg-\[\#2e2a1a\] {
  background-color: #2a2618 !important;
}

.bg-\[\#1a1a1a\]\/20 {
  background-color: rgba(22, 24, 35, 0.35) !important;
}

.text-\[\#f1f1f1\] {
  color: var(--tt-text) !important;
}
.text-\[\#aaa\] {
  color: var(--tt-muted) !important;
}
.text-\[\#888\] {
  color: rgba(255, 255, 255, 0.45) !important;
}
.text-\[\#505050\] {
  color: rgba(255, 255, 255, 0.28) !important;
}
.text-\[\#555\] {
  color: rgba(255, 255, 255, 0.35) !important;
}
.text-\[\#e8e8e8\] {
  color: rgba(255, 255, 255, 0.92) !important;
}
.text-\[\#FF0000\] {
  color: var(--tt-pink) !important;
}
.text-\[\#FEBA02\] {
  color: var(--tt-cyan) !important;
}

.text-primary {
  color: var(--tt-pink) !important;
}
.bg-primary {
  background: linear-gradient(135deg, var(--tt-pink), var(--tt-pink-deep)) !important;
}

.border-\[\#303030\] {
  border-color: var(--tt-border) !important;
}
.border-\[\#3a3a3a\] {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.booking-nav {
  background: rgba(0, 0, 0, 0.92) !important;
  border-bottom: 1px solid var(--tt-border) !important;
  backdrop-filter: blur(16px) !important;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--tt-pink), var(--tt-pink-deep)) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.35) !important;
}

.nav-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.tab-bar,
[class*="tab-bar"] {
  background: var(--tt-surface) !important;
  border-color: var(--tt-border) !important;
}

.booking-button,
.booking-button:hover {
  background: linear-gradient(135deg, var(--tt-pink), var(--tt-pink-deep)) !important;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.35) !important;
}

.secondary,
.text-secondary {
  color: var(--tt-cyan) !important;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  background-color: var(--tt-bg) !important;
  color: var(--tt-text) !important;
}

.game-card,
.stat-card,
.rank-item {
  background: linear-gradient(
    135deg,
    rgba(22, 24, 35, 0.85),
    rgba(30, 30, 40, 0.5)
  ) !important;
  border: 1px solid var(--tt-border) !important;
}

.nav-item.active,
.tab-button.active {
  background: linear-gradient(135deg, var(--tt-pink), var(--tt-pink-deep)) !important;
  box-shadow: 0 0 18px rgba(254, 44, 85, 0.45) !important;
}

.tab-button.active {
  background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)) !important;
}

.rate-button,
.progress-fill {
  background: linear-gradient(90deg, var(--tt-pink), var(--tt-cyan)) !important;
}

.notification-badge::after {
  background-color: var(--tt-cyan) !important;
}

.banner-container::before {
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.75) 100%
  ) !important;
}

.stat-card-enhanced:hover {
  border-color: rgba(37, 244, 238, 0.35) !important;
}

/* ===== Bottom tab bar — TikTok Shop (center Shop pill) ===== */
.tt-tabbar {
  background: linear-gradient(180deg, rgba(22, 24, 35, 0.98) 0%, #0b0b0f 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.5);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.45rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
}
.tt-tabbar__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  justify-items: center;
  gap: 0.35rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 54px;
}
.tt-nav-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tt-nav-side:hover {
  color: rgba(255, 255, 255, 0.88) !important;
}
.tt-nav-side i,
.tt-nav-side span {
  color: inherit !important;
}
.tt-nav-side--active {
  color: var(--tt-cyan) !important;
}
.tt-nav-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.45rem 0.45rem;
  border-radius: 22px;
  cursor: pointer;
  color: #fff !important;
  background: linear-gradient(180deg, #ff3b6b 0%, #fe2c55 55%, #e11d48 100%) !important;
  box-shadow:
    0 4px 22px rgba(254, 44, 85, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  transform: translateY(-5px);
  min-width: 96px;
}
.tt-nav-shop:hover {
  filter: brightness(1.06);
}
.tt-nav-shop i,
.tt-nav-shop span {
  color: #fff !important;
}
.tt-nav-shop--active {
  box-shadow:
    0 6px 30px rgba(254, 44, 85, 0.52),
    0 0 0 1px rgba(37, 244, 238, 0.35) !important;
}