#root {
  width: 100%;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 40px 6vw 120px;
  display: flex;
  flex-direction: column;
  gap: 120px;
  color: #f4f4f7;
}

.background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  animation: hueShift 22s ease-in-out infinite;
}

.background::before,
.background::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(108, 92, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.22), transparent 48%),
    radial-gradient(circle at 60% 80%, rgba(249, 115, 22, 0.18), transparent 50%);
  opacity: 0.8;
  animation: drift 26s ease-in-out infinite;
}

.background::after {
  inset: -30%;
  opacity: 0.6;
  animation-duration: 32s;
  animation-direction: reverse;
  filter: blur(12px);
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.orb-one {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, #6c5cff, transparent 70%);
}

.orb-two {
  bottom: -140px;
  right: -80px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  animation-delay: -4s;
}

.orb-three {
  top: 20%;
  right: 35%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  animation-delay: -7s;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), transparent 65%);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.language-label {
  font-size: 0.85rem;
  opacity: 0.6;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.language-switch button {
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.language-switch button:hover {
  opacity: 1;
}

.language-switch button.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.section-title p {
  opacity: 0.6;
  margin: 0;
}

.catalog {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.order-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 12px;
}

.order-status {
  margin: 0;
  font-weight: 600;
}

.order-status.success {
  color: #22d3ee;
}

.order-status.failed {
  color: #f97316;
}

.order-status.pending {
  color: #fbbf24;
}

.order-product {
  margin: 0;
  opacity: 0.7;
}

.order-key {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.order-key strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.order-download {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  word-break: break-all;
}

.order-download a {
  color: inherit;
}

.empty-state {
  margin-top: 32px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  opacity: 0.75;
}

.product-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image {
  height: 140px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(10, 12, 20, 0.9);
}

.tone-indigo {
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.9), rgba(34, 211, 238, 0.9));
}

.tone-cyan {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.9));
}

.tone-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(249, 115, 22, 0.9));
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.availability.available {
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: rgba(226, 250, 255, 0.9);
}

.availability.waiting {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: rgba(255, 244, 214, 0.9);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.description {
  opacity: 0.7;
  margin: 0;
}

.checkout-field {
  display: grid;
  gap: 6px;
}

.checkout-field input {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 12, 20, 0.6);
  color: inherit;
  font-family: inherit;
}

.checkout-error {
  font-size: 0.85rem;
  color: #f97316;
}

.primary-button {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: linear-gradient(135deg, #6c5cff, #22d3ee);
  color: #0f111a;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.3);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.45);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.support-toggle {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5cff, #22d3ee);
  color: #0f111a;
  box-shadow: 0 16px 30px rgba(34, 211, 238, 0.35);
  cursor: pointer;
}

.support-toggle.active {
  background: rgba(255, 255, 255, 0.16);
  color: #f4f4f7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.support-panel {
  width: min(360px, 90vw);
  max-height: 70vh;
  background: rgba(12, 14, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-headings {
  display: grid;
  gap: 4px;
}

.support-status {
  font-size: 0.85rem;
  opacity: 0.65;
}

.support-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
}

.support-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.support-greeting {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.85;
}

.support-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.support-message.client {
  align-self: flex-end;
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
}

.support-message.admin {
  align-self: flex-start;
  background: rgba(108, 92, 255, 0.18);
  border-color: rgba(108, 92, 255, 0.3);
}

.support-message.system {
  align-self: center;
  font-size: 0.85rem;
  opacity: 0.7;
  background: transparent;
  border-color: transparent;
}

.support-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.support-form input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 16, 0.8);
  color: inherit;
  font-family: inherit;
}

.support-form button,
.support-restart {
  border-radius: 12px;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
}

.support-restart {
  width: 100%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(1.03);
  }
}

@keyframes hueShift {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(18deg) saturate(1.1);
  }
}

@media (max-width: 700px) {
  .page {
    gap: 80px;
  }
}
