/* ===== VARIABLES ===== */
:root {
  --primary-bg: #0a0a0a;
  --accent-color: #7171ff;
  --accent-hover: #faff5a;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff2df7;
  --warning-glow: rgba(255, 121, 121, 0.9);
  --success-color: #80ffaa;
  --text-color: #66799e;
  --blur-bg: rgba(108, 172, 255, 0.067);
  --menu-bg: rgba(0, 0, 0, 0.95);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-intensity: 15px;
}

/* ===== BASE STYLES ===== */
html, body {
  height: 100%;
  background: var(--primary-bg);
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
  text-align: center;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Cosmic background effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(113, 113, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(250, 255, 90, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 243, 255, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: cosmicFloat 20s infinite alternate ease-in-out;
}

/* ===== LOADING STATES ===== */
body.oc-loading, 
body.oc-loading * {
  cursor: wait !important;
}

/* Cyberpunk loading spinner */
.oc-loading:after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-left: .8em;
  height: 1.2em;
  width: 1.2em;
  animation: oc-rotate-loader 0.8s infinite linear,
             cyberPulse 1.5s infinite alternate;
  border: 2px solid var(--accent-color);
  border-top-color: var(--neon-cyan);
  border-bottom-color: var(--neon-pink);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-color);
}

/* ===== PROGRESS BAR ===== */
.stripe-loading-indicator {
  height: 4px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.stripe-loading-indicator .stripe {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--neon-pink),
    var(--accent-color),
    var(--neon-cyan),
    var(--accent-hover)
  );
  position: absolute;
  animation: oc-infinite-loader 1.5s ease-in-out infinite,
             cyberShimmer 2s infinite linear;
  box-shadow: 0 0 30px var(--accent-color);
}

.stripe-loading-indicator.loaded {
  opacity: 0;
  animation: cyberFadeOut 0.6s ease-out forwards;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  background: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 
    0 4px 30px rgba(113, 113, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0.8rem 2rem;
  z-index: 1000;
  transition: var(--transition);
  animation: cyberSlideDown 0.6s ease-out;
  border-bottom: 1px solid rgba(113, 113, 255, 0.2);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 
    0 10px 40px rgba(113, 113, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cyberNavbarScroll 0.4s ease-out;
}

.navbar-brand {
  margin-left: 0;
  transition: var(--transition);
  animation: cyberFadeInLeft 0.8s ease-out;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--neon-cyan));
  transition: width 0.6s ease;
  animation: cyberUnderline 2s infinite alternate;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-brand > img {
  height: 45px;
  transition: var(--transition);
  animation: cyberBounceIn 1s ease-out;
  filter: drop-shadow(0 0 15px var(--accent-color));
}

.navbar-brand:hover > img {
  animation: cyberPulse 1s infinite, cyberHover 0.6s ease;
  filter: drop-shadow(0 0 25px var(--accent-hover));
}

.navbar-collapse {
  flex-grow: inherit;
}

.navbar-nav {
  gap: 1.5rem;
}

.nav-link {
  color: var(--accent-color) !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem !important;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(113, 113, 255, 0.1);
  border: 1px solid rgba(113, 113, 255, 0.3);
  animation: cyberFadeInRight 0.8s ease-out;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent,
    rgba(113, 113, 255, 0.2),
    rgba(0, 243, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--accent-hover) !important;
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 0 20px var(--accent-hover);
  background: rgba(113, 113, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 
    0 10px 30px rgba(113, 113, 255, 0.4),
    0 0 20px rgba(0, 243, 255, 0.3);
  animation: cyberNavHover 0.4s ease-out;
}

.nav-link:hover svg > path {
  stroke-opacity: 1;
  filter: drop-shadow(0 0 12px var(--accent-hover));
  animation: cyberIconGlow 0.6s infinite alternate;
}

/* Mobile menu */
.navbar-collapse.collapsing, 
.navbar-collapse.show {
  padding: 2rem;
  border-radius: 20px;
  background: var(--menu-bg) !important;
  animation: cyberSlideDown 0.3s ease forwards,
             cyberFadeIn 0.4s ease;
  box-shadow: 
    0 25px 50px rgba(113, 113, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(113, 113, 255, 0.2);
  margin-top: 1rem;
  backdrop-filter: blur(20px);
}

/* ===== TYPOGRAPHY ===== */
.display-1 {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 1000;
  line-height: 1.1;
  background: linear-gradient(135deg, 
    #66799e, 
    var(--accent-color),
    var(--neon-cyan),
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem 0;
  animation: cyberFadeInUp 1s ease-out,
             cyberTextShimmer 4s infinite alternate;
  text-shadow: 0 0 50px rgba(113, 113, 255, 0.5);
  position: relative;
}

.display-1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--neon-pink),
    var(--accent-color),
    var(--neon-cyan)
  );
  animation: cyberUnderlinePulse 3s infinite alternate;
}

.display-4 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  animation: cyberFadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 0 20px rgba(102, 121, 158, 0.4);
}

.text-shadow-warning {
  text-shadow: 0 0 25px var(--warning-glow);
  transition: var(--transition);
  animation: cyberGlowPulse 2s infinite alternate;
}

.shadow-warning:hover {
  box-shadow: 
    0 25px 50px rgba(255, 104, 104, 0.3),
    0 0 30px rgba(255, 121, 121, 0.5);
  transform: translateY(-5px);
  animation: cyberHoverFloat 3s infinite ease-in-out;
}

/* ===== COMPONENTS ===== */
.sale__timer {
  background: linear-gradient(135deg, 
    var(--success-color), 
    #00ff88,
    var(--neon-cyan)
  );
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 
    0 25px 50px rgba(128, 255, 170, 0.3),
    0 0 40px rgba(128, 255, 170, 0.4);
  transition: var(--transition);
  animation: cyberScaleIn 0.6s ease-out,
             cyberPulseSuccess 2s infinite alternate;
  border: 1px solid rgba(128, 255, 170, 0.3);
  position: relative;
  overflow: hidden;
}

.sale__timer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: cyberShine 3s infinite linear;
  transform: rotate(45deg);
}

.sale__timer:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 
    0 35px 70px rgba(128, 255, 170, 0.5),
    0 0 60px rgba(128, 255, 170, 0.6);
  animation: cyberHoverPulse 1.5s infinite ease-in-out;
}

/* Flash messages */
.flash-message {
  position: fixed;
  width: min(90%, 500px);
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  padding: 1.5rem 3rem 1.5rem 2rem;
  z-index: 10500;
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cyberSlideInDown 0.5s ease,
             cyberToastBounce 0.8s ease;
  font-weight: 500;
}

.flash-message.success {
  background: linear-gradient(135deg, 
    rgba(141, 168, 94, 0.9),
    rgba(168, 192, 128, 0.9)
  );
  border-color: rgba(168, 192, 128, 0.4);
  animation: cyberSlideInDown 0.5s ease,
             cyberToastBounce 0.8s ease,
             cyberPulseSuccess 2s infinite alternate;
}

.flash-message.error {
  background: linear-gradient(135deg, 
    rgba(255, 51, 0, 0.9),
    rgba(255, 102, 68, 0.9)
  );
  border-color: rgba(255, 102, 68, 0.4);
  animation: cyberSlideInDown 0.5s ease,
             cyberToastBounce 0.8s ease,
             cyberShake 0.5s ease;
}

.flash-message.warning {
  background: linear-gradient(135deg, 
    rgba(240, 173, 78, 0.9),
    rgba(244, 194, 116, 0.9)
  );
  border-color: rgba(244, 194, 116, 0.4);
  animation: cyberSlideInDown 0.5s ease,
             cyberToastBounce 0.8s ease,
             cyberPulseWarning 2s infinite alternate;
}

.flash-message.info {
  background: linear-gradient(135deg, 
    rgba(95, 182, 245, 0.9),
    rgba(138, 198, 245, 0.9)
  );
  border-color: rgba(138, 198, 245, 0.4);
  animation: cyberSlideInDown 0.5s ease,
             cyberToastBounce 0.8s ease,
             cyberPulseInfo 2s infinite alternate;
}

/* ===== CYBERPUNK ANIMATIONS ===== */
@keyframes cosmicFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-10px, -10px) scale(1.02);
  }
  66% {
    transform: translate(10px, 10px) scale(0.98);
  }
}

@keyframes cyberPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px var(--accent-color));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px var(--accent-hover));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px var(--accent-color));
  }
}

@keyframes cyberShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes cyberSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cyberFadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(45deg);
    filter: blur(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes cyberTextShimmer {
  0% {
    background-position: -100% 0;
    text-shadow: 0 0 30px rgba(113, 113, 255, 0.7);
  }
  100% {
    background-position: 200% 0;
    text-shadow: 0 0 60px rgba(113, 113, 255, 0.9),
                 0 0 80px rgba(113, 113, 255, 0.6);
  }
}

@keyframes cyberUnderlinePulse {
  0% {
    width: 50px;
    opacity: 0.7;
  }
  100% {
    width: 200px;
    opacity: 1;
  }
}

@keyframes cyberHoverFloat {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  33% {
    transform: translateY(-8px) rotate(-1deg);
  }
  66% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes cyberPulseSuccess {
  0% {
    box-shadow: 
      0 25px 50px rgba(128, 255, 170, 0.3),
      0 0 40px rgba(128, 255, 170, 0.4);
  }
  100% {
    box-shadow: 
      0 35px 70px rgba(128, 255, 170, 0.5),
      0 0 80px rgba(128, 255, 170, 0.6),
      0 0 100px rgba(128, 255, 170, 0.4);
  }
}

@keyframes cyberShine {
  0% {
    transform: rotate(45deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(45deg) translate(50%, 50%);
  }
}

@keyframes cyberToastBounce {
  0% {
    transform: translate(-50%, -150px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, 30px) scale(1.05);
  }
  80% {
    transform: translate(-50%, -15px) scale(0.95);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

@keyframes cyberShake {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translate(-53%, 0);
  }
  20%, 40%, 60%, 80% {
    transform: translate(-47%, 0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .display-4 {
    font-size: clamp(1.3rem, 3vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    animation: cyberSlideDown 0.4s ease-out;
  }
  
  .navbar-brand > img {
    height: 35px;
    animation: cyberBounceIn 0.8s ease-out;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 1rem !important;
    animation: cyberFadeInUp 0.6s ease-out;
  }
  
  .flash-message {
    top: 80px;
    width: 95%;
    animation: cyberSlideInDown 0.4s ease,
               cyberToastBounce 0.6s ease;
  }
  
  .display-1 {
    animation: cyberFadeInUp 0.8s ease-out,
               cyberTextShimmer 3s infinite alternate;
  }
}

/* VK widget cyber style */
#vk_community_messages {
  position: fixed !important;
  margin: 80px 0 !important;
  right: 20px !important;
  z-index: 1000;
  animation: cyberFadeInRight 1.2s ease-out;
  filter: drop-shadow(0 0 20px var(--accent-color));
}

/* Cyberpunk focus states */
.nav-link:focus,
button:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
  animation: cyberFocusPulse 0.6s ease;
  box-shadow: 0 0 30px var(--neon-cyan);
}

@keyframes cyberFocusPulse {
  0% {
    outline-offset: 2px;
    box-shadow: 0 0 10px var(--neon-cyan);
  }
  50% {
    outline-offset: 6px;
    box-shadow: 0 0 40px var(--neon-cyan);
  }
  100% {
    outline-offset: 4px;
    box-shadow: 0 0 30px var(--neon-cyan);
  }
}

/* Cyberpunk scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.8);
  border-left: 1px solid rgba(113, 113, 255, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    var(--neon-pink),
    var(--accent-color),
    var(--neon-cyan)
  );
  border-radius: 6px;
  border: 2px solid var(--primary-bg);
}

::-webkit-scrollbar-thumb:hover {
  animation: cyberScrollThumb 1s infinite alternate;
}

@keyframes cyberScrollThumb {
  0% {
    box-shadow: 0 0 10px var(--neon-pink);
  }
  100% {
    box-shadow: 0 0 20px var(--neon-cyan),
                0 0 30px var(--accent-color);
  }
}