* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,61,113,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79,172,254,.1) 0%, transparent 50%);
  animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: .5; }
  50% { opacity: .8; }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ff3d71 0%, #4facfe 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite, logoFloat 2s ease-in-out infinite;
  -webkit-user-select: none;
  user-select: none;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: .3s;
  border: none;
  font-size: 14px;
  font-weight: 500;
}

.auth-btn:hover {
  background: #006db3;
  transform: translateY(-1px);
}

.tg-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.main {
  margin-top: 64px;
  padding-bottom: 80px;
  min-height: calc(100vh - 144px);
}

.market-toolbar {
  position: sticky;
  top: 0; 
  z-index: 2;
  background: transparent;
  padding: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.toolbar-box {
  width: 100%;
  max-width: none; 
  margin: 0; 
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(15,15,15,.78), rgba(15,15,15,.60)) padding-box,
    linear-gradient(135deg, rgba(255,61,113,.20), rgba(79,172,254,.20)) border-box;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative; /
}

.toolbar-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.28), rgba(255,255,255,.05));
  pointer-events: none;
}

.collection-dd { position: relative; display: inline-block; margin-left: auto; padding-left: 12px; }
.collection-dd::before { content: none; }
.collection-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,61,113,.28), rgba(79,172,254,.28));
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  min-height: 40px;
  line-height: 1;
}
.collection-btn .chevron { opacity: .85; }
.collection-btn:hover { filter: brightness(1.05); }
.collection-btn:active { transform: translateY(0); }
.collection-btn i { font-size: 18px; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 0);
  min-width: 220px;
  max-height: 280px;
  overflow: hidden;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15,15,15,.95), rgba(20,20,20,.92));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
  transform-origin: top center;
  animation: dropdownIn .18s ease both;
  z-index: 3;
}
.dropdown-panel[hidden] { display: none !important; }

/* Скрыть scrollbar в dropdown */
.dropdown-panel::-webkit-scrollbar {
  width: 4px;
}
.dropdown-panel::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}
.dropdown-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.25);
}

.dropdown-panel li { 
  padding: 10px 10px; 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 12px;
  cursor: pointer; 
  color: #dbe2ea;
  transition: background .15s ease, transform .15s ease, filter .15s ease;
}
.dropdown-panel li + li { margin-top: 4px; }
.dropdown-panel li:hover { 
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); 
  transform: translateY(-1px);
}
.dropdown-panel li.active { 
  position: relative;
  background: rgba(79,172,254,.12); 
  color: #fff; 
  box-shadow: inset 0 0 0 1px rgba(79,172,254,.25);
}
.dropdown-panel li.active::after {
  content: "";
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; border-radius: 999px;
  background: linear-gradient(180deg, #4facfe, #ff3d71);
  opacity: .9;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translate(-50%, -6px) scale(.98); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  transition: .2s;
  background: linear-gradient(135deg, rgba(255,61,113,.28), rgba(79,172,254,.28));
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  min-height: 40px;
  line-height: 1;
}
.all-btn:hover { filter: brightness(1.05); }
.all-btn:active { transform: translateY(0); }
.all-btn i { font-size: 18px; }

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-container {
  background: rgba(15,15,15,.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide .3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #8b95a5;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.close-btn:hover {
  background: rgba(255,255,255,.1);
}

.user-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
  animation: pulse 2s infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,61,113,.4); }
  50% { box-shadow: 0 0 0 10px rgba(255,61,113,0); }
}

.welcome-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ff3d71 0%, #4facfe 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite, logoFloat 2s ease-in-out infinite;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139,149,165,.3);
  transition: .3s;
}

.step-dot.active {
  background: #ff3d71;
  transform: scale(1.2);
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(139,149,165,.2);
  border-radius: 1px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  transition: width .4s ease;
}

.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.description {
  color: #8b95a5;
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: .2s;
  border: none;
  overflow: hidden;
  margin: 8px 0;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-primary {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,136,204,.3);
}

.btn-primary:hover:not(:disabled) {
  background: #006db3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,136,204,.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,136,204,.3);
}

.btn-primary:disabled {
  background: #b3d9ff;
  color: #fff;
  cursor: not-allowed;
  opacity: .7;
}

.btn-secondary {
  background: transparent;
  color: #0088cc;
  border: 1px solid #0088cc;
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(0,136,204,.1);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  background: rgba(0,136,204,.2);
  transform: translateY(0);
}

.btn-secondary:disabled {
  color: #b3d9ff;
  border-color: #b3d9ff;
  cursor: not-allowed;
  opacity: .7;
}

.btn-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga";
  font-feature-settings: "liga";
  color: inherit;
  align-self: center;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.code-input-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-digit {
  width: 40px;
  height: 48px;
  border: 2px solid #0983ff;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.05);
  transition: .3s;
}

.code-digit:focus {
  border-color: #0983ff;
  background: rgba(9,131,255,.1);
  box-shadow: 0 0 0 3px rgba(9,131,255,.2);
}

.password-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(139,149,165,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 16px;
  margin: 24px 0;
}

.password-input::placeholder {
  color: #8b95a5;
}

.password-input:focus {
  border-color: #0088cc;
  outline: none;
}

.success-icon {
  font-size: 64px;
  color: #68d391;
  display: block;
  margin: 0 auto 16px;
  animation: bounce .6s ease;
}

.success-icon-blue {
  color: #4facfe;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.success-title {
  color: #68d391;
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
}

#status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  text-align: center;
}

#status.success {
  background: rgba(104,211,145,.2);
  color: #68d391;
  border: 1px solid rgba(104,211,145,.3);
}

#status.error {
  background: rgba(255,61,113,.2);
  color: #ff3d71;
  border: 1px solid rgba(255,61,113,.3);
}

#status.info {
  background: rgba(79,172,254,.2);
  color: #4facfe;
  border: 1px solid rgba(79,172,254,.3);
}

.view {
  display: none;
  padding: 20px;
}

.view.active {
  display: block;
  animation: fadeIn .4s ease;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

/* Управление размером одного контейнера */
.market-grid.single {
  max-width: 270px;  /* Максимальная ширина одной карточки */
  margin-left: auto;
  margin-right: auto;
}

#marketView {
  padding-top: 8px; 
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-filter i { font-size: 18px; color: #dbe2ea; }
.price-filter .price-value { color: #dbe2ea; font-size: 12px; min-width: 68px; text-align: right; }
.price-filter input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(135deg, rgba(255,61,113,.32), rgba(79,172,254,.32));
  border-radius: 999px;
  outline: none;
}
.price-filter input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  border: 2px solid #0088cc;
  margin-top: -6px; 
}
.price-filter input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}
.price-filter input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #0088cc;
}
.price-filter input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px; background: linear-gradient(135deg, rgba(255,61,113,.32), rgba(79,172,254,.32));
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: .2s;
}
.load-more-btn:hover { filter: brightness(1.05); }
.load-more-btn i { font-size: 20px; }

.nft-card {
  background: rgba(15,15,15,.8);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform .3s ease;
  border: 1px solid rgba(255,255,255,.1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.nft-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}

.lottie-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,61,113,.1), rgba(79,172,254,.1));
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nft-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
}

.nft-card p {
  color: #8b95a5;
  margin-bottom: 12px;
}

.buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #006db3;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, opacity .2s, filter .2s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.buy-btn:hover {
  transform: translateY(-1px);
}

.buy-btn:active {
  transform: translateY(0) scale(.98);
}

.buy-btn .btn-price {
  color: #fff;
  font-weight: 700;
}

.ton-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  transform-origin: center;
  animation: tonPulse 2.2s ease-in-out infinite;
  border-radius: initial !important;
}

@keyframes tonPulse{
  0%,100%{ transform: scale(1);    opacity:.95; }
  50%    { transform: scale(1.04); opacity:1;   }
}


.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price {
  color: #8b95a5;
  font-weight: 700;
}

.profile-header {
  text-align: center;
  margin-bottom: 12px;
  padding: 12px 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.2);
  animation: pulse 2s infinite;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar .avatar-img {
  display: block;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.06) 100%);
  margin: 8px 20px 16px;
  border: 0;
}

.balance-card {
  margin: 0 20px 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(15,15,15,.78), rgba(15,15,15,.60)) padding-box,
    linear-gradient(135deg, rgba(255,61,113,.20), rgba(79,172,254,.20)) border-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.balance-left { display: flex; align-items: center; gap: 12px; }
.balance-text { display: flex; flex-direction: column; }
.balance-label { font-size: 12px; color: #9aa4b2; }
.balance-value { font-size: 20px; font-weight: 800; }
.balance-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.balance-actions .btn { width: 100%; min-width: 0; padding: 10px 12px; min-height: 40px; font-size: 14px; text-align: center; }
.balance-actions .btn .btn-icon { width: 20px; height: 20px; }

.btn-history {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #dbe2ea;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-history:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,172,254,.2);
}

.btn-history:active {
  transform: translateY(0);
}

.btn-history .btn-icon {
  font-size: 18px;
}

.profile-stats {
  margin: 0 20px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(15,15,15,.78), rgba(15,15,15,.60)) padding-box,
    linear-gradient(135deg, rgba(255,61,113,.20), rgba(79,172,254,.20)) border-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-label { font-size: 11px; color: #9aa4b2; letter-spacing: .2px; }
.stat-value { font-size: 18px; font-weight: 800; }
.v-divider { width: 1px; height: 32px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.28), rgba(255,255,255,.06)); border-radius: 1px; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: rgba(10,10,10,.90);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -4px 16px rgba(0,0,0,.3);
  border-radius: 16px 16px 0 0;
  display: flex;
  z-index: 8;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-btn {
  position: relative;
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: #9aa4b2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: .2s ease;
  font-size: 12px;
  border-radius: 12px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-btn i { font-size: 20px; }
.nav-btn:hover { background: rgba(255,255,255,.06); }
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,61,113,.16), rgba(79,172,254,.16));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.nav-btn i {
  font-size: 20px;
}

.nav-btn:hover {
  background: rgba(255,255,255,.05);
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(18px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ff3d71, #ff6b9d);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,61,113,.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: translateX(18px) scale(1); }
  50% { transform: translateX(18px) scale(1.1); }
}

.nav-badge-hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

#step3 {
  text-align: center;
}

.gifts-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: transparent;
  padding: 0 0 6px;
}

.gifts-toolbar .toolbar-box {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(15,15,15,.78), rgba(15,15,15,.60)) padding-box,
    linear-gradient(135deg, rgba(255,61,113,.20), rgba(79,172,254,.20)) border-box;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.gifts-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  background: rgba(0,0,0,.3);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}

.gift-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.gift-tab i {
  font-size: 16px;
  flex-shrink: 0;
}

.gift-tab span {
  display: none;
}

.gift-tab.active {
  background: linear-gradient(135deg, rgba(255,61,113,.25), rgba(79,172,254,.25));
  color: #fff;
  box-shadow: 
    0 4px 16px rgba(79,172,254,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.gift-tab:active {
  transform: scale(0.95);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.gift-tab.active .tab-badge {
  background: rgba(255,255,255,.25);
}

.gifts-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gifts-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.gifts-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gifts-action-btn:active::before {
  opacity: 1;
}

.gifts-action-btn:active {
  transform: scale(0.95);
  border-color: rgba(255,255,255,.15);
}

.gifts-action-btn i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.gifts-content {
  padding: 12px;
  min-height: 400px;
}

.empty-gifts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  text-align: center;
}

.empty-gifts i {
  font-size: 64px;
  color: #8b95a5;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.empty-gifts p {
  color: #8b95a5;
  font-size: 18px;
  font-weight: 500;
}

.gift-card {
  max-width: 280px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(15,15,15,.8);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gift-animation {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,61,113,.1), rgba(79,172,254,.1));
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gift-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #fff;
}

.withdraw-gift-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #006db3;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, opacity .2s, filter .2s;
}

.withdraw-gift-btn:hover {
  transform: translateY(-1px);
}

.withdraw-gift-btn:active {
  transform: translateY(0) scale(.98);
}

.withdraw-gift-btn:disabled {
  background: rgba(100,100,100,.3);
  cursor: not-allowed;
  opacity: 0.6;
}

.withdraw-gift-btn:disabled:hover {
  transform: none;
}

.gift-card.claimed {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.claimed-badge {
  display: inline-block;
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.btn-icon-animated {
  font-size: 20px;
  animation: coinFloat 2s ease-in-out infinite;
}

@keyframes coinFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-3px) rotate(-5deg); 
  }
  50% { 
    transform: translateY(0) rotate(0deg); 
  }
  75% { 
    transform: translateY(-3px) rotate(5deg); 
  }
}

.withdraw-gift-btn:hover .btn-icon-animated {
  animation: coinSpin 0.6s ease-in-out;
}

@keyframes coinSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.offer-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 72px;
  color: #ff3d71;
  margin: 0 auto 16px;
  animation: bounce 0.6s ease;
}

.offer-icon-green {
  color: #68d391;
}

.telegram-icon-animated {
  background: linear-gradient(135deg, #0088cc, #229ed9, #4facfe, #229ed9, #0088cc);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: telegramGlow 3s ease-in-out infinite, iconFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 136, 204, 0.6));
}

@keyframes telegramGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 20px rgba(0, 136, 204, 0.6)) brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(34, 158, 217, 0.8)) brightness(1.2);
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

#closeOfferBtn .btn-icon {
  font-size: 22px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 8px;
}
.profile-banners::-webkit-scrollbar { display: none; }

.banner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(135deg, rgba(79,172,254,.12), rgba(138,43,226,.12));
  scroll-snap-align: start;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left 0.6s ease;
}

.banner-card:hover::before {
  left: 100%;
}

.banner-card:hover {
  -webkit-transform: translateY(-4px) scale(1.02);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 16px 56px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.3);
}

.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bgPulse 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.banner-card:hover::after {
  opacity: 1;
}

.banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.1));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 8px 24px rgba(0,0,0,.3),
    inset 0 2px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.2);
  transition: all 0.4s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.banner-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.banner-card:hover .banner-icon::before {
  opacity: 1;
  animation: iconGlow 1.5s ease-in-out infinite;
}

.banner-card:hover .banner-icon {
  -webkit-transform: rotate(5deg) scale(1.1);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 
    0 12px 32px rgba(0,0,0,.4),
    inset 0 2px 0 rgba(255,255,255,.5);
}

.banner-icon i {
  font-size: 22px;
  color: #fff;
  animation: iconFloat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  transition: transform 0.4s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.banner-card:hover .banner-icon i {
  animation: iconSpin 0.6s ease-in-out;
}

[class^="ri-"], [class*=" ri-"] {
  font-family: "remixicon" !important;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  text-transform: none;
  line-height: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.banner-title {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.banner-card:hover .banner-title {
  transform: translateX(2px);
}

.banner-sub {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: color 0.3s ease;
}

.banner-card:hover .banner-sub {
  color: rgba(255,255,255,.9);
}

.gradient-1 {
  background: linear-gradient(135deg, rgba(255,61,113,.22), rgba(79,172,254,.18));
  box-shadow: 
    0 8px 40px rgba(255,61,113,.25),
    0 0 80px rgba(255,61,113,.1),
    inset 0 1px 0 rgba(255,61,113,.3);
  transition: box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-1:hover {
  box-shadow: 
    0 16px 64px rgba(255,61,113,.4),
    0 0 120px rgba(255,61,113,.2);
}

.gradient-2 {
  background: linear-gradient(135deg, rgba(104,211,145,.22), rgba(79,172,254,.18));
  box-shadow: 
    0 8px 40px rgba(104,211,145,.25),
    0 0 80px rgba(104,211,145,.1),
    inset 0 1px 0 rgba(104,211,145,.3);
  transition: box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-2:hover {
  box-shadow: 
    0 16px 64px rgba(104,211,145,.4),
    0 0 120px rgba(104,211,145,.2);
}

.gradient-3 {
  background: linear-gradient(135deg, rgba(255,196,0,.22), rgba(138,43,226,.18));
  box-shadow: 
    0 8px 40px rgba(255,196,0,.25),
    0 0 80px rgba(255,196,0,.1),
    inset 0 1px 0 rgba(255,196,0,.3);
  transition: box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-3:hover {
  box-shadow: 
    0 16px 64px rgba(255,196,0,.4),
    0 0 120px rgba(255,196,0,.2);
}

#partnersView { padding: 20px; }
.partners-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 24px 16px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,61,113,.08), rgba(79,172,254,.08));
}
.partners-orb {
  width: 100px; height: 100px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255,61,113,.6), rgba(79,172,254,.6));
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 0 40px rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  animation: orbPulse 2.8s ease-in-out infinite;
}
.partners-orb i { font-size: 48px; color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,.35); }
.partners-title { font-size: 22px; font-weight: 800; }
.partners-sub { color: #9aa4b2; font-size: 14px; line-height: 1.5; }
@keyframes orbPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.04); } }

/* Profile animated widgets */
.profile-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px 20px 4px;
}
.widget-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(79,172,254,.10), rgba(138,43,226,.10));
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.widget-content { display: flex; flex-direction: column; }
.widget-title { font-size: 12px; color: #9aa4b2; }
.widget-value { font-size: 18px; font-weight: 800; }
.widget-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.widget-icon i { font-size: 22px; color: #fff; }

.ring-outer {
  position: relative;
  width: 56px; height: 56px;
}
.ring-fill {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3d71, #4facfe, #ff3d71);
  animation: spin 2.8s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}
.ring-inner {
  position: absolute; inset: 6px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.ring-inner i { color: #ffb703; font-size: 20px; }

@keyframes spin { to { transform: rotate(360deg); } }

.widget-glow {
  background: linear-gradient(135deg, rgba(255,61,113,.12), rgba(79,172,254,.12));
  box-shadow: 0 0 0 0 rgba(255,61,113,.38);
  animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,61,113,.35); }
  50% { box-shadow: 0 0 20px 4px rgba(255,61,113,.25); }
}

/* Анимированная звезда рейтинга */
.widget-rating {
  position: relative;
  overflow: visible !important;
}

.rating-star-container {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,215,0,.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.rating-star-bg,
.rating-star-fill {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rating-star-bg path {
  fill: rgba(255,255,255,.08);
  stroke: rgba(255,255,255,.15);
  stroke-width: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.star-gradient-stop1 {
  stop-color: #ffd700;
  stop-opacity: 1;
}

.star-gradient-stop2 {
  stop-color: #ffed4e;
  stop-opacity: 1;
}

.star-gradient-stop3 {
  stop-color: #ff8c00;
  stop-opacity: 1;
}

.rating-star-fill {
  clip-path: inset(100% 0 0 0);
  animation: starFillUp 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, starPulse 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 2.2s infinite;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.6));
}

.rating-star-fill path {
  fill: url(#starGradient);
  stroke: rgba(255,215,0,.8);
  stroke-width: 0.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

@keyframes starFillUp {
  0% {
    clip-path: inset(100% 0 0 0);
    filter: drop-shadow(0 0 0px rgba(255,215,0,0));
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255,215,0,.85));
  }
  100% {
    clip-path: inset(0% 0 0 0);
    filter: drop-shadow(0 0 10px rgba(255,215,0,.7));
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes starPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 10px rgba(255,215,0,.7));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 0 18px rgba(255,215,0,.95));
  }
}

.rating-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: #ffd700;
  font-size: 11px;
  opacity: 0;
  animation: sparkleFloat 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  text-shadow: 0 0 6px rgba(255,215,0,.9);
  filter: blur(0.3px);
}

.sparkle-1 {
  top: -6px;
  right: 2px;
  animation-delay: 0.4s;
}

.sparkle-2 {
  bottom: -6px;
  left: 6px;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 50%;
  right: -10px;
  animation-delay: 1.6s;
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.3) rotate(0deg);
  }
  12% {
    opacity: 0.8;
    transform: translateY(-6px) scale(1) rotate(180deg);
  }
  25% {
    opacity: 0;
    transform: translateY(-14px) scale(0.3) rotate(360deg);
  }
}

.widget-shimmer { position: relative; overflow: hidden; }
.widget-shimmer::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 40%, rgba(255,255,255,0) 80%);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#seasonsView { padding: 20px; }
.seasons-hero {
  display: flex; flex-direction: column; gap: 16px; align-items: stretch;
}
.season-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(15,15,15,.78), rgba(15,15,15,.60)) padding-box,
    linear-gradient(135deg, rgba(255,61,113,.20), rgba(79,172,254,.20)) border-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  animation: glowPulse 3s ease-in-out infinite;
}
.season-badge i { font-size: 26px; color: #ffd166; }
.season-text { display: flex; flex-direction: column; }
.season-name { font-weight: 800; font-size: 16px; }
.season-sub { color: #9aa4b2; font-size: 12px; }

.season-progress { 
  border: 1px solid rgba(255,255,255,.15); 
  border-radius: 20px; 
  padding: 18px; 
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); 
  margin-bottom: 14px;
  box-shadow: 
    0 8px 32px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sp-bar { 
  position: relative; 
  height: 14px; 
  background: rgba(0,0,0,.3); 
  border-radius: 999px; 
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
}
.sp-fill { 
  position: absolute; 
  inset: 0 0 0 0; 
  width: 0%; 
  background: linear-gradient(90deg, #ff3d71, #ff6b9d, #4facfe); 
  transition: width .8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(255,61,113,.5),
    inset 0 1px 0 rgba(255,255,255,.3);
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { 
    filter: brightness(1);
    box-shadow: 0 0 20px rgba(255,61,113,.5);
  }
  50% { 
    filter: brightness(1.2);
    box-shadow: 0 0 30px rgba(255,61,113,.7);
  }
}

.sp-fill::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 10px, rgba(255,255,255,0) 10px 20px); 
  mix-blend-mode: overlay; 
  opacity: .5;
  animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
  from { transform: translateX(-20px); }
  to { transform: translateX(0); }
}

.sp-fill::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0%, 100% { transform: translateX(0); opacity: 0; }
  50% { transform: translateX(20px); opacity: 1; }
}

.sp-stats { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-top: 12px; 
  font-size: 14px; 
}
.sp-points { 
  font-weight: 900;
  background: linear-gradient(90deg, #ff3d71, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 15px;
  filter: drop-shadow(0 0 8px rgba(255,61,113,.3));
}
.sp-tier { 
  color: #dbe2ea;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.rewards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.reward-card { 
  position: relative;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px; 
  padding: 16px 12px; 
  border-radius: 16px; 
  border: 1px solid rgba(255,255,255,.12); 
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); 
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1); 
  transition: all .3s ease;
  overflow: hidden;
}
.reward-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3d71, #4facfe, #ffd166);
  opacity: 0;
  transition: opacity .3s ease;
}
.reward-card:hover::before {
  opacity: 1;
}
.reward-card:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
}
.reward-icon { 
  width: 52px; 
  height: 52px; 
  border-radius: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: linear-gradient(135deg, rgba(255,61,113,.2), rgba(79,172,254,.2)); 
  box-shadow: 0 4px 16px rgba(79,172,254,.25);
  position: relative;
}
.reward-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  opacity: 0;
  z-index: -1;
  transition: opacity .3s ease;
}
.reward-card:hover .reward-icon::after {
  opacity: 0.3;
}
.reward-icon i { 
  font-size: 26px; 
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.reward-name { 
  font-size: 12px; 
  font-weight: 600;
  color: #fff; 
  text-align: center;
  line-height: 1.3;
}

.challenges { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; 
  margin: 14px 0; 
}
.chip { 
  position: relative;
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 16px 14px; 
  border-radius: 18px; 
  border: 1px solid rgba(255,255,255,.15); 
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); 
  color: #fff; 
  font-size: 13px; 
  font-weight: 600;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.15);
  cursor: pointer;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left 0.5s ease;
}

.chip:hover::before {
  left: 100%;
}

.chip i { 
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.chip:hover i {
  transform: scale(1.2) rotate(10deg);
  animation: iconWobble 0.6s ease-in-out;
}

@keyframes iconWobble {
  0%, 100% { transform: scale(1.2) rotate(10deg); }
  25% { transform: scale(1.3) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  75% { transform: scale(1.3) rotate(-5deg); }
}

.chip:hover { 
  transform: translateY(-4px) scale(1.03); 
  box-shadow: 
    0 12px 32px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25),
    0 0 40px rgba(79,172,254,.15);
  border-color: rgba(255,255,255,.3);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
}

.chip.done { 
  background: linear-gradient(135deg, rgba(104,211,145,.35), rgba(104,211,145,.18)); 
  border-color: rgba(104,211,145,.5);
  box-shadow: 
    0 6px 24px rgba(104,211,145,.3),
    inset 0 1px 0 rgba(104,211,145,.4),
    0 0 40px rgba(104,211,145,.2);
}

.chip.done:hover {
  box-shadow: 
    0 12px 40px rgba(104,211,145,.4),
    inset 0 1px 0 rgba(104,211,145,.5),
    0 0 60px rgba(104,211,145,.3);
  transform: translateY(-4px) scale(1.03);
}

.chip.done i {
  color: #68d391;
  filter: drop-shadow(0 0 8px rgba(104,211,145,.6));
}

.leaderboard { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; }
.lb-header, .lb-item {
  display: grid;
  grid-template-columns: 40px 1fr 80px;
  align-items: center;
}
.lb-header { padding: 10px 12px; color: #9aa4b2; font-size: 12px; background: rgba(255,255,255,.04); }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-item { padding: 12px; border-top: 1px solid rgba(255,255,255,.06); position: relative; }
.lb-item.me { background: rgba(79,172,254,.10); }
.lb-rank { font-weight: 800; color: #dbe2ea; }
.lb-user { display: flex; align-items: center; gap: 10px; }
.lb-points { text-align: right; font-weight: 700; }
.avatar-badge { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff3d71, #4facfe); }

.your-rank {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(79,172,254,.10), rgba(138,43,226,.10));
}
.yr-title { color: #9aa4b2; font-size: 12px; }
.yr-value { font-weight: 900; font-size: 28px; }

/* Сезонные баннеры - МЕГА СТИЛЬ */
.season-banners {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.season-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.2);
}

.season-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left 0.6s ease;
}

.season-banner:hover::before {
  left: 100%;
}

.season-banner:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 16px 56px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.3);
}

.banner-bg-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: bgPulse 3s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { 
    opacity: 0;
    transform: scale(1);
  }
  50% { 
    opacity: 0.35;
    transform: scale(1.02);
  }
}

.season-banner:hover .banner-bg-effect {
  opacity: 1;
}

.banner-glow-1 {
  background: linear-gradient(135deg, rgba(255,196,0,.22), rgba(255,61,113,.18));
  box-shadow: 
    0 8px 40px rgba(255,196,0,.25),
    0 0 80px rgba(255,196,0,.1),
    inset 0 1px 0 rgba(255,196,0,.3);
}

.banner-glow-1:hover {
  box-shadow: 
    0 16px 64px rgba(255,196,0,.4),
    0 0 120px rgba(255,196,0,.2);
}

.banner-glow-2 {
  background: linear-gradient(135deg, rgba(79,172,254,.22), rgba(138,43,226,.18));
  box-shadow: 
    0 8px 40px rgba(79,172,254,.25),
    0 0 80px rgba(79,172,254,.1),
    inset 0 1px 0 rgba(79,172,254,.3);
}

.banner-glow-2:hover {
  box-shadow: 
    0 16px 64px rgba(79,172,254,.4),
    0 0 120px rgba(79,172,254,.2);
}

.banner-glow-3 {
  background: linear-gradient(135deg, rgba(255,61,113,.22), rgba(255,165,0,.18));
  box-shadow: 
    0 8px 40px rgba(255,61,113,.25),
    0 0 80px rgba(255,61,113,.1),
    inset 0 1px 0 rgba(255,61,113,.3);
}

.banner-glow-3:hover {
  box-shadow: 
    0 16px 64px rgba(255,61,113,.4),
    0 0 120px rgba(255,61,113,.2);
}

.banner-glow-4 {
  background: linear-gradient(135deg, rgba(104,211,145,.22), rgba(79,172,254,.18));
  box-shadow: 
    0 8px 40px rgba(104,211,145,.25),
    0 0 80px rgba(104,211,145,.1),
    inset 0 1px 0 rgba(104,211,145,.3);
}

.banner-glow-4:hover {
  box-shadow: 
    0 16px 64px rgba(104,211,145,.4),
    0 0 120px rgba(104,211,145,.2);
}

.banner-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.1));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 8px 24px rgba(0,0,0,.3),
    inset 0 2px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.2);
  transition: all 0.4s ease;
}

.banner-icon-large::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.season-banner:hover .banner-icon-large::before {
  opacity: 1;
  animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { 
    filter: blur(8px);
    opacity: 0.6;
  }
  50% { 
    filter: blur(12px);
    opacity: 1;
  }
}

.season-banner:hover .banner-icon-large {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 
    0 12px 32px rgba(0,0,0,.4),
    inset 0 2px 0 rgba(255,255,255,.5);
}

.banner-icon-large i {
  font-size: 32px;
  color: #fff;
  animation: iconFloat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  transition: transform 0.4s ease;
}

.season-banner:hover .banner-icon-large i {
  animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-2deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes iconSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.banner-main {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.season-banner:hover .banner-main {
  transform: translateX(2px);
}

.banner-desc {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: color 0.3s ease;
}

.season-banner:hover .banner-desc {
  color: rgba(255,255,255,.9);
}

.banner-arrow {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 16px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
  overflow: hidden;
}

.banner-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.season-banner:hover .banner-arrow::before {
  opacity: 1;
  animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.season-banner:hover .banner-arrow {
  transform: translateX(8px) rotate(5deg) scale(1.1);
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.15));
  box-shadow: 
    0 8px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.5);
}

.banner-arrow i {
  font-size: 22px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: transform 0.3s ease;
}

.season-banner:hover .banner-arrow i {
  animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.season-prize {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(255,196,0,.14), rgba(138,43,226,.10));
}
.prize-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); animation: prizeFloat 3.2s ease-in-out infinite; }
.prize-icon i { font-size: 26px; color: #fff; }
.prize-title { font-weight: 800; }
.prize-sub { color: #9aa4b2; font-size: 12px; }
@keyframes prizeFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-4px); } }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, 
    #0a0a0f 0%, 
    #050508 25%, 
    #000000 50%, 
    #0d0510 75%, 
    #0a0a12 100%);
  background-size: 200% 200%;
  animation: preloaderBgShift 15s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.preloader::before{
  content: "";
  position: absolute; 
  inset: -20% -20%;
  background: radial-gradient(ellipse at 30% 50%, 
    rgba(255,61,113,.08) 0%, 
    transparent 40%), 
  radial-gradient(ellipse at 70% 50%, 
    rgba(79,172,254,.08) 0%, 
    transparent 40%);
  filter: blur(60px);
  animation: preGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: .6;
}

@keyframes preGlow {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); opacity: .5; }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.1) rotate(2deg); opacity: .7; }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.05) rotate(-2deg); opacity: .6; }
}

@keyframes preloaderBgShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.preloader-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: contentFade .8s ease both;
}

.preloader-logo {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #ff3d71 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoFloat 2s ease-in-out infinite;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 0 30px rgba(255,61,113,.5)) drop-shadow(0 0 20px rgba(79,172,254,.5));
}

.preloader-sub {
  color: #dbe2ea;
  font-size: 12px;
  opacity: .85;
  margin-top: -2px;
}

.preloader-bar {
  position: relative;
  width: 100%;
  height: 10px;
  background: linear-gradient(135deg, rgba(255,61,113,.04) 0%, rgba(79,172,254,.04) 100%);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(0,0,0,.3), 
    0 0 25px rgba(255,61,113,.08),
    inset 0 2px 6px rgba(0,0,0,.4),
    inset 0 -1px 4px rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}

.preloader-bar::before {
  content: "";
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,.02) 50%, 
    transparent 100%);
  animation: barSweep 4s ease-in-out infinite;
  pointer-events: none;
}

.preloader-fill {
  position: absolute;
  inset: 0 0 0 0;
  width: 0%;
  background: linear-gradient(90deg, 
    #ff3d71 0%, 
    #ff6b9d 30%, 
    #a855f7 50%, 
    #4facfe 70%, 
    #4facfe 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 
    0 0 15px rgba(255,61,113,.4), 
    0 0 30px rgba(79,172,254,.25),
    inset 0 1px 0 rgba(255,255,255,.2);
  animation: preGradientFlow 4s linear infinite;
  filter: brightness(1.1) saturate(1.1);
}

.preloader-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.15) 50%,
    rgba(255,255,255,0) 100%);
  animation: fillShine 3s ease-in-out infinite;
  border-radius: 999px;
}

.preloader-fill::after{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, 
    rgba(255,255,255,.15) 0px, 
    rgba(255,255,255,.05) 8px, 
    rgba(255,255,255,.15) 16px);
  mix-blend-mode: overlay;
  opacity: .5;
  animation: stripeFlow .8s linear infinite;
  border-radius: 999px;
  -webkit-mask-image: linear-gradient(180deg, 
    rgba(0,0,0,.6) 0%, 
    rgba(0,0,0,.4) 50%, 
    rgba(0,0,0,.2) 100%);
  mask-image: linear-gradient(180deg, 
    rgba(0,0,0,.6) 0%, 
    rgba(0,0,0,.4) 50%, 
    rgba(0,0,0,.2) 100%);
}

.preloader-pct {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #ff3d71, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes preGradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}



@keyframes stripeFlow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(16px); }
}

@keyframes fillShine {
  0% { 
    transform: translateX(-100%) skewX(-15deg); 
    opacity: 0;
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    transform: translateX(200%) skewX(-15deg); 
    opacity: 0;
  }
}

@keyframes barSweep {
  0% { 
    transform: translateX(-100%); 
    opacity: 0;
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    transform: translateX(100%); 
    opacity: 0;
  }
}





body.preloading { overflow: hidden; }
body.preloading .header,
body.preloading .main,
body.preloading .bottom-nav { opacity: 0; pointer-events: none; }
.header, .main, .bottom-nav { transition: opacity .4s ease, transform .3s ease; }

/* Скрытие нижней панели при открытом модальном окне */
body:has(.auth-modal.active) .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
  .preloader, .header, .main, .bottom-nav { transition: none; }
  .preloader::before { animation: none; }
  .preloader-logo { animation: none; }
}