body {
  background: #23243a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d2e4a;
  border-radius: 16px;
  padding: 14px 20px 14px 16px;
  margin: 16px 12px 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  background: #4a90e2; /* fallback цвет */
  border-radius: 50%;
  width: 40px; /* или твой размер */
  height: 40px;
  overflow: hidden;
  text-transform: uppercase;
}
.username {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.subtitle {
  color: #bfc9db;
  font-size: 0.97rem;
  font-weight: 400;
}
.stars {
  font-size: 13px;
  opacity: 0.7;
}
.stars-earned {
  background: #2d2e4a;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.star {
  color: #ffd700;
  font-size: 18px;
}
.live-tape {
  display: flex;
  align-items: center;
  background: #23243a;
  padding: 8px 24px;
  border-bottom: 1px solid #2d2e4a;
  overflow: hidden;
  min-height: 48px;
}
.live-tape__label {
  display: flex;
  align-items: center;
  margin-right: 18px;
  font-weight: bold;
  color: #ff5252;
  font-size: 16px;
  gap: 6px;
}
.live-tape__dot {
  color: #4caf50;
  font-size: 18px;
  margin-right: 2px;
}
.live-tape__live {
  color: #fff;
  background: #23243a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #4caf50;
}
.live-tape__items {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  width: max-content;
  min-width: 100%;
}
.live-tape__items::-webkit-scrollbar {
  display: none;
}
.live-tape__item {
  background: #2d2e4a;
  border-radius: 10px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  min-width: 40px;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
  flex: 0 0 auto;
}
.live-tape__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.live-tape__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 6px;
  margin-left: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.live-tape__username {
  color: #bfc9db;
  font-size: 0.98em;
  font-weight: 500;
  margin-right: 8px;
  margin-left: 2px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.live-tape__item-top {
  border: 2px solid #ffd700;
  box-shadow: 0 0 12px #ffd70055;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 90px;
}
@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.case-card {
  background: #2d2e4a;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 18px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-width: 0;
}
.case-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transform: translateY(-4px) scale(1.03);
}
.case-image-container {
  position: relative;
  width: 120px;
  aspect-ratio: 1/1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #23243a;
}
.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  background: #23243a;
  display: block;
}
.case-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  z-index: 2;
}
.case-badge.new { background: #4caf50; }
.case-badge.rare { background: #e53935; }
.case-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
  text-align: center;
  color: #bfc9e0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: 1px;
}
.case-price {
  color: #ffd700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: bold;
}
.star-icon {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  margin-top: -2px;
}
.footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #2d2e4a;
  padding: 10px 0 6px 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #2d2e4a;
  z-index: 10;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
  border-radius: 0 0 16px 16px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bfc9e0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  min-width: 70px;
  padding: 2px 0 0 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}
.nav-item img {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  filter: grayscale(1) brightness(1.2) opacity(0.7);
  transition: filter 0.18s;
}
.nav-item.active,
.nav-item:active,
.nav-item:hover {
  background: rgba(34,182,255,0.08);
  color: #22b6ff;
}
.nav-item.active img,
.nav-item:active img,
.nav-item:hover img {
  filter: none;
  filter: drop-shadow(0 0 4px #22b6ff) brightness(1.2);
  opacity: 1;
}
.nav-item.active {
  background: rgba(34,182,255,0.13);
  color: #22b6ff;
}
.nav-item.active img {
  filter: none;
  opacity: 1;
}
.balance-block {
  display: flex;
  align-items: center;
  background: #263143;
  border-radius: 24px;
  padding: 6px 14px 6px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  min-width: 100px;
}
.balance {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 8px;
}
.add-btn {
  background: #22b6ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(34,182,255,0.15);
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  padding: 0;
}
.add-btn:hover, .add-btn:focus {
  background: #1a9ed6;
  box-shadow: 0 4px 16px rgba(34,182,255,0.25);
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 24, 31, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #232b3a;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 32px 32px 24px 32px;
  min-width: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modalShow 0.2s;
}
@keyframes modalShow {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #bfc9db;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 18px;
  text-align: left;
}
.modal-label {
  color: #bfc9db;
  margin-bottom: 8px;
  font-size: 1rem;
}
.modal-input {
  background: #202736;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 22px;
  outline: none;
  margin-top: 4px;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.modal-input:focus {
  box-shadow: 0 0 0 2px #22b6ff;
}
.modal-submit {
  background: linear-gradient(90deg, #22b6ff 0%, #3ec6e0 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(34,182,255,0.10);
}
.modal-submit:hover {
  background: linear-gradient(90deg, #1a9ed6 0%, #3ec6e0 100%);
}
/* Стиль для активной кнопки футера: только цвет текста и иконки */
.footer-nav .nav-item.active {
  background: none !important;
  border: none !important;
  color: #22b6ff !important;
}
.footer-nav .nav-item.active img {
  filter: brightness(1.5) drop-shadow(0 0 2px #22b6ff);
}
.footer-nav .nav-item {
  transition: background 0.2s, color 0.2s;
}
.footer-nav .nav-item:focus,
.footer-nav .nav-item.active:focus {
  outline: none !important;
  box-shadow: none !important;
}
.footer-nav .nav-item:hover,
.footer-nav .nav-item:active {
  outline: none !important;
  box-shadow: none !important;
}