/* =========================================================
   OneEmpire / Minecraft Donate Shop theme for EasyDonate
   Авторский CSS-оформитель: тёмный фэнтези / неон / Minecraft
   Установка: EasyDonate → Настройки магазина → Дизайн / CSS → вставить код
   ========================================================= */

/* ---------- Базовые переменные ---------- */
:root {
  --oe-bg-0: #070a0f;
  --oe-bg-1: #0b111b;
  --oe-bg-2: #121a28;
  --oe-card: rgba(15, 24, 38, 0.82);
  --oe-card-soft: rgba(18, 29, 46, 0.72);
  --oe-border: rgba(105, 245, 255, 0.22);
  --oe-border-gold: rgba(255, 194, 77, 0.35);
  --oe-text: #edf7ff;
  --oe-muted: #9eb1c8;
  --oe-cyan: #22f4ff;
  --oe-cyan-soft: rgba(34, 244, 255, 0.18);
  --oe-green: #5cff9d;
  --oe-gold: #ffc24d;
  --oe-orange: #ff8a3d;
  --oe-red: #ff4e6a;
  --oe-purple: #b37cff;
  --oe-shadow-cyan: 0 0 18px rgba(34, 244, 255, 0.28);
  --oe-shadow-gold: 0 0 20px rgba(255, 194, 77, 0.22);
  --oe-radius-xl: 22px;
  --oe-radius-lg: 16px;
  --oe-radius-md: 12px;
}

/* ---------- Общий фон ---------- */
html,
body {
  min-height: 100%;
  color: var(--oe-text) !important;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 244, 255, 0.16) 0, transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 194, 77, 0.13) 0, transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(92, 255, 157, 0.10) 0, transparent 32%),
    linear-gradient(135deg, #05070b 0%, #0b1220 48%, #071019 100%) !important;
  background-attachment: fixed !important;
}

/* Лёгкая пиксельная сетка поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.18));
}

/* ---------- Текст и ссылки ---------- */
* {
  box-sizing: border-box;
}

a {
  color: var(--oe-cyan) !important;
  text-decoration: none !important;
  transition: 0.18s ease;
}

a:hover {
  color: var(--oe-green) !important;
  text-shadow: 0 0 10px rgba(92, 255, 157, 0.45);
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.page-title,
.shop-title {
  color: var(--oe-text) !important;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(34, 244, 255, 0.22);
}

/* ---------- Основные контейнеры ---------- */
.container,
.wrapper,
.content,
.main,
main,
section {
  position: relative;
}

.card,
.block,
.panel,
.box,
.product,
.product-card,
.category,
.category-card,
.server,
.server-card,
.modal-content,
.dropdown-menu,
.lk-card,
.balance,
.profile,
.form-control,
.input,
textarea,
select {
  background: linear-gradient(180deg, rgba(18, 29, 46, 0.88), rgba(8, 13, 22, 0.86)) !important;
  border: 1px solid var(--oe-border) !important;
  border-radius: var(--oe-radius-lg) !important;
  color: var(--oe-text) !important;
  box-shadow:
    0 12px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
}

/* ---------- Верхняя панель / меню ---------- */
header,
.navbar,
.header,
.topbar,
.menu,
.nav {
  background: rgba(7, 10, 15, 0.78) !important;
  border-bottom: 1px solid rgba(34, 244, 255, 0.16) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(14px);
}

.navbar a,
.header a,
.menu a,
.nav a {
  color: var(--oe-text) !important;
  font-weight: 700 !important;
}

.navbar a:hover,
.header a:hover,
.menu a:hover,
.nav a:hover {
  color: var(--oe-cyan) !important;
}

/* ---------- Главный баннер ---------- */
.hero,
.banner,
.shop-header,
.main-banner,
.header-banner {
  overflow: hidden;
  border: 1px solid var(--oe-border) !important;
  border-radius: var(--oe-radius-xl) !important;
  background:
    linear-gradient(135deg, rgba(34, 244, 255, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(255, 194, 77, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(13, 24, 39, 0.94), rgba(7, 10, 15, 0.92)) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    var(--oe-shadow-cyan) !important;
}

/* Заголовок магазина */
.hero h1,
.banner h1,
.shop-header h1,
.main-banner h1,
.header-banner h1,
.shop-title {
  color: var(--oe-text) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1::after,
.banner h1::after,
.shop-header h1::after,
.shop-title::after {
  content: " ✦ ONEEMPIRE";
  color: var(--oe-cyan);
  text-shadow: 0 0 16px rgba(34, 244, 255, 0.62);
}

/* ---------- Категории ---------- */
.category,
.category-card,
.categories .item,
.categories a,
.category-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category::before,
.category-card::before,
.categories .item::before,
.category-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 10%, rgba(34, 244, 255, 0.16) 48%, transparent 80%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.category:hover,
.category-card:hover,
.categories .item:hover,
.category-item:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 244, 255, 0.55) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(34, 244, 255, 0.24) !important;
}

.category:hover::before,
.category-card:hover::before,
.categories .item:hover::before,
.category-item:hover::before {
  opacity: 1;
}

/* ---------- Карточки товаров ---------- */
.product,
.product-card,
.products .item,
.goods .item,
.shop-item,
.donate-item {
  position: relative;
  overflow: hidden;
  padding: 18px !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.product::after,
.product-card::after,
.products .item::after,
.goods .item::after,
.shop-item::after,
.donate-item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oe-cyan), var(--oe-gold), transparent);
  opacity: 0.75;
}

.product:hover,
.product-card:hover,
.products .item:hover,
.goods .item:hover,
.shop-item:hover,
.donate-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 194, 77, 0.55) !important;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.48),
    var(--oe-shadow-gold) !important;
  filter: saturate(1.08);
}

/* Картинки товаров */
.product img,
.product-card img,
.products .item img,
.goods .item img,
.shop-item img,
.donate-item img {
  border-radius: var(--oe-radius-md) !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.42));
  transition: transform 0.18s ease;
}

.product:hover img,
.product-card:hover img,
.products .item:hover img,
.goods .item:hover img,
.shop-item:hover img,
.donate-item:hover img {
  transform: scale(1.04) rotate(-1deg);
}

/* Названия товаров */
.product-title,
.product-name,
.item-title,
.item-name,
.donate-title,
.donate-name {
  color: var(--oe-text) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(34, 244, 255, 0.22);
}

/* Цены */
.price,
.product-price,
.item-price,
.cost,
.amount {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--oe-gold) !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255, 194, 77, 0.38);
}

.price::before,
.product-price::before,
.item-price::before,
.cost::before {
  content: "⛃";
  color: var(--oe-green);
  text-shadow: 0 0 10px rgba(92, 255, 157, 0.35);
}

/* ---------- Кнопки ---------- */
button,
.btn,
.button,
.buy,
.buy-button,
.purchase,
.purchase-button,
input[type="submit"],
[type="button"] {
  border: 0 !important;
  border-radius: 14px !important;
  color: #061016 !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  background:
    linear-gradient(135deg, var(--oe-cyan) 0%, var(--oe-green) 48%, var(--oe-gold) 100%) !important;
  box-shadow:
    0 10px 28px rgba(34, 244, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button:hover,
.btn:hover,
.button:hover,
.buy:hover,
.buy-button:hover,
.purchase:hover,
.purchase-button:hover,
input[type="submit"]:hover,
[type="button"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 34px rgba(92, 255, 157, 0.25),
    0 0 24px rgba(34, 244, 255, 0.24) !important;
}

button:active,
.btn:active,
.button:active,
.buy:active,
.buy-button:active,
.purchase:active,
.purchase-button:active {
  transform: translateY(0);
}

/* Вторичные кнопки */
.btn-secondary,
.button-secondary,
.cancel,
.close,
.back {
  color: var(--oe-text) !important;
  background:
    linear-gradient(180deg, rgba(29, 42, 62, 0.95), rgba(12, 18, 29, 0.95)) !important;
  border: 1px solid var(--oe-border) !important;
}

/* ---------- Формы ---------- */
input,
textarea,
select,
.form-control {
  min-height: 44px;
  padding: 10px 14px !important;
  outline: none !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: rgba(34, 244, 255, 0.65) !important;
  box-shadow:
    0 0 0 3px rgba(34, 244, 255, 0.12),
    0 0 18px rgba(34, 244, 255, 0.20) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(158, 177, 200, 0.72) !important;
}

/* ---------- Модальные окна ---------- */
.modal,
.popup,
.dialog {
  backdrop-filter: blur(8px);
}

.modal-content,
.popup-content,
.dialog-content {
  border-color: rgba(34, 244, 255, 0.30) !important;
  box-shadow:
    0 24px 76px rgba(0, 0, 0, 0.56),
    0 0 32px rgba(34, 244, 255, 0.17) !important;
}

/* ---------- Таблицы / история покупок ---------- */
table,
.table {
  overflow: hidden;
  border-radius: var(--oe-radius-lg) !important;
  background: rgba(8, 13, 22, 0.55) !important;
  border: 1px solid var(--oe-border) !important;
}

thead,
.table thead {
  background: rgba(34, 244, 255, 0.10) !important;
}

th {
  color: var(--oe-cyan) !important;
  font-weight: 900 !important;
}

td,
th {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- Уведомления ---------- */
.alert,
.notification,
.notice,
.toast {
  border-radius: var(--oe-radius-md) !important;
  border: 1px solid var(--oe-border) !important;
  background: rgba(12, 20, 34, 0.92) !important;
  color: var(--oe-text) !important;
  box-shadow: var(--oe-shadow-cyan) !important;
}

.alert-success,
.success {
  border-color: rgba(92, 255, 157, 0.42) !important;
}

.alert-danger,
.error,
.danger {
  border-color: rgba(255, 78, 106, 0.42) !important;
}

/* ---------- Бейджи / скидки ---------- */
.badge,
.label,
.discount,
.sale,
.status {
  border-radius: 999px !important;
  padding: 4px 10px !important;
  color: #071016 !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--oe-gold), var(--oe-orange)) !important;
  box-shadow: 0 0 18px rgba(255, 194, 77, 0.25) !important;
}

/* ---------- Донатные акценты по названиям ---------- */
/* Работает, если EasyDonate выводит названия товаров как обычный текст */
.product:has(*:contains("Новичок")),
.product-card:has(*:contains("Новичок")) {
  border-color: rgba(237, 247, 255, 0.28) !important;
}

.product:has(*:contains("Исследователь")),
.product-card:has(*:contains("Исследователь")) {
  border-color: rgba(34, 244, 255, 0.38) !important;
}

.product:has(*:contains("Строитель")),
.product-card:has(*:contains("Строитель")) {
  border-color: rgba(255, 194, 77, 0.42) !important;
}

.product:has(*:contains("Островник")),
.product-card:has(*:contains("Островник")) {
  border-color: rgba(92, 255, 157, 0.42) !important;
}

.product:has(*:contains("Легенда")),
.product-card:has(*:contains("Легенда")) {
  border-color: rgba(179, 124, 255, 0.46) !important;
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(179, 124, 255, 0.20) !important;
}

/* ---------- Кастомный блок преимуществ, если он есть на странице ---------- */
.advantages,
.features,
.benefits {
  display: grid;
  gap: 14px;
}

.advantages > *,
.features > *,
.benefits > * {
  background: rgba(18, 29, 46, 0.70) !important;
  border: 1px solid rgba(34, 244, 255, 0.18) !important;
  border-radius: var(--oe-radius-md) !important;
  padding: 14px !important;
}

/* ---------- Скроллбар ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070a0f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--oe-cyan), var(--oe-green));
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--oe-gold), var(--oe-orange));
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
  .product,
  .product-card,
  .products .item,
  .goods .item,
  .shop-item,
  .donate-item {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  h1,
  .shop-title {
    font-size: 28px !important;
  }

  .hero,
  .banner,
  .shop-header,
  .main-banner,
  .header-banner {
    border-radius: 18px !important;
  }
}

/* ---------- Безопасный fallback для старых браузеров ---------- */
@supports not (backdrop-filter: blur(10px)) {
  .card,
  .block,
  .panel,
  .box,
  .product,
  .product-card,
  .category,
  .category-card,
  .modal-content {
    background: #101927 !important;
  }
}

/* ---------- Конец темы ---------- */
