﻿@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #050202;
  --surface: rgba(255, 255, 255, 0.18);
  --surface-strong: rgba(255, 255, 255, 0.26);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #4fd1ff;
  --accent-soft: #7fdcff;
  --danger: #ff5d7a;
  --border: rgba(255, 255, 255, 0.24);
  --shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
  --hover-glow: 0 0 40px rgba(79, 209, 255, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(79, 209, 255, 0.14), transparent 18%),
    radial-gradient(circle at 35% 10%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(180deg, #090403 0%, #050202 45%, #080000 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 16% 18%, rgba(79, 209, 255, 0.14), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(83, 199, 255, 0.10), transparent 15%),
    radial-gradient(circle at 50% 82%, rgba(8, 5, 5, 0.72), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

.background-layer {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.16), transparent 30%),
    linear-gradient(225deg, rgba(129, 206, 255, 0.10), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.particle-corners {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle-corners .particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 72, 71, 0.95);
  box-shadow: 0 0 18px rgba(255, 72, 71, 0.3);
  opacity: 0.85;
  animation: particle-float 6s ease-in-out infinite;
}

.particle-corners .particle-1 {
  top: 18px;
  left: 18px;
  animation-delay: 0s;
}

.particle-corners .particle-2 {
  top: 22px;
  right: 24px;
  animation-delay: 1.2s;
}

.particle-corners .particle-3 {
  bottom: 20px;
  left: 24px;
  animation-delay: 2.4s;
}

.particle-corners .particle-4 {
  bottom: 18px;
  right: 18px;
  animation-delay: 3.6s;
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(12px, -10px) scale(1.15);
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
select,
input {
  transition: all 0.24s ease;
  font-family: inherit;
}

.page-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px 16px;
  backdrop-filter: blur(28px);
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.custom-main-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0;
}

.menu-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 32px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.menu-icon {
  display: inline-flex;
  margin-right: 8px;
}

.menu-button {
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 14px;
  min-width: 120px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.menu-button.active,
.menu-button:hover {
  background: rgba(79, 209, 255, 0.16);
  color: #fff;
  border-color: rgba(79, 209, 255, 0.28);
  box-shadow: var(--hover-glow);
}

.main-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-title {
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  margin: 0;
  text-shadow: 0 10px 35px rgba(123, 92, 255, 0.16);
}

.main-description-panel {
  margin-bottom: 32px;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.main-description h2 {
  margin-top: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.main-description p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.main-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.primary-button.large,
.secondary-button.large {
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 14px;
}

.menu-button {
  font-size: 0.78rem;
  padding: 6px 10px;
  min-width: 100px;
}

.page-brand .eyebrow {
  margin: 0 0 8px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.page-brand h1 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 3rem);
  letter-spacing: -0.04em;
}

.page-brand .subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.header-links {
  display: none;
}

.user-panel {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-panel span {
  display: inline-block;
}

.status-badge {
  color: var(--accent-soft);
  font-size: 0.86rem;
}

.ghost-button,
.primary-button,
.secondary-button,
.menu-button,
.theme-button {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
}

.primary-button {
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.95), rgba(46, 152, 255, 0.78));
  color: #07121e;
  border-color: transparent;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.menu-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.menu-button.active,
.menu-button:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text);
  border-color: rgba(79, 209, 255, 0.32);
  box-shadow: 0 12px 26px rgba(79, 209, 255, 0.12);
}

.ghost-button:hover,
.secondary-button:hover,
.menu-button:hover,
.theme-button:hover,
.category-card button:hover,
.auth-card button:hover {
  transform: translateY(-1px) scale(1.01);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--hover-glow);
}

.page-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 32px;
  margin-top: 12px;
  z-index: 1;
  position: relative;
}

.menu-button {
  padding: 14px 20px;
  font-weight: 600;
}

.menu-button.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(79, 209, 255, 0.32);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34vh;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0 12px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-panel .primary-button.large {
  padding: 16px 28px;
  font-size: 1rem;
  min-width: 220px;
}

.main-grid {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.panel {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.product-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 60px 0;
  margin: 40px 0;
}

.support-actions-panel,
.support-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.panel h2 {
  margin: 0;
}

.panel p {
  color: var(--muted);
}

.categories,
.theme-options,
.settings-block {
  display: grid;
  gap: 16px;
}

.product-carousel {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 24px 12px 28px;
  scroll-snap-type: x mandatory;
}

.product-carousel.dragging {
  cursor: grabbing;
}

.product-card {
  min-width: 280px;
  width: 280px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 20px;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
  backdrop-filter: blur(20px);
  overflow: visible;
  margin: 10px 0;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 209, 255, 0.24);
  box-shadow: 0 24px 70px rgba(79, 209, 255, 0.20);
}

.product-card .product-media {
  height: 150px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 59, 67, 0.24), rgba(255, 117, 112, 0.18));
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-card[data-category-id="2"] .product-media {
  background: url("images/key-transparent.png") center/cover no-repeat;
}

.product-hero-image {
  max-width: 780px;
  margin: 0 auto 28px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.product-avatar {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
}

.product-card .product-media .product-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.product-card[data-category-id="1"] .product-avatar::before,
.product-avatar[data-product="1"]::before {
  content: "👥";
}

.product-card[data-category-id="2"] .product-avatar::before,
.product-avatar[data-product="2"]::before {
  content: "🔑";
}

.product-card[data-category-id="3"] .product-avatar::before,
.product-avatar[data-product="3"]::before {
  content: "🎯";
}

.product-avatar::before {
  font-size: 1.75rem;
}

.product-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-card .product-meta h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.product-card .product-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-card .product-start {
  font-weight: 700;
  color: var(--accent-soft);
}

.product-card.focused {
  animation: product-pop 0.28s ease-out forwards;
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 35px 90px rgba(124, 92, 255, 0.20);
  z-index: 5;
}

.product-detail {
  position: absolute;
  inset: 12px;
  background: rgba(4, 9, 22, 0.92);
  border-radius: 18px;
  color: var(--text);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.product-detail.hidden {
  display: none;
}

.product-carousel.blurred-siblings .product-card:not(.focused) {
  filter: blur(4px) grayscale(0.2) saturate(0.8);
  opacity: 0.55;
}

body.product-focused .page-header,
body.product-focused .main-description-panel,
body.product-focused .support-actions-panel,
body.product-focused .support-panel {
  filter: blur(4px);
  opacity: 0.88;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

@keyframes product-pop {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-10px) scale(1.04);
  }
}

.category-card,
.settings-card,
.admin-card,
.auth-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.category-card h3,
.settings-card h3,
.admin-card h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.category-card p,
.settings-card p,
.admin-card p {
  color: var(--muted);
}

.category-card button {
  width: 100%;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-row:last-child {
  border-bottom: none;
}

.price-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.duration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.duration-option {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.duration-option.active,
.duration-option:hover {
  border-color: rgba(79, 209, 255, 0.36);
  background: rgba(79, 209, 255, 0.12);
  box-shadow: 0 12px 28px rgba(79, 209, 255, 0.12);
}

.player-slider {
  display: grid;
  gap: 10px;
  padding: 16px 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
}

.player-slider label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.player-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  appearance: none;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.24s ease;
}

.player-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79, 209, 255, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79, 209, 255, 0.14);
  cursor: pointer;
  border: none;
}

.player-slider input[type="range"]:hover::-webkit-slider-thumb,
.player-slider input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.05);
  box-shadow: 0 0 0 10px rgba(79, 209, 255, 0.15);
}

.player-slider input[type="range"]:hover::-moz-range-thumb,
.player-slider input[type="range"]:focus::-moz-range-thumb {
  transform: scale(1.05);
}

.slider-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.selected-total {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.price-actions button {
  min-width: 170px;
}

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: rgba(12, 18, 34, 0.90);
  border: 1px solid rgba(124, 92, 255, 0.16);
}

.cart-item::before {
  content: attr(data-count);
  position: absolute;
  top: 18px;
  right: 18px;
  left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #111318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-item h3 {
  margin: 0 0 8px;
}

.cart-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

.cart-item-controls {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-controls button {
  width: 42px;
  height: 42px;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.panel.cart-panel {
  background: rgba(8, 12, 25, 0.94);
}

.empty-cart {
  margin: 0;
  color: var(--muted);
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-item p {
  line-height: 1.6;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-block {
  grid-template-columns: 1fr;
}

.theme-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-button {
  padding: 18px 16px;
  font-weight: 600;
}

.theme-button.active,
.theme-button:hover {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.30);
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
}

.admin-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.admin-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  background: rgba(10, 16, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-header {
  margin-bottom: 24px;
}

.auth-header h1 {
  margin: 0 0 10px;
}

.auth-header .subtitle {
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-button {
  flex: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button.active {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.25);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.captcha-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}
.captcha-question {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-weight: 600;
}
.captcha-block input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
.captcha-block input[type="number"]::-webkit-outer-spin-button,
.captcha-block input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ---------- Активация ключа ---------- */
.key-activate-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.key-activate-row input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}

.key-activate-row input:focus {
  border-color: rgba(147, 51, 234, 0.7);
}

.launch-block {
  margin-top: 20px;
  padding: 20px 24px;
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.launch-hint {
  flex: 1;
  color: #a78bfa;
  font-size: 14px;
  margin: 0;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #9333ea;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.launch-button:hover {
  background: #7c3aed;
  transform: scale(1.03);
}

@media (max-width: 840px) {
  .page-header,
  .page-menu,
  .main-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }
}

body.theme-white {
  --bg: #f7f8ff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: rgba(245, 247, 255, 0.96);
  --text: #111827;
  --muted: #6b7280;
  --accent: #7b5cff;
  --accent-soft: #b393ff;
  --danger: #ef4444;
  --border: rgba(124, 92, 255, 0.16);
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
  background: url("https://images.boosty.to/blog/10924437/cover?change_time=1681920075&croped=1&mh=480") center/cover fixed no-repeat,
    linear-gradient(180deg, #f7f8ff 0%, #eef2ff 100%);
}

body.theme-white .page-header,
body.theme-white .panel,
body.theme-white .auth-card,
body.theme-white .category-card,
body.theme-white .settings-card,
body.theme-white .admin-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

body.theme-white button,
body.theme-white input,
body.theme-white select {
  color: var(--text);
}

body.theme-black {
  --bg: #080a12;
  --surface: rgba(12, 18, 32, 0.95);
  --surface-strong: rgba(16, 24, 42, 0.96);
  --text: #f7f8fc;
  --muted: #9aa3bb;
  --accent: #7b5cff;
  --accent-soft: #b393ff;
  --danger: #ff5c9d;
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

body.theme-black {
  background: url("https://img.goodfon.ru/original/3104x1746/d/8d/nebo-oblaka-chb-fon.jpg") center/cover fixed no-repeat,
    linear-gradient(180deg, #07090f 0%, #06080f 100%);
}

body.theme-red {
  --bg: #12080d;
  --surface: rgba(24, 12, 20, 0.94);
  --surface-strong: rgba(35, 12, 20, 0.96);
  --text: #f6eef2;
  --muted: #c9b1c0;
  --accent: #ff5c9d;
  --accent-soft: #ff8aca;
  --danger: #ff4c8b;
  --border: rgba(255, 92, 157, 0.15);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

body.theme-red {
  background: url("https://t3.ftcdn.net/jpg/08/29/45/48/360_F_829454815_2x0q5u8NxJdqJjJfEGYYQrPPPV6mFu1E.jpg") center/cover fixed no-repeat,
    radial-gradient(circle at top left, rgba(255, 92, 157, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(124, 92, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #12080d 0%, #17090f 100%);
}

body.theme-red .page-header,
body.theme-red .panel,
body.theme-red .auth-card,
body.theme-red .category-card {
  background: rgba(24, 12, 20, 0.96);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5,2,2,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  z-index: 100;
}
.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: #4fd1ff; }