/* FD_CRYPTO_SIGNATURE_CONFIRM_MODAL_V1 */

.fdcrypto-modal-overlay {
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
  overflow-y:auto;
  background:rgba(8,22,39,.72);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.fdcrypto-modal {
  width:100%;
  max-width:460px;
  max-height:calc(100dvh - 36px);
  overflow-y:auto;
  border-radius:20px;
  background:#FFFFFF;
  color:#23435D;
  border:1px solid #B9D7EA;
  box-shadow:0 28px 75px rgba(0,0,0,.30);
  animation:fdcrypto-in .22s ease-out;
}

.fdcrypto-modal-head {
  padding:27px 25px 23px;
  background:linear-gradient(135deg,#2755A0,#238BC7,#19B9C5);
  color:#FFFFFF;
  text-align:center;
}

.fdcrypto-modal-icon {
  width:54px;
  height:54px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 13px;
  border-radius:16px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.30);
  font-size:26px;
  color:#FFFFFF;
}

.fdcrypto-modal-eyebrow {
  margin-bottom:9px;
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:800;
  color:#DDF9FF;
}

.fdcrypto-modal-head h2 {
  margin:0!important;
  font-size:22px!important;
  line-height:1.35;
  font-weight:800!important;
  color:#FFFFFF!important;
}

.fdcrypto-modal-head p {
  margin:8px 0 0!important;
  font-size:12px;
  color:#E3F7FE!important;
}

.fdcrypto-modal-body {
  padding:24px 26px 20px;
}

.fdcrypto-modal-note {
  padding:17px;
  border-radius:13px;
  background:linear-gradient(135deg,#EFF8FF,#E4F4FC);
  border:1px solid #C6E2F1;
}

.fdcrypto-modal-note strong {
  display:block;
  color:#23577F;
  font-size:14px;
  margin-bottom:8px;
}

.fdcrypto-modal-note p {
  margin:0!important;
  color:#4F718A!important;
  font-size:12px;
  line-height:1.8;
}

.fdcrypto-modal-review {
  margin:17px 0 20px!important;
  text-align:center;
  color:#60778A!important;
  line-height:1.8;
  font-size:12px;
}

.fdcrypto-modal-review strong {
  color:#246FA9;
}

.fdcrypto-modal-actions {
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:10px;
}

.fdcrypto-modal-actions button {
  min-height:46px;
  padding:10px 12px;
  border-radius:11px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease,
             box-shadow .18s ease;
}

.fdcrypto-modal-cancel {
  background:#FFFFFF!important;
  border:1px solid #D1DFE9!important;
  color:#506A7E!important;
}

.fdcrypto-modal-approve {
  background:linear-gradient(110deg,#317ED0,#19A5C8)!important;
  border:1px solid #348DBF!important;
  color:#FFFFFF!important;
  box-shadow:0 9px 22px rgba(28,125,189,.21);
}

@media(hover:hover) {
  .fdcrypto-modal-actions button:hover {
    transform:translateY(-2px);
    filter:brightness(1.05);
  }
}

.fdcrypto-modal-actions button:focus-visible {
  outline:3px solid #7FCAE9;
  outline-offset:3px;
}

.fdcrypto-modal-footer {
  margin:17px 0 0!important;
  color:#8DA2B1!important;
  text-align:center;
  font-size:10px;
}

.dt-is-active .fdcrypto-modal {
  background:#1A2E43;
  color:#EDF7FF;
  border-color:#4F7693;
}

.dt-is-active .fdcrypto-modal-note {
  background:#233F55;
  border-color:#477A93;
}

.dt-is-active .fdcrypto-modal-note strong {
  color:#D7F3FF;
}

.dt-is-active .fdcrypto-modal-note p,
.dt-is-active .fdcrypto-modal-review {
  color:#C6DDEB!important;
}

.dt-is-active .fdcrypto-modal-review strong {
  color:#80D6F2;
}

.dt-is-active .fdcrypto-modal-cancel {
  background:#2B485F!important;
  color:#EFF8FF!important;
  border-color:#5B809B!important;
}

.dt-is-active .fdcrypto-modal-footer {
  color:#A6C0D1!important;
}

@keyframes fdcrypto-in {
  from {opacity:0;transform:translateY(12px) scale(.98);}
  to {opacity:1;transform:translateY(0) scale(1);}
}

@media(max-width:480px) {
  .fdcrypto-modal-head {padding:22px 17px;}
  .fdcrypto-modal-body {padding:19px 17px;}
  .fdcrypto-modal-actions {grid-template-columns:1fr;}
  .fdcrypto-modal-head h2 {font-size:19px!important;}
}

@media(prefers-reduced-motion:reduce) {
  .fdcrypto-modal {animation:none!important;}
  .fdcrypto-modal-actions button {
    transition:none!important;
  }
  .fdcrypto-modal-actions button:hover {
    transform:none!important;
  }
}


/* ==================================================
   FD_CRYPTO_SUBMIT_WHITE_HOVER_V1
   Signature 4D — Crypto submit button only
   ================================================== */

.fdpt--crypto button.fdpt-live-submit:not(:disabled),
.fdpt--crypto button.fdpt-live-submit:not(:disabled):hover,
.fdpt--crypto button.fdpt-live-submit:not(:disabled):focus-visible,
.fdpt--crypto button.fdpt-live-submit:not(:disabled):active {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Smooth interaction */

.fdpt--crypto button.fdpt-live-submit {
    transition:
        transform .24s cubic-bezier(.2,.75,.25,1),
        box-shadow .24s ease,
        filter .24s ease,
        background .24s ease !important;
}

/* Premium blue/cyan glow */

@media (hover:hover) and (pointer:fine) {
    .fdpt--crypto button.fdpt-live-submit:not(:disabled):hover {
        transform: translateY(-3px) !important;
        filter: brightness(1.09) !important;
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;

        box-shadow:
            0 12px 28px rgba(20,151,217,.32),
            0 4px 12px rgba(24,95,180,.20) !important;
    }
}

/* Press feedback */

.fdpt--crypto button.fdpt-live-submit:not(:disabled):active {
    transform: translateY(0) scale(.985) !important;
    filter: brightness(.97) !important;
}

/* Keyboard accessibility */

.fdpt--crypto button.fdpt-live-submit:focus-visible {
    outline: 3px solid #6CD9F3 !important;
    outline-offset: 3px;
}

/* Disabled buttons remain visibly disabled */

.fdpt--crypto button.fdpt-live-submit:disabled {
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Reduced motion */

@media (prefers-reduced-motion:reduce) {
    .fdpt--crypto button.fdpt-live-submit {
        transition: none !important;
    }

    .fdpt--crypto button.fdpt-live-submit:hover {
        transform: none !important;
    }
}
