/* ===== VARIABLES ===== */
:root {
  --primary-bg: #0a0a0a;
  --accent-color: #7171ff;
  --accent-hover: #faff5a;
  --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.9);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
html, body {
  height: 100%;
  background-color: 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;
}

* {
  box-sizing: border-box;
}

/* ===== LOADING STATES ===== */
body.oc-loading, 
body.oc-loading * {
  cursor: wait !important;
}

/* Modern 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 cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.8;
  transition: var(--transition);
}

/* ===== PROGRESS BAR ===== */
.stripe-loading-indicator {
  height: 3px;
  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, #0090c0, #00c8ff, #0090c0);
  position: absolute;
  animation: oc-infinite-loader 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 144, 192, 0.4);
}

.stripe-loading-indicator.loaded {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  background: var(--blur-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(153, 153, 255, 0.1);
  padding: 0.8rem 2rem;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  margin-left: 0;
  transition: var(--transition);
}

.navbar-brand > img {
  height: 45px;
  transition: var(--transition);
}

.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 1rem !important;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(113, 113, 255, 0.1), transparent);
  transition: left 0.7s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--accent-hover) !important;
  transform: translateY(-2px);
  text-shadow: 0 0 15px var(--accent-hover);
}

.nav-link:hover svg > path {
  stroke-opacity: 1;
  filter: drop-shadow(0 0 8px var(--accent-hover));
}

/* Mobile menu */
.navbar-collapse.collapsing, 
.navbar-collapse.show {
  padding: 2rem;
  border-radius: 20px;
  background: var(--menu-bg) !important;
  animation: slideDown 0.3s ease forwards;
  box-shadow: 0 20px 40px rgba(118, 118, 255, 0.2);
  border: 1px solid rgba(113, 113, 255, 0.1);
  margin-top: 1rem;
}

/* ===== TYPOGRAPHY ===== */
.display-1 {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 1000;
  line-height: 1.1;
  background: linear-gradient(135deg, #66799e, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem 0;
}

.display-4 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.text-shadow-warning {
  text-shadow: 0 0 25px var(--warning-glow);
  transition: var(--transition);
}

.shadow-warning:hover {
  box-shadow: 0 25px 50px rgba(255, 104, 104, 0.3);
  transform: translateY(-5px);
}

/* ===== COMPONENTS ===== */
.sale__timer {
  background: linear-gradient(135deg, var(--success-color), #00ff88);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(128, 255, 170, 0.3);
  transition: var(--transition);
}

.sale__timer:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(128, 255, 170, 0.4);
}

/* Flash messages */
.flash-message {
  position: fixed;
  width: min(90%, 500px);
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  z-index: 10500;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideInDown 0.5s ease;
}

.flash-message.success {
  background: linear-gradient(135deg, #8da85e, #a8c080);
}

.flash-message.error {
  background: linear-gradient(135deg, #ff3300, #ff6644);
}

.flash-message.warning {
  background: linear-gradient(135deg, #f0ad4e, #f4c274);
}

.flash-message.info {
  background: linear-gradient(135deg, #5fb6f5, #8ac6f5);
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes oc-rotate-loader {
  to {
    transform: rotate(360deg);
  }
}

@keyframes oc-infinite-loader {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .display-4 {
    font-size: clamp(1.3rem, 3vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .navbar-brand > img {
    height: 35px;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.8rem !important;
  }
  
  .flash-message {
    top: 80px;
    width: 95%;
  }
}

/* Utility classes */
.d-flex {
  display: flex !important;
}

.d-md-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

/* VK widget */
#vk_community_messages {
  position: fixed !important;
  margin: 80px 0 !important;
  right: 20px !important;
  z-index: 1000;
}

/* Smooth transitions for all interactive elements */
a, button, .nav-link, .sale__timer {
  transition: var(--transition);
}

/* Focus states for accessibility */
.nav-link:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}