.dashboard-wrapper {
  position: relative;
  z-index: 3;
  min-height: 100vh;
}


.topbar {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.topbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 40px;
  padding: 0;
}

.topbar ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #ddd;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.topbar ul li a:hover {
  background: rgba(0, 191, 255, 0.1);
  color: #fff;
  box-shadow:
    0 0 8px rgba(0, 191, 255, 0.5),
    0 0 14px rgba(255, 0, 146, 0.3);
  transform: translateY(-1px);
}
.logout-link {
  color: #ff0092;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  transition: 0.3s ease;
}

.logout-link:hover {
  background: rgba(255, 0, 146, 0.08);
  box-shadow: 0 0 10px rgba(255, 0, 146, 0.4);
  color: #fff;
}
.dashboard-content {
  padding: 100px 60px 60px;
}

.user-info, .subscription-block {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.user-info h2 {
  margin-bottom: 10px;
}

.buy-button {
  display: inline-block;
  padding: 12px 35px;
  font-size: 16px;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #ff0092, rgb(0,191,255));
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite alternate;
  margin-top: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buy-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,191,255,0.4);
}
.welcome-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
  text-shadow:
    0 0 5px rgba(0,191,255, 0.7),
    0 0 10px rgba(0,191,255, 0.4);
  animation: pulseGlow 3s ease-in-out infinite;
}

.welcome-title span {
  color: #ff0092;
  text-shadow:
    0 0 5px #ff0092,
    0 0 10px #ff4dd2;
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 5px rgba(0,191,255, 0.5); }
  50% { text-shadow: 0 0 20px rgba(0,191,255, 0.8); }
  100% { text-shadow: 0 0 5px rgba(0,191,255, 0.5); }
}

.fancy-link-wrapper, .download-button {
  margin: 0;  
}
.subscription-block .actions {
  display: flex;
  justify-content: space-between; /* растянет первый элемент влево, последний — вправо */
  align-items: center;
  margin-top: 25px;               /* сохраняем отступ сверху */
  /* flex-wrap: wrap; */           /* можно оставить, если хотите перенос на мобилке */
}

.fancy-activate-link {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #ff0092;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 10px rgba(255, 0, 146, 0.4),
    0 0 25px rgba(0, 191, 255, 0.3);
  transition: all 0.3s ease;
  text-align: left;
}

.fancy-activate-link:hover {
  color: #fff;
  background: rgba(0, 191, 255, 0.12);
  box-shadow:
    0 0 18px rgba(0, 191, 255, 0.5),
    0 0 30px rgba(255, 0, 146, 0.4);
  transform: scale(1.05);
}

.subs-list {
  list-style: none;
  padding: 0;
}

.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 24px;
  border-radius: 15px;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0,191,255, 0.1);
}

.sub-info {
  display: flex;
  flex-direction: column;
}

.sub-info strong {
  font-size: 18px;
}

.sub-info span {
  font-size: 14px;
  color: #ccc;
}
.glow-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 20px;
  font-weight: 700;
  color: #ff0092;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 25px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;

  box-shadow:
    0 0 10px rgba(255, 0, 146, 0.3),
    0 0 20px rgba(0, 191, 255, 0.2);

  animation: glowPulseSmooth 2s ease-in-out infinite;
}

.glow-button:hover {
  transform: scale(1.04);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  box-shadow:
    0 0 20px rgba(255, 0, 146, 0.5),
    0 0 40px rgba(0, 191, 255, 0.4),
    0 0 80px rgba(0, 191, 255, 0.25);
}

@keyframes glowPulseSmooth {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 0, 146, 0.3),
      0 0 20px rgba(0, 191, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 0, 146, 0.5),
      0 0 60px rgba(0, 191, 255, 0.35);
  }
}
.site-link-mobile {
  display: none;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 50px;
  height: 50px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 12px rgba(0, 191, 255, 0.4),
    0 0 25px rgba(255, 0, 146, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 18px rgba(0, 191, 255, 0.7),
    0 0 35px rgba(255, 0, 146, 0.4);
}

.mobile-toggle .bar {
  width: 26px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.4s ease;
  transform-origin: center;
}

/* Анимация превращения в крестик */
.mobile-toggle.active .top {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .middle {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .bottom {
  transform: rotate(-45deg) translate(5px, -5px);
}

.uid-gradient {
  background: linear-gradient(90deg, #FF005C, #00BFFF, #FF005C);
  background-size: 200% auto;
  font-weight: 700;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShiftUID 5s linear infinite, pulseGlowUID 1.5s ease-in-out infinite;
  font-size: 0.85em;
  text-shadow: 0 0 6px rgba(255, 0, 92, 0.6), 0 0 6px rgba(0, 191, 255, 0.6);
}

@keyframes gradientShiftUID {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlowUID {
  0%, 100% {
    text-shadow: 0 0 6px rgba(255, 0, 92, 0.6), 0 0 6px rgba(0, 191, 255, 0.6);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 0, 92, 0.8), 0 0 12px rgba(0, 191, 255, 0.8);
    transform: scale(1.05);
  }
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (max-width: 1040px) {
	.logo-link {
    display: none;
  }
  .topbar ul {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
	.site-link-mobile {
    display: inline-block;
  }
	.dashboard-content {
    padding: 100px 20px 40px;
  }
	.mobile-toggle {
    display: flex;
    right: 20px;    /* было 20px, уменьшили */
    width: 50px;    /* можно чуть сузить саму кнопку */
    height: 50px;
  }

  .topbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .topbar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .subscription-block .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

}
.balance-block {
	position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  backdrop-filter: blur(10px);
  z-index: 0;
  /* animation: pulseShadow 4s ease-in-out infinite; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 120px;
}

.balance-block::before {
  content: "";
  position: absolute;
  inset: 0;
  /* градиентная рамка, слегка толще, чем внутренний отступ */
  padding: 2px;
  background: linear-gradient(135deg, #ff005c, #00bfff, #ff005c);
  background-size: 300% 300%;
  background-clip: padding-box;      /* чтобы градиент не заливал центр */
  -webkit-background-clip: padding-box;
  /* анимация сдвига градиента по рамке */
  animation: borderShift 6s linear infinite;
  border-radius: 16px;
  z-index: -1;
  box-sizing: border-box;
	opacity: 0.2;
}

@keyframes borderShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@keyframes pulseShadow {
  0%,100% {
    box-shadow:
      0 0 12px rgba(0,191,255,0.4),
      0 0 20px rgba(255,0,146,0.4);
  }
  50% {
    box-shadow:
      0 0 24px rgba(0,191,255,0.7),
      0 0 36px rgba(255,0,146,0.7);
  }
}

/* --- Остальные стили остаются теми же, но чуть подкорректируем баланс внутри --- */

.balance-header {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 500;
  color: #eee;
  margin-bottom: 12px;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

.balance-value {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 700;
  /* чуть более насыщенный градиент и медленная смена */
  background: linear-gradient(135deg, #ff0092, #00bfff, #ff0092);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShift 5s ease-in-out infinite alternate;
}

@keyframes textShift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 100% 50%; }
}

.balance-currency {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.purchase-notif {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 1.5rem 2.5rem;
  max-width: 90%;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 146, 0.85) 0%,
    rgba(0, 191, 255, 0.85) 100%
  );
  border-radius: 16px;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(.2,.8,.2,1),
    opacity 0.4s ease;
  z-index: 10000;
  pointer-events: none;
}

.purchase-notif.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.notif-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.notif-backdrop.visible {
  opacity: 1;
}
.purchase-notif {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 146, 0.25),
    rgba(0, 191, 255, 0.25)
  );
  border: 2px solid rgba(255, 0, 146, 0.8);
  border-radius: 16px;
  
  padding: 1.5rem 2.5rem;
  max-width: 90%;
  text-align: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 20px rgba(255, 0, 146, 0.6),
    0 0 40px rgba(0, 191, 255, 0.6),
    inset 0 0 30px rgba(255,255,255,0.1);
  
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              opacity 0.4s ease;
  pointer-events: none;
  z-index: 10000;
}

.purchase-notif.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);

  animation: neonPulse 2s ease-in-out infinite alternate;
}
.freeze-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  color: #00BFFF;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 25px;
  box-shadow:
    0 0 10px rgba(0, 191, 255, 0.4),
    0 0 20px rgba(0, 191, 255, 0.2);
  animation: none;

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.freeze-btn:hover {
  background: rgba(0, 191, 255, 0.6);
  color: #fff;
  transform: scale(1.03);
  box-shadow:
    0 0 20px rgba(0, 191, 255, 0.6),
    0 0 40px rgba(0, 191, 255, 0.4);
}
