:root {
  --bg: #0b0b0b;
  --panel: rgba(20, 20, 20, 0.78);
  --panel-strong: rgba(31, 31, 31, 0.92);
  --line: rgba(245, 197, 24, 0.22);
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --primary: #f5c518;
  --primary-2: #ffcc00;
  --danger: #ff4d4d;
  --ok: #3ee078;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vh -14vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(245, 197, 24, 0.18), transparent 31rem),
    radial-gradient(circle at 82% 24%, rgba(255, 204, 0, 0.11), transparent 29rem),
    radial-gradient(circle at 58% 84%, rgba(245, 197, 24, 0.07), transparent 26rem);
  filter: blur(1px);
  animation: slowFloatGlow 72s ease-in-out infinite alternate, glowPulse 11s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.34), rgba(11, 11, 11, 0.68)),
    rgba(8, 8, 8, 0.2);
  backdrop-filter: blur(5px);
}

.logo-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.46;
}

.logo-rain span {
  position: absolute;
  top: -110px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: url("/assets/rckdlc-logo-clean.png") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(245, 197, 24, 0.32));
  animation: logoFall var(--duration) linear infinite;
  animation-delay: var(--delay);
  transform: translate3d(0, -120px, 0) rotate(var(--rotate));
}

main,
footer {
  position: relative;
  z-index: 2;
}

@keyframes slowFloatGlow {
  0% {
    transform: translate3d(-2vw, -1vh, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, 2vh, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1vw, 4vh, 0) scale(1.02);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.82;
    filter: blur(1px) saturate(1);
  }
  50% {
    opacity: 1;
    filter: blur(2px) saturate(1.18);
  }
}

@keyframes logoFall {
  0% {
    transform: translate3d(0, -140px, 0) rotate(var(--rotate));
    opacity: 0;
  }
  8% {
    opacity: 0.42;
  }
  88% {
    opacity: 0.36;
  }
  100% {
    transform: translate3d(var(--drift), calc(100vh + 160px), 0) rotate(calc(var(--rotate) + 80deg));
    opacity: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 18px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #111;
  background: transparent;
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.18);
  font-size: 19px;
  font-weight: 1000;
  overflow: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a, .ghost-btn, .icon-link {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.18s ease;
}

.nav-links a:hover, .ghost-btn:hover, .icon-link:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(245, 197, 24, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 13px;
  color: #121212;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 32px rgba(245, 197, 24, 0.22);
}

.btn:hover {
  filter: brightness(1.06);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn.danger {
  color: #fff;
  background: var(--danger);
  box-shadow: none;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 42px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  border: 1px solid var(--line);
  background: rgba(245, 197, 24, 0.08);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  max-width: 650px;
}

.page-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.accent {
  color: var(--primary);
}

.lead {
  color: #c9c9c9;
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
}

.hero-actions, .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat, .card, .panel, .modal-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.stat {
  padding: 12px;
}

.stat strong {
  display: block;
  font-size: 19px;
  color: var(--primary);
}

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

.visual {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(245, 197, 24, 0.24), rgba(8, 8, 8, 0.86)),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1200&q=80") center / cover;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.62), 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hud {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 10px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h2,
.card h3 {
  font-size: 16px;
}

.card p {
  font-size: 12px;
  line-height: 1.35;
}

.card:hover {
  border-color: var(--line);
}

.product-closed {
  border-color: rgba(245, 197, 24, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.08), transparent 16rem),
    rgba(12, 12, 12, 0.88);
}

.product-closed .product-image {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.product-closed .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.82;
}

.product-image {
  min-height: 48px;
  border-radius: 8px;
  background: #050505;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 16px;
  overflow: hidden;
}

.product-image img {
  width: 42%;
  height: 42%;
  min-width: 42px;
  min-height: 24px;
  object-fit: contain;
}

.owned-card {
  min-height: 322px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 30px 32px;
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 24, 0.16);
  background:
    radial-gradient(circle at 16% 0%, rgba(245, 197, 24, 0.14), transparent 14rem),
    #101010;
  color: #f5f8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.owned-card.inactive {
  opacity: 0.78;
}

.owned-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
}

.owned-card h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 5px;
}

.owned-card p {
  margin: 0;
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.owned-card p span {
  color: #b8c5d1;
  font-size: 13px;
}

.owned-card .btn {
  margin-top: 14px;
  padding: 14px 18px;
  color: #ffffff;
  background: #1b1b1b;
  border: 1px solid rgba(245, 197, 24, 0.18);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.small-title {
  margin: 12px 0 8px;
  font-size: 15px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 42px);
  gap: 8px;
}

.avatar-choice {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.avatar-choice.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.12);
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #101010;
  font-weight: 1000;
  background: var(--primary);
}

.avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 28px;
}

.avatar-r {
  background: linear-gradient(135deg, #ffcc00, #f5a400);
}

.avatar-star {
  background: linear-gradient(135deg, #ffcc00, #fff0a3);
}

.avatar-viper {
  color: #f7f7f7;
  background: linear-gradient(135deg, #111, #f5c518);
}

.avatar-neon {
  color: #0a0a0a;
  background: linear-gradient(135deg, #f5c518, #00e5ff);
}

.avatar-crown {
  background: linear-gradient(135deg, #ffcc00, #ff6b00);
}

.avatar-ghost {
  color: #f5c518;
  background: linear-gradient(135deg, #171717, #343434);
}

.role-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.role-toggle button {
  min-width: 58px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.role-toggle button.active {
  color: #101010;
  background: var(--primary);
}

.assistant-panel {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 16px 0;
}

.robot-assistant {
  position: relative;
  min-height: 138px;
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 197, 24, 0.24), transparent 4rem),
    rgba(18, 18, 18, 0.92);
  cursor: pointer;
  animation: robotFloat 5.8s ease-in-out infinite;
}

.robot-head {
  position: absolute;
  left: 50%;
  top: 27px;
  width: 50px;
  height: 42px;
  transform: translateX(-50%);
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.24);
}

.robot-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--primary);
}

.robot-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--primary);
}

.robot-eye {
  position: absolute;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: robotBlink 4.5s ease-in-out infinite;
}

.robot-eye:first-child {
  left: 13px;
}

.robot-eye:last-child {
  right: 13px;
}

.robot-body {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 42px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(135deg, var(--primary), #8d6f00);
}

.assistant-window {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.88);
  opacity: 0.78;
  transform: translateY(4px);
  transition: 0.22s ease;
}

.assistant-window.open {
  opacity: 1;
  border-color: rgba(245, 197, 24, 0.42);
  box-shadow: 0 18px 54px rgba(245, 197, 24, 0.08);
  transform: translateY(0);
}

.assistant-window h2 {
  margin-top: 8px;
}

.assistant-questions {
  display: grid;
  gap: 8px;
}

.assistant-question {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.assistant-question:hover,
.assistant-question.active {
  color: #101010;
  border-color: transparent;
  background: var(--primary);
}

@keyframes robotFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes robotBlink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

.price {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.card .btn {
  padding: 8px 10px;
  font-size: 12px;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  color: var(--muted);
}

.auth-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.verify-panel {
  grid-column: 1 / -1;
  border-color: rgba(245, 197, 24, 0.34);
}

.dev-code {
  padding: 10px 12px;
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 8px;
  background: rgba(245, 197, 24, 0.08);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

input, select, textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 10px;
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 34px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.side-link {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.side-link.active {
  color: #121212;
  background: var(--primary);
}

.panel {
  padding: 14px;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

th {
  color: var(--primary);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--primary);
  background: rgba(245, 197, 24, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(62, 224, 120, 0.32);
  background: rgba(62, 224, 120, 0.08);
}

.badge.bad {
  color: var(--danger);
  border-color: rgba(255, 77, 77, 0.34);
  background: rgba(255, 77, 77, 0.08);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.modal-card {
  width: min(520px, 100%);
  padding: 16px;
}

.buy-card {
  width: min(1040px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  padding: 26px 30px 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 197, 24, 0.16), transparent 18rem),
    rgba(10, 10, 10, 0.82);
  border-color: rgba(245, 197, 24, 0.24);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62), 0 0 80px rgba(245, 197, 24, 0.07);
}

.buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(245, 197, 24, 0.18);
}

.buy-head h2 {
  font-size: 24px;
  font-weight: 900;
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: 38px;
  align-items: center;
}

.buy-info {
  display: grid;
  gap: 13px;
  color: #f2f5f9;
  line-height: 1.45;
  font-weight: 650;
}

.buy-info p {
  margin: 0;
}

.buy-info strong {
  color: #ffffff;
  font-weight: 900;
}

.buy-description {
  max-width: 360px;
}

.duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(245, 197, 24, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.duration-tab {
  min-height: 38px;
  border: 0;
  border-right: 1px solid rgba(245, 197, 24, 0.16);
  color: #bdbdbd;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.duration-tab:last-child {
  border-right: 0;
}

.duration-tab.active {
  color: #101010;
  background: var(--primary);
}

.buy-bottom {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.16);
}

.buy-price {
  font-size: 20px;
  color: #ffffff;
}

.buy-price::after {
  content: " ₽";
  color: var(--primary);
  font-weight: 900;
}

.buy-media {
  min-height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 197, 24, 0.10), transparent 12rem),
    #050505;
  border: 1px solid rgba(245, 197, 24, 0.10);
}

.buy-media img {
  width: 50%;
  height: auto;
  max-height: 55%;
  min-height: 0;
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 60;
}

@media (max-width: 880px) {
  .nav, .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid, .auth-box, .layout {
    grid-template-columns: 1fr;
  }

  .buy-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .buy-card {
    padding: 18px;
  }

  .buy-media {
    min-height: 210px;
  }

  .visual {
    min-height: 330px;
  }

  .grid, .grid.two, .stats {
    grid-template-columns: 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(3, 42px);
  }

  .assistant-panel,
  .assistant-window {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}
