:root {
  --color-bg: #000000;
  --color-accent: #8a14d1;
  --color-secondary: #fdfbff;
  --text-white: #ffffff;
  --color-black: #000000;
  --font-family-inter: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --card-bg: #111111;
  --card-radius: 24px;
}

body.store-page {
  background-color: var(--color-bg);
  color: var(--text-white);
  font-family: var(--font-family-inter);
  margin: 0;
  padding: 100px 0;
}

.store-header {
  text-align: center;
  margin-bottom: 50px;
}

.store-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.store-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-size: 16px;
}

.store-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  display: flex;
  padding: 40px;
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-info-side {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 40px;
}

.product-logo {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
}

.product-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-price {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.buy-btn {
  width: 200px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-family: var(--font-family-inter);
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.buy-btn.accent {
  background-color: var(--color-accent);
  color: var(--text-white);
}

.buy-btn.disabled {
  background-color: #333333;
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.selection-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  transition: opacity 0.2s ease;
}

/* Детали подписки */
.product-details-side {
  width: 65%;
  padding-left: 60px;
}

.details-title {
  font-size: 20px;
  margin-bottom: 24px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.details-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.badge-desc {
  margin-bottom: 8px;
}

/* Сетка бейджиков */
.badges-selection-side {
  width: 65%;
  padding-left: 40px;
  display: flex;
  align-items: center;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.badge-item {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.badge-item.is-selected {
  border-color: var(--color-accent);
}

.badge-icon {
  width: 48px;
  image-rendering: pixelated;
  margin-bottom: 12px;
}

.badge-nick {
  font-family: 'Minecraft Rus', arial;
  font-weight: 800;
  font-size: 14px;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #111;
  margin: 10% auto;
  padding: 40px;
  border-radius: 24px;
  width: 400px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.input-group input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
}

.status-msg {
  font-size: 12px;
  margin-top: -5px;
  margin-bottom: 10px;
  text-align: left;
  min-height: 15px;
}

.status-success { color: #00ff00; }
.status-error { color: #ff4444; }

.checkbox-group {
  text-align: left;
  margin: 20px 0;
  font-size: 13px;
  color: #ccc;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Обертка инпута с иконкой */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.input-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated; /* Чтобы голова скина была четкой */
}

/* Сдвигаем текст в инпуте, чтобы не налезал на иконку */
.input-wrapper input {
    padding-left: 45px !important;
    width: 100%;
}

.success-modal .modal-content {
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 30px rgba(138, 20, 209, 0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(213, 106, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

/* Анимация появления */
.success-animation {
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.secondary-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.secondary-link:hover {
    color: var(--text-white);
}

/* Градиенты для ников */
.gradient-pink { background-image: linear-gradient(to right, #FB1FCB, #EF6EFC); }
.gradient-blue { background-image: linear-gradient(to right, #5865F2, #4C83D6); }
.gradient-red { background-image: linear-gradient(to right, #FF0101, #FF5656); }
.gradient-brown { background-image: linear-gradient(to right, #9F471E, #B06641); }
.gradient-orange { background-image: linear-gradient(to right, #ffaa77, #aa5500); }
.gradient-grey { background-image: linear-gradient(to right, #292929, #111111); }

/* Адаптивность */
@media (max-width: 992px) {
  .product-card { flex-direction: column; padding: 30px; }
  .product-info-side { width: 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0 0 30px 0; margin-bottom: 30px; }
  .product-details-side, .badges-selection-side { width: 100%; padding-left: 0; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
}
