
/* VYRSIGN / SIGNING POLISH 01 */

/* Full-area cosmic atmosphere */
.v2-drawer:has(.sign-studio) {
  background:
    radial-gradient(ellipse 85% 55% at 85% 30%,
      rgba(105,22,55,.23),transparent 75%),
    radial-gradient(ellipse 90% 65% at 10% 90%,
      rgba(51,19,74,.19),transparent 75%),
    #07070b !important;
}

.sign-studio {
  isolation: auto !important;
}

.sign-space {
  position: fixed !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: -1;
  background: transparent !important;
  pointer-events: none;
}

.sign-space-layer:nth-child(1) {
  opacity: .7;
}

.sign-space-layer:nth-child(2) {
  opacity: .48;
}

.sign-space-layer:nth-child(3) {
  opacity: .45;
}

/* Step navigation */
.sign-progress {
  gap: 10px;
}

.sign-step {
  border-radius: 16px;
  padding: 16px 11px;
  background: linear-gradient(150deg,#222029,#111016);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.16),
    0 3px 0 #08070c,
    0 8px 20px #0006;
}

.sign-step.active {
  background: linear-gradient(150deg,#2b202a,#161219);
  border-color: #a64d6c;
  box-shadow:
    inset 0 2px 0 #d66b8c,
    0 3px 0 #230e18,
    0 9px 22px #0008;
}

.sign-step-name {
  font-size: 11px;
  letter-spacing: -.1px;
}

/* File selection */
.sign-file-button {
  position: relative;
  border-radius: 16px;
  background:
    linear-gradient(145deg,#34303a,#18161e 78%);
  border: 1px solid #615260;
  box-shadow:
    inset 0 1px 1px #ffffff3b,
    inset 0 -3px 5px #0005,
    0 4px 0 #08070b,
    0 10px 22px #0008;
  transition: transform .15s,box-shadow .15s;
}

.sign-file-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 3px 9px #0009,
    0 1px 0 #08070b;
}

/* Custom error dialog */
.vyr-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,3,7,.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.vyr-error-card {
  width: min(100%,390px);
  padding: 30px 25px 25px;
  border-radius: 25px;
  border: 1px solid rgba(222,95,133,.35);
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(170,42,79,.2),transparent 65%),
    linear-gradient(150deg,#28212c,#111016);
  box-shadow:
    inset 0 1px 1px #ffffff25,
    0 8px 0 #07060a,
    0 25px 70px #000b;
  text-align: center;
  animation: vyr-dialog-in .24s ease-out;
}

.vyr-error-symbol {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 21px;
  border: 1px solid #b84b6d;
  background: linear-gradient(145deg,#6b2841,#2a1420);
  box-shadow: inset 0 1px 1px #ffffff35,0 7px 20px #0008;
  color: #ffb2c7;
  font-size: 37px;
  font-weight: 800;
}

.vyr-error-card h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -.6px;
}

.vyr-error-card p {
  color: #aaa0ad;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 27px;
}

.vyr-error-close {
  width: 100%;
  padding: 17px;
  border-radius: 14px;
  border: 1px solid #b95b79;
  background: linear-gradient(145deg,#923653,#4e2033);
  box-shadow: inset 0 1px 1px #ffffff35,0 4px 0 #260e1a;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.vyr-error-close:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #260e1a;
}

@keyframes vyr-dialog-in {
  from { opacity:0;transform:translateY(15px) scale(.96); }
  to { opacity:1;transform:translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .vyr-error-card { animation:none; }
}
