/* public/css/style.css */

/* ---------- base ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Orbitron', 'Courier New', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1f0202 0%, #0e0102 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  padding-top: 50px;
}

.box {
  background: #0a0507;
  padding: 40px 30px;
  border-radius: 28px;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(185, 28, 28, 0.3);
  max-width: 900px;
  width: 100%;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.5s ease-out;
  height: auto;
  align-self: flex-start;
  color: #ece8e0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes vpnSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- scrollbar (nod dark) ---------- */

#searchResults::-webkit-scrollbar {
  width: 8px;
}

#searchResults::-webkit-scrollbar-track {
  background: #1f1215;
  border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: #9b2c2c;
  border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
  background: #c0392b;
}

/* ---------- modal ---------- */
#videoModal {
  animation: fadeIn 0.2s;
}

#videoModal > div {
  animation: slideUp 0.3s;
}

/* ---------- shared helpers ---------- */

.ytfp-user-badge {
  background: #2c1c1c;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #e0b3a2;
  border: 1px solid #8b3c2c;
}

/* ---------- header: Brotherhood of Nod style ---------- */

.ytfp-shapka {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #b12a2a;
  padding-bottom: 12px;
  position: relative;
}

.ytfp-shapka::after {
  position: absolute;
  bottom: -12px;
  right: 0;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a53f2b;
  font-weight: bold;
  text-transform: uppercase;
  background: #0a0507;
  padding-left: 8px;
}

.ytfp-shapka__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ytfp-shapka__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ytfp-shapka__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ytfp-shapka__logo {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px #b52b2b);
  color: #e03a3a;
}

.ytfp-shapka__title {
  color: #f0ddc5;
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
  flex: 1 1 auto;
  font-size: clamp(18px, 2.4vw, 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 4px rgba(180, 30, 30, 0.6);
  font-family: 'Orbitron', 'Courier New', monospace;
}

.ytfp-shapka__title--multiline {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-height: 2.4em;
}

.ytfp-shapka__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.ytfp-back-btn {
  background: #8b2c1a;
  color: #fbe9d2;
  padding: 10px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #bc4e2c;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ytfp-back-btn:hover {
  background: #b32f18;
  border-color: #e0693a;
  transform: translateY(-1px);
}

.ytfp-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #2a1616;
  border: 1px solid #8f3b2a;
  border-radius: 999px;
}

.ytfp-lang-switcher__btn {
  border: none;
  background: transparent;
  color: #d4bcae;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ytfp-lang-switcher__btn.is-active {
  background: #b12a1a;
  color: #ffffff;
  box-shadow: 0 0 6px #e05a3a;
  text-shadow: 0 0 2px black;
}

.ytfp-respect-bar {
  width: 100%;
  border-top: 1px solid #5a2c2c;
  padding-top: 10px;
  color: #c0aca0;
  font-size: 13px;
  line-height: 1.4;
}

.ytfp-respect-bar__link {
  color: #e36b4a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.ytfp-respect-bar__link:hover {
  color: #ff8c5a;
}

.ytfp-brand-full {
  display: inline;
}

.ytfp-brand-short {
  display: none;
}

/* ---------- main content: dark & red accents ---------- */

.respect-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.respect-hero {
  text-align: center;
  padding: 10px 0 2px;
}

.respect-hero__action {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.respect-hero__title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  color: #f0dac0;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 2px 5px #3a0a0a;
  letter-spacing: 1px;
}

.respect-hero__quote {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: #cfb6a8;
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}

.respect-card {
  background: #100b0c;
  border: 1px solid #542d2a;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  transition: border 0.2s;
}

.respect-card:hover {
  border-color: #b1422a;
}

.respect-card__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: #ecc897;
  margin-bottom: 18px;
  border-left: 4px solid #bc3a2a;
  padding-left: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.respect-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #e0cfc2;
  line-height: 1.7;
  font-size: 16px;
}

.respect-item__title {
  font-weight: 800;
  color: #ea8866;
  margin-bottom: 4px;
  font-size: 1.05em;
}

.respect-item__text {
  color: #ddcfc5;
}

.respect-copy-link {
  color: #ea7452;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
  word-break: break-all;
  transition: color 0.2s;
}

.respect-copy-link:hover {
  color: #ff9a6e;
}

.respect-copy-note {
  margin-top: 8px;
  font-size: 14px;
  color: #b6a28e;
  min-height: 22px;
}

.respect-hint {
  margin-top: 6px;
  color: #b29484;
  font-size: 14px;
  line-height: 1.6;
}

.respect-stats {
  text-align: center;
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e1113 0%, #0f080a 100%);
  border: 1px solid #76332a;
  box-shadow: inset 0 1px 0 rgba(210, 70, 40, 0.2), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.respect-stats__lead {
  color: #dcbcac;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 12px;
  font-weight: 500;
}

.respect-stats__numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 18px;
}

.respect-stat {
  min-width: 180px;
}

.respect-stat__value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #e88658;
  line-height: 1.1;
  text-shadow: 0 0 4px #5a1e12;
}

.respect-stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: #b79b8a;
  font-weight: 500;
}

/* ---------- vpn button (Nod warmachine) ---------- */

.vpn-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 540px);
  min-height: 72px;
  padding: 18px 28px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  background: linear-gradient(135deg, #a82218 0%, #641e16 100%);
  color: #fff0e0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 28px rgba(140, 30, 20, 0.5), 0 0 0 1px #cc5a3a inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-transform: uppercase;
}

.vpn-pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(160, 40, 20, 0.65), 0 0 0 1px #e96a42 inset;
  background: linear-gradient(135deg, #c22c1c 0%, #781e14 100%);
}

.vpn-pay-button:active {
  transform: translateY(0);
}

.vpn-pay-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.vpn-pay-button.is-loading {
  opacity: 0.92;
}

.vpn-pay-button__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 220, 180, 0.5);
  border-top-color: #ffb282;
  animation: vpnSpin 0.7s linear infinite;
}

.vpn-pay-button.is-loading .vpn-pay-button__spinner {
  display: inline-block;
}

.vpn-pay-button__text {
  display: inline-block;
}

/* ---------- general form / input overrides (dark theme) ---------- */

input, textarea, select {
  background-color: #1f1215;
  border: 1px solid #823e2c;
  color: #eedbcb;
  border-radius: 16px;
  padding: 10px 14px;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #cf5a3a;
  box-shadow: 0 0 0 2px rgba(180, 50, 30, 0.5);
}

::placeholder {
  color: #a48372;
  opacity: 0.7;
}

/* ---------- links and extras ---------- */
a {
  color: #e6825c;
  text-decoration: none;
}

a:hover {
  color: #ffa272;
  text-decoration: underline;
}

/* ---------- mobile adaptations ---------- */

@media (max-width: 768px) {
  body {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 14px !important;
    padding-top: calc(80px + env(safe-area-inset-top)) !important;
  }

  .box {
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  .ytfp-shapka__top {
    align-items: flex-start;
  }

  .ytfp-shapka__title {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .ytfp-brand-full {
    display: none;
  }

  .ytfp-brand-short {
    display: inline;
  }

  .ytfp-back-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ytfp-respect-bar {
    font-size: 12px;
  }

  .respect-card {
    padding: 18px;
    border-radius: 20px;
  }

  .respect-list {
    font-size: 15px;
  }

  .respect-stats {
    padding: 22px 16px;
  }

  .vpn-pay-button {
    width: 100%;
    min-height: 64px;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: clamp(22px, 7vw, 30px);
  }
}

@media (max-width: 600px) {
  .box {
    padding: 25px 20px;
  }

  .video-card {
    flex-direction: column;
  }

  .video-card > div:first-child {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 520px) {
  #searchRow {
    flex-direction: column;
  }

  #searchBtn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- nod emblem (extra edge) ---------- */
.ytfp-shapka__logo::before {
  font-size: 24px;
  margin-right: 4px;
  display: inline-block;
  color: #d6442a;
  filter: drop-shadow(0 0 2px red);
}

/* ---------- Затемнение ---------- */
.auth-required-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.auth-required-modal {
  width: min(420px, 100%);
  padding: 24px 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.auth-required-modal__message {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: #111111;
}

/* ===== Кнопка оплаты ===== */

.vpn-pay-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  background: #2b6cff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 108, 255, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.vpn-pay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43, 108, 255, 0.32);
}

.vpn-pay-button:active {
  transform: translateY(0);
}

.vpn-pay-button:disabled {
  cursor: default;
  opacity: 0.9;
}

.vpn-pay-button__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  flex: 0 0 auto;
}

.vpn-pay-button.is-loading .vpn-pay-button__spinner {
  display: inline-block;
  animation: vpn-pay-spin 0.9s linear infinite;
}

.vpn-pay-button__text {
  display: inline-block;
}

@keyframes vpn-pay-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Второй шаг оплаты ===== */

.payment-step2 {
  gap: 16px;
}

.payment-step2__card,
.payment-step2__timer {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.payment-step2__label {
  font-size: 13px;
  opacity: 0.72;
  margin-bottom: 8px;
}

.payment-step2__address {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}

.payment-step2__link {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.payment-step2__timer {
  text-align: center;
}

.payment-step2__timer-label {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.payment-step2__timer-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.payment-step2__status {
  font-size: 14px;
  opacity: 0.85;
}

.payment-step2__section-title {
  width: 100%;
  max-width: 820px;
  margin: 8px auto 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.payment-step2__guide-grid {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-step2__guide-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.payment-step2__guide-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.payment-step2__guide-caption {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.92;
}

@media (max-width: 768px) {
  .payment-step2__timer-value {
    font-size: 28px;
  }

  .payment-step2__guide-grid {
    grid-template-columns: 1fr;
  }

  .vpn-pay-button {
    width: 100%;
    max-width: 360px;
  }
}

/* Приветственный экран оплаты */

.payment-welcome {
  align-items: stretch;
  gap: 18px;
}

.payment-welcome .respect-hero__quote {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: justify;
  text-align-last: left;
  line-height: 1.8;
}

.payment-welcome .respect-hero__action {
  width: 100%;
  max-width: 820px;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
}

.payment-welcome__price {
  font-weight: 700;
  text-decoration: underline;
}

.payment-step2__title {
  font-weight: 800;
}

.payment-step2__payline {
  text-decoration: underline;
}

.payment-step2__timer-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .payment-step2__timer-value {
    font-size: 16px;
  }
}
/* Личный кабинет */
.kabinet-top-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #0a0507;
  border: 1px solid rgba(185, 50, 30, 0.55);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(180, 55, 40, 0.25) inset;
}

.kabinet-top-card__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: #ecc897;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-left: 2px solid #bc3a2a;
  padding-left: 10px;
  text-shadow: 0 0 2px #4a0f0f;
}

.kabinet-top-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.kabinet-top-card__item {
  padding: 8px 12px;
  background: #110b0c;
  border-radius: 12px;
  border: 1px solid #2f1a18;
  transition: border 0.2s, box-shadow 0.2s;
}

.kabinet-top-card__item:hover {
  border-color: #9e3a2a;
  box-shadow: 0 0 4px rgba(200, 60, 40, 0.3);
}

.kabinet-top-card__label {
  margin-bottom: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: #c8a892;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 600;
}

.kabinet-top-card__value {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
  color: #f0dac0;
  text-shadow: 0 0 1px #3a0808;
}

.kabinet-top-card__muted {
  font-size: 11px;
  line-height: 1.4;
  color: #b69482;
  font-weight: 500;
}

.kabinet-top-card__error {
  padding: 8px 10px;
  background: #2c1110;
  border: 1px solid #b33a2a;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #f3bc9a;
  box-shadow: 0 0 3px rgba(160, 40, 20, 0.4);
  font-weight: 500;
}

/* Блок гарантированного возврата */
.kabinet-refund-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 60, 40, 0.55);
  border-radius: 16px;
  background: #0d0708;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(180, 55, 40, 0.2);
}

.kabinet-refund-card__text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kabinet-refund-card__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: #ecc897;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kabinet-refund-card__text {
  font-size: 12px;
  line-height: 1.4;
  color: #c8a892;
}

.kabinet-refund-card__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 9px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f0dac0;
  background: linear-gradient(135deg, #8b2c1a 0%, #5a1a12 100%);
  border: 1px solid #bc4e2c;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.kabinet-refund-card__button:hover {
  background: linear-gradient(135deg, #a8351f 0%, #742218 100%);
  border-color: #e0693a;
  transform: translateY(-1px);
  color: #ffffff;
}

@media (max-width: 700px) {
  .kabinet-refund-card {
    flex-direction: column;
    align-items: stretch;
  }

  .kabinet-refund-card__button {
    width: 100%;
    min-width: unset;
  }
}

.kabinet-vozvrat-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.kabinet-vozvrat-actions__button {
  min-width: 220px;
}

.kabinet-refund-card__button {
  cursor: pointer;
}

.kabinet-refund-card__button.is-loading {
  opacity: 0.78;
}

.kabinet-refund-card__button:disabled {
  cursor: default;
}

/* ===== Кабинет: блок устройств  ===== */

.kabinet-devices {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.kabinet-devices__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kabinet-devices__header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kabinet-devices__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #ecc897;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 3px #4a0f0f;
}

.kabinet-devices__subtitle {
  font-size: 13px;
  color: #c8a892;
  letter-spacing: 0.3px;
}

.kabinet-devices__add-button {
  border: 1px solid #bc4e2c;
  border-radius: 24px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(135deg, #8b2c1a 0%, #5a1a12 100%);
  color: #f0dac0;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.kabinet-devices__add-button:hover {
  background: linear-gradient(135deg, #a8351f 0%, #742218 100%);
  border-color: #e0693a;
  transform: translateY(-1px);
  color: #ffffff;
}

.kabinet-devices__loading,
.kabinet-devices__error,
.kabinet-devices__empty {
  border-radius: 16px;
  padding: 14px 16px;
  background: #110b0c;
  border: 1px solid #2f1a18;
  color: #c8a892;
  font-size: 13px;
}

.kabinet-devices__error {
  border: 1px solid #b33a2a;
  background: #2c1110;
  color: #f3bc9a;
}

.kabinet-devices-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.kabinet-devices-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
  border-radius: 16px;
  padding: 12px;
  background: #0d0708;
  border: 1px solid #2f1a18;
  transition: all 0.2s ease;
}

.kabinet-devices-list__item:hover {
  border-color: #9e3a2a;
  box-shadow: 0 0 6px rgba(200, 60, 40, 0.3);
}

.kabinet-devices-list__item.is-active {
  border: 2px solid #bc3a2a;
  background: #140a0b;
  box-shadow: 0 0 8px rgba(180, 50, 30, 0.4);
}

.kabinet-devices-list__select {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  width: 100%;
}

.kabinet-devices-list__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #f0dac0;
}

.kabinet-devices-list__meta {
  margin-top: 4px;
  font-size: 11px;
  color: #b69482;
  word-break: break-word;
}

.kabinet-devices-list__delete {
  align-self: start;
  border: 1px solid #6a2a20;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  background: #1f0f0d;
  color: #d48a6a;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.kabinet-devices-list__delete:hover {
  background: #8b2c1a;
  border-color: #bc4e2c;
  color: #ffffff;
}

.kabinet-platform-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kabinet-platform-picker__title {
  font-size: 18px;
  font-weight: 800;
  color: #ecc897;
  letter-spacing: 0.5px;
}

.kabinet-platform-picker__subtitle {
  font-size: 13px;
  color: #c8a892;
}

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

.kabinet-platform-picker__tile {
  border: 1px solid #2f1a18;
  background: #0d0708;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.kabinet-platform-picker__tile:hover {
  border-color: #bc3a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.kabinet-platform-picker__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.kabinet-platform-picker__label {
  padding: 8px 12px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #f0dac0;
  border-top: 1px solid #2f1a18;
}

.kabinet-device-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.kabinet-device-workspace__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 18px;
  padding: 18px;
  background: #0d0708;
  border: 1px solid #2f1a18;
}

.kabinet-device-workspace__title {
  font-size: 16px;
  font-weight: 800;
  color: #ecc897;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kabinet-device-workspace__steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c8a892;
  font-size: 13px;
  line-height: 1.5;
}

.kabinet-device-workspace__steps li {
  margin-bottom: 4px;
}

.kabinet-device-workspace__video-stub {
  min-height: 140px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  background: #110b0c;
  border: 1px solid #2f1a18;
  color: #b69482;
}

.kabinet-device-workspace__config-meta {
  font-size: 12px;
  color: #b69482;
}

.kabinet-device-workspace__config-text,
.kabinet-device-workspace__qr-payload {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  background: #110b0c;
  border: 1px solid #2f1a18;
  color: #d4bcae;
  font-family: monospace;
}

.kabinet-device-workspace__qr-title {
  font-size: 14px;
  font-weight: 800;
  color: #ecc897;
}

.kabinet-device-workspace__qr-stub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kabinet-device-workspace__qr-stub-text {
  font-size: 13px;
  color: #c8a892;
}

@media (max-width: 900px) {
  .kabinet-platform-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kabinet-device-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kabinet-devices__header {
    flex-direction: column;
    align-items: stretch;
  }

  .kabinet-platform-picker__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kabinet-devices-list__item {
    grid-template-columns: 1fr;
  }
}

/* --- vozvrat.js: статус возврата --- */

.vozvrat-status-card {
  margin-top: 20px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.vozvrat-status-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.vozvrat-status-card__note {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
}
