:root {
  --bg: #04070a;
  --bg-2: #060b0f;
  --panel: rgba(10, 18, 16, 0.72);
  --panel-solid: #0a1211;
  --line: rgba(90, 255, 180, 0.14);
  --line-strong: rgba(90, 255, 180, 0.3);
  --green: #39ff9c;
  --green-2: #12d97e;
  --cyan: #25d8f0;
  --text: #e9f7f1;
  --muted: #7f9590;
  --muted-2: #5c716d;
  --danger: #ff7a7a;
  --warn: #ffd166;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 600px at 18% -10%, rgba(18, 217, 126, 0.16), transparent 60%),
    radial-gradient(700px 500px at 90% 0%, rgba(37, 216, 240, 0.1), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(18, 217, 126, 0.08), transparent 60%),
    linear-gradient(180deg, #04070a, #030608 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 255, 156, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 156, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 85%);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

a {
  color: var(--green);
  text-decoration-color: rgba(57, 255, 156, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: #7dffc4;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: #b9ffdd;
}

.muted {
  color: var(--muted-2);
  font-weight: 400;
}

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

.center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

/* ---------- навигация ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(4, 7, 10, 0.88), rgba(4, 7, 10, 0.4));
  border-bottom: 1px solid rgba(57, 255, 156, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #04120c;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 22px rgba(57, 255, 156, 0.45);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand-text {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-text strong {
  color: var(--green);
  margin-left: 0.25em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(57, 255, 156, 0.05);
  white-space: nowrap;
}

.nav-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.2s infinite;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(57, 255, 156, 0.05);
  transition: 0.18s ease;
  white-space: nowrap;
}

.support-link:hover {
  border-color: var(--line-strong);
  background: rgba(57, 255, 156, 0.1);
  color: var(--text);
}

.support-link.is-current {
  border-color: var(--line-strong);
  color: var(--green);
}

/* ---------- сетка и hero ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "//";
  color: var(--muted-2);
}

h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 .accent {
  display: block;
  background: linear-gradient(100deg, var(--green), #7dffd0 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(57, 255, 156, 0.25));
}

.lead {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cfe9df;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 20, 16, 0.7);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--green);
  background: linear-gradient(90deg, rgba(57, 255, 156, 0.07), transparent);
  color: var(--muted);
  font-size: 13px;
  max-width: 48ch;
}

.terminal {
  margin-top: 22px;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 156, 0.16);
  background: linear-gradient(170deg, rgba(9, 18, 15, 0.9), rgba(4, 9, 7, 0.95));
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: #8fb3a6;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(57, 255, 156, 0.12);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.terminal-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(57, 255, 156, 0.3);
}

.terminal-body {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.terminal-body p {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.terminal-body .prompt {
  color: var(--green);
}

.terminal-body b {
  margin-left: auto;
  color: var(--green);
  font-weight: 600;
}

.terminal-body .caret {
  color: var(--green);
  animation: pulse 1.2s steps(2) infinite;
}

/* ---------- карточки ---------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(14, 28, 23, 0.9), rgba(6, 12, 10, 0.95)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-head h2 {
  font-size: 20px;
  font-weight: 750;
}

/* ---------- форма заказа ---------- */

.order-card {
  padding: 26px;
  overflow: hidden;
}

.order-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 156, 0.18), transparent 65%);
  pointer-events: none;
}

.field {
  margin-bottom: 18px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.label,
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cfe9df;
  margin-bottom: 8px;
}

.field-head .label {
  margin-bottom: 0;
}

#amount-hint {
  color: var(--green);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  background: rgba(3, 8, 6, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #4d5f5a;
}

input:focus,
textarea:focus {
  border-color: rgba(57, 255, 156, 0.65);
  box-shadow: 0 0 0 3px rgba(57, 255, 156, 0.12);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amount {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 8px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6, 14, 11, 0.8);
  transition: 0.18s ease;
}

.amount:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  background: rgba(12, 26, 20, 0.9);
}

.amount-value {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.amount-rub {
  font-size: 12px;
  color: var(--muted);
}

.amount.is-active {
  border-color: var(--green);
  background: linear-gradient(160deg, rgba(57, 255, 156, 0.18), rgba(18, 217, 126, 0.06));
  box-shadow: 0 0 0 1px rgba(57, 255, 156, 0.35), 0 10px 30px rgba(18, 217, 126, 0.2);
}

.amount.is-active::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  color: var(--green);
}

.amount.is-active .amount-rub {
  color: #b9ffdd;
}

.amount-custom {
  border-style: dashed;
}

.amount-custom .amount-value {
  font-size: 14px;
  font-weight: 650;
}

.amount-custom.is-active {
  border-style: solid;
}

.custom-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(90, 255, 180, 0.22);
  border-radius: 13px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.custom-panel.is-active {
  border-style: solid;
  border-color: rgba(57, 255, 156, 0.55);
  background: rgba(57, 255, 156, 0.05);
}

.custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

.custom-panel.is-active .custom-label {
  color: #cfe9df;
}

.custom-row input {
  max-width: 140px;
  padding: 9px 12px;
}

.custom-preview {
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
  color: var(--green);
  text-align: right;
}

.custom-preview.is-error {
  color: var(--danger);
  font-weight: 500;
}

#custom-hint {
  margin-top: 6px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 16px;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
  cursor: pointer;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 750;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #03130b;
  background: linear-gradient(120deg, var(--green), #6bffc0 60%, var(--green-2));
  box-shadow: 0 10px 30px rgba(18, 217, 126, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(18, 217, 126, 0.45);
  color: #03130b;
}

.btn-ghost {
  color: #d5efe4;
  background: rgba(57, 255, 156, 0.04);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(57, 255, 156, 0.09);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  box-shadow: none;
}

.btn-sum {
  font-weight: 800;
}

.submit-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}

.form-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #ffd2d2;
  background: rgba(255, 122, 122, 0.1);
  border: 1px solid rgba(255, 122, 122, 0.32);
}

/* ---------- преимущества ---------- */

.section {
  padding: 46px 0 10px;
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 60ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.feature {
  padding: 20px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(12, 24, 20, 0.8), rgba(5, 10, 8, 0.9));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--green);
  border: 1px solid rgba(57, 255, 156, 0.3);
  background: rgba(57, 255, 156, 0.07);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.feature p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 13, 0.7);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 18px;
  border-top: 1px solid rgba(57, 255, 156, 0.12);
}

.faq details {
  border-bottom: 1px solid rgba(57, 255, 156, 0.12);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  font-size: 15px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--green);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  max-width: 78ch;
}

/* ---------- результат ---------- */

.result {
  padding: 26px;
  border-color: rgba(57, 255, 156, 0.35);
  background: linear-gradient(170deg, rgba(18, 217, 126, 0.12), rgba(6, 12, 10, 0.96) 55%);
}

.result-head h2 {
  font-size: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pill-success {
  color: var(--green);
  background: rgba(57, 255, 156, 0.1);
  border: 1px solid rgba(57, 255, 156, 0.35);
}

.sum {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 4px;
  font-size: 19px;
  color: var(--muted);
}

.sum strong {
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.03em;
}

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

.result-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

.result-step h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 8px;
}

.num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  font-size: 12px;
  border-radius: 8px;
  color: #04120c;
  background: var(--green);
  font-weight: 800;
}

.details {
  list-style: none;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(3, 8, 6, 0.7);
  border: 1px solid var(--line);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.details li {
  display: flex;
  gap: 9px;
}

.details li::before {
  content: "\2022";
  color: var(--green);
}

.note {
  font-size: 13px;
  color: #b7cfc6;
  margin-top: 6px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(57, 255, 156, 0.12);
}

/* ---------- страницы заказа и истории ---------- */

.order-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.page-title {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.page-sub {
  max-width: 64ch;
  margin-bottom: 6px;
  color: var(--muted);
}

.order-card {
  margin-top: 18px;
}

.order-title {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.14);
}

.status-dot[data-status="paid"] {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 255, 156, 0.16), 0 0 14px rgba(57, 255, 156, 0.6);
}

.status-dot[data-status="rejected"] {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.14);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 2px;
}

.timeline li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted-2);
}

.timeline li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  border: 2px solid #2c3d38;
}

.timeline li.is-done {
  color: #cfe9df;
}

.timeline li.is-done::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(57, 255, 156, 0.7);
}

.timeline li.is-current {
  color: #fff;
}

.timeline li.is-current::before {
  background: var(--warn);
  border-color: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.14);
}

.timeline li.is-fail.is-current {
  color: #ffc9c9;
}

.timeline li.is-fail.is-current::before {
  background: var(--danger);
  border-color: var(--danger);
}

.block-title {
  margin: 26px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.paid-note,
.rejected-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
}

.paid-note {
  color: #b9ffdd;
  background: rgba(57, 255, 156, 0.08);
  border: 1px solid rgba(57, 255, 156, 0.3);
}

.rejected-note {
  color: #ffd2d2;
  background: rgba(255, 122, 122, 0.08);
  border: 1px solid rgba(255, 122, 122, 0.3);
}

.empty-note {
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed rgba(90, 255, 180, 0.25);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

#bot-hint,
#res-bot-hint {
  margin-top: 12px;
}

/* ---------- чат ---------- */

.chat {
  margin-top: 16px;
  padding: 22px;
}

.chat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chat-head h2 {
  font-size: 17px;
  font-weight: 750;
  text-transform: uppercase;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px;
}

.chat-messages:empty {
  display: none;
}

.chat-empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 17, 0.85);
}

.chat-msg[data-from='buyer'] {
  align-self: flex-end;
  background: rgba(57, 255, 156, 0.1);
  border-color: rgba(57, 255, 156, 0.3);
}

.chat-msg[data-from='admin'] {
  align-self: flex-start;
}

.chat-msg-meta {
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 4px;
  font-family: var(--mono);
}

.chat-msg-text {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg-image {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

.chat-form {
  margin-top: 14px;
}

.chat-form textarea {
  min-height: 64px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chat-actions #chat-send {
  margin-left: auto;
}

.chat-preview {
  position: relative;
  width: 120px;
  margin-top: 10px;
}

.chat-preview img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.chat-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #0b1512;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

label.btn {
  cursor: pointer;
}

/* ---------- история ---------- */

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 14px;
}

.history-head h2 {
  font-size: 18px;
  font-weight: 750;
  text-transform: uppercase;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 16, 13, 0.75);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease;
}

.history-item:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(57, 255, 156, 0.06);
  transform: translateY(-1px);
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.history-sum {
  font-weight: 700;
}

.status-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.status-chip[data-status='paid'] {
  color: var(--green);
  border-color: rgba(57, 255, 156, 0.35);
  background: rgba(57, 255, 156, 0.08);
}

.status-chip[data-status='new'],
.status-chip[data-status='receipt_sent'] {
  color: var(--warn);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.07);
}

.status-chip[data-status='rejected'] {
  color: #ffd2d2;
  border-color: rgba(255, 122, 122, 0.35);
  background: rgba(255, 122, 122, 0.08);
}

/* ---------- ожидание и игра ---------- */

.waiting {
  margin-top: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-color: rgba(37, 216, 240, 0.25);
  background: linear-gradient(150deg, rgba(37, 216, 240, 0.08), rgba(6, 12, 10, 0.96));
}

.waiting h2 {
  font-size: 17px;
  font-weight: 750;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.waiting p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 46ch;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 4, 0.82);
  backdrop-filter: blur(8px);
}

.modal-box {
  width: min(720px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(57, 255, 156, 0.3);
  background: linear-gradient(170deg, #0a1512, #050a08);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h2 {
  font-size: 16px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--line-strong);
}

#pong-canvas {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 156, 0.2);
  background: #030807;
  touch-action: none;
}

.pong-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pong-score {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}

.pong-hint {
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- футер ---------- */

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 46px;
  border-top: 1px solid rgba(57, 255, 156, 0.1);
  font-size: 12.5px;
  color: var(--muted-2);
}

.footer p + p {
  margin-top: 6px;
}

/* ---------- анимации ---------- */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 1;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in-view {
  animation: float-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  #bg-canvas {
    display: none;
  }
}

/* ---------- адаптив ---------- */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .topbar,
  .footer,
  .order-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    gap: 10px;
  }

  .brand-text {
    font-size: 13px;
  }

  .nav-status {
    display: none;
  }

  .support-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .order-card,
  .result,
  .chat,
  .waiting {
    padding: 18px;
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .result-steps,
  .steps {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .features > .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .feature {
    padding: 16px 13px;
  }

  .sum strong {
    font-size: 26px;
  }

  .result-actions .btn {
    flex: 1 1 auto;
  }

  .chat-msg {
    max-width: 92%;
  }
}
