/* VYRSIGN SIGNING COMPONENT */

.sign-studio {
  width: 100%;
  min-width: 0;
  padding: 8px 0 35px;
}

.sign-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 25px 0 30px;
}

.sign-step {
  position: relative;
  min-width: 0;
  padding: 15px 10px;
  border: 1px solid #35333d;
  border-radius: 13px;
  background: linear-gradient(150deg,#24232b,#111117);
  box-shadow:
    inset 0 1px 1px #ffffff18,
    0 4px 0 #08080c,
    0 9px 17px #0006;
}

.sign-step.active {
  border-color: #a44460;
  background: linear-gradient(145deg,#46202f,#1c151e);
}

.sign-step-number {
  display: block;
  color: #d96e88;
  font-size: 10px;
  margin-bottom: 8px;
}

.sign-step-name {
  display: block;
  color: #f0edf1;
  font-size: 11px;
  font-weight: 650;
}

.sign-panel {
  border: 1px solid #3c3742;
  border-radius: 19px;
  padding: 24px 18px;
  background:
    radial-gradient(ellipse at top,#51213628,transparent 70%),
    linear-gradient(145deg,#24212a,#101016);
  box-shadow:
    inset 0 1px 1px #ffffff20,
    0 6px 0 #08080d,
    0 18px 35px #0008;
}

.sign-panel h4 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -.6px;
}

.sign-panel-description {
  color: #98919f;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.sign-file-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 65px;
  padding: 17px;
  border: 1px solid #57515d;
  border-radius: 13px;
  background: linear-gradient(150deg,#34313b,#19171f);
  box-shadow:
    inset 0 1px 1px #ffffff35,
    inset 0 -3px 5px #0006,
    0 5px 0 #0a090e,
    0 12px 22px #0007;
  color: #f5f0f4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

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

.sign-file-button span:last-child {
  color: #f07b97;
  font-size: 23px;
}

.sign-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sign-file-info {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #36313c;
  border-radius: 12px;
  background: #111117;
  overflow-wrap: anywhere;
}

.sign-file-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f1e8ed;
}

.sign-file-size {
  display: block;
  margin-top: 7px;
  color: #9c94a0;
  font-size: 11px;
}

.sign-status {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #543343;
  border-radius: 12px;
  background: #321c292e;
  color: #dca0b0;
  font-size: 11px;
  line-height: 1.7;
}

.sign-next {
  width: 100%;
  margin-top: 25px;
  padding: 17px;
  border: 1px solid #a84a64;
  border-radius: 13px;
  background: linear-gradient(145deg,#9e3654,#552137);
  box-shadow:
    inset 0 1px 1px #ffffff40,
    0 5px 0 #2a101c,
    0 12px 25px #0008;
  color: white;
  font-weight: 700;
}

.sign-next:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sign-next:not(:disabled):active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #2a101c;
}


/* VYRSIGN MOBILE PASSWORD FIX 8.88 */
.sign-studio, .sign-panel, .sign-file-info {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.sign-password-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 65px;
  padding: 17px;
  margin: 10px 0 24px;
  border: 1px solid #615260;
  border-radius: 16px;
  background: linear-gradient(145deg,#34303a,#18161e 78%);
  box-shadow: inset 0 1px 1px #ffffff3b,0 4px 0 #08070b,0 10px 22px #0008;
  color: #f5f0f4;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.sign-password-input:focus { border-color: #d66b8c; }
.v2-drawer:has(.sign-studio) { overflow-x: hidden; }
@media(max-width:600px) {
  .sign-studio { width:100%; max-width:100%; }
  .sign-panel { width:100%; max-width:100%; padding:20px 14px; }
}


/* VYRSIGN_PROGRESS_BAR_V1 */
.sign-upload-progress {
  margin-top: 22px;
  padding: 18px 16px;
  border: 1px solid #6b3751;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(240,123,151,.18), transparent 32%),
    radial-gradient(circle at 88% 30%, rgba(153,52,101,.16), transparent 30%),
    linear-gradient(145deg, rgba(43,20,33,.96), rgba(14,10,19,.98));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.18),
    0 8px 0 #120912,
    0 18px 34px rgba(0,0,0,.42);
}

.sign-upload-progress.is-hidden {
  display: none;
}

.sign-upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.sign-upload-progress-stage {
  color: #f3d7df;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sign-upload-progress-percent {
  min-width: 52px;
  text-align: right;
  color: #ff8faf;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-shadow: 0 0 16px rgba(255,117,156,.28);
}

.sign-upload-progress-track {
  position: relative;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,143,175,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.12)),
    rgba(12,9,18,.92);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.03);
}

.sign-upload-progress-fill,
.sign-upload-progress-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  transition: width .35s ease;
}

.sign-upload-progress-fill {
  background:
    linear-gradient(90deg,
      #ff7fa6 0%,
      #ffb4c9 18%,
      #ffd7ea 30%,
      #ff8bb1 46%,
      #b66dff 67%,
      #6b7cff 84%,
      #ff7fa6 100%);
  background-size: 240% 100%;
  box-shadow:
    0 0 24px rgba(255,127,166,.30),
    inset 0 0 16px rgba(255,255,255,.16);
  animation: vyrsignProgressShift 2.2s linear infinite;
}

.sign-upload-progress-glow {
  filter: blur(16px);
  opacity: .7;
  background:
    linear-gradient(90deg,
      rgba(255,127,166,.45),
      rgba(255,208,229,.52),
      rgba(130,120,255,.44),
      rgba(255,127,166,.45));
  background-size: 220% 100%;
  animation: vyrsignProgressShift 2.4s linear infinite;
}

@keyframes vyrsignProgressShift {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
