/* === Cosmic Grok-inspired Theme 2026 === */

:root {
  --bg-primary: #0a0015;
  --bg-gradient: linear-gradient(135deg, #0a0015 0%, #120026 50%, #1a0033 100%);
  --accent-blue: #5e60ce;
  --accent-cyan: #56cfe1;
  --accent-purple: #9d4edd;
  --text-primary: #f8f9fa;
  --text-muted: #c3c3ff;
  --glass: rgba(20, 20, 60, 0.35);
  --glass-border: rgba(94, 96, 206, 0.25);
  --star-glow: rgba(94, 96, 206, 0.4);
  --nebula-glow: rgba(93, 79, 221, 0.15);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Звёздное небо (фон) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 15%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(255,255,255,0.02) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(94,96,206,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
  animation: stars-twinkle 120s infinite linear;
}

@keyframes stars-twinkle {
  0%,100% { opacity: 0.7; }
  50%     { opacity: 1; }
}

/* Основной контейнер */
main, .container, section {
  position: relative;
  z-index: 1;
}

/* Карточки товаров — glassmorphism + лёгкое свечение */
.card,
.profile-card,
.bg-elegant,
.bg-elegant-dark,
.modal-content {
  background: var(--glass) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.45),
    0 0 0 1px rgba(94,96,206,0.18) inset;
  transition: all 0.4s ease;
}

.card:hover,
.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 48px rgba(0,0,0,0.55),
    0 0 25px rgba(94,96,206,0.35);
}

/* Кнопки */
.btn-primary,
.badge.bg-elegant,
.basket-button {
  background: linear-gradient(90deg, #5e60ce, #56cfe1) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 0 20px rgba(94,96,206,0.5);
  transition: all 0.35s ease;
}

.btn-primary:hover,
.basket-button:hover {
  background: linear-gradient(90deg, #56cfe1, #9d4edd) !important;
  box-shadow: 0 0 35px rgba(86,207,225,0.7);
  transform: scale(1.04);
}

/* Навбар — почти прозрачный */
.navbar-main {
  background: rgba(10,0,21,0.45) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94,96,206,0.2);
}

/* Заголовки */
h1, h2, .display-1, .shop-name {
  background: linear-gradient(90deg, #c3c3ff, #56cfe1, #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(94,96,206,0.4);
}

/* Прогресс-бары серверов */
.progress-bar {
  background: linear-gradient(90deg, #56cfe1, #5e60ce, #9d4edd) !important;
  box-shadow: 0 0 15px rgba(86,207,225,0.6);
}

/* Дополнительный лёгкий эффект туманности */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 60% 30%, var(--nebula-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.fill-elegant-dark{
    display: none;
}

.d-lg-block.d-lg-non { display: none !important; }

@media (min-width: 992px) {
  .shop-title {
    width: 100% !important;
    max-width: 100% !important;
  }
  
}

/* Скругляем картинку в карточке товара */
.profile-card .card-image,
.shop .card-image {
  border-radius: 1rem;          /* или любое нужное значение: 12px, 16px, 1.25rem и т.д. */
  overflow: hidden;
}

/* На всякий случай — если карточка сама скруглена */
.profile-card .card,
.shop .card {
  overflow: hidden;
  border-radius: 1rem;          /* ← здесь задаёшь общий радиус карточки */
}


