@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark: #050814;
  --bg-darker: #03050c;
  --bg-card: rgba(15, 22, 40, 0.85);
  --bg-card-glow: rgba(168, 85, 247, 0.05);
  --border-card: rgba(255, 255, 255, 0.08);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.35);
  --neon-blue: #38bdf8;
  --neon-blue-glow: rgba(56, 189, 248, 0.35);
  --gold: #fbbf24;
  --orange: #f97316;
  --green: #10b981;
  --red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #9ca3af;
  --header-height: 52px;
  --footer-height: 76px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: #030409;
  color: var(--text-main);
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: radial-gradient(circle at top, #0c1530 0%, #070b18 50%, #03050c 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

@media (min-width: 480px) {
  .phone-frame {
    height: 860px;
    border-radius: 40px;
    border: 10px solid #1c2132;
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.5),
      0 0 0 2px rgba(255, 255, 255, 0.05),
      0 0 40px rgba(168, 85, 247, 0.12);
  }
}

.tg-header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 8, 20, 0.94);
  backdrop-filter: blur(10px);
  z-index: 10;
  flex-shrink: 0;
}

.header-btn {
  color: var(--neon-purple);
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.header-btn:active,
.header-more:active,
.nav-item:active,
.stat-card:active,
.mode-card:active,
.hint-btn:active,
.action-btn:active,
.profile-link-item:active,
.profile-premium-banner:active,
.shop-card:active,
.premium-shop-price:active,
.tab-btn:active {
  opacity: 0.75;
}

.header-title-container {
  text-align: center;
}

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.header-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.header-more span {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: -4px;
}

.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  position: relative;
  scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
  display: none;
}

.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  animation: screenFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tg-footer {
  height: var(--footer-height);
  background: rgba(7, 11, 24, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 10;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  height: 100%;
  transition: all 0.25s ease;
  background: none;
  border: none;
}

.nav-icon {
  font-size: 1.4rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.nav-item.active {
  color: var(--neon-purple);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--neon-purple-glow));
}

.hero-card {
  position: relative;
  margin: 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
  height: 220px;
  background: #050814;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 8, 20, 0.98) 75%);
  padding: 16px;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hero-sparkle {
  color: var(--gold);
  font-size: 0.9rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.stat-value.gold,
.profile-stat-num.gold {
  color: var(--gold);
}

.stat-value.orange,
.profile-stat-num.orange {
  color: var(--orange);
}

.stat-value.purple,
.profile-stat-num.purple {
  color: var(--neon-purple);
}

.profile-stat-num.blue {
  color: var(--neon-blue);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modes-section {
  margin: 0 16px 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.mode-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(15, 22, 40, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  color: inherit;
}

.mode-card.blue-mode {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 22, 40, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.mode-card.amber-mode {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(15, 22, 40, 0.85) 100%);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.mode-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
  flex-shrink: 0;
}

.blue-mode .mode-icon-wrapper {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.amber-mode .mode-icon-wrapper {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}

.mode-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mode-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.mode-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mode-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.daily-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 22, 40, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  padding: 16px;
  margin: 0 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.daily-left {
  flex: 1;
  z-index: 2;
}

.daily-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.daily-title-icon,
.shop-section-title,
.hero-sparkle {
  color: var(--gold);
}

.daily-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.daily-days {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.daily-day {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.daily-day.completed {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  color: white;
}

.daily-day.popcorn {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.daily-day.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
  color: var(--text-main);
  box-shadow: 0 0 8px var(--neon-purple-glow);
}

.daily-gift-box {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.35));
  animation: dailyFloat 3s ease-in-out infinite;
}

@keyframes dailyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

.demo-note {
  margin: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
}

.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 6px;
}

.round-indicator {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-indicator,
.energy-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-indicator {
  color: var(--neon-blue);
}

.energy-indicator {
  color: var(--gold);
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 16px 14px;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.game-frame-card,
.game-desc-card {
  margin: 0 16px 16px;
  border-radius: 22px;
  border: 1px solid var(--border-card);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(168, 85, 247, 0.05);
  background: #03050c;
}

.game-frame-card {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.game-frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-desc-card {
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
  color: var(--text-main);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.hints-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 16px 16px;
}

.hint-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  color: inherit;
}

.hint-icon {
  font-size: 1.25rem;
  color: var(--neon-blue);
  display: flex;
  align-items: center;
}

.hint-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.hint-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--neon-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-dark);
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}

.hint-btn.purple-hint .hint-icon {
  color: var(--neon-purple);
}

.hint-btn.purple-hint .hint-badge {
  background: var(--neon-purple);
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.hint-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 16px;
}

.option-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 1px solid var(--border-card);
  width: 100%;
}

.option-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--green);
  border-left: 5px solid var(--green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.option-btn.correct .option-num {
  background: var(--green);
  color: white;
}

.option-btn.incorrect {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--red);
  border-left: 5px solid var(--red);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.option-btn.incorrect .option-num {
  background: var(--red);
  color: white;
}

.option-btn.faded {
  opacity: 0.25;
  pointer-events: none;
}

.next-btn-container {
  padding: 0 16px;
  margin-bottom: 12px;
  display: none;
}

.next-btn-container.show {
  display: block;
  animation: actionSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes actionSlideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--neon-purple) 0%, #7c3aed 100%);
  border: none;
  border-radius: 16px;
  color: white;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.secondary-btn {
  background: linear-gradient(135deg, var(--neon-blue) 0%, #0284c7 100%);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.action-btn.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: var(--text-main);
}

.screen-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 16px 16px 8px;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px 20px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.2));
}

.achievement-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.achievement-desc {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.2;
  min-height: 24px;
}

.achievement-progress-text {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--neon-purple);
  margin-bottom: 4px;
}

.achievement-progress-bg {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.achievement-progress-fill {
  height: 100%;
  background: var(--neon-purple);
  border-radius: 2px;
}

.achievement-card.locked {
  opacity: 0.45;
  background: rgba(10, 15, 28, 0.6);
}

.achievement-card.locked .achievement-icon {
  filter: grayscale(1) opacity(0.5);
}

.achievement-card.locked .achievement-progress-text {
  color: var(--text-muted);
}

.achievement-card.locked .achievement-progress-fill {
  background: var(--text-muted);
}

.lock-overlay {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
}

.achievement-card.locked .lock-overlay {
  display: flex;
}

.achievements-more {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
}

.profile-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(15, 22, 40, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 22px;
  padding: 16px;
  margin: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.55), rgba(14, 20, 38, 0.9));
}

.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--neon-purple);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 2px solid #080d1a;
  color: white;
}

.profile-user-info {
  flex: 1;
}

.profile-username {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-lvl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.profile-lvl span {
  color: var(--text-main);
  font-weight: 600;
}

.profile-xp-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2.5px;
  overflow: hidden;
}

.profile-xp-fill {
  height: 100%;
  background: var(--neon-purple);
  border-radius: 2.5px;
  box-shadow: 0 0 5px var(--neon-purple-glow);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 16px 20px;
}

.profile-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-stat-num {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-stat-text {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 20px;
}

.profile-link-item,
.profile-premium-banner,
.shop-card,
.premium-shop-price {
  cursor: pointer;
}

.profile-link-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
}

.profile-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-link-icon,
.profile-link-chevron {
  color: var(--text-muted);
}

.profile-premium-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 16px;
  margin: 0 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
  width: calc(100% - 32px);
  color: inherit;
}

.premium-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-banner-star,
.premium-shop-star {
  filter: drop-shadow(0 0 8px var(--neon-purple));
  animation: pulseGlow 2s infinite ease-in-out;
}

.premium-banner-star {
  font-size: 1.8rem;
}

@keyframes pulseGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.8));
    transform: scale(1.06);
  }
}

.premium-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-banner-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.premium-banner-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tabs-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin: 0 16px 16px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tab-btn.active {
  background: rgba(168, 85, 247, 0.2);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.rating-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 20px;
}

.rating-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rating-item.me {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.12);
}

.rating-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rating-item:nth-child(1) .rating-rank {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.rating-item:nth-child(2) .rating-rank {
  background: rgba(226, 232, 240, 0.12);
  color: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.rating-item:nth-child(3) .rating-rank {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid #d97706;
}

.rating-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.5), rgba(14, 20, 38, 0.92));
  font-weight: 700;
}

.rating-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.rating-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-score span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.premium-shop-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(15, 22, 40, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 24px;
  padding: 20px;
  margin: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.18);
}

.premium-shop-star {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.premium-shop-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #f8fafc, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-shop-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.premium-shop-price {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid var(--neon-purple);
  border-radius: 14px;
  padding: 10px 16px;
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 16px 20px;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.2s ease;
  color: inherit;
}

.shop-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--neon-purple);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
}

.shop-item-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.shop-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-item-price {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.result-container {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-status {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-score-glow {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, white 40%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-rewards {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.result-reward-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-reward-pill.gold {
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--gold);
}

.result-reward-pill.orange {
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--orange);
}

.result-reward-pill.purple {
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.result-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 16px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-progress-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.result-progress-title span {
  color: var(--text-main);
  font-weight: 700;
}

.result-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.result-progress-fill {
  height: 100%;
  background: var(--neon-purple);
  border-radius: 3px;
  box-shadow: 0 0 5px var(--neon-purple-glow);
}

.result-achievement-alert {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.result-ach-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 5px var(--green));
}

.result-ach-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
}

.result-ach-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.toast-notification {
  position: absolute;
  bottom: 90px;
  left: 20px;
  right: 20px;
  background: rgba(15, 22, 40, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(168, 85, 247, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 390px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }
}
