/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a2350;
  color: #f8fafc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #1a2350;
  position: relative;
  padding-bottom: 90px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(16, 185, 129, 0.15);
  border-right: 1px solid rgba(16, 185, 129, 0.15);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  user-select: none;
}

/* ===== CSS VARS ===== */
:root {
  --em4: #34d399;
  --em5: #10b981;
  --em6: #059669;
  --bg: #1a2350;
  --bg2: #1d2855;
  --bg3: #243468;
  --gray: #9ca3af;
  --slate: #94a3b8;
}

/* ===== TICKER ===== */
.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1a2350;
  border-bottom: 1px solid rgba(16, 185, 129, .1);
}

.ticker-user {
  color: #6b7280;
  font-size: 12px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-amount {
  color: #22c55e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-text {
  color: var(--em4);
  font-size: 12px;
  font-weight: 500;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slide-down .3s ease-out;
}

/* ===== SLIDER ===== */
.slider-row {
  display: flex;
  gap: 10px;
}

.slider-card {
  flex: 1;
  height: 58px;
  background: linear-gradient(135deg, #202c5a, #1a2350);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s;
  padding: 4px;
}

.slider-card:active {
  transform: scale(.98);
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .3);
  cursor: pointer;
  transition: background .2s;
}

.slider-dot.active {
  background: var(--em4);
}

/* ===== FILTER/SEARCH BAR ===== */
.filter-pill-bar {
  background: linear-gradient(to right, rgba(6, 78, 59, .4), rgba(4, 120, 87, .3));
  border-radius: 9999px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, .3);
}

.search-icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(15, 23, 42, .8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-pill {
  background: transparent;
  color: #9ca3af;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
}

.filter-pill.active {
  background: linear-gradient(to right, var(--em5), var(--em4));
  color: #fff;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  flex: 1;
  font-family: inherit;
}

.search-input::placeholder {
  color: #6b7280;
}

/* ===== GAMES ROW ===== */
.games-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.games-row::-webkit-scrollbar {
  display: none;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 76px;
  cursor: pointer;
}

.game-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--em5), #14b8a6, var(--em4));
  transition: transform .15s;
}

.game-ring:active {
  transform: scale(.97);
}

.game-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2px;
  background: #1a2350;
}

.game-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #243060, #1a2350);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-circle span {
  color: var(--em4);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.game-oyna {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--em5), #14b8a6);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.game-label {
  color: #d1d5db;
  font-size: 11px;
  text-align: center;
  width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 10px;
  font-weight: 500;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #1d2855;
  border-top: 1px solid rgba(16, 185, 129, .2);
  border-bottom: 1px solid rgba(16, 185, 129, .2);
}

.section-header h1,
.section-header h2 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin: 0 6px;
}

/* ===== SITE CARDS ===== */
.sites-wrap {
  padding: 0 16px;
}

.site-row {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.site-row:last-child {
  border-bottom: 0;
}

.logo-wrap {
  position: relative;
  flex-shrink: 0;
}

.badge-label {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.badge-yilin {
  display: inline-block;
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b 0%, #f59e0b 35%, #fde68a 50%, #f59e0b 65%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: badge-shine 2s linear infinite;
}

.badge-trend {
  display: inline-block;
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(90deg, var(--em5) 0%, var(--em5) 35%, #6ee7b7 50%, var(--em5) 65%, var(--em5) 100%);
  background-size: 200% 100%;
  animation: badge-shine 2s linear infinite;
}

@keyframes badge-shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.logo-box {
  width: 96px;
  height: 56px;
  background: linear-gradient(135deg, #243060, #1a2350);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}

.logo-box.pinned {
  border-color: rgba(16, 185, 129, .25);
}

.logo-box .bar-left {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  position: relative;
  z-index: 1;
}

.logo-box span {
  color: var(--em4);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

.bonus-col {
  flex: 1;
  padding: 0 10px;
  text-align: center;
}

.bonus-num {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.bonus-num .tl {
  color: var(--em4);
}

.bonus-num .fs {
  color: var(--em4);
}

.bonus-type {
  color: #d1d5db;
  font-size: 12px;
  margin-top: 2px;
}

.cta-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: linear-gradient(to right, #34d399, #10b981);
}

.cta-full {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, var(--em6), var(--em5));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, .3);
  box-shadow: 0 4px 16px rgba(16, 185, 129, .3);
}

/* ===== BTN SHIMMER ===== */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .08) 80%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-150%) skewX(-15deg);
  }

  100% {
    transform: translateX(250%) skewX(-15deg);
  }
}

/* ===== POPUP BASE ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(15, 22, 41, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up .35s ease;
}

.popup-x {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: #1a2350;
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  transition: background .2s;
}

.popup-x:hover {
  background: #243060;
}

.popup-x svg {
  color: #fff;
}

/* ===== PROMO POPUP ===== */
.promo-content {
  position: relative;
  width: 100%;
  max-width: 310px;
}

.promo-inner {
  background: linear-gradient(160deg, #1a2555 0%, #0f1a3d 50%, #090f22 100%);
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, .3);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .06), 0 24px 80px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.promo-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  border-radius: 12px;
  width: 100%;
  justify-content: center;
}

.promo-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .2);
}

.promo-sub {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.promo-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.promo-amount {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -3px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
  line-height: 1;
}

.promo-tl {
  font-size: 26px;
  font-weight: 800;
  color: var(--em4);
}

.promo-type {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.promo-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, .6), transparent);
  margin-bottom: 14px;
}

.promo-desc {
  margin-bottom: 22px;
}

.promo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 16px;
  background: linear-gradient(135deg, #047857, #059669, #34d399);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .22);
  letter-spacing: 0.4px;
}

/* ===== SITE POPUP ===== */
.site-popup-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(to bottom, #1a2350, #111b3c);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, .25);
  overflow: visible;
  box-shadow: 0 8px 60px rgba(0, 0, 0, .7);
}

.site-popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(16, 185, 129, .15);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.site-popup-header h3 {
  color: var(--em4);
  font-size: 15px;
  font-weight: 700;
}

.site-popup-list {
  padding: 4px 14px 10px;
}

.site-popup-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(16, 185, 129, .1);
  transition: transform .15s;
  cursor: pointer;
}

.site-popup-item:last-child {
  border-bottom: 0;
}

.site-popup-item:active {
  transform: scale(.98);
}

.popup-logo-box {
  width: 76px;
  height: 50px;
  background: linear-gradient(135deg, #243060, #1a2350);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.popup-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  position: relative;
  z-index: 1;
}

.popup-logo-box span {
  color: var(--em4);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  position: absolute;
}

.popup-bonus-col {
  flex: 1;
  padding: 0 6px;
  text-align: center;
}

.popup-bonus-num {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.popup-bonus-type {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 2px;
}

.popup-cta-btn {
  flex-shrink: 0;
  width: 90px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .18);
  letter-spacing: 0.2px;
  white-space: nowrap;
  border: none;
}

/* ===== SITE POPUP - GRID TASARIM ===== */
.spop-box {
  position: relative;
  width: 100%;
  max-width: 370px;
  max-height: 84vh;
  background: linear-gradient(160deg, #1a2555 0%, #0f1a3d 50%, #090f22 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, .3);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .08), 0 24px 80px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spop-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  background: linear-gradient(to right, rgba(16, 185, 129, .03), rgba(16, 185, 129, .10), rgba(16, 185, 129, .03));
  border-bottom: 1px solid rgba(16, 185, 129, .18);
  flex-shrink: 0;
}

.spop-header svg {
  animation: starPulse 2s ease-in-out infinite;
}

.spop-header svg:last-child {
  animation-delay: .5s;
}

@keyframes starPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(.85);
  }
}

.spop-header h3 {
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.spop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}

.spop-card {
  background: linear-gradient(160deg, #1e3060 0%, #111d42 60%, #0a1230 100%);
  border: 1px solid rgba(16, 185, 129, .14);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  justify-content: center;
}

.spop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--em5), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.spop-card:hover::before {
  opacity: 1;
}

.spop-card:active {
  transform: scale(.95);
}

.spop-card:hover {
  background: linear-gradient(150deg, rgba(30, 55, 100, .7) 0%, rgba(18, 35, 75, .8) 100%);
  border-color: rgba(16, 185, 129, .3);
  box-shadow: 0 6px 20px rgba(16, 185, 129, .1);
  transform: translateY(-2px);
}

.spop-logo {
  width: 100%;
  height: 58px;
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px;
}

.spop-logo img {
  max-width: 88%;
  max-height: 44px;
  object-fit: contain;
}

.spop-sep {
  width: 60%;
  height: 1px;
  background: rgba(168, 85, 247, .2);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.spop-name {
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.spop-amount {
  color: var(--em4);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.spop-type {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.spop-kapat {
  margin: 8px 12px 12px;
  padding: 13px;
  background: linear-gradient(135deg, var(--em6), var(--em5));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 0.4px;
  transition: opacity .15s, transform .15s;
  position: relative;
  overflow: hidden;
}

.spop-kapat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  animation: shimmer 2.2s ease-in-out infinite;
}

.spop-kapat:hover {
  opacity: .85;
}

.spop-kapat:active {
  opacity: .7;
  transform: scale(.98);
}

.spop-kapat:active {
  opacity: .7;
  transform: scale(.98);
}

/* ===== WHEEL & TREASURE MODALS ===== */
.modal-fullbg {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 41, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: #1a2350;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(16, 185, 129, .2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.modal-close-red {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-title-row h2 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* Wheel */
.wheel-wrap {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto 16px;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--em4);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.wheel-svg {
  width: 100%;
  height: 100%;
}

.spin-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, var(--em5), var(--em6));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, .3);
}

.spin-btn:disabled {
  opacity: .5;
}

/* Treasure */
.chest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chest-btn {
  aspect-ratio: 1;
  border-radius: 12px;
  padding: 10px;
  background: #1e2a58;
  border: 1px solid rgba(16, 185, 129, .2);
  transition: all .3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chest-btn:hover:not(:disabled) {
  border-color: rgba(16, 185, 129, .5);
  background: #2a3868;
}

.chest-btn.selected {
  background: rgba(16, 185, 129, .3);
  border: 2px solid var(--em4);
  transform: scale(1.1);
  z-index: 10;
}

.chest-btn.dimmed {
  opacity: .4;
}

.chest-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 72px;
  background: #1a2350;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 16px 16px 0 0;
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

/* AKTIF TAB */
.nav-item.active .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active svg {
  width: 26px;
  height: 26px;
  fill: white;
  stroke: none;
}

.nav-item.active .nav-label {
  color: #34d399;
  font-size: 10px;
  font-weight: 600;
}

/* INAKTIF TAB */
.nav-item:not(.active) .icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item:not(.active) svg {
  width: 22px;
  height: 22px;
  fill: #64748b;
  stroke: none;
}

.nav-item:not(.active) .nav-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}

/* YESIL ICONLAR (Telegram, Iletisim) */
.nav-item.green svg {
  fill: #34d399 !important;
}

.nav-item.green .nav-label {
  color: #34d399 !important;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* ===== STORIES ===== */
.story-site-card {
  width: 100%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}

.story-site-card:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(16, 185, 129, .3);
}

.story-site-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--em5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .4);
  border-radius: 4px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, .4) transparent;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}