/*
  3DWebStudio — единая система кнопок.
  Версия "ювелирная техника": компактные кнопки, тонкая кромка, аккуратный блик.
*/

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&display=swap');

:root {
  --nb-font: 'Unbounded', 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --nb-neutral-a: #7c5cff;
  --nb-neutral-b: #35e8f5;
  --nb-neutral-text: #f3f0ff;
  --nb-neutral-muted: #d7d0ff;
  --nb-neutral-glow: rgba(124, 92, 255, .2);
  --nb-buy-a: #35e8f5;
  --nb-buy-b: #0fb8c9;
  --nb-buy-text: #ecfeff;
  --nb-buy-glow: rgba(53, 232, 245, .22);
  --nb-success-a: #34d399;
  --nb-success-b: #0ea36f;
  --nb-success-text: #effff7;
  --nb-success-glow: rgba(52, 211, 153, .2);
  --nb-danger-a: #ff5470;
  --nb-danger-b: #e11d48;
  --nb-danger-text: #fff4f6;
  --nb-danger-glow: rgba(255, 84, 112, .22);
  --nb-warning-a: #e3b341;
  --nb-warning-b: #c98a1f;
  --nb-warning-text: #fff0c2;
  --nb-warning-glow: rgba(227, 179, 65, .18);
}

.btn,
.public-btn,
.drawer-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid rgba(124, 92, 255, .42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    rgba(13, 12, 22, .78);
  color: var(--nb-neutral-text);
  font-family: var(--nb-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 1px rgba(255, 255, 255, .025),
    0 8px 18px rgba(0, 0, 0, .18),
    0 0 14px var(--nb-neutral-glow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition:
    transform .16s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease;
}

.btn::after,
.public-btn::after,
.drawer-action::after,
.rowbtn::after,
.miniBtn::after,
.attachmentlink::after,
.ftr-top::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -46%;
  z-index: -1;
  width: 34%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  animation: nbSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nbSweep {
  0% { left: -48%; opacity: 0; }
  14% { opacity: .78; }
  42%, 100% { left: 128%; opacity: 0; }
}

.btn:hover,
.public-btn:hover,
.drawer-action:hover,
.rowbtn:hover,
.miniBtn:hover,
.attachmentlink:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 121, 243, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 19px var(--nb-neutral-glow);
}

.btn:active,
.public-btn:active,
.drawer-action:active,
.rowbtn:active,
.miniBtn:active,
.attachmentlink:active {
  transform: translateY(0) scale(.985);
}

.btn:focus-visible,
.public-btn:focus-visible,
.drawer-action:focus-visible,
.rowbtn:focus-visible,
.miniBtn:focus-visible,
.attachmentlink:focus-visible,
.ftr-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #07070c,
    0 0 0 4px rgba(53, 232, 245, .72),
    0 0 24px rgba(124, 92, 255, .28);
}

.btn:disabled,
.public-btn[aria-disabled="true"],
.drawer-action:disabled,
.rowbtn:disabled,
.miniBtn:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.btn:disabled::after,
.public-btn[aria-disabled="true"]::after,
.drawer-action:disabled::after,
.rowbtn:disabled::after,
.miniBtn:disabled::after {
  display: none;
}

.btn-icon,
.public-btn-icon {
  width: 13px;
  height: 13px;
  flex: none;
  display: block;
}

.btn.lg,
.public-btn.lg {
  min-height: 35px;
  padding: 8px 16px;
  font-size: 11.4px;
  border-radius: 11px;
}

.btn.small,
.btn.mini,
.public-btn.compact-btn,
.compact-btn {
  min-height: 27px;
  padding: 6px 10px;
  font-size: 10.2px;
  border-radius: 8px;
}

.btn.primary,
.public-btn-primary,
.drawer-action.primary {
  border-color: rgba(124, 92, 255, .66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035)),
    linear-gradient(135deg, rgba(124, 92, 255, .38), rgba(53, 232, 245, .085));
  color: #fff;
}

.btn.primary:hover,
.public-btn-primary:hover,
.drawer-action.primary:hover {
  border-color: rgba(124, 92, 255, .95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 11px 24px rgba(0, 0, 0, .22),
    0 0 22px rgba(124, 92, 255, .26);
}

.public-btn-secondary,
.btn:not(.primary):not(.danger):not(.warn):not(.buy):not(.success):not(.danger-soft):not(.archive):not(.refreshbtn):not(.exportbtn) {
  color: var(--nb-neutral-muted);
}

.btn.buy,
.public-btn-buy {
  border-color: rgba(53, 232, 245, .7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    linear-gradient(135deg, rgba(53, 232, 245, .25), rgba(15, 184, 201, .12));
  color: var(--nb-buy-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 0 18px var(--nb-buy-glow);
}

.btn.buy:hover,
.public-btn-buy:hover {
  border-color: rgba(53, 232, 245, .98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 25px var(--nb-buy-glow);
}

.public-header-stack .public-publish-link {
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 10.8px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 7px 16px rgba(0, 0, 0, .2),
    0 0 17px rgba(124, 92, 255, .22);
}

@media (min-width: 1181px) {
  .public-site-header .public-header-container {
    padding-right: 10px;
  }
}

.btn.success,
.btn.exportbtn,
.btn.voted,
.public-btn-success,
.attachmentlink[download],
.attachmentlink[data-attachment-download],
.attachmentlink[data-export-brief],
.rowbtn.success,
.rowbtn[download] {
  border-color: rgba(52, 211, 153, .68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    linear-gradient(135deg, rgba(52, 211, 153, .22), rgba(14, 163, 111, .11));
  color: var(--nb-success-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 0 18px var(--nb-success-glow);
}

.btn.success:hover,
.btn.exportbtn:hover,
.btn.voted:hover,
.public-btn-success:hover,
.attachmentlink[download]:hover,
.attachmentlink[data-attachment-download]:hover,
.attachmentlink[data-export-brief]:hover,
.rowbtn.success:hover,
.rowbtn[download]:hover {
  border-color: rgba(52, 211, 153, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 24px var(--nb-success-glow);
}

.btn.danger,
.btn.archive,
.public-btn-danger {
  border-color: rgba(255, 84, 112, .72) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    linear-gradient(135deg, rgba(255, 84, 112, .72), rgba(225, 29, 72, .58)) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 20px var(--nb-danger-glow) !important;
}

.btn.danger-soft,
.btn.bad,
.btn.listing-report-btn,
.public-btn-danger-soft {
  border-color: rgba(255, 84, 112, .58);
  background: rgba(255, 84, 112, .055);
  color: #ff98a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 14px rgba(255, 84, 112, .14);
}

.btn.warn,
.btn.gold,
.btn.hero-master-cta,
.public-btn-warning {
  border-color: rgba(227, 179, 65, .66) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    rgba(227, 179, 65, .12) !important;
  color: var(--nb-warning-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 0 18px var(--nb-warning-glow) !important;
}

.btn.refreshbtn {
  border-color: rgba(53, 232, 245, .56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
    linear-gradient(135deg, rgba(53, 232, 245, .16), rgba(124, 92, 255, .24));
  color: #ecfeff;
}

.btn.uploadbtn {
  border-color: rgba(53, 232, 245, .52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .024)),
    linear-gradient(135deg, rgba(53, 232, 245, .14), rgba(124, 92, 255, .22));
  color: #f4f0ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 0 16px rgba(53, 232, 245, .14);
}

.btn.uploadbtn:hover {
  border-color: rgba(53, 232, 245, .82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .17),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 22px rgba(53, 232, 245, .2);
}

.btn.hero-master-cta:hover {
  border-color: rgba(227, 179, 65, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .17),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 22px var(--nb-warning-glow);
}

.rowbtn.warningbtn {
  border-color: rgba(227, 179, 65, .56) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
    rgba(227, 179, 65, .11) !important;
  color: var(--nb-warning-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 0 14px var(--nb-warning-glow) !important;
}

.btn-round,
.public-btn-round,
.ftr-top {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
}

.btn-round .btn-icon,
.public-btn-round .public-btn-icon {
  width: 15px;
  height: 15px;
}

.rowbtn,
.miniBtn,
.attachmentlink {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(124, 92, 255, .34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
    rgba(13, 12, 22, .72);
  color: #d9d2ff;
  font-family: var(--nb-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 0 10px rgba(124, 92, 255, .12);
  transition: transform .16s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.rowbtn.approve,
.rowbtn.message {
  border-color: rgba(124, 92, 255, .46);
  color: #f4f0ff;
}

.rowbtn.reject,
.miniBtn[data-live-action="decline"],
.miniBtn[data-order-action="reject"] {
  border-color: rgba(255, 84, 112, .5);
  background: rgba(255, 84, 112, .055);
  color: #ff98a8;
}

.rowbtn.danger {
  border-color: rgba(255, 84, 112, .68);
  background: linear-gradient(135deg, rgba(255, 84, 112, .58), rgba(225, 29, 72, .48));
  color: #fff;
}

.ftr-top {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 232, 245, .45);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .12), transparent 42%),
    rgba(13, 12, 22, .8);
  color: #d9d2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 0 14px rgba(53, 232, 245, .16),
    0 0 18px rgba(124, 92, 255, .12);
}

.ftr-top:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(53, 232, 245, .85);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 22px rgba(53, 232, 245, .24),
    0 0 26px rgba(124, 92, 255, .18);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after,
  .public-btn::after,
  .drawer-action::after,
  .rowbtn::after,
  .miniBtn::after,
  .attachmentlink::after,
  .ftr-top::after {
    display: none;
    animation: none;
  }
}
